This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + * ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name); + * } + * }+ * + *
Note: close() needs to be called on the ConferenceRecordsServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
Method | + *Description | + *Method Variants | + *
---|---|---|
GetConferenceRecord | + *[Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record by conference ID. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListConferenceRecords | + *[Developer Preview](https://developers.google.com/workspace/preview). Lists the conference records by start time and in descending order. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetParticipant | + *[Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by participant ID. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListParticipants | + *[Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in a conference record, by default ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetParticipantSession | + *[Developer Preview](https://developers.google.com/workspace/preview). Gets a participant session by participant session ID. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListParticipantSessions | + *[Developer Preview](https://developers.google.com/workspace/preview). Lists the participant sessions of a participant in a conference record, by default ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetRecording | + *[Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by recording ID. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListRecordings | + *[Developer Preview](https://developers.google.com/workspace/preview). Lists the recording resources from the conference record. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetTranscript | + *[Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by transcript ID. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListTranscripts | + *[Developer Preview](https://developers.google.com/workspace/preview). Lists the set of transcripts from the conference record. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetTranscriptEntry | + *[Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` resource by entry ID. + * Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListTranscriptEntries | + *[Developer Preview](https://developers.google.com/workspace/preview). Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. + * Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * ConferenceRecordsServiceSettings to create(). For example: + * + *
To customize credentials: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + * ConferenceRecordsServiceSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + * }+ * + *
To customize the endpoint: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + * ConferenceRecordsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + * ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + * }+ * + *
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + * ConferenceRecordsServiceSettings.newHttpJsonBuilder().build(); + * ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConferenceRecordsServiceClient implements BackgroundResource { + private final ConferenceRecordsServiceSettings settings; + private final ConferenceRecordsServiceStub stub; + + /** Constructs an instance of ConferenceRecordsServiceClient with default settings. */ + public static final ConferenceRecordsServiceClient create() throws IOException { + return create(ConferenceRecordsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConferenceRecordsServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final ConferenceRecordsServiceClient create( + ConferenceRecordsServiceSettings settings) throws IOException { + return new ConferenceRecordsServiceClient(settings); + } + + /** + * Constructs an instance of ConferenceRecordsServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(ConferenceRecordsServiceSettings). + */ + public static final ConferenceRecordsServiceClient create(ConferenceRecordsServiceStub stub) { + return new ConferenceRecordsServiceClient(stub); + } + + /** + * Constructs an instance of ConferenceRecordsServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected ConferenceRecordsServiceClient(ConferenceRecordsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ConferenceRecordsServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ConferenceRecordsServiceClient(ConferenceRecordsServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ConferenceRecordsServiceSettings getSettings() { + return settings; + } + + public ConferenceRecordsServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record + * by conference ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + * ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name); + * } + * }+ * + * @param name Required. Resource name of the conference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConferenceRecord getConferenceRecord(ConferenceRecordName name) { + GetConferenceRecordRequest request = + GetConferenceRecordRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getConferenceRecord(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record + * by conference ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String name = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + * ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name); + * } + * }+ * + * @param name Required. Resource name of the conference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConferenceRecord getConferenceRecord(String name) { + GetConferenceRecordRequest request = + GetConferenceRecordRequest.newBuilder().setName(name).build(); + return getConferenceRecord(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record + * by conference ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetConferenceRecordRequest request = + * GetConferenceRecordRequest.newBuilder() + * .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .build(); + * ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConferenceRecord getConferenceRecord(GetConferenceRecordRequest request) { + return getConferenceRecordCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record + * by conference ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetConferenceRecordRequest request = + * GetConferenceRecordRequest.newBuilder() + * .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.getConferenceRecordCallable().futureCall(request); + * // Do something. + * ConferenceRecord response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListConferenceRecordsRequest request = + * ListConferenceRecordsRequest.newBuilder() + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (ConferenceRecord element : + * conferenceRecordsServiceClient.listConferenceRecords(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConferenceRecordsPagedResponse listConferenceRecords( + ListConferenceRecordsRequest request) { + return listConferenceRecordsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the conference + * records by start time and in descending order. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListConferenceRecordsRequest request = + * ListConferenceRecordsRequest.newBuilder() + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.listConferenceRecordsPagedCallable().futureCall(request); + * // Do something. + * for (ConferenceRecord element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListConferenceRecordsRequest request = + * ListConferenceRecordsRequest.newBuilder() + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListConferenceRecordsResponse response = + * conferenceRecordsServiceClient.listConferenceRecordsCallable().call(request); + * for (ConferenceRecord element : response.getConferenceRecordsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + * Participant response = conferenceRecordsServiceClient.getParticipant(name); + * } + * }+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Participant getParticipant(ParticipantName name) { + GetParticipantRequest request = + GetParticipantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getParticipant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by + * participant ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString(); + * Participant response = conferenceRecordsServiceClient.getParticipant(name); + * } + * }+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Participant getParticipant(String name) { + GetParticipantRequest request = GetParticipantRequest.newBuilder().setName(name).build(); + return getParticipant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by + * participant ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetParticipantRequest request = + * GetParticipantRequest.newBuilder() + * .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + * .build(); + * Participant response = conferenceRecordsServiceClient.getParticipant(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Participant getParticipant(GetParticipantRequest request) { + return getParticipantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by + * participant ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetParticipantRequest request = + * GetParticipantRequest.newBuilder() + * .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.getParticipantCallable().futureCall(request); + * // Do something. + * Participant response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + * for (Participant element : + * conferenceRecordsServiceClient.listParticipants(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantsPagedResponse listParticipants(ConferenceRecordName parent) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listParticipants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in + * a conference record, by default ordered by join time and in descending order. This API supports + * `fields` as standard parameters like every other API. However, when the `fields` request + * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + * for (Participant element : + * conferenceRecordsServiceClient.listParticipants(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantsPagedResponse listParticipants(String parent) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder().setParent(parent).build(); + return listParticipants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in + * a conference record, by default ordered by join time and in descending order. This API supports + * `fields` as standard parameters like every other API. However, when the `fields` request + * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListParticipantsRequest request = + * ListParticipantsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (Participant element : + * conferenceRecordsServiceClient.listParticipants(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequest request) { + return listParticipantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in + * a conference record, by default ordered by join time and in descending order. This API supports + * `fields` as standard parameters like every other API. However, when the `fields` request + * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListParticipantsRequest request = + * ListParticipantsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.listParticipantsPagedCallable().futureCall(request); + * // Do something. + * for (Participant element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListParticipantsRequest request = + * ListParticipantsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListParticipantsResponse response = + * conferenceRecordsServiceClient.listParticipantsCallable().call(request); + * for (Participant element : response.getParticipantsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ParticipantSessionName name = + * ParticipantSessionName.of( + * "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]"); + * ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(name); + * } + * }+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParticipantSession getParticipantSession(ParticipantSessionName name) { + GetParticipantSessionRequest request = + GetParticipantSessionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getParticipantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant + * session by participant session ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String name = + * ParticipantSessionName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + * .toString(); + * ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(name); + * } + * }+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParticipantSession getParticipantSession(String name) { + GetParticipantSessionRequest request = + GetParticipantSessionRequest.newBuilder().setName(name).build(); + return getParticipantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant + * session by participant session ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetParticipantSessionRequest request = + * GetParticipantSessionRequest.newBuilder() + * .setName( + * ParticipantSessionName.of( + * "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + * .toString()) + * .build(); + * ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParticipantSession getParticipantSession(GetParticipantSessionRequest request) { + return getParticipantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant + * session by participant session ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetParticipantSessionRequest request = + * GetParticipantSessionRequest.newBuilder() + * .setName( + * ParticipantSessionName.of( + * "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.getParticipantSessionCallable().futureCall(request); + * // Do something. + * ParticipantSession response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + * for (ParticipantSession element : + * conferenceRecordsServiceClient.listParticipantSessions(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/participants/{participant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantSessionsPagedResponse listParticipantSessions( + ParticipantName parent) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listParticipantSessions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant + * sessions of a participant in a conference record, by default ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString(); + * for (ParticipantSession element : + * conferenceRecordsServiceClient.listParticipantSessions(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/participants/{participant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantSessionsPagedResponse listParticipantSessions(String parent) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder().setParent(parent).build(); + return listParticipantSessions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant + * sessions of a participant in a conference record, by default ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListParticipantSessionsRequest request = + * ListParticipantSessionsRequest.newBuilder() + * .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (ParticipantSession element : + * conferenceRecordsServiceClient.listParticipantSessions(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantSessionsPagedResponse listParticipantSessions( + ListParticipantSessionsRequest request) { + return listParticipantSessionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant + * sessions of a participant in a conference record, by default ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListParticipantSessionsRequest request = + * ListParticipantSessionsRequest.newBuilder() + * .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.listParticipantSessionsPagedCallable().futureCall(request); + * // Do something. + * for (ParticipantSession element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListParticipantSessionsRequest request = + * ListParticipantSessionsRequest.newBuilder() + * .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListParticipantSessionsResponse response = + * conferenceRecordsServiceClient.listParticipantSessionsCallable().call(request); + * for (ParticipantSession element : response.getParticipantSessionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]"); + * Recording response = conferenceRecordsServiceClient.getRecording(name); + * } + * }+ * + * @param name Required. Resource name of the recording. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Recording getRecording(RecordingName name) { + GetRecordingRequest request = + GetRecordingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRecording(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by + * recording ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString(); + * Recording response = conferenceRecordsServiceClient.getRecording(name); + * } + * }+ * + * @param name Required. Resource name of the recording. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Recording getRecording(String name) { + GetRecordingRequest request = GetRecordingRequest.newBuilder().setName(name).build(); + return getRecording(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by + * recording ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetRecordingRequest request = + * GetRecordingRequest.newBuilder() + * .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + * .build(); + * Recording response = conferenceRecordsServiceClient.getRecording(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Recording getRecording(GetRecordingRequest request) { + return getRecordingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by + * recording ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetRecordingRequest request = + * GetRecordingRequest.newBuilder() + * .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.getRecordingCallable().futureCall(request); + * // Do something. + * Recording response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + * for (Recording element : conferenceRecordsServiceClient.listRecordings(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRecordingsPagedResponse listRecordings(ConferenceRecordName parent) { + ListRecordingsRequest request = + ListRecordingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRecordings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording + * resources from the conference record. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + * for (Recording element : conferenceRecordsServiceClient.listRecordings(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRecordingsPagedResponse listRecordings(String parent) { + ListRecordingsRequest request = ListRecordingsRequest.newBuilder().setParent(parent).build(); + return listRecordings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording + * resources from the conference record. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListRecordingsRequest request = + * ListRecordingsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Recording element : + * conferenceRecordsServiceClient.listRecordings(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest request) { + return listRecordingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording + * resources from the conference record. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListRecordingsRequest request = + * ListRecordingsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.listRecordingsPagedCallable().futureCall(request); + * // Do something. + * for (Recording element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListRecordingsRequest request = + * ListRecordingsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListRecordingsResponse response = + * conferenceRecordsServiceClient.listRecordingsCallable().call(request); + * for (Recording element : response.getRecordingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + * Transcript response = conferenceRecordsServiceClient.getTranscript(name); + * } + * }+ * + * @param name Required. Resource name of the transcript. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Transcript getTranscript(TranscriptName name) { + GetTranscriptRequest request = + GetTranscriptRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTranscript(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by + * transcript ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString(); + * Transcript response = conferenceRecordsServiceClient.getTranscript(name); + * } + * }+ * + * @param name Required. Resource name of the transcript. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Transcript getTranscript(String name) { + GetTranscriptRequest request = GetTranscriptRequest.newBuilder().setName(name).build(); + return getTranscript(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by + * transcript ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetTranscriptRequest request = + * GetTranscriptRequest.newBuilder() + * .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + * .build(); + * Transcript response = conferenceRecordsServiceClient.getTranscript(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Transcript getTranscript(GetTranscriptRequest request) { + return getTranscriptCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by + * transcript ID. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetTranscriptRequest request = + * GetTranscriptRequest.newBuilder() + * .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.getTranscriptCallable().futureCall(request); + * // Do something. + * Transcript response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + * for (Transcript element : + * conferenceRecordsServiceClient.listTranscripts(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptsPagedResponse listTranscripts(ConferenceRecordName parent) { + ListTranscriptsRequest request = + ListTranscriptsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTranscripts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of + * transcripts from the conference record. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + * for (Transcript element : + * conferenceRecordsServiceClient.listTranscripts(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptsPagedResponse listTranscripts(String parent) { + ListTranscriptsRequest request = ListTranscriptsRequest.newBuilder().setParent(parent).build(); + return listTranscripts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of + * transcripts from the conference record. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListTranscriptsRequest request = + * ListTranscriptsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Transcript element : + * conferenceRecordsServiceClient.listTranscripts(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest request) { + return listTranscriptsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of + * transcripts from the conference record. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListTranscriptsRequest request = + * ListTranscriptsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.listTranscriptsPagedCallable().futureCall(request); + * // Do something. + * for (Transcript element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListTranscriptsRequest request = + * ListTranscriptsRequest.newBuilder() + * .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListTranscriptsResponse response = + * conferenceRecordsServiceClient.listTranscriptsCallable().call(request); + * for (Transcript element : response.getTranscriptsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * TranscriptEntryName name = + * TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]"); + * TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(name); + * } + * }+ * + * @param name Required. Resource name of the `TranscriptEntry`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranscriptEntry getTranscriptEntry(TranscriptEntryName name) { + GetTranscriptEntryRequest request = + GetTranscriptEntryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTranscriptEntry(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` + * resource by entry ID. + * + *
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String name = + * TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString(); + * TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(name); + * } + * }+ * + * @param name Required. Resource name of the `TranscriptEntry`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranscriptEntry getTranscriptEntry(String name) { + GetTranscriptEntryRequest request = + GetTranscriptEntryRequest.newBuilder().setName(name).build(); + return getTranscriptEntry(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` + * resource by entry ID. + * + *
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetTranscriptEntryRequest request = + * GetTranscriptEntryRequest.newBuilder() + * .setName( + * TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]") + * .toString()) + * .build(); + * TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranscriptEntry getTranscriptEntry(GetTranscriptEntryRequest request) { + return getTranscriptEntryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` + * resource by entry ID. + * + *
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * GetTranscriptEntryRequest request = + * GetTranscriptEntryRequest.newBuilder() + * .setName( + * TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.getTranscriptEntryCallable().futureCall(request); + * // Do something. + * TranscriptEntry response = future.get(); + * } + * }
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + * for (TranscriptEntry element : + * conferenceRecordsServiceClient.listTranscriptEntries(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/transcripts/{transcript}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptEntriesPagedResponse listTranscriptEntries(TranscriptName parent) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTranscriptEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured + * transcript entries per transcript. By default, ordered by start time and in ascending order. + * + *
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * String parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString(); + * for (TranscriptEntry element : + * conferenceRecordsServiceClient.listTranscriptEntries(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/transcripts/{transcript}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptEntriesPagedResponse listTranscriptEntries(String parent) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder().setParent(parent).build(); + return listTranscriptEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured + * transcript entries per transcript. By default, ordered by start time and in ascending order. + * + *
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListTranscriptEntriesRequest request = + * ListTranscriptEntriesRequest.newBuilder() + * .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (TranscriptEntry element : + * conferenceRecordsServiceClient.listTranscriptEntries(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptEntriesPagedResponse listTranscriptEntries( + ListTranscriptEntriesRequest request) { + return listTranscriptEntriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured + * transcript entries per transcript. By default, ordered by start time and in ascending order. + * + *
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListTranscriptEntriesRequest request = + * ListTranscriptEntriesRequest.newBuilder() + * .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * conferenceRecordsServiceClient.listTranscriptEntriesPagedCallable().futureCall(request); + * // Do something. + * for (TranscriptEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + * ConferenceRecordsServiceClient.create()) { + * ListTranscriptEntriesRequest request = + * ListTranscriptEntriesRequest.newBuilder() + * .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListTranscriptEntriesResponse response = + * conferenceRecordsServiceClient.listTranscriptEntriesCallable().call(request); + * for (TranscriptEntry element : response.getTranscriptEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
The default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of getConferenceRecord to 30 seconds: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * ConferenceRecordsServiceSettings.Builder conferenceRecordsServiceSettingsBuilder = + * ConferenceRecordsServiceSettings.newBuilder(); + * conferenceRecordsServiceSettingsBuilder + * .getConferenceRecordSettings() + * .setRetrySettings( + * conferenceRecordsServiceSettingsBuilder + * .getConferenceRecordSettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + * conferenceRecordsServiceSettingsBuilder.build(); + * }+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConferenceRecordsServiceSettings + extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the SpacesServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space. Request object method variants only take one parameter, a request object, which must be constructed before the call. "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by `space_id` or `meeting_code`. Request object method variants only take one parameter, a request object, which must be constructed before the call. "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. [Developer Preview](https://developers.google.com/workspace/preview). Updates a space. Request object method variants only take one parameter, a request object, which must be constructed before the call. "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference (if there is one). Request object method variants only take one parameter, a request object, which must be constructed before the call. "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of SpacesServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class SpacesServiceClient implements BackgroundResource {
+ private final SpacesServiceSettings settings;
+ private final SpacesServiceStub stub;
+
+ /** Constructs an instance of SpacesServiceClient with default settings. */
+ public static final SpacesServiceClient create() throws IOException {
+ return create(SpacesServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of SpacesServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final SpacesServiceClient create(SpacesServiceSettings settings)
+ throws IOException {
+ return new SpacesServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of SpacesServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(SpacesServiceSettings).
+ */
+ public static final SpacesServiceClient create(SpacesServiceStub stub) {
+ return new SpacesServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of SpacesServiceClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected SpacesServiceClient(SpacesServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((SpacesServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected SpacesServiceClient(SpacesServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final SpacesServiceSettings getSettings() {
+ return settings;
+ }
+
+ public SpacesServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of createSpace to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= SpacesServiceClient =======================
+ *
+ * Service Description: REST API for services dealing with spaces.
+ *
+ * Sample for SpacesServiceClient:
+ *
+ * ======================= ConferenceRecordsServiceClient =======================
+ *
+ * Service Description: REST API for services dealing with conference records.
+ *
+ * Sample for ConferenceRecordsServiceClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class ConferenceRecordsServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of getConferenceRecord to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcConferenceRecordsServiceCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcConferenceRecordsServiceStub extends ConferenceRecordsServiceStub {
+ private static final MethodDescriptor{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * Space space = Space.newBuilder().build();
+ * Space response = spacesServiceClient.createSpace(space);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ * CreateSpace
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * GetSpace
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * UpdateSpace
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * EndActiveConference
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpacesServiceSettings spacesServiceSettings =
+ * SpacesServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpacesServiceSettings spacesServiceSettings =
+ * SpacesServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpacesServiceSettings spacesServiceSettings =
+ * SpacesServiceSettings.newHttpJsonBuilder().build();
+ * SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * Space space = Space.newBuilder().build();
+ * Space response = spacesServiceClient.createSpace(space);
+ * }
+ * }
+ *
+ * @param space Space to be created. As of May 2023, the input space can be empty. Later on the
+ * input space can be non-empty when space configuration is introduced.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space createSpace(Space space) {
+ CreateSpaceRequest request = CreateSpaceRequest.newBuilder().setSpace(space).build();
+ return createSpace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * CreateSpaceRequest request =
+ * CreateSpaceRequest.newBuilder().setSpace(Space.newBuilder().build()).build();
+ * Space response = spacesServiceClient.createSpace(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space createSpace(CreateSpaceRequest request) {
+ return createSpaceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * CreateSpaceRequest request =
+ * CreateSpaceRequest.newBuilder().setSpace(Space.newBuilder().build()).build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * SpaceName name = SpaceName.of("[SPACE]");
+ * Space response = spacesServiceClient.getSpace(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of the space.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space getSpace(SpaceName name) {
+ GetSpaceRequest request =
+ GetSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSpace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by
+ * `space_id` or `meeting_code`.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * String name = SpaceName.of("[SPACE]").toString();
+ * Space response = spacesServiceClient.getSpace(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of the space.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space getSpace(String name) {
+ GetSpaceRequest request = GetSpaceRequest.newBuilder().setName(name).build();
+ return getSpace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by
+ * `space_id` or `meeting_code`.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * GetSpaceRequest request =
+ * GetSpaceRequest.newBuilder().setName(SpaceName.of("[SPACE]").toString()).build();
+ * Space response = spacesServiceClient.getSpace(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space getSpace(GetSpaceRequest request) {
+ return getSpaceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by
+ * `space_id` or `meeting_code`.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * GetSpaceRequest request =
+ * GetSpaceRequest.newBuilder().setName(SpaceName.of("[SPACE]").toString()).build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * Space space = Space.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Space response = spacesServiceClient.updateSpace(space, updateMask);
+ * }
+ * }
+ *
+ * @param space Required. Space to be updated.
+ * @param updateMask Optional. Field mask used to specify the fields to be updated in the space.
+ * If update_mask isn't provided, it defaults to '*' and updates all fields provided in
+ * the request, including deleting fields not set in the request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space updateSpace(Space space, FieldMask updateMask) {
+ UpdateSpaceRequest request =
+ UpdateSpaceRequest.newBuilder().setSpace(space).setUpdateMask(updateMask).build();
+ return updateSpace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Updates a space.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * UpdateSpaceRequest request =
+ * UpdateSpaceRequest.newBuilder()
+ * .setSpace(Space.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Space response = spacesServiceClient.updateSpace(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Space updateSpace(UpdateSpaceRequest request) {
+ return updateSpaceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Updates a space.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * UpdateSpaceRequest request =
+ * UpdateSpaceRequest.newBuilder()
+ * .setSpace(Space.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * SpaceName name = SpaceName.of("[SPACE]");
+ * spacesServiceClient.endActiveConference(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of the space.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void endActiveConference(SpaceName name) {
+ EndActiveConferenceRequest request =
+ EndActiveConferenceRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ endActiveConference(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference
+ * (if there is one).
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * String name = SpaceName.of("[SPACE]").toString();
+ * spacesServiceClient.endActiveConference(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of the space.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void endActiveConference(String name) {
+ EndActiveConferenceRequest request =
+ EndActiveConferenceRequest.newBuilder().setName(name).build();
+ endActiveConference(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference
+ * (if there is one).
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * EndActiveConferenceRequest request =
+ * EndActiveConferenceRequest.newBuilder()
+ * .setName(SpaceName.of("[SPACE]").toString())
+ * .build();
+ * spacesServiceClient.endActiveConference(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void endActiveConference(EndActiveConferenceRequest request) {
+ endActiveConferenceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference
+ * (if there is one).
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * EndActiveConferenceRequest request =
+ * EndActiveConferenceRequest.newBuilder()
+ * .setName(SpaceName.of("[SPACE]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpacesServiceSettings.Builder spacesServiceSettingsBuilder = SpacesServiceSettings.newBuilder();
+ * spacesServiceSettingsBuilder
+ * .createSpaceSettings()
+ * .setRetrySettings(
+ * spacesServiceSettingsBuilder
+ * .createSpaceSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * SpacesServiceSettings spacesServiceSettings = spacesServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class SpacesServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+ * Space space = Space.newBuilder().build();
+ * Space response = spacesServiceClient.createSpace(space);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+ * ConferenceRecordsServiceClient.create()) {
+ * ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]");
+ * ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.apps.meet.v2beta;
+
+import javax.annotation.Generated;
diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStub.java
new file mode 100644
index 000000000000..e2b7225c80ce
--- /dev/null
+++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStub.java
@@ -0,0 +1,153 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.apps.meet.v2beta.stub;
+
+import static com.google.apps.meet.v2beta.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse;
+import static com.google.apps.meet.v2beta.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse;
+import static com.google.apps.meet.v2beta.ConferenceRecordsServiceClient.ListParticipantsPagedResponse;
+import static com.google.apps.meet.v2beta.ConferenceRecordsServiceClient.ListRecordingsPagedResponse;
+import static com.google.apps.meet.v2beta.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse;
+import static com.google.apps.meet.v2beta.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.apps.meet.v2beta.ConferenceRecord;
+import com.google.apps.meet.v2beta.GetConferenceRecordRequest;
+import com.google.apps.meet.v2beta.GetParticipantRequest;
+import com.google.apps.meet.v2beta.GetParticipantSessionRequest;
+import com.google.apps.meet.v2beta.GetRecordingRequest;
+import com.google.apps.meet.v2beta.GetTranscriptEntryRequest;
+import com.google.apps.meet.v2beta.GetTranscriptRequest;
+import com.google.apps.meet.v2beta.ListConferenceRecordsRequest;
+import com.google.apps.meet.v2beta.ListConferenceRecordsResponse;
+import com.google.apps.meet.v2beta.ListParticipantSessionsRequest;
+import com.google.apps.meet.v2beta.ListParticipantSessionsResponse;
+import com.google.apps.meet.v2beta.ListParticipantsRequest;
+import com.google.apps.meet.v2beta.ListParticipantsResponse;
+import com.google.apps.meet.v2beta.ListRecordingsRequest;
+import com.google.apps.meet.v2beta.ListRecordingsResponse;
+import com.google.apps.meet.v2beta.ListTranscriptEntriesRequest;
+import com.google.apps.meet.v2beta.ListTranscriptEntriesResponse;
+import com.google.apps.meet.v2beta.ListTranscriptsRequest;
+import com.google.apps.meet.v2beta.ListTranscriptsResponse;
+import com.google.apps.meet.v2beta.Participant;
+import com.google.apps.meet.v2beta.ParticipantSession;
+import com.google.apps.meet.v2beta.Recording;
+import com.google.apps.meet.v2beta.Transcript;
+import com.google.apps.meet.v2beta.TranscriptEntry;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the ConferenceRecordsService service API.
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConferenceRecordsServiceStubSettings.Builder conferenceRecordsServiceSettingsBuilder =
+ * ConferenceRecordsServiceStubSettings.newBuilder();
+ * conferenceRecordsServiceSettingsBuilder
+ * .getConferenceRecordSettings()
+ * .setRetrySettings(
+ * conferenceRecordsServiceSettingsBuilder
+ * .getConferenceRecordSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * ConferenceRecordsServiceStubSettings conferenceRecordsServiceSettings =
+ * conferenceRecordsServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class ConferenceRecordsServiceStubSettings
+ extends StubSettings