diff --git a/generation_config.yaml b/generation_config.yaml
index 0582d0e3a91f..bb8ef5c77284 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,5 +1,5 @@
gapic_generator_version: 2.59.0
-googleapis_commitish: 34b323e7ee72888dd9337cce8b24233ae078f23b
+googleapis_commitish: fc1e32c211bbb46c7213ffa68fe3273da16ab358
libraries_bom_version: 26.61.0
# the libraries are ordered with respect to library name, which is
diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md
index 004ea48ef4cf..efff8764cdfb 100644
--- a/java-developerconnect/README.md
+++ b/java-developerconnect/README.md
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
ListAccountConnectors
Lists AccountConnectors in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listAccountConnectors(ListAccountConnectorsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listAccountConnectors(LocationName parent) + *
listAccountConnectors(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listAccountConnectorsPagedCallable() + *
listAccountConnectorsCallable() + *
GetAccountConnector
Gets details of a single AccountConnector.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getAccountConnector(GetAccountConnectorRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getAccountConnector(AccountConnectorName name) + *
getAccountConnector(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getAccountConnectorCallable() + *
CreateAccountConnector
Creates a new AccountConnector in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createAccountConnectorAsync(CreateAccountConnectorRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createAccountConnectorAsync(LocationName parent, AccountConnector accountConnector, String accountConnectorId) + *
createAccountConnectorAsync(String parent, AccountConnector accountConnector, String accountConnectorId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createAccountConnectorOperationCallable() + *
createAccountConnectorCallable() + *
UpdateAccountConnector
Updates the parameters of a single AccountConnector.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateAccountConnectorAsync(UpdateAccountConnectorRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *updateAccountConnectorAsync(AccountConnector accountConnector, FieldMask updateMask) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *updateAccountConnectorOperationCallable() + *
updateAccountConnectorCallable() + *
DeleteAccountConnector
Deletes a single AccountConnector.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteAccountConnectorAsync(DeleteAccountConnectorRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteAccountConnectorAsync(AccountConnectorName name) + *
deleteAccountConnectorAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteAccountConnectorOperationCallable() + *
deleteAccountConnectorCallable() + *
FetchAccessToken
Fetches OAuth access token based on end user credentials.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *fetchAccessToken(FetchAccessTokenRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *fetchAccessToken(AccountConnectorName accountConnector) + *
fetchAccessToken(String accountConnector) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *fetchAccessTokenCallable() + *
ListUsers
Lists Users in a given project, location, and account_connector.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listUsers(ListUsersRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listUsers(AccountConnectorName parent) + *
listUsers(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listUsersPagedCallable() + *
listUsersCallable() + *
DeleteUser
Deletes a single User.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteUserAsync(DeleteUserRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteUserAsync(UserName name) + *
deleteUserAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteUserOperationCallable() + *
deleteUserCallable() + *
FetchSelf
Fetch the User based on the user credentials.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *fetchSelf(FetchSelfRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *fetchSelf(AccountConnectorName name) + *
fetchSelf(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *fetchSelfCallable() + *
DeleteSelf
Delete the User based on the user credentials.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteSelfAsync(DeleteSelfRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteSelfAsync(AccountConnectorName name) + *
deleteSelfAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteSelfOperationCallable() + *
deleteSelfCallable() + *
ListLocations
Lists information about the supported locations for this service.
Sample code:
*
@@ -2682,14 +2878,78 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -2715,30 +2976,31 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - 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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
+ * ListAccountConnectorsRequest request =
+ * ListAccountConnectorsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
- * ApiFuture Sample code:
*
@@ -2749,17 +3011,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - 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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
+ * ListAccountConnectorsRequest request =
+ * ListAccountConnectorsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
* while (true) {
- * ListLocationsResponse response =
- * developerConnectClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
+ * ListAccountConnectorsResponse response =
+ * developerConnectClient.listAccountConnectorsCallable().call(request);
+ * for (AccountConnector element : response.getAccountConnectorsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -2772,13 +3035,14 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -2789,21 +3053,26 @@ public final UnaryCallable Sample code:
*
@@ -2814,39 +3083,1448 @@ public final Location getLocation(GetLocationRequest request) {
* // - 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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * ApiFuture 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:
+ *
+ * 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:
+ *
+ * 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:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The InsightsConfig resource is the core configuration object to capture events from your
+ * Software Development Lifecycle. It acts as the central hub for managing how Developer connect
+ * understands your application, its runtime environments, and the artifacts deployed within them. A
+ * user can create an InsightsConfig, list previously-requested InsightsConfigs or get
+ * InsightsConfigs by their ID to determine the status of the InsightsConfig.
+ *
+ * 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 InsightsConfigServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * ListInsightsConfigs Lists InsightsConfigs in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listInsightsConfigs(ListInsightsConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listInsightsConfigs(LocationName parent)
+ * listInsightsConfigs(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listInsightsConfigsPagedCallable()
+ * listInsightsConfigsCallable()
+ * CreateInsightsConfig Creates a new InsightsConfig in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. createInsightsConfigAsync(CreateInsightsConfigRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createInsightsConfigAsync(LocationName parent, InsightsConfig insightsConfig, String insightsConfigId)
+ * createInsightsConfigAsync(String parent, InsightsConfig insightsConfig, String insightsConfigId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createInsightsConfigOperationCallable()
+ * createInsightsConfigCallable()
+ * GetInsightsConfig Gets details of a single Insight. Request object method variants only take one parameter, a request object, which must be constructed before the call. getInsightsConfig(GetInsightsConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getInsightsConfig(InsightsConfigName name)
+ * getInsightsConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getInsightsConfigCallable()
+ * UpdateInsightsConfig Updates the parameters of a single InsightsConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateInsightsConfigAsync(UpdateInsightsConfigRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateInsightsConfigOperationCallable()
+ * updateInsightsConfigCallable()
+ * DeleteInsightsConfig Delete a single Insight. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteInsightsConfigAsync(DeleteInsightsConfigRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteInsightsConfigAsync(InsightsConfigName name)
+ * deleteInsightsConfigAsync(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteInsightsConfigOperationCallable()
+ * deleteInsightsConfigCallable()
+ * ListLocations Lists information about the supported locations for this service. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLocations(ListLocationsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLocationsPagedCallable()
+ * listLocationsCallable()
+ * GetLocation Gets information about a location. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLocation(GetLocationRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getLocationCallable()
+ * 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 InsightsConfigServiceSettings
+ * 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.
+ */
+@Generated("by gapic-generator-java")
+public class InsightsConfigServiceClient implements BackgroundResource {
+ private final InsightsConfigServiceSettings settings;
+ private final InsightsConfigServiceStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of InsightsConfigServiceClient with default settings. */
+ public static final InsightsConfigServiceClient create() throws IOException {
+ return create(InsightsConfigServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of InsightsConfigServiceClient, 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 InsightsConfigServiceClient create(InsightsConfigServiceSettings settings)
+ throws IOException {
+ return new InsightsConfigServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of InsightsConfigServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(InsightsConfigServiceSettings).
+ */
+ public static final InsightsConfigServiceClient create(InsightsConfigServiceStub stub) {
+ return new InsightsConfigServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of InsightsConfigServiceClient, 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 InsightsConfigServiceClient(InsightsConfigServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((InsightsConfigServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected InsightsConfigServiceClient(InsightsConfigServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final InsightsConfigServiceSettings getSettings() {
+ return settings;
+ }
+
+ public InsightsConfigServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists InsightsConfigs in a given project and location.
+ *
+ * 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:
+ *
+ * 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
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getInsightsConfig:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for createInsightsConfig:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction ======================= InsightsConfigServiceClient =======================
+ *
+ * Service Description: Creates and manages InsightsConfigs.
+ *
+ * The InsightsConfig resource is the core configuration object to capture events from your
+ * Software Development Lifecycle. It acts as the central hub for managing how Developer connect
+ * understands your application, its runtime environments, and the artifacts deployed within them. A
+ * user can create an InsightsConfig, list previously-requested InsightsConfigs or get
+ * InsightsConfigs by their ID to determine the status of the InsightsConfig.
+ *
+ * Sample for InsightsConfigServiceClient:
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AccountConnector element :
+ * developerConnectClient.listAccountConnectors(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListAccountConnectorsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAccountConnectorsPagedResponse listAccountConnectors(String parent) {
+ ListAccountConnectorsRequest request =
+ ListAccountConnectorsRequest.newBuilder().setParent(parent).build();
+ return listAccountConnectors(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AccountConnectors in a given project and location.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListAccountConnectorsRequest request =
+ * ListAccountConnectorsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
- * for (Location element : developerConnectClient.listLocations(request).iterateAll()) {
+ * for (AccountConnector element :
+ * developerConnectClient.listAccountConnectors(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -2698,13 +2958,14 @@ public final UnaryCallable
*/
- 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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * GetAccountConnectorRequest request =
+ * GetAccountConnectorRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .build();
+ * AccountConnector response = developerConnectClient.getAccountConnector(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 AccountConnector getAccountConnector(GetAccountConnectorRequest request) {
+ return getAccountConnectorCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AccountConnector.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * GetAccountConnectorRequest request =
+ * GetAccountConnectorRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * AccountConnector accountConnector = AccountConnector.newBuilder().build();
+ * String accountConnectorId = "accountConnectorId-605811237";
+ * AccountConnector response =
+ * developerConnectClient
+ * .createAccountConnectorAsync(parent, accountConnector, accountConnectorId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Location resource name as the account_connector’s parent.
+ * @param accountConnector Required. The AccountConnector to create.
+ * @param accountConnectorId Required. The ID to use for the AccountConnector, which will become
+ * the final component of the AccountConnector's resource name. Its format should adhere to
+ * https://google.aip.dev/122#resource-id-segments Names must be unique per-project
+ * per-location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * AccountConnector accountConnector = AccountConnector.newBuilder().build();
+ * String accountConnectorId = "accountConnectorId-605811237";
+ * AccountConnector response =
+ * developerConnectClient
+ * .createAccountConnectorAsync(parent, accountConnector, accountConnectorId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Location resource name as the account_connector’s parent.
+ * @param accountConnector Required. The AccountConnector to create.
+ * @param accountConnectorId Required. The ID to use for the AccountConnector, which will become
+ * the final component of the AccountConnector's resource name. Its format should adhere to
+ * https://google.aip.dev/122#resource-id-segments Names must be unique per-project
+ * per-location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * CreateAccountConnectorRequest request =
+ * CreateAccountConnectorRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAccountConnectorId("accountConnectorId-605811237")
+ * .setAccountConnector(AccountConnector.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * AccountConnector response = developerConnectClient.createAccountConnectorAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * CreateAccountConnectorRequest request =
+ * CreateAccountConnectorRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAccountConnectorId("accountConnectorId-605811237")
+ * .setAccountConnector(AccountConnector.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * CreateAccountConnectorRequest request =
+ * CreateAccountConnectorRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAccountConnectorId("accountConnectorId-605811237")
+ * .setAccountConnector(AccountConnector.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * AccountConnector accountConnector = AccountConnector.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * AccountConnector response =
+ * developerConnectClient.updateAccountConnectorAsync(accountConnector, updateMask).get();
+ * }
+ * }
+ *
+ * @param accountConnector Required. The AccountConnector to update.
+ * @param updateMask Optional. The list of fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * UpdateAccountConnectorRequest request =
+ * UpdateAccountConnectorRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAccountConnector(AccountConnector.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .setValidateOnly(true)
+ * .build();
+ * AccountConnector response = developerConnectClient.updateAccountConnectorAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * UpdateAccountConnectorRequest request =
+ * UpdateAccountConnectorRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAccountConnector(AccountConnector.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .setValidateOnly(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * UpdateAccountConnectorRequest request =
+ * UpdateAccountConnectorRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAccountConnector(AccountConnector.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .setValidateOnly(true)
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * AccountConnectorName name =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
+ * developerConnectClient.deleteAccountConnectorAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String name =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]").toString();
+ * developerConnectClient.deleteAccountConnectorAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteAccountConnectorRequest request =
+ * DeleteAccountConnectorRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .setForce(true)
+ * .build();
+ * developerConnectClient.deleteAccountConnectorAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteAccountConnectorRequest request =
+ * DeleteAccountConnectorRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .setForce(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteAccountConnectorRequest request =
+ * DeleteAccountConnectorRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .setForce(true)
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * AccountConnectorName accountConnector =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
+ * FetchAccessTokenResponse response = developerConnectClient.fetchAccessToken(accountConnector);
+ * }
+ * }
+ *
+ * @param accountConnector Required. The resource name of the AccountConnector in the format
+ * `projects/*/locations/*/accountConnectors/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchAccessTokenResponse fetchAccessToken(AccountConnectorName accountConnector) {
+ FetchAccessTokenRequest request =
+ FetchAccessTokenRequest.newBuilder()
+ .setAccountConnector(accountConnector == null ? null : accountConnector.toString())
+ .build();
+ return fetchAccessToken(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches OAuth access token based on end user 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
+ * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String accountConnector =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]").toString();
+ * FetchAccessTokenResponse response = developerConnectClient.fetchAccessToken(accountConnector);
+ * }
+ * }
+ *
+ * @param accountConnector Required. The resource name of the AccountConnector in the format
+ * `projects/*/locations/*/accountConnectors/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchAccessTokenResponse fetchAccessToken(String accountConnector) {
+ FetchAccessTokenRequest request =
+ FetchAccessTokenRequest.newBuilder().setAccountConnector(accountConnector).build();
+ return fetchAccessToken(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches OAuth access token based on end user 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
+ * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * FetchAccessTokenRequest request =
+ * FetchAccessTokenRequest.newBuilder()
+ * .setAccountConnector(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .build();
+ * FetchAccessTokenResponse response = developerConnectClient.fetchAccessToken(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 FetchAccessTokenResponse fetchAccessToken(FetchAccessTokenRequest request) {
+ return fetchAccessTokenCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches OAuth access token based on end user 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
+ * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * FetchAccessTokenRequest request =
+ * FetchAccessTokenRequest.newBuilder()
+ * .setAccountConnector(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * AccountConnectorName parent =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
+ * for (User element : developerConnectClient.listUsers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListUsersRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListUsersPagedResponse listUsers(AccountConnectorName parent) {
+ ListUsersRequest request =
+ ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listUsers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Users in a given project, location, and account_connector.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String parent =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]").toString();
+ * for (User element : developerConnectClient.listUsers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListUsersRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListUsersPagedResponse listUsers(String parent) {
+ ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent).build();
+ return listUsers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Users in a given project, location, and account_connector.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListUsersRequest request =
+ * ListUsersRequest.newBuilder()
+ * .setParent(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (User element : developerConnectClient.listUsers(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 ListUsersPagedResponse listUsers(ListUsersRequest request) {
+ return listUsersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Users in a given project, location, and account_connector.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListUsersRequest request =
+ * ListUsersRequest.newBuilder()
+ * .setParent(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListUsersRequest request =
+ * ListUsersRequest.newBuilder()
+ * .setParent(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListUsersResponse response = developerConnectClient.listUsersCallable().call(request);
+ * for (User element : response.getUsersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ 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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * UserName name = UserName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]");
+ * developerConnectClient.deleteUserAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String name =
+ * UserName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]").toString();
+ * developerConnectClient.deleteUserAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteUserRequest request =
+ * DeleteUserRequest.newBuilder()
+ * .setName(
+ * UserName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .build();
+ * developerConnectClient.deleteUserAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteUserRequest request =
+ * DeleteUserRequest.newBuilder()
+ * .setName(
+ * UserName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteUserRequest request =
+ * DeleteUserRequest.newBuilder()
+ * .setName(
+ * UserName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * AccountConnectorName name =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
+ * User response = developerConnectClient.fetchSelf(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the AccountConnector resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final User fetchSelf(AccountConnectorName name) {
+ FetchSelfRequest request =
+ FetchSelfRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return fetchSelf(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch the User based on the user 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
+ * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String name =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]").toString();
+ * User response = developerConnectClient.fetchSelf(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the AccountConnector resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final User fetchSelf(String name) {
+ FetchSelfRequest request = FetchSelfRequest.newBuilder().setName(name).build();
+ return fetchSelf(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch the User based on the user 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
+ * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * FetchSelfRequest request =
+ * FetchSelfRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .build();
+ * User response = developerConnectClient.fetchSelf(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 User fetchSelf(FetchSelfRequest request) {
+ return fetchSelfCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch the User based on the user 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
+ * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * FetchSelfRequest request =
+ * FetchSelfRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * AccountConnectorName name =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
+ * developerConnectClient.deleteSelfAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the AccountConnector resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * String name =
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]").toString();
+ * developerConnectClient.deleteSelfAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the AccountConnector resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteSelfRequest request =
+ * DeleteSelfRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .build();
+ * developerConnectClient.deleteSelfAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteSelfRequest request =
+ * DeleteSelfRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * DeleteSelfRequest request =
+ * DeleteSelfRequest.newBuilder()
+ * .setName(
+ * AccountConnectorName.of("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : developerConnectClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * developerConnectClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ 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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = developerConnectClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * {@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 (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * InsightsConfigName name =
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]");
+ * InsightsConfig response = insightsConfigServiceClient.getInsightsConfig(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * InsightsConfigServiceSettings insightsConfigServiceSettings =
+ * InsightsConfigServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create(insightsConfigServiceSettings);
+ * }
+ *
+ * {@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
+ * InsightsConfigServiceSettings insightsConfigServiceSettings =
+ * InsightsConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create(insightsConfigServiceSettings);
+ * }
+ *
+ * {@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
+ * InsightsConfigServiceSettings insightsConfigServiceSettings =
+ * InsightsConfigServiceSettings.newHttpJsonBuilder().build();
+ * InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create(insightsConfigServiceSettings);
+ * }
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (InsightsConfig element :
+ * insightsConfigServiceClient.listInsightsConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListInsightsConfigsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListInsightsConfigsPagedResponse listInsightsConfigs(LocationName parent) {
+ ListInsightsConfigsRequest request =
+ ListInsightsConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listInsightsConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists InsightsConfigs in a given project and location.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (InsightsConfig element :
+ * insightsConfigServiceClient.listInsightsConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListInsightsConfigsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListInsightsConfigsPagedResponse listInsightsConfigs(String parent) {
+ ListInsightsConfigsRequest request =
+ ListInsightsConfigsRequest.newBuilder().setParent(parent).build();
+ return listInsightsConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists InsightsConfigs in a given project and location.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * ListInsightsConfigsRequest request =
+ * ListInsightsConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (InsightsConfig element :
+ * insightsConfigServiceClient.listInsightsConfigs(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 ListInsightsConfigsPagedResponse listInsightsConfigs(
+ ListInsightsConfigsRequest request) {
+ return listInsightsConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists InsightsConfigs in a given project and location.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * ListInsightsConfigsRequest request =
+ * ListInsightsConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * ListInsightsConfigsRequest request =
+ * ListInsightsConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListInsightsConfigsResponse response =
+ * insightsConfigServiceClient.listInsightsConfigsCallable().call(request);
+ * for (InsightsConfig element : response.getInsightsConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ 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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * InsightsConfig insightsConfig = InsightsConfig.newBuilder().build();
+ * String insightsConfigId = "insightsConfigId774395128";
+ * InsightsConfig response =
+ * insightsConfigServiceClient
+ * .createInsightsConfigAsync(parent, insightsConfig, insightsConfigId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param insightsConfig Required. The resource being created.
+ * @param insightsConfigId Required. ID of the requesting InsightsConfig.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * InsightsConfig insightsConfig = InsightsConfig.newBuilder().build();
+ * String insightsConfigId = "insightsConfigId774395128";
+ * InsightsConfig response =
+ * insightsConfigServiceClient
+ * .createInsightsConfigAsync(parent, insightsConfig, insightsConfigId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param insightsConfig Required. The resource being created.
+ * @param insightsConfigId Required. ID of the requesting InsightsConfig.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * CreateInsightsConfigRequest request =
+ * CreateInsightsConfigRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setInsightsConfigId("insightsConfigId774395128")
+ * .setInsightsConfig(InsightsConfig.newBuilder().build())
+ * .setValidateOnly(true)
+ * .build();
+ * InsightsConfig response =
+ * insightsConfigServiceClient.createInsightsConfigAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * CreateInsightsConfigRequest request =
+ * CreateInsightsConfigRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setInsightsConfigId("insightsConfigId774395128")
+ * .setInsightsConfig(InsightsConfig.newBuilder().build())
+ * .setValidateOnly(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * CreateInsightsConfigRequest request =
+ * CreateInsightsConfigRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setInsightsConfigId("insightsConfigId774395128")
+ * .setInsightsConfig(InsightsConfig.newBuilder().build())
+ * .setValidateOnly(true)
+ * .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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * InsightsConfigName name =
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]");
+ * InsightsConfig response = insightsConfigServiceClient.getInsightsConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final InsightsConfig getInsightsConfig(InsightsConfigName name) {
+ GetInsightsConfigRequest request =
+ GetInsightsConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getInsightsConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Insight.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * String name =
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").toString();
+ * InsightsConfig response = insightsConfigServiceClient.getInsightsConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final InsightsConfig getInsightsConfig(String name) {
+ GetInsightsConfigRequest request = GetInsightsConfigRequest.newBuilder().setName(name).build();
+ return getInsightsConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Insight.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * GetInsightsConfigRequest request =
+ * GetInsightsConfigRequest.newBuilder()
+ * .setName(
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").toString())
+ * .build();
+ * InsightsConfig response = insightsConfigServiceClient.getInsightsConfig(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 InsightsConfig getInsightsConfig(GetInsightsConfigRequest request) {
+ return getInsightsConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Insight.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * GetInsightsConfigRequest request =
+ * GetInsightsConfigRequest.newBuilder()
+ * .setName(
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * UpdateInsightsConfigRequest request =
+ * UpdateInsightsConfigRequest.newBuilder()
+ * .setInsightsConfig(InsightsConfig.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .setValidateOnly(true)
+ * .build();
+ * InsightsConfig response =
+ * insightsConfigServiceClient.updateInsightsConfigAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * UpdateInsightsConfigRequest request =
+ * UpdateInsightsConfigRequest.newBuilder()
+ * .setInsightsConfig(InsightsConfig.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .setValidateOnly(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * UpdateInsightsConfigRequest request =
+ * UpdateInsightsConfigRequest.newBuilder()
+ * .setInsightsConfig(InsightsConfig.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .setValidateOnly(true)
+ * .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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * InsightsConfigName name =
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]");
+ * insightsConfigServiceClient.deleteInsightsConfigAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Value for parent.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * String name =
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").toString();
+ * insightsConfigServiceClient.deleteInsightsConfigAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Value for parent.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * DeleteInsightsConfigRequest request =
+ * DeleteInsightsConfigRequest.newBuilder()
+ * .setName(
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .build();
+ * insightsConfigServiceClient.deleteInsightsConfigAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * DeleteInsightsConfigRequest request =
+ * DeleteInsightsConfigRequest.newBuilder()
+ * .setName(
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * DeleteInsightsConfigRequest request =
+ * DeleteInsightsConfigRequest.newBuilder()
+ * .setName(
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]").toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setEtag("etag3123477")
+ * .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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : insightsConfigServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * insightsConfigServiceClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ 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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = insightsConfigServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * {@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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").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
+ * InsightsConfigServiceSettings.Builder insightsConfigServiceSettingsBuilder =
+ * InsightsConfigServiceSettings.newBuilder();
+ * insightsConfigServiceSettingsBuilder
+ * .getInsightsConfigSettings()
+ * .setRetrySettings(
+ * insightsConfigServiceSettingsBuilder
+ * .getInsightsConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * InsightsConfigServiceSettings insightsConfigServiceSettings =
+ * insightsConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * {@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
+ * InsightsConfigServiceSettings.Builder insightsConfigServiceSettingsBuilder =
+ * InsightsConfigServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * insightsConfigServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class InsightsConfigServiceSettings 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 (InsightsConfigServiceClient insightsConfigServiceClient =
+ * InsightsConfigServiceClient.create()) {
+ * InsightsConfigName name =
+ * InsightsConfigName.of("[PROJECT]", "[LOCATION]", "[INSIGHTS_CONFIG]");
+ * InsightsConfig response = insightsConfigServiceClient.getInsightsConfig(name);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.cloud.developerconnect.v1;
diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java
index 744ea741ed4a..d18bb704ce84 100644
--- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java
+++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java
@@ -18,18 +18,27 @@
import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse;
import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse;
+import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse;
import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse;
import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListGitRepositoryLinksPagedResponse;
import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListLocationsPagedResponse;
+import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListUsersPagedResponse;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.developerconnect.v1.AccountConnector;
import com.google.cloud.developerconnect.v1.Connection;
+import com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest;
import com.google.cloud.developerconnect.v1.CreateConnectionRequest;
import com.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest;
+import com.google.cloud.developerconnect.v1.DeleteAccountConnectorRequest;
import com.google.cloud.developerconnect.v1.DeleteConnectionRequest;
import com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest;
+import com.google.cloud.developerconnect.v1.DeleteSelfRequest;
+import com.google.cloud.developerconnect.v1.DeleteUserRequest;
+import com.google.cloud.developerconnect.v1.FetchAccessTokenRequest;
+import com.google.cloud.developerconnect.v1.FetchAccessTokenResponse;
import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest;
import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse;
import com.google.cloud.developerconnect.v1.FetchGitRefsRequest;
@@ -40,15 +49,23 @@
import com.google.cloud.developerconnect.v1.FetchReadTokenResponse;
import com.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest;
import com.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse;
+import com.google.cloud.developerconnect.v1.FetchSelfRequest;
+import com.google.cloud.developerconnect.v1.GetAccountConnectorRequest;
import com.google.cloud.developerconnect.v1.GetConnectionRequest;
import com.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest;
import com.google.cloud.developerconnect.v1.GitRepositoryLink;
+import com.google.cloud.developerconnect.v1.ListAccountConnectorsRequest;
+import com.google.cloud.developerconnect.v1.ListAccountConnectorsResponse;
import com.google.cloud.developerconnect.v1.ListConnectionsRequest;
import com.google.cloud.developerconnect.v1.ListConnectionsResponse;
import com.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest;
import com.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse;
+import com.google.cloud.developerconnect.v1.ListUsersRequest;
+import com.google.cloud.developerconnect.v1.ListUsersResponse;
import com.google.cloud.developerconnect.v1.OperationMetadata;
+import com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest;
import com.google.cloud.developerconnect.v1.UpdateConnectionRequest;
+import com.google.cloud.developerconnect.v1.User;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -188,6 +205,86 @@ public UnaryCallable