This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
+ * Framework response = configClient.getFramework(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the ConfigClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
ListFrameworks |
+ * Lists Frameworks in a given organization. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetFramework |
+ * Gets details of a single Framework. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateFramework |
+ * Creates a single framework for a given resource. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateFramework |
+ * Updates a single Framework. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteFramework |
+ * Deletes a single Framework. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListCloudControls |
+ * Lists CloudControls in a given organization. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetCloudControl |
+ * Gets details of a single CloudControl. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateCloudControl |
+ * Creates a single CloudControl for a given resource. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateCloudControl |
+ * Updates a single CloudControl. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteCloudControl |
+ * Deletes a single CloudControl. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
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. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetLocation |
+ * Gets information about a location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
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 ConfigSettings to create(). + * For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigSettings configSettings =
+ * ConfigSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ConfigClient configClient = ConfigClient.create(configSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ConfigClient configClient = ConfigClient.create(configSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigSettings configSettings = ConfigSettings.newHttpJsonBuilder().build();
+ * ConfigClient configClient = ConfigClient.create(configSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ConfigClient implements BackgroundResource { + private final ConfigSettings settings; + private final ConfigStub stub; + + /** Constructs an instance of ConfigClient with default settings. */ + public static final ConfigClient create() throws IOException { + return create(ConfigSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConfigClient, 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 ConfigClient create(ConfigSettings settings) throws IOException { + return new ConfigClient(settings); + } + + /** + * Constructs an instance of ConfigClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(ConfigSettings). + */ + public static final ConfigClient create(ConfigStub stub) { + return new ConfigClient(stub); + } + + /** + * Constructs an instance of ConfigClient, 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 ConfigClient(ConfigSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ConfigStubSettings) settings.getStubSettings()).createStub(); + } + + protected ConfigClient(ConfigStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ConfigSettings getSettings() { + return settings; + } + + public ConfigStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Frameworks in a given organization. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (Framework element : configClient.listFrameworks(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName parent) {
+ ListFrameworksRequest request =
+ ListFrameworksRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFrameworks(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Frameworks in a given organization.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * for (Framework element : configClient.listFrameworks(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFrameworksPagedResponse listFrameworks(String parent) {
+ ListFrameworksRequest request = ListFrameworksRequest.newBuilder().setParent(parent).build();
+ return listFrameworks(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Frameworks in a given organization.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListFrameworksRequest request =
+ * ListFrameworksRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Framework element : configClient.listFrameworks(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 ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest request) {
+ return listFrameworksPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Frameworks in a given organization.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListFrameworksRequest request =
+ * ListFrameworksRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = configClient.listFrameworksPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Framework element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListFrameworksRequest request =
+ * ListFrameworksRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListFrameworksResponse response = configClient.listFrameworksCallable().call(request);
+ * for (Framework element : response.getFrameworksList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
+ * Framework response = configClient.getFramework(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the framework to retrieve. Format:
+ * organizations/{organization}/locations/{location}/frameworks/{framework_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Framework getFramework(FrameworkName name) {
+ GetFrameworkRequest request =
+ GetFrameworkRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString();
+ * Framework response = configClient.getFramework(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the framework to retrieve. Format:
+ * organizations/{organization}/locations/{location}/frameworks/{framework_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Framework getFramework(String name) {
+ GetFrameworkRequest request = GetFrameworkRequest.newBuilder().setName(name).build();
+ return getFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetFrameworkRequest request =
+ * GetFrameworkRequest.newBuilder()
+ * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString())
+ * .setMajorRevisionId(612576889)
+ * .build();
+ * Framework response = configClient.getFramework(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 Framework getFramework(GetFrameworkRequest request) {
+ return getFrameworkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetFrameworkRequest request =
+ * GetFrameworkRequest.newBuilder()
+ * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString())
+ * .setMajorRevisionId(612576889)
+ * .build();
+ * ApiFuture future = configClient.getFrameworkCallable().futureCall(request);
+ * // Do something.
+ * Framework response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * Framework framework = Framework.newBuilder().build();
+ * String frameworkId = "frameworkId886666169";
+ * Framework response = configClient.createFramework(parent, framework, frameworkId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @param framework Required. The resource being created
+ * @param frameworkId Required. ID of the framework. This is not the full name of the framework.
+ * This is the last part of the full name of the framework.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Framework createFramework(
+ OrganizationLocationName parent, Framework framework, String frameworkId) {
+ CreateFrameworkRequest request =
+ CreateFrameworkRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setFramework(framework)
+ .setFrameworkId(frameworkId)
+ .build();
+ return createFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a single framework for a given resource.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * Framework framework = Framework.newBuilder().build();
+ * String frameworkId = "frameworkId886666169";
+ * Framework response = configClient.createFramework(parent, framework, frameworkId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @param framework Required. The resource being created
+ * @param frameworkId Required. ID of the framework. This is not the full name of the framework.
+ * This is the last part of the full name of the framework.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Framework createFramework(String parent, Framework framework, String frameworkId) {
+ CreateFrameworkRequest request =
+ CreateFrameworkRequest.newBuilder()
+ .setParent(parent)
+ .setFramework(framework)
+ .setFrameworkId(frameworkId)
+ .build();
+ return createFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a single framework for a given resource.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CreateFrameworkRequest request =
+ * CreateFrameworkRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setFrameworkId("frameworkId886666169")
+ * .setFramework(Framework.newBuilder().build())
+ * .build();
+ * Framework response = configClient.createFramework(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 Framework createFramework(CreateFrameworkRequest request) {
+ return createFrameworkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a single framework for a given resource.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CreateFrameworkRequest request =
+ * CreateFrameworkRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setFrameworkId("frameworkId886666169")
+ * .setFramework(Framework.newBuilder().build())
+ * .build();
+ * ApiFuture future = configClient.createFrameworkCallable().futureCall(request);
+ * // Do something.
+ * Framework response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * Framework framework = Framework.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Framework response = configClient.updateFramework(framework, updateMask);
+ * }
+ * }
+ *
+ * @param framework Required. The resource being updated
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * Framework resource by the update. The fields specified in the update_mask are relative to
+ * the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields present in the request will be
+ * overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Framework updateFramework(Framework framework, FieldMask updateMask) {
+ UpdateFrameworkRequest request =
+ UpdateFrameworkRequest.newBuilder()
+ .setFramework(framework)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * UpdateFrameworkRequest request =
+ * UpdateFrameworkRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setFramework(Framework.newBuilder().build())
+ * .setMajorRevisionId(612576889)
+ * .build();
+ * Framework response = configClient.updateFramework(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 Framework updateFramework(UpdateFrameworkRequest request) {
+ return updateFrameworkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * UpdateFrameworkRequest request =
+ * UpdateFrameworkRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setFramework(Framework.newBuilder().build())
+ * .setMajorRevisionId(612576889)
+ * .build();
+ * ApiFuture future = configClient.updateFrameworkCallable().futureCall(request);
+ * // Do something.
+ * Framework response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
+ * configClient.deleteFramework(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource, in the format
+ * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteFramework(FrameworkName name) {
+ DeleteFrameworkRequest request =
+ DeleteFrameworkRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString();
+ * configClient.deleteFramework(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource, in the format
+ * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteFramework(String name) {
+ DeleteFrameworkRequest request = DeleteFrameworkRequest.newBuilder().setName(name).build();
+ deleteFramework(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * DeleteFrameworkRequest request =
+ * DeleteFrameworkRequest.newBuilder()
+ * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString())
+ * .build();
+ * configClient.deleteFramework(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteFramework(DeleteFrameworkRequest request) {
+ deleteFrameworkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Framework.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * DeleteFrameworkRequest request =
+ * DeleteFrameworkRequest.newBuilder()
+ * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString())
+ * .build();
+ * ApiFuture future = configClient.deleteFrameworkCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (CloudControl element : configClient.listCloudControls(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocationName parent) {
+ ListCloudControlsRequest request =
+ ListCloudControlsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCloudControls(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControls in a given organization.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * for (CloudControl element : configClient.listCloudControls(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudControlsPagedResponse listCloudControls(String parent) {
+ ListCloudControlsRequest request =
+ ListCloudControlsRequest.newBuilder().setParent(parent).build();
+ return listCloudControls(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControls in a given organization.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListCloudControlsRequest request =
+ * ListCloudControlsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CloudControl element : configClient.listCloudControls(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 ListCloudControlsPagedResponse listCloudControls(ListCloudControlsRequest request) {
+ return listCloudControlsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControls in a given organization.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListCloudControlsRequest request =
+ * ListCloudControlsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * configClient.listCloudControlsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CloudControl element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListCloudControlsRequest request =
+ * ListCloudControlsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListCloudControlsResponse response = configClient.listCloudControlsCallable().call(request);
+ * for (CloudControl element : response.getCloudControlsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CloudControlName name =
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]");
+ * CloudControl response = configClient.getCloudControl(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the cloudcontrol to retrieve in the format:
+ * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControl getCloudControl(CloudControlName name) {
+ GetCloudControlRequest request =
+ GetCloudControlRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String name =
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString();
+ * CloudControl response = configClient.getCloudControl(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the cloudcontrol to retrieve in the format:
+ * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControl getCloudControl(String name) {
+ GetCloudControlRequest request = GetCloudControlRequest.newBuilder().setName(name).build();
+ return getCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetCloudControlRequest request =
+ * GetCloudControlRequest.newBuilder()
+ * .setName(
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString())
+ * .build();
+ * CloudControl response = configClient.getCloudControl(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 CloudControl getCloudControl(GetCloudControlRequest request) {
+ return getCloudControlCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetCloudControlRequest request =
+ * GetCloudControlRequest.newBuilder()
+ * .setName(
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString())
+ * .build();
+ * ApiFuture future = configClient.getCloudControlCallable().futureCall(request);
+ * // Do something.
+ * CloudControl response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * CloudControl cloudControl = CloudControl.newBuilder().build();
+ * String cloudControlId = "cloudControlId657324195";
+ * CloudControl response = configClient.createCloudControl(parent, cloudControl, cloudControlId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @param cloudControl Required. The resource being created
+ * @param cloudControlId Required. ID of the CloudControl. This is the last segment of the
+ * CloudControl resource name. Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControl createCloudControl(
+ OrganizationLocationName parent, CloudControl cloudControl, String cloudControlId) {
+ CreateCloudControlRequest request =
+ CreateCloudControlRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCloudControl(cloudControl)
+ .setCloudControlId(cloudControlId)
+ .build();
+ return createCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a single CloudControl for a given resource.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * CloudControl cloudControl = CloudControl.newBuilder().build();
+ * String cloudControlId = "cloudControlId657324195";
+ * CloudControl response = configClient.createCloudControl(parent, cloudControl, cloudControlId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, in the format
+ * `organizations/{organization}/locations/{location}`.
+ * @param cloudControl Required. The resource being created
+ * @param cloudControlId Required. ID of the CloudControl. This is the last segment of the
+ * CloudControl resource name. Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControl createCloudControl(
+ String parent, CloudControl cloudControl, String cloudControlId) {
+ CreateCloudControlRequest request =
+ CreateCloudControlRequest.newBuilder()
+ .setParent(parent)
+ .setCloudControl(cloudControl)
+ .setCloudControlId(cloudControlId)
+ .build();
+ return createCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a single CloudControl for a given resource.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CreateCloudControlRequest request =
+ * CreateCloudControlRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setCloudControlId("cloudControlId657324195")
+ * .setCloudControl(CloudControl.newBuilder().build())
+ * .build();
+ * CloudControl response = configClient.createCloudControl(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 CloudControl createCloudControl(CreateCloudControlRequest request) {
+ return createCloudControlCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a single CloudControl for a given resource.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CreateCloudControlRequest request =
+ * CreateCloudControlRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setCloudControlId("cloudControlId657324195")
+ * .setCloudControl(CloudControl.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * configClient.createCloudControlCallable().futureCall(request);
+ * // Do something.
+ * CloudControl response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CloudControl cloudControl = CloudControl.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CloudControl response = configClient.updateCloudControl(cloudControl, updateMask);
+ * }
+ * }
+ *
+ * @param cloudControl Required. The resource being updated
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * CloudControl resource by the update. The fields specified in the update_mask are relative
+ * to the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields present in the request will be
+ * overwritten. The fields that can be updated are: 1. Display_name 2. Description 3.
+ * Parameters 4. Rules 5. ParameterSpec.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControl updateCloudControl(CloudControl cloudControl, FieldMask updateMask) {
+ UpdateCloudControlRequest request =
+ UpdateCloudControlRequest.newBuilder()
+ .setCloudControl(cloudControl)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * UpdateCloudControlRequest request =
+ * UpdateCloudControlRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setCloudControl(CloudControl.newBuilder().build())
+ * .build();
+ * CloudControl response = configClient.updateCloudControl(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 CloudControl updateCloudControl(UpdateCloudControlRequest request) {
+ return updateCloudControlCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * UpdateCloudControlRequest request =
+ * UpdateCloudControlRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setCloudControl(CloudControl.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * configClient.updateCloudControlCallable().futureCall(request);
+ * // Do something.
+ * CloudControl response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CloudControlName name =
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]");
+ * configClient.deleteCloudControl(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource, in the format
+ * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteCloudControl(CloudControlName name) {
+ DeleteCloudControlRequest request =
+ DeleteCloudControlRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String name =
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString();
+ * configClient.deleteCloudControl(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource, in the format
+ * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteCloudControl(String name) {
+ DeleteCloudControlRequest request =
+ DeleteCloudControlRequest.newBuilder().setName(name).build();
+ deleteCloudControl(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * DeleteCloudControlRequest request =
+ * DeleteCloudControlRequest.newBuilder()
+ * .setName(
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString())
+ * .build();
+ * configClient.deleteCloudControl(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteCloudControl(DeleteCloudControlRequest request) {
+ deleteCloudControlCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single CloudControl.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * DeleteCloudControlRequest request =
+ * DeleteCloudControlRequest.newBuilder()
+ * .setName(
+ * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString())
+ * .build();
+ * ApiFuture future = configClient.deleteCloudControlCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : configClient.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.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = configClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = configClient.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 UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = configClient.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.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = configClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe 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 getFramework: + * + *
{@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
+ * ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
+ * configSettingsBuilder
+ * .getFrameworkSettings()
+ * .setRetrySettings(
+ * configSettingsBuilder
+ * .getFrameworkSettings()
+ * .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());
+ * ConfigSettings configSettings = configSettingsBuilder.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.
+ */
+@Generated("by gapic-generator-java")
+public class ConfigSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the DeploymentClient object to clean up resources such as
+ * threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * CreateFrameworkDeployment Creates a new FrameworkDeployment in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. createFrameworkDeploymentAsync(CreateFrameworkDeploymentRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createFrameworkDeploymentAsync(OrganizationLocationName parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId)
+ * createFrameworkDeploymentAsync(String parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createFrameworkDeploymentOperationCallable()
+ * createFrameworkDeploymentCallable()
+ * DeleteFrameworkDeployment Deletes a single FrameworkDeployment. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteFrameworkDeploymentAsync(DeleteFrameworkDeploymentRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteFrameworkDeploymentAsync(FrameworkDeploymentName name)
+ * deleteFrameworkDeploymentAsync(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. deleteFrameworkDeploymentOperationCallable()
+ * deleteFrameworkDeploymentCallable()
+ * GetFrameworkDeployment Gets details of a single FrameworkDeployment. Request object method variants only take one parameter, a request object, which must be constructed before the call. getFrameworkDeployment(GetFrameworkDeploymentRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getFrameworkDeployment(FrameworkDeploymentName name)
+ * getFrameworkDeployment(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. getFrameworkDeploymentCallable()
+ * ListFrameworkDeployments Lists FrameworkDeployments in a given parent and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFrameworkDeployments(ListFrameworkDeploymentsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFrameworkDeployments(OrganizationLocationName parent)
+ * listFrameworkDeployments(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. listFrameworkDeploymentsPagedCallable()
+ * listFrameworkDeploymentsCallable()
+ * GetCloudControlDeployment Gets details of a single CloudControlDeployment. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCloudControlDeployment(GetCloudControlDeploymentRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCloudControlDeployment(CloudControlDeploymentName name)
+ * getCloudControlDeployment(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. getCloudControlDeploymentCallable()
+ * ListCloudControlDeployments Lists CloudControlDeployments under a given parent. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCloudControlDeployments(ListCloudControlDeploymentsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCloudControlDeployments(OrganizationLocationName parent)
+ * listCloudControlDeployments(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. listCloudControlDeploymentsPagedCallable()
+ * listCloudControlDeploymentsCallable()
+ * 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 DeploymentSettings 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 DeploymentClient implements BackgroundResource {
+ private final DeploymentSettings settings;
+ private final DeploymentStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of DeploymentClient with default settings. */
+ public static final DeploymentClient create() throws IOException {
+ return create(DeploymentSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of DeploymentClient, 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 DeploymentClient create(DeploymentSettings settings) throws IOException {
+ return new DeploymentClient(settings);
+ }
+
+ /**
+ * Constructs an instance of DeploymentClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(DeploymentSettings).
+ */
+ public static final DeploymentClient create(DeploymentStub stub) {
+ return new DeploymentClient(stub);
+ }
+
+ /**
+ * Constructs an instance of DeploymentClient, 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 DeploymentClient(DeploymentSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((DeploymentStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected DeploymentClient(DeploymentStub 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 DeploymentSettings getSettings() {
+ return settings;
+ }
+
+ public DeploymentStub 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.
+ /**
+ * Creates a new FrameworkDeployment 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:
+ *
+ * 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 getFrameworkDeployment:
+ *
+ * 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 createFrameworkDeployment:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= ConfigClient =======================
+ *
+ * Service Description: Service describing handlers for config resources
+ *
+ * Sample for ConfigClient:
+ *
+ * ======================= DeploymentClient =======================
+ *
+ * Service Description: Service describing handlers for resources
+ *
+ * Sample for DeploymentClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class ConfigStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getFramework:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class DeploymentStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ return null;
+ }
+
+ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+ return null;
+ }
+
+ public OperationCallable 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 getFrameworkDeployment:
+ *
+ * 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 createFrameworkDeployment:
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * FrameworkDeploymentName name =
+ * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]");
+ * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(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
+ * DeploymentSettings deploymentSettings =
+ * DeploymentSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * DeploymentClient deploymentClient = DeploymentClient.create(deploymentSettings);
+ * }
+ *
+ * {@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
+ * DeploymentSettings deploymentSettings =
+ * DeploymentSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeploymentClient deploymentClient = DeploymentClient.create(deploymentSettings);
+ * }
+ *
+ * {@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
+ * DeploymentSettings deploymentSettings = DeploymentSettings.newHttpJsonBuilder().build();
+ * DeploymentClient deploymentClient = DeploymentClient.create(deploymentSettings);
+ * }
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build();
+ * String frameworkDeploymentId = "frameworkDeploymentId-1244700706";
+ * FrameworkDeployment response =
+ * deploymentClient
+ * .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent. Supported formats:
+ * organizations/{organization}/locations/{location} Only global location is supported.
+ * @param frameworkDeployment Required. The resource being created.
+ * @param frameworkDeploymentId Optional. User provided identifier. It should be unique in scope
+ * of a parent Please note that this is optional and if not provided, a random UUID will be
+ * generated.
+ * @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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build();
+ * String frameworkDeploymentId = "frameworkDeploymentId-1244700706";
+ * FrameworkDeployment response =
+ * deploymentClient
+ * .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent. Supported formats:
+ * organizations/{organization}/locations/{location} Only global location is supported.
+ * @param frameworkDeployment Required. The resource being created.
+ * @param frameworkDeploymentId Optional. User provided identifier. It should be unique in scope
+ * of a parent Please note that this is optional and if not provided, a random UUID will be
+ * generated.
+ * @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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * CreateFrameworkDeploymentRequest request =
+ * CreateFrameworkDeploymentRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setFrameworkDeploymentId("frameworkDeploymentId-1244700706")
+ * .setFrameworkDeployment(FrameworkDeployment.newBuilder().build())
+ * .build();
+ * FrameworkDeployment response = deploymentClient.createFrameworkDeploymentAsync(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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * CreateFrameworkDeploymentRequest request =
+ * CreateFrameworkDeploymentRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setFrameworkDeploymentId("frameworkDeploymentId-1244700706")
+ * .setFrameworkDeployment(FrameworkDeployment.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateFrameworkDeploymentRequest, FrameworkDeployment, OperationMetadata>
+ createFrameworkDeploymentOperationCallable() {
+ return stub.createFrameworkDeploymentOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FrameworkDeployment 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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * CreateFrameworkDeploymentRequest request =
+ * CreateFrameworkDeploymentRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setFrameworkDeploymentId("frameworkDeploymentId-1244700706")
+ * .setFrameworkDeployment(FrameworkDeployment.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * FrameworkDeploymentName name =
+ * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]");
+ * deploymentClient.deleteFrameworkDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the framework deployment to be deleted FrameworkDeployment name
+ * in either of the following formats:
+ * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
+ * @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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * String name =
+ * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .toString();
+ * deploymentClient.deleteFrameworkDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the framework deployment to be deleted FrameworkDeployment name
+ * in either of the following formats:
+ * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
+ * @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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * DeleteFrameworkDeploymentRequest request =
+ * DeleteFrameworkDeploymentRequest.newBuilder()
+ * .setName(
+ * FrameworkDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .build();
+ * deploymentClient.deleteFrameworkDeploymentAsync(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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * DeleteFrameworkDeploymentRequest request =
+ * DeleteFrameworkDeploymentRequest.newBuilder()
+ * .setName(
+ * FrameworkDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .toString())
+ * .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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * DeleteFrameworkDeploymentRequest request =
+ * DeleteFrameworkDeploymentRequest.newBuilder()
+ * .setName(
+ * FrameworkDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .toString())
+ * .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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * FrameworkDeploymentName name =
+ * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]");
+ * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. FrameworkDeployment name in either of the following formats:
+ * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FrameworkDeployment getFrameworkDeployment(FrameworkDeploymentName name) {
+ GetFrameworkDeploymentRequest request =
+ GetFrameworkDeploymentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getFrameworkDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FrameworkDeployment.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * String name =
+ * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .toString();
+ * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. FrameworkDeployment name in either of the following formats:
+ * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FrameworkDeployment getFrameworkDeployment(String name) {
+ GetFrameworkDeploymentRequest request =
+ GetFrameworkDeploymentRequest.newBuilder().setName(name).build();
+ return getFrameworkDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FrameworkDeployment.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * GetFrameworkDeploymentRequest request =
+ * GetFrameworkDeploymentRequest.newBuilder()
+ * .setName(
+ * FrameworkDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(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 FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRequest request) {
+ return getFrameworkDeploymentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FrameworkDeployment.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * GetFrameworkDeploymentRequest request =
+ * GetFrameworkDeploymentRequest.newBuilder()
+ * .setName(
+ * FrameworkDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]")
+ * .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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (FrameworkDeployment element :
+ * deploymentClient.listFrameworkDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListFrameworkDeploymentsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(
+ OrganizationLocationName parent) {
+ ListFrameworkDeploymentsRequest request =
+ ListFrameworkDeploymentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFrameworkDeployments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FrameworkDeployments in a given parent 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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * for (FrameworkDeployment element :
+ * deploymentClient.listFrameworkDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListFrameworkDeploymentsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(String parent) {
+ ListFrameworkDeploymentsRequest request =
+ ListFrameworkDeploymentsRequest.newBuilder().setParent(parent).build();
+ return listFrameworkDeployments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FrameworkDeployments in a given parent 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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListFrameworkDeploymentsRequest request =
+ * ListFrameworkDeploymentsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FrameworkDeployment element :
+ * deploymentClient.listFrameworkDeployments(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 ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(
+ ListFrameworkDeploymentsRequest request) {
+ return listFrameworkDeploymentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FrameworkDeployments in a given parent 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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListFrameworkDeploymentsRequest request =
+ * ListFrameworkDeploymentsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListFrameworkDeploymentsRequest request =
+ * ListFrameworkDeploymentsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFrameworkDeploymentsResponse response =
+ * deploymentClient.listFrameworkDeploymentsCallable().call(request);
+ * for (FrameworkDeployment element : response.getFrameworkDeploymentsList()) {
+ * // 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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * CloudControlDeploymentName name =
+ * CloudControlDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]");
+ * CloudControlDeployment response = deploymentClient.getCloudControlDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. CloudControlDeployment name in either of the following formats:
+ * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploymentName name) {
+ GetCloudControlDeploymentRequest request =
+ GetCloudControlDeploymentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCloudControlDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single CloudControlDeployment.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * String name =
+ * CloudControlDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]")
+ * .toString();
+ * CloudControlDeployment response = deploymentClient.getCloudControlDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. CloudControlDeployment name in either of the following formats:
+ * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudControlDeployment getCloudControlDeployment(String name) {
+ GetCloudControlDeploymentRequest request =
+ GetCloudControlDeploymentRequest.newBuilder().setName(name).build();
+ return getCloudControlDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single CloudControlDeployment.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * GetCloudControlDeploymentRequest request =
+ * GetCloudControlDeploymentRequest.newBuilder()
+ * .setName(
+ * CloudControlDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * CloudControlDeployment response = deploymentClient.getCloudControlDeployment(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 CloudControlDeployment getCloudControlDeployment(
+ GetCloudControlDeploymentRequest request) {
+ return getCloudControlDeploymentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single CloudControlDeployment.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * GetCloudControlDeploymentRequest request =
+ * GetCloudControlDeploymentRequest.newBuilder()
+ * .setName(
+ * CloudControlDeploymentName.of(
+ * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]")
+ * .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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (CloudControlDeployment element :
+ * deploymentClient.listCloudControlDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListCloudControlDeploymentsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments(
+ OrganizationLocationName parent) {
+ ListCloudControlDeploymentsRequest request =
+ ListCloudControlDeploymentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCloudControlDeployments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControlDeployments under a given parent.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * for (CloudControlDeployment element :
+ * deploymentClient.listCloudControlDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListCloudControlDeploymentsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments(String parent) {
+ ListCloudControlDeploymentsRequest request =
+ ListCloudControlDeploymentsRequest.newBuilder().setParent(parent).build();
+ return listCloudControlDeployments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControlDeployments under a given parent.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListCloudControlDeploymentsRequest request =
+ * ListCloudControlDeploymentsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (CloudControlDeployment element :
+ * deploymentClient.listCloudControlDeployments(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 ListCloudControlDeploymentsPagedResponse listCloudControlDeployments(
+ ListCloudControlDeploymentsRequest request) {
+ return listCloudControlDeploymentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControlDeployments under a given parent.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListCloudControlDeploymentsRequest request =
+ * ListCloudControlDeploymentsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListCloudControlDeploymentsRequest, ListCloudControlDeploymentsPagedResponse>
+ listCloudControlDeploymentsPagedCallable() {
+ return stub.listCloudControlDeploymentsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CloudControlDeployments under a given parent.
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListCloudControlDeploymentsRequest request =
+ * ListCloudControlDeploymentsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListCloudControlDeploymentsResponse response =
+ * deploymentClient.listCloudControlDeploymentsCallable().call(request);
+ * for (CloudControlDeployment element : response.getCloudControlDeploymentsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListCloudControlDeploymentsRequest, ListCloudControlDeploymentsResponse>
+ listCloudControlDeploymentsCallable() {
+ return stub.listCloudControlDeploymentsCallable();
+ }
+
+ // 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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : deploymentClient.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 (DeploymentClient deploymentClient = DeploymentClient.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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = deploymentClient.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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = deploymentClient.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 (DeploymentClient deploymentClient = DeploymentClient.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
+ * DeploymentSettings.Builder deploymentSettingsBuilder = DeploymentSettings.newBuilder();
+ * deploymentSettingsBuilder
+ * .getFrameworkDeploymentSettings()
+ * .setRetrySettings(
+ * deploymentSettingsBuilder
+ * .getFrameworkDeploymentSettings()
+ * .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());
+ * DeploymentSettings deploymentSettings = deploymentSettingsBuilder.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
+ * DeploymentSettings.Builder deploymentSettingsBuilder = DeploymentSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * deploymentSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class DeploymentSettings 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 (ConfigClient configClient = ConfigClient.create()) {
+ * FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
+ * Framework response = configClient.getFramework(name);
+ * }
+ * }
+ *
+ * {@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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
+ * FrameworkDeploymentName name =
+ * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]");
+ * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.cloudsecuritycompliance.v1;
+
+import javax.annotation.Generated;
diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStub.java
new file mode 100644
index 000000000000..1699378888ac
--- /dev/null
+++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStub.java
@@ -0,0 +1,121 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.cloudsecuritycompliance.v1.stub;
+
+import static com.google.cloud.cloudsecuritycompliance.v1.ConfigClient.ListCloudControlsPagedResponse;
+import static com.google.cloud.cloudsecuritycompliance.v1.ConfigClient.ListFrameworksPagedResponse;
+import static com.google.cloud.cloudsecuritycompliance.v1.ConfigClient.ListLocationsPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.cloudsecuritycompliance.v1.CloudControl;
+import com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.Framework;
+import com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse;
+import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse;
+import com.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest;
+import com.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the Config service API.
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigStubSettings.Builder configSettingsBuilder = ConfigStubSettings.newBuilder();
+ * configSettingsBuilder
+ * .getFrameworkSettings()
+ * .setRetrySettings(
+ * configSettingsBuilder
+ * .getFrameworkSettings()
+ * .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());
+ * ConfigStubSettings configSettings = configSettingsBuilder.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.
+ */
+@Generated("by gapic-generator-java")
+public class ConfigStubSettings extends StubSettings
+ *
+ *
+ * {@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
+ * DeploymentStubSettings.Builder deploymentSettingsBuilder = DeploymentStubSettings.newBuilder();
+ * deploymentSettingsBuilder
+ * .getFrameworkDeploymentSettings()
+ * .setRetrySettings(
+ * deploymentSettingsBuilder
+ * .getFrameworkDeploymentSettings()
+ * .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());
+ * DeploymentStubSettings deploymentSettings = deploymentSettingsBuilder.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
+ * DeploymentStubSettings.Builder deploymentSettingsBuilder = DeploymentStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * deploymentSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class DeploymentStubSettings extends StubSettings