diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md
index 658138e76ff4..a15a3197fd93 100644
--- a/java-aiplatform/README.md
+++ b/java-aiplatform/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient = + * FeatureOnlineStoreAdminServiceClient.create()) { + * FeatureOnlineStoreName name = + * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]"); + * FeatureOnlineStore response = + * featureOnlineStoreAdminServiceClient.getFeatureOnlineStore(name); + * } + * }+ * + *
Note: close() needs to be called on the FeatureOnlineStoreAdminServiceClient object to clean + * up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
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 + * FeatureOnlineStoreAdminServiceSettings 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 + * FeatureOnlineStoreAdminServiceSettings featureOnlineStoreAdminServiceSettings = + * FeatureOnlineStoreAdminServiceSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient = + * FeatureOnlineStoreAdminServiceClient.create(featureOnlineStoreAdminServiceSettings); + * }+ * + *
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 + * FeatureOnlineStoreAdminServiceSettings featureOnlineStoreAdminServiceSettings = + * FeatureOnlineStoreAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + * FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient = + * FeatureOnlineStoreAdminServiceClient.create(featureOnlineStoreAdminServiceSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class FeatureOnlineStoreAdminServiceClient implements BackgroundResource { + private final FeatureOnlineStoreAdminServiceSettings settings; + private final FeatureOnlineStoreAdminServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of FeatureOnlineStoreAdminServiceClient with default settings. */ + public static final FeatureOnlineStoreAdminServiceClient create() throws IOException { + return create(FeatureOnlineStoreAdminServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FeatureOnlineStoreAdminServiceClient, 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 FeatureOnlineStoreAdminServiceClient create( + FeatureOnlineStoreAdminServiceSettings settings) throws IOException { + return new FeatureOnlineStoreAdminServiceClient(settings); + } + + /** + * Constructs an instance of FeatureOnlineStoreAdminServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using + * create(FeatureOnlineStoreAdminServiceSettings). + */ + public static final FeatureOnlineStoreAdminServiceClient create( + FeatureOnlineStoreAdminServiceStub stub) { + return new FeatureOnlineStoreAdminServiceClient(stub); + } + + /** + * Constructs an instance of FeatureOnlineStoreAdminServiceClient, 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 FeatureOnlineStoreAdminServiceClient(FeatureOnlineStoreAdminServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((FeatureOnlineStoreAdminServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected FeatureOnlineStoreAdminServiceClient(FeatureOnlineStoreAdminServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final FeatureOnlineStoreAdminServiceSettings getSettings() { + return settings; + } + + public FeatureOnlineStoreAdminServiceStub 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 OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FeatureOnlineStore in a given project and 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient = + * FeatureOnlineStoreAdminServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * FeatureOnlineStore featureOnlineStore = FeatureOnlineStore.newBuilder().build(); + * String featureOnlineStoreId = "featureOnlineStoreId1046065331"; + * FeatureOnlineStore response = + * featureOnlineStoreAdminServiceClient + * .createFeatureOnlineStoreAsync(parent, featureOnlineStore, featureOnlineStoreId) + * .get(); + * } + * }+ * + * @param parent Required. The resource name of the Location to create FeatureOnlineStores. + * Format: `projects/{project}/locations/{location}'` + * @param featureOnlineStore Required. The FeatureOnlineStore to create. + * @param featureOnlineStoreId Required. The ID to use for this FeatureOnlineStore, which will + * become the final component of the FeatureOnlineStore's resource name. + *
This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first + * character cannot be a number. + *
The value must be unique within the project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within the project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture 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:
+ *
+ * Updatable fields:
+ * * `big_query_source` * `labels` * `sync_config`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within a FeatureOnlineStore.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within a FeatureOnlineStore.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture 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:
+ *
+ * Updatable fields:
+ * * `labels`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture 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:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of getFeatureOnlineStore to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction Note: close() needs to be called on the FeatureOnlineStoreServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * 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
+ * FeatureOnlineStoreServiceSettings to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class FeatureOnlineStoreServiceClient implements BackgroundResource {
+ private final FeatureOnlineStoreServiceSettings settings;
+ private final FeatureOnlineStoreServiceStub stub;
+
+ /** Constructs an instance of FeatureOnlineStoreServiceClient with default settings. */
+ public static final FeatureOnlineStoreServiceClient create() throws IOException {
+ return create(FeatureOnlineStoreServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of FeatureOnlineStoreServiceClient, 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 FeatureOnlineStoreServiceClient create(
+ FeatureOnlineStoreServiceSettings settings) throws IOException {
+ return new FeatureOnlineStoreServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of FeatureOnlineStoreServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(FeatureOnlineStoreServiceSettings).
+ */
+ public static final FeatureOnlineStoreServiceClient create(FeatureOnlineStoreServiceStub stub) {
+ return new FeatureOnlineStoreServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of FeatureOnlineStoreServiceClient, 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 FeatureOnlineStoreServiceClient(FeatureOnlineStoreServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((FeatureOnlineStoreServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected FeatureOnlineStoreServiceClient(FeatureOnlineStoreServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final FeatureOnlineStoreServiceSettings getSettings() {
+ return settings;
+ }
+
+ public FeatureOnlineStoreServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch feature values under a FeatureView.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of fetchFeatureValues to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the FeatureRegistryServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * 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 FeatureRegistryServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class FeatureRegistryServiceClient implements BackgroundResource {
+ private final FeatureRegistryServiceSettings settings;
+ private final FeatureRegistryServiceStub stub;
+ private final OperationsClient operationsClient;
+
+ /** Constructs an instance of FeatureRegistryServiceClient with default settings. */
+ public static final FeatureRegistryServiceClient create() throws IOException {
+ return create(FeatureRegistryServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of FeatureRegistryServiceClient, 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 FeatureRegistryServiceClient create(FeatureRegistryServiceSettings settings)
+ throws IOException {
+ return new FeatureRegistryServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of FeatureRegistryServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(FeatureRegistryServiceSettings).
+ */
+ public static final FeatureRegistryServiceClient create(FeatureRegistryServiceStub stub) {
+ return new FeatureRegistryServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of FeatureRegistryServiceClient, 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 FeatureRegistryServiceClient(FeatureRegistryServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((FeatureRegistryServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ protected FeatureRegistryServiceClient(FeatureRegistryServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ public final FeatureRegistryServiceSettings getSettings() {
+ return settings;
+ }
+
+ public FeatureRegistryServiceStub 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 OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureGroup in a given project and location.
+ *
+ * Sample code:
+ *
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within the project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within the project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture 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:
+ *
+ * Updatable fields:
+ * * `labels`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within an EntityType/FeatureGroup.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within an EntityType/FeatureGroup.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within an EntityType/FeatureGroup.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture 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:
+ *
+ * Updatable fields:
+ * * `description` * `labels` * `disable_monitoring` (Not supported for
+ * FeatureRegistry Feature)
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture 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:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of getFeatureGroup to 30 seconds:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * FeatureOnlineStore featureOnlineStore = FeatureOnlineStore.newBuilder().build();
+ * String featureOnlineStoreId = "featureOnlineStoreId1046065331";
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient
+ * .createFeatureOnlineStoreAsync(parent, featureOnlineStore, featureOnlineStoreId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create FeatureOnlineStores.
+ * Format: `projects/{project}/locations/{location}'`
+ * @param featureOnlineStore Required. The FeatureOnlineStore to create.
+ * @param featureOnlineStoreId Required. The ID to use for this FeatureOnlineStore, which will
+ * become the final component of the FeatureOnlineStore's resource 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * CreateFeatureOnlineStoreRequest request =
+ * CreateFeatureOnlineStoreRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureOnlineStore(FeatureOnlineStore.newBuilder().build())
+ * .setFeatureOnlineStoreId("featureOnlineStoreId1046065331")
+ * .build();
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient.createFeatureOnlineStoreAsync(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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * CreateFeatureOnlineStoreRequest request =
+ * CreateFeatureOnlineStoreRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureOnlineStore(FeatureOnlineStore.newBuilder().build())
+ * .setFeatureOnlineStoreId("featureOnlineStoreId1046065331")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateFeatureOnlineStoreRequest,
+ FeatureOnlineStore,
+ CreateFeatureOnlineStoreOperationMetadata>
+ createFeatureOnlineStoreOperationCallable() {
+ return stub.createFeatureOnlineStoreOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureOnlineStore 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * CreateFeatureOnlineStoreRequest request =
+ * CreateFeatureOnlineStoreRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureOnlineStore(FeatureOnlineStore.newBuilder().build())
+ * .setFeatureOnlineStoreId("featureOnlineStoreId1046065331")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureOnlineStoreName name =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]");
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient.getFeatureOnlineStore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureOnlineStore resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureOnlineStore getFeatureOnlineStore(FeatureOnlineStoreName name) {
+ GetFeatureOnlineStoreRequest request =
+ GetFeatureOnlineStoreRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getFeatureOnlineStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String name =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]").toString();
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient.getFeatureOnlineStore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureOnlineStore resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureOnlineStore getFeatureOnlineStore(String name) {
+ GetFeatureOnlineStoreRequest request =
+ GetFeatureOnlineStoreRequest.newBuilder().setName(name).build();
+ return getFeatureOnlineStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetFeatureOnlineStoreRequest request =
+ * GetFeatureOnlineStoreRequest.newBuilder()
+ * .setName(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .build();
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient.getFeatureOnlineStore(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 FeatureOnlineStore getFeatureOnlineStore(GetFeatureOnlineStoreRequest request) {
+ return getFeatureOnlineStoreCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetFeatureOnlineStoreRequest request =
+ * GetFeatureOnlineStoreRequest.newBuilder()
+ * .setName(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (FeatureOnlineStore element :
+ * featureOnlineStoreAdminServiceClient.listFeatureOnlineStores(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list FeatureOnlineStores. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(LocationName parent) {
+ ListFeatureOnlineStoresRequest request =
+ ListFeatureOnlineStoresRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatureOnlineStores(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureOnlineStores 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (FeatureOnlineStore element :
+ * featureOnlineStoreAdminServiceClient.listFeatureOnlineStores(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list FeatureOnlineStores. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(String parent) {
+ ListFeatureOnlineStoresRequest request =
+ ListFeatureOnlineStoresRequest.newBuilder().setParent(parent).build();
+ return listFeatureOnlineStores(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureOnlineStores 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureOnlineStoresRequest request =
+ * ListFeatureOnlineStoresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FeatureOnlineStore element :
+ * featureOnlineStoreAdminServiceClient.listFeatureOnlineStores(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 ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(
+ ListFeatureOnlineStoresRequest request) {
+ return listFeatureOnlineStoresPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureOnlineStores 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureOnlineStoresRequest request =
+ * ListFeatureOnlineStoresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureOnlineStoresRequest request =
+ * ListFeatureOnlineStoresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFeatureOnlineStoresResponse response =
+ * featureOnlineStoreAdminServiceClient.listFeatureOnlineStoresCallable().call(request);
+ * for (FeatureOnlineStore element : response.getFeatureOnlineStoresList()) {
+ * // 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureOnlineStore featureOnlineStore = FeatureOnlineStore.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient
+ * .updateFeatureOnlineStoreAsync(featureOnlineStore, updateMask)
+ * .get();
+ * }
+ * }
+ *
+ * @param featureOnlineStore Required. The FeatureOnlineStore's `name` field is used to identify
+ * the FeatureOnlineStore to be updated. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the
+ * FeatureOnlineStore 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 only the non-empty fields present in the
+ * request will be overwritten. Set the update_mask to `*` to override all fields.
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * UpdateFeatureOnlineStoreRequest request =
+ * UpdateFeatureOnlineStoreRequest.newBuilder()
+ * .setFeatureOnlineStore(FeatureOnlineStore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * FeatureOnlineStore response =
+ * featureOnlineStoreAdminServiceClient.updateFeatureOnlineStoreAsync(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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * UpdateFeatureOnlineStoreRequest request =
+ * UpdateFeatureOnlineStoreRequest.newBuilder()
+ * .setFeatureOnlineStore(FeatureOnlineStore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ UpdateFeatureOnlineStoreRequest,
+ FeatureOnlineStore,
+ UpdateFeatureOnlineStoreOperationMetadata>
+ updateFeatureOnlineStoreOperationCallable() {
+ return stub.updateFeatureOnlineStoreOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * UpdateFeatureOnlineStoreRequest request =
+ * UpdateFeatureOnlineStoreRequest.newBuilder()
+ * .setFeatureOnlineStore(FeatureOnlineStore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureOnlineStoreName name =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]");
+ * boolean force = true;
+ * featureOnlineStoreAdminServiceClient.deleteFeatureOnlineStoreAsync(name, force).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureOnlineStore to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @param force If set to true, any FeatureViews and Features for this FeatureOnlineStore will
+ * also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no
+ * FeatureViews.)
+ * @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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String name =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]").toString();
+ * boolean force = true;
+ * featureOnlineStoreAdminServiceClient.deleteFeatureOnlineStoreAsync(name, force).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureOnlineStore to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @param force If set to true, any FeatureViews and Features for this FeatureOnlineStore will
+ * also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no
+ * FeatureViews.)
+ * @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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * DeleteFeatureOnlineStoreRequest request =
+ * DeleteFeatureOnlineStoreRequest.newBuilder()
+ * .setName(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * featureOnlineStoreAdminServiceClient.deleteFeatureOnlineStoreAsync(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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * DeleteFeatureOnlineStoreRequest request =
+ * DeleteFeatureOnlineStoreRequest.newBuilder()
+ * .setName(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * DeleteFeatureOnlineStoreRequest request =
+ * DeleteFeatureOnlineStoreRequest.newBuilder()
+ * .setName(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureOnlineStoreName parent =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]");
+ * FeatureView featureView = FeatureView.newBuilder().build();
+ * String featureViewId = "featureViewId-1437334218";
+ * FeatureView response =
+ * featureOnlineStoreAdminServiceClient
+ * .createFeatureViewAsync(parent, featureView, featureViewId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureOnlineStore to create FeatureViews.
+ * Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @param featureView Required. The FeatureView to create.
+ * @param featureViewId Required. The ID to use for the FeatureView, which will become the final
+ * component of the FeatureView's resource 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String parent =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]").toString();
+ * FeatureView featureView = FeatureView.newBuilder().build();
+ * String featureViewId = "featureViewId-1437334218";
+ * FeatureView response =
+ * featureOnlineStoreAdminServiceClient
+ * .createFeatureViewAsync(parent, featureView, featureViewId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureOnlineStore to create FeatureViews.
+ * Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @param featureView Required. The FeatureView to create.
+ * @param featureViewId Required. The ID to use for the FeatureView, which will become the final
+ * component of the FeatureView's resource 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * CreateFeatureViewRequest request =
+ * CreateFeatureViewRequest.newBuilder()
+ * .setParent(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setFeatureView(FeatureView.newBuilder().build())
+ * .setFeatureViewId("featureViewId-1437334218")
+ * .setRunSyncImmediately(true)
+ * .build();
+ * FeatureView response =
+ * featureOnlineStoreAdminServiceClient.createFeatureViewAsync(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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * CreateFeatureViewRequest request =
+ * CreateFeatureViewRequest.newBuilder()
+ * .setParent(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setFeatureView(FeatureView.newBuilder().build())
+ * .setFeatureViewId("featureViewId-1437334218")
+ * .setRunSyncImmediately(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateFeatureViewRequest, FeatureView, CreateFeatureViewOperationMetadata>
+ createFeatureViewOperationCallable() {
+ return stub.createFeatureViewOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureView in a given FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * CreateFeatureViewRequest request =
+ * CreateFeatureViewRequest.newBuilder()
+ * .setParent(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setFeatureView(FeatureView.newBuilder().build())
+ * .setFeatureViewId("featureViewId-1437334218")
+ * .setRunSyncImmediately(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureViewName name =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * FeatureView response = featureOnlineStoreAdminServiceClient.getFeatureView(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureView resource. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureView getFeatureView(FeatureViewName name) {
+ GetFeatureViewRequest request =
+ GetFeatureViewRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeatureView(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String name =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString();
+ * FeatureView response = featureOnlineStoreAdminServiceClient.getFeatureView(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureView resource. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureView getFeatureView(String name) {
+ GetFeatureViewRequest request = GetFeatureViewRequest.newBuilder().setName(name).build();
+ return getFeatureView(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetFeatureViewRequest request =
+ * GetFeatureViewRequest.newBuilder()
+ * .setName(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * FeatureView response = featureOnlineStoreAdminServiceClient.getFeatureView(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 FeatureView getFeatureView(GetFeatureViewRequest request) {
+ return getFeatureViewCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetFeatureViewRequest request =
+ * GetFeatureViewRequest.newBuilder()
+ * .setName(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureOnlineStoreName parent =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]");
+ * for (FeatureView element :
+ * featureOnlineStoreAdminServiceClient.listFeatureViews(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureOnlineStore to list FeatureViews.
+ * Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureViewsPagedResponse listFeatureViews(FeatureOnlineStoreName parent) {
+ ListFeatureViewsRequest request =
+ ListFeatureViewsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatureViews(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureViews in a given FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String parent =
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]").toString();
+ * for (FeatureView element :
+ * featureOnlineStoreAdminServiceClient.listFeatureViews(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureOnlineStore to list FeatureViews.
+ * Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureViewsPagedResponse listFeatureViews(String parent) {
+ ListFeatureViewsRequest request =
+ ListFeatureViewsRequest.newBuilder().setParent(parent).build();
+ return listFeatureViews(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureViews in a given FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureViewsRequest request =
+ * ListFeatureViewsRequest.newBuilder()
+ * .setParent(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FeatureView element :
+ * featureOnlineStoreAdminServiceClient.listFeatureViews(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 ListFeatureViewsPagedResponse listFeatureViews(ListFeatureViewsRequest request) {
+ return listFeatureViewsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureViews in a given FeatureOnlineStore.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureViewsRequest request =
+ * ListFeatureViewsRequest.newBuilder()
+ * .setParent(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureViewsRequest request =
+ * ListFeatureViewsRequest.newBuilder()
+ * .setParent(
+ * FeatureOnlineStoreName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFeatureViewsResponse response =
+ * featureOnlineStoreAdminServiceClient.listFeatureViewsCallable().call(request);
+ * for (FeatureView element : response.getFeatureViewsList()) {
+ * // 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureView featureView = FeatureView.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * FeatureView response =
+ * featureOnlineStoreAdminServiceClient
+ * .updateFeatureViewAsync(featureView, updateMask)
+ * .get();
+ * }
+ * }
+ *
+ * @param featureView Required. The FeatureView's `name` field is used to identify the FeatureView
+ * to be updated. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the FeatureView
+ * 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 only the non-empty fields present in the request will be
+ * overwritten. Set the update_mask to `*` to override all fields.
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * UpdateFeatureViewRequest request =
+ * UpdateFeatureViewRequest.newBuilder()
+ * .setFeatureView(FeatureView.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * FeatureView response =
+ * featureOnlineStoreAdminServiceClient.updateFeatureViewAsync(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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * UpdateFeatureViewRequest request =
+ * UpdateFeatureViewRequest.newBuilder()
+ * .setFeatureView(FeatureView.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ UpdateFeatureViewRequest, FeatureView, UpdateFeatureViewOperationMetadata>
+ updateFeatureViewOperationCallable() {
+ return stub.updateFeatureViewOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * UpdateFeatureViewRequest request =
+ * UpdateFeatureViewRequest.newBuilder()
+ * .setFeatureView(FeatureView.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureViewName name =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * featureOnlineStoreAdminServiceClient.deleteFeatureViewAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureView to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String name =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString();
+ * featureOnlineStoreAdminServiceClient.deleteFeatureViewAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureView to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * DeleteFeatureViewRequest request =
+ * DeleteFeatureViewRequest.newBuilder()
+ * .setName(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * featureOnlineStoreAdminServiceClient.deleteFeatureViewAsync(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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * DeleteFeatureViewRequest request =
+ * DeleteFeatureViewRequest.newBuilder()
+ * .setName(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * DeleteFeatureViewRequest request =
+ * DeleteFeatureViewRequest.newBuilder()
+ * .setName(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureViewName featureView =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * SyncFeatureViewResponse response =
+ * featureOnlineStoreAdminServiceClient.syncFeatureView(featureView);
+ * }
+ * }
+ *
+ * @param featureView Required. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SyncFeatureViewResponse syncFeatureView(FeatureViewName featureView) {
+ SyncFeatureViewRequest request =
+ SyncFeatureViewRequest.newBuilder()
+ .setFeatureView(featureView == null ? null : featureView.toString())
+ .build();
+ return syncFeatureView(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Triggers on-demand sync for the FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String featureView =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString();
+ * SyncFeatureViewResponse response =
+ * featureOnlineStoreAdminServiceClient.syncFeatureView(featureView);
+ * }
+ * }
+ *
+ * @param featureView Required. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SyncFeatureViewResponse syncFeatureView(String featureView) {
+ SyncFeatureViewRequest request =
+ SyncFeatureViewRequest.newBuilder().setFeatureView(featureView).build();
+ return syncFeatureView(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Triggers on-demand sync for the FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * SyncFeatureViewRequest request =
+ * SyncFeatureViewRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * SyncFeatureViewResponse response =
+ * featureOnlineStoreAdminServiceClient.syncFeatureView(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 SyncFeatureViewResponse syncFeatureView(SyncFeatureViewRequest request) {
+ return syncFeatureViewCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Triggers on-demand sync for the FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * SyncFeatureViewRequest request =
+ * SyncFeatureViewRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureViewSyncName name =
+ * FeatureViewSyncName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * FeatureViewSync response = featureOnlineStoreAdminServiceClient.getFeatureViewSync(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureViewSync resource. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureViewSync getFeatureViewSync(FeatureViewSyncName name) {
+ GetFeatureViewSyncRequest request =
+ GetFeatureViewSyncRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getFeatureViewSync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureViewSync.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String name =
+ * FeatureViewSyncName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString();
+ * FeatureViewSync response = featureOnlineStoreAdminServiceClient.getFeatureViewSync(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureViewSync resource. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureViewSync getFeatureViewSync(String name) {
+ GetFeatureViewSyncRequest request =
+ GetFeatureViewSyncRequest.newBuilder().setName(name).build();
+ return getFeatureViewSync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureViewSync.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetFeatureViewSyncRequest request =
+ * GetFeatureViewSyncRequest.newBuilder()
+ * .setName(
+ * FeatureViewSyncName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * FeatureViewSync response = featureOnlineStoreAdminServiceClient.getFeatureViewSync(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 FeatureViewSync getFeatureViewSync(GetFeatureViewSyncRequest request) {
+ return getFeatureViewSyncCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureViewSync.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetFeatureViewSyncRequest request =
+ * GetFeatureViewSyncRequest.newBuilder()
+ * .setName(
+ * FeatureViewSyncName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * FeatureViewName parent =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * for (FeatureViewSync element :
+ * featureOnlineStoreAdminServiceClient.listFeatureViewSyncs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureView to list FeatureViewSyncs. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(FeatureViewName parent) {
+ ListFeatureViewSyncsRequest request =
+ ListFeatureViewSyncsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatureViewSyncs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureViewSyncs in a given FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * String parent =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString();
+ * for (FeatureViewSync element :
+ * featureOnlineStoreAdminServiceClient.listFeatureViewSyncs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureView to list FeatureViewSyncs. Format:
+ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(String parent) {
+ ListFeatureViewSyncsRequest request =
+ ListFeatureViewSyncsRequest.newBuilder().setParent(parent).build();
+ return listFeatureViewSyncs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureViewSyncs in a given FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureViewSyncsRequest request =
+ * ListFeatureViewSyncsRequest.newBuilder()
+ * .setParent(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FeatureViewSync element :
+ * featureOnlineStoreAdminServiceClient.listFeatureViewSyncs(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 ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(
+ ListFeatureViewSyncsRequest request) {
+ return listFeatureViewSyncsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureViewSyncs in a given FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureViewSyncsRequest request =
+ * ListFeatureViewSyncsRequest.newBuilder()
+ * .setParent(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListFeatureViewSyncsRequest request =
+ * ListFeatureViewSyncsRequest.newBuilder()
+ * .setParent(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFeatureViewSyncsResponse response =
+ * featureOnlineStoreAdminServiceClient.listFeatureViewSyncsCallable().call(request);
+ * for (FeatureViewSync element : response.getFeatureViewSyncsList()) {
+ * // 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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element :
+ * featureOnlineStoreAdminServiceClient.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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * featureOnlineStoreAdminServiceClient.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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = featureOnlineStoreAdminServiceClient.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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = featureOnlineStoreAdminServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = featureOnlineStoreAdminServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList
+ *
+ * @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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ * {@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 (FeatureOnlineStoreAdminServiceClient featureOnlineStoreAdminServiceClient =
+ * FeatureOnlineStoreAdminServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList
+ */
+ 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
+ * FeatureOnlineStoreAdminServiceSettings.Builder featureOnlineStoreAdminServiceSettingsBuilder =
+ * FeatureOnlineStoreAdminServiceSettings.newBuilder();
+ * featureOnlineStoreAdminServiceSettingsBuilder
+ * .getFeatureOnlineStoreSettings()
+ * .setRetrySettings(
+ * featureOnlineStoreAdminServiceSettingsBuilder
+ * .getFeatureOnlineStoreSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * FeatureOnlineStoreAdminServiceSettings featureOnlineStoreAdminServiceSettings =
+ * featureOnlineStoreAdminServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class FeatureOnlineStoreAdminServiceSettings
+ 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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * FeatureViewName featureView =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * FeatureViewDataKey dataKey = FeatureViewDataKey.newBuilder().build();
+ * FetchFeatureValuesResponse response =
+ * featureOnlineStoreServiceClient.fetchFeatureValues(featureView, dataKey);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * {@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
+ * FeatureOnlineStoreServiceSettings featureOnlineStoreServiceSettings =
+ * FeatureOnlineStoreServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create(featureOnlineStoreServiceSettings);
+ * }
+ *
+ * {@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
+ * FeatureOnlineStoreServiceSettings featureOnlineStoreServiceSettings =
+ * FeatureOnlineStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create(featureOnlineStoreServiceSettings);
+ * }
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * FeatureViewName featureView =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
+ * FeatureViewDataKey dataKey = FeatureViewDataKey.newBuilder().build();
+ * FetchFeatureValuesResponse response =
+ * featureOnlineStoreServiceClient.fetchFeatureValues(featureView, dataKey);
+ * }
+ * }
+ *
+ * @param featureView Required. FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ * @param dataKey Optional. The request key to fetch feature values for.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchFeatureValuesResponse fetchFeatureValues(
+ FeatureViewName featureView, FeatureViewDataKey dataKey) {
+ FetchFeatureValuesRequest request =
+ FetchFeatureValuesRequest.newBuilder()
+ .setFeatureView(featureView == null ? null : featureView.toString())
+ .setDataKey(dataKey)
+ .build();
+ return fetchFeatureValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch feature values under a FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * String featureView =
+ * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString();
+ * FeatureViewDataKey dataKey = FeatureViewDataKey.newBuilder().build();
+ * FetchFeatureValuesResponse response =
+ * featureOnlineStoreServiceClient.fetchFeatureValues(featureView, dataKey);
+ * }
+ * }
+ *
+ * @param featureView Required. FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ * @param dataKey Optional. The request key to fetch feature values for.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchFeatureValuesResponse fetchFeatureValues(
+ String featureView, FeatureViewDataKey dataKey) {
+ FetchFeatureValuesRequest request =
+ FetchFeatureValuesRequest.newBuilder()
+ .setFeatureView(featureView)
+ .setDataKey(dataKey)
+ .build();
+ return fetchFeatureValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch feature values under a FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * FetchFeatureValuesRequest request =
+ * FetchFeatureValuesRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .setDataKey(FeatureViewDataKey.newBuilder().build())
+ * .setDataFormat(FeatureViewDataFormat.forNumber(0))
+ * .build();
+ * FetchFeatureValuesResponse response =
+ * featureOnlineStoreServiceClient.fetchFeatureValues(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 FetchFeatureValuesResponse fetchFeatureValues(FetchFeatureValuesRequest request) {
+ return fetchFeatureValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch feature values under a FeatureView.
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * FetchFeatureValuesRequest request =
+ * FetchFeatureValuesRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .setDataKey(FeatureViewDataKey.newBuilder().build())
+ * .setDataFormat(FeatureViewDataFormat.forNumber(0))
+ * .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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : featureOnlineStoreServiceClient.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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * featureOnlineStoreServiceClient.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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = featureOnlineStoreServiceClient.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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = featureOnlineStoreServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = featureOnlineStoreServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList
+ *
+ * @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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ * {@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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList
+ */
+ 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
+ * FeatureOnlineStoreServiceSettings.Builder featureOnlineStoreServiceSettingsBuilder =
+ * FeatureOnlineStoreServiceSettings.newBuilder();
+ * featureOnlineStoreServiceSettingsBuilder
+ * .fetchFeatureValuesSettings()
+ * .setRetrySettings(
+ * featureOnlineStoreServiceSettingsBuilder
+ * .fetchFeatureValuesSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * FeatureOnlineStoreServiceSettings featureOnlineStoreServiceSettings =
+ * featureOnlineStoreServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class FeatureOnlineStoreServiceSettings
+ 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * FeatureGroup response = featureRegistryServiceClient.getFeatureGroup(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
+ * FeatureRegistryServiceSettings featureRegistryServiceSettings =
+ * FeatureRegistryServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create(featureRegistryServiceSettings);
+ * }
+ *
+ * {@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
+ * FeatureRegistryServiceSettings featureRegistryServiceSettings =
+ * FeatureRegistryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create(featureRegistryServiceSettings);
+ * }
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * FeatureGroup featureGroup = FeatureGroup.newBuilder().build();
+ * String featureGroupId = "featureGroupId-1768466396";
+ * FeatureGroup response =
+ * featureRegistryServiceClient
+ * .createFeatureGroupAsync(parent, featureGroup, featureGroupId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create FeatureGroups. Format:
+ * `projects/{project}/locations/{location}'`
+ * @param featureGroup Required. The FeatureGroup to create.
+ * @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
+ * final component of the FeatureGroup's resource 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * FeatureGroup featureGroup = FeatureGroup.newBuilder().build();
+ * String featureGroupId = "featureGroupId-1768466396";
+ * FeatureGroup response =
+ * featureRegistryServiceClient
+ * .createFeatureGroupAsync(parent, featureGroup, featureGroupId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create FeatureGroups. Format:
+ * `projects/{project}/locations/{location}'`
+ * @param featureGroup Required. The FeatureGroup to create.
+ * @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
+ * final component of the FeatureGroup's resource 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureGroupRequest request =
+ * CreateFeatureGroupRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureGroup(FeatureGroup.newBuilder().build())
+ * .setFeatureGroupId("featureGroupId-1768466396")
+ * .build();
+ * FeatureGroup response = featureRegistryServiceClient.createFeatureGroupAsync(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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureGroupRequest request =
+ * CreateFeatureGroupRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureGroup(FeatureGroup.newBuilder().build())
+ * .setFeatureGroupId("featureGroupId-1768466396")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateFeatureGroupRequest, FeatureGroup, CreateFeatureGroupOperationMetadata>
+ createFeatureGroupOperationCallable() {
+ return stub.createFeatureGroupOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureGroup 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureGroupRequest request =
+ * CreateFeatureGroupRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureGroup(FeatureGroup.newBuilder().build())
+ * .setFeatureGroupId("featureGroupId-1768466396")
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * FeatureGroup response = featureRegistryServiceClient.getFeatureGroup(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureGroup resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureGroup getFeatureGroup(FeatureGroupName name) {
+ GetFeatureGroupRequest request =
+ GetFeatureGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeatureGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString();
+ * FeatureGroup response = featureRegistryServiceClient.getFeatureGroup(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureGroup resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureGroup getFeatureGroup(String name) {
+ GetFeatureGroupRequest request = GetFeatureGroupRequest.newBuilder().setName(name).build();
+ return getFeatureGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureGroupRequest request =
+ * GetFeatureGroupRequest.newBuilder()
+ * .setName(FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .build();
+ * FeatureGroup response = featureRegistryServiceClient.getFeatureGroup(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 FeatureGroup getFeatureGroup(GetFeatureGroupRequest request) {
+ return getFeatureGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureGroupRequest request =
+ * GetFeatureGroupRequest.newBuilder()
+ * .setName(FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (FeatureGroup element :
+ * featureRegistryServiceClient.listFeatureGroups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list FeatureGroups. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureGroupsPagedResponse listFeatureGroups(LocationName parent) {
+ ListFeatureGroupsRequest request =
+ ListFeatureGroupsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatureGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (FeatureGroup element :
+ * featureRegistryServiceClient.listFeatureGroups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list FeatureGroups. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureGroupsPagedResponse listFeatureGroups(String parent) {
+ ListFeatureGroupsRequest request =
+ ListFeatureGroupsRequest.newBuilder().setParent(parent).build();
+ return listFeatureGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureGroupsRequest request =
+ * ListFeatureGroupsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FeatureGroup element :
+ * featureRegistryServiceClient.listFeatureGroups(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 ListFeatureGroupsPagedResponse listFeatureGroups(ListFeatureGroupsRequest request) {
+ return listFeatureGroupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureGroupsRequest request =
+ * ListFeatureGroupsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureGroupsRequest request =
+ * ListFeatureGroupsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFeatureGroupsResponse response =
+ * featureRegistryServiceClient.listFeatureGroupsCallable().call(request);
+ * for (FeatureGroup element : response.getFeatureGroupsList()) {
+ * // 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroup featureGroup = FeatureGroup.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * FeatureGroup response =
+ * featureRegistryServiceClient.updateFeatureGroupAsync(featureGroup, updateMask).get();
+ * }
+ * }
+ *
+ * @param featureGroup Required. The FeatureGroup's `name` field is used to identify the
+ * FeatureGroup to be updated. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the
+ * FeatureGroup 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 only the non-empty fields present in the request will
+ * be overwritten. Set the update_mask to `*` to override all fields.
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * UpdateFeatureGroupRequest request =
+ * UpdateFeatureGroupRequest.newBuilder()
+ * .setFeatureGroup(FeatureGroup.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * FeatureGroup response = featureRegistryServiceClient.updateFeatureGroupAsync(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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * UpdateFeatureGroupRequest request =
+ * UpdateFeatureGroupRequest.newBuilder()
+ * .setFeatureGroup(FeatureGroup.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ UpdateFeatureGroupRequest, FeatureGroup, UpdateFeatureGroupOperationMetadata>
+ updateFeatureGroupOperationCallable() {
+ return stub.updateFeatureGroupOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * UpdateFeatureGroupRequest request =
+ * UpdateFeatureGroupRequest.newBuilder()
+ * .setFeatureGroup(FeatureGroup.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * boolean force = true;
+ * featureRegistryServiceClient.deleteFeatureGroupAsync(name, force).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureGroup to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param force If set to true, any Features under this FeatureGroup will also be deleted.
+ * (Otherwise, the request will only work if the FeatureGroup has no Features.)
+ * @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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString();
+ * boolean force = true;
+ * featureRegistryServiceClient.deleteFeatureGroupAsync(name, force).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureGroup to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param force If set to true, any Features under this FeatureGroup will also be deleted.
+ * (Otherwise, the request will only work if the FeatureGroup has no Features.)
+ * @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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureGroupRequest request =
+ * DeleteFeatureGroupRequest.newBuilder()
+ * .setName(FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setForce(true)
+ * .build();
+ * featureRegistryServiceClient.deleteFeatureGroupAsync(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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureGroupRequest request =
+ * DeleteFeatureGroupRequest.newBuilder()
+ * .setName(FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setForce(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureGroupRequest request =
+ * DeleteFeatureGroupRequest.newBuilder()
+ * .setName(FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setForce(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * EntityTypeName parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * Feature feature = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response =
+ * featureRegistryServiceClient.createFeatureAsync(parent, feature, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType or FeatureGroup to create a
+ * Feature. Format for entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param feature Required. The Feature to create.
+ * @param featureId Required. The ID to use for the Feature, which will become the final component
+ * of the Feature's resource 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * Feature feature = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response =
+ * featureRegistryServiceClient.createFeatureAsync(parent, feature, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType or FeatureGroup to create a
+ * Feature. Format for entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param feature Required. The Feature to create.
+ * @param featureId Required. The ID to use for the Feature, which will become the final component
+ * of the Feature's resource 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * Feature feature = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response =
+ * featureRegistryServiceClient.createFeatureAsync(parent, feature, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType or FeatureGroup to create a
+ * Feature. Format for entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param feature Required. The Feature to create.
+ * @param featureId Required. The ID to use for the Feature, which will become the final component
+ * of the Feature's resource 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFeature(Feature.newBuilder().build())
+ * .setFeatureId("featureId-420503887")
+ * .build();
+ * Feature response = featureRegistryServiceClient.createFeatureAsync(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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFeature(Feature.newBuilder().build())
+ * .setFeatureId("featureId-420503887")
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFeature(Feature.newBuilder().build())
+ * .setFeatureId("featureId-420503887")
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureName name =
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]");
+ * Feature response = featureRegistryServiceClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Feature resource. Format for entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(FeatureName name) {
+ GetFeatureRequest request =
+ GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name =
+ * FeatureName.ofProjectLocationFeaturestoreEntityTypeFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString();
+ * Feature response = featureRegistryServiceClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Feature resource. Format for entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(String name) {
+ GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * Feature response = featureRegistryServiceClient.getFeature(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 Feature getFeature(GetFeatureRequest request) {
+ return getFeatureCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * EntityTypeName parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * for (Feature element : featureRegistryServiceClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Features. Format for
+ * entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) {
+ ListFeaturesRequest request =
+ ListFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * for (Feature element : featureRegistryServiceClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Features. Format for
+ * entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(FeatureGroupName parent) {
+ ListFeaturesRequest request =
+ ListFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * for (Feature element : featureRegistryServiceClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Features. Format for
+ * entity_type as parent:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * Format for feature_group as parent:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(String parent) {
+ ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setLatestStatsCount(-878108489)
+ * .build();
+ * for (Feature element : featureRegistryServiceClient.listFeatures(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 ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) {
+ return listFeaturesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given FeatureGroup.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setLatestStatsCount(-878108489)
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setLatestStatsCount(-878108489)
+ * .build();
+ * while (true) {
+ * ListFeaturesResponse response =
+ * featureRegistryServiceClient.listFeaturesCallable().call(request);
+ * for (Feature element : response.getFeaturesList()) {
+ * // 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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * Feature feature = Feature.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Feature response = featureRegistryServiceClient.updateFeatureAsync(feature, updateMask).get();
+ * }
+ * }
+ *
+ * @param feature Required. The Feature's `name` field is used to identify the Feature to be
+ * updated. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the Features
+ * 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 only the non-empty fields present in the request will be
+ * overwritten. Set the update_mask to `*` to override all fields.
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setFeature(Feature.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Feature response = featureRegistryServiceClient.updateFeatureAsync(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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setFeature(Feature.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setFeature(Feature.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureName name =
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]");
+ * featureRegistryServiceClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Features to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
+ * @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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name =
+ * FeatureName.ofProjectLocationFeaturestoreEntityTypeFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString();
+ * featureRegistryServiceClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Features to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
+ * @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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * featureRegistryServiceClient.deleteFeatureAsync(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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.ofProjectLocationFeatureGroupFeatureName(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
+ * .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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : featureRegistryServiceClient.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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * featureRegistryServiceClient.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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = featureRegistryServiceClient.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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = featureRegistryServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = featureRegistryServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList
+ *
+ * @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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ * {@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 (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList
+ */
+ 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
+ * FeatureRegistryServiceSettings.Builder featureRegistryServiceSettingsBuilder =
+ * FeatureRegistryServiceSettings.newBuilder();
+ * featureRegistryServiceSettingsBuilder
+ * .getFeatureGroupSettings()
+ * .setRetrySettings(
+ * featureRegistryServiceSettingsBuilder
+ * .getFeatureGroupSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * FeatureRegistryServiceSettings featureRegistryServiceSettings =
+ * featureRegistryServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class FeatureRegistryServiceSettings extends ClientSettings