Class FeatureOnlineStoreAdminServiceClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
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:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying 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().
| Method | Description | Method Variants |
|---|---|---|
CreateFeatureOnlineStore |
Creates a new FeatureOnlineStore in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetFeatureOnlineStore |
Gets details of a single FeatureOnlineStore. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListFeatureOnlineStores |
Lists FeatureOnlineStores in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateFeatureOnlineStore |
Updates the parameters of a single FeatureOnlineStore. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteFeatureOnlineStore |
Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateFeatureView |
Creates a new FeatureView in a given FeatureOnlineStore. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetFeatureView |
Gets details of a single FeatureView. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListFeatureViews |
Lists FeatureViews in a given FeatureOnlineStore. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateFeatureView |
Updates the parameters of a single FeatureView. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteFeatureView |
Deletes a single FeatureView. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SyncFeatureView |
Triggers on-demand sync for the FeatureView. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetFeatureViewSync |
Gets details of a single FeatureViewSync. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListFeatureViewSyncs |
Lists FeatureViewSyncs in a given FeatureView. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetIamPolicy |
Sets the access control policy on the specified resource. Replacesany existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetIamPolicy |
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
TestIamPermissions |
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. 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. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of FeatureOnlineStoreAdminServiceSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require 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:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs an instance of FeatureOnlineStoreAdminServiceClient, using the given settings.protected -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final FeatureOnlineStoreAdminServiceClientcreate()Constructs an instance of FeatureOnlineStoreAdminServiceClient with default settings.static final FeatureOnlineStoreAdminServiceClientcreate(FeatureOnlineStoreAdminServiceSettings settings) Constructs an instance of FeatureOnlineStoreAdminServiceClient, using the given settings.static final FeatureOnlineStoreAdminServiceClientConstructs an instance of FeatureOnlineStoreAdminServiceClient, using the given stub for making calls.Creates a new FeatureOnlineStore in a given project and location.createFeatureOnlineStoreAsync(LocationName parent, FeatureOnlineStore featureOnlineStore, String featureOnlineStoreId) Creates a new FeatureOnlineStore in a given project and location.createFeatureOnlineStoreAsync(String parent, FeatureOnlineStore featureOnlineStore, String featureOnlineStoreId) Creates a new FeatureOnlineStore in a given project and location.Creates a new FeatureOnlineStore in a given project and location.final OperationCallable<CreateFeatureOnlineStoreRequest,FeatureOnlineStore, CreateFeatureOnlineStoreOperationMetadata> Creates a new FeatureOnlineStore in a given project and location.Creates a new FeatureView in a given FeatureOnlineStore.createFeatureViewAsync(FeatureOnlineStoreName parent, FeatureView featureView, String featureViewId) Creates a new FeatureView in a given FeatureOnlineStore.createFeatureViewAsync(String parent, FeatureView featureView, String featureViewId) Creates a new FeatureView in a given FeatureOnlineStore.Creates a new FeatureView in a given FeatureOnlineStore.Creates a new FeatureView in a given FeatureOnlineStore.final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> Deletes a single FeatureOnlineStore.final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureOnlineStoreAsync(FeatureOnlineStoreName name, boolean force) Deletes a single FeatureOnlineStore.final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureOnlineStoreAsync(String name, boolean force) Deletes a single FeatureOnlineStore.Deletes a single FeatureOnlineStore.final OperationCallable<DeleteFeatureOnlineStoreRequest,com.google.protobuf.Empty, DeleteOperationMetadata> Deletes a single FeatureOnlineStore.final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> Deletes a single FeatureView.final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> Deletes a single FeatureView.final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureViewAsync(String name) Deletes a single FeatureView.Deletes a single FeatureView.final OperationCallable<DeleteFeatureViewRequest,com.google.protobuf.Empty, DeleteOperationMetadata> Deletes a single FeatureView.final FeatureOnlineStoreGets details of a single FeatureOnlineStore.final FeatureOnlineStoreGets details of a single FeatureOnlineStore.final FeatureOnlineStoregetFeatureOnlineStore(String name) Gets details of a single FeatureOnlineStore.Gets details of a single FeatureOnlineStore.final FeatureViewGets details of a single FeatureView.final FeatureViewgetFeatureView(GetFeatureViewRequest request) Gets details of a single FeatureView.final FeatureViewgetFeatureView(String name) Gets details of a single FeatureView.Gets details of a single FeatureView.final FeatureViewSyncGets details of a single FeatureViewSync.final FeatureViewSyncGets details of a single FeatureViewSync.final FeatureViewSyncgetFeatureViewSync(String name) Gets details of a single FeatureViewSync.Gets details of a single FeatureViewSync.final PolicygetIamPolicy(GetIamPolicyRequest request) Gets the access control policy for a resource.Gets the access control policy for a resource.final LocationgetLocation(GetLocationRequest request) Gets information about a location.Gets information about a location.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.getStub()booleanbooleanLists FeatureOnlineStores in a given project and location.listFeatureOnlineStores(LocationName parent) Lists FeatureOnlineStores in a given project and location.listFeatureOnlineStores(String parent) Lists FeatureOnlineStores in a given project and location.Lists FeatureOnlineStores in a given project and location.final UnaryCallable<ListFeatureOnlineStoresRequest,FeatureOnlineStoreAdminServiceClient.ListFeatureOnlineStoresPagedResponse> Lists FeatureOnlineStores in a given project and location.Lists FeatureViews in a given FeatureOnlineStore.listFeatureViews(ListFeatureViewsRequest request) Lists FeatureViews in a given FeatureOnlineStore.listFeatureViews(String parent) Lists FeatureViews in a given FeatureOnlineStore.Lists FeatureViews in a given FeatureOnlineStore.final UnaryCallable<ListFeatureViewsRequest,FeatureOnlineStoreAdminServiceClient.ListFeatureViewsPagedResponse> Lists FeatureViews in a given FeatureOnlineStore.listFeatureViewSyncs(FeatureViewName parent) Lists FeatureViewSyncs in a given FeatureView.Lists FeatureViewSyncs in a given FeatureView.listFeatureViewSyncs(String parent) Lists FeatureViewSyncs in a given FeatureView.Lists FeatureViewSyncs in a given FeatureView.final UnaryCallable<ListFeatureViewSyncsRequest,FeatureOnlineStoreAdminServiceClient.ListFeatureViewSyncsPagedResponse> Lists FeatureViewSyncs in a given FeatureView.listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Lists information about the supported locations for this service.final UnaryCallable<ListLocationsRequest,FeatureOnlineStoreAdminServiceClient.ListLocationsPagedResponse> Lists information about the supported locations for this service.final PolicysetIamPolicy(SetIamPolicyRequest request) Sets the access control policy on the specified resource.Sets the access control policy on the specified resource.voidshutdown()voidfinal SyncFeatureViewResponsesyncFeatureView(FeatureViewName featureView) Triggers on-demand sync for the FeatureView.final SyncFeatureViewResponsesyncFeatureView(SyncFeatureViewRequest request) Triggers on-demand sync for the FeatureView.final SyncFeatureViewResponsesyncFeatureView(String featureView) Triggers on-demand sync for the FeatureView.Triggers on-demand sync for the FeatureView.Returns permissions that a caller has on the specified resource.Returns permissions that a caller has on the specified resource.updateFeatureOnlineStoreAsync(FeatureOnlineStore featureOnlineStore, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single FeatureOnlineStore.Updates the parameters of a single FeatureOnlineStore.Updates the parameters of a single FeatureOnlineStore.final OperationCallable<UpdateFeatureOnlineStoreRequest,FeatureOnlineStore, UpdateFeatureOnlineStoreOperationMetadata> Updates the parameters of a single FeatureOnlineStore.updateFeatureViewAsync(FeatureView featureView, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single FeatureView.Updates the parameters of a single FeatureView.Updates the parameters of a single FeatureView.Updates the parameters of a single FeatureView.
-
Constructor Details
-
FeatureOnlineStoreAdminServiceClient
protected FeatureOnlineStoreAdminServiceClient(FeatureOnlineStoreAdminServiceSettings settings) throws IOException 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.- Throws:
IOException
-
FeatureOnlineStoreAdminServiceClient
-
-
Method Details
-
create
Constructs an instance of FeatureOnlineStoreAdminServiceClient with default settings.- Throws:
IOException
-
create
public static final FeatureOnlineStoreAdminServiceClient create(FeatureOnlineStoreAdminServiceSettings settings) throws IOException 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.- Throws:
IOException
-
create
public static final FeatureOnlineStoreAdminServiceClient create(FeatureOnlineStoreAdminServiceStub stub) Constructs an instance of FeatureOnlineStoreAdminServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(FeatureOnlineStoreAdminServiceSettings). -
getSettings
-
getStub
-
getOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
createFeatureOnlineStoreAsync
public final OperationFuture<FeatureOnlineStore,CreateFeatureOnlineStoreOperationMetadata> createFeatureOnlineStoreAsync(LocationName parent, FeatureOnlineStore featureOnlineStore, String featureOnlineStoreId) Creates a new FeatureOnlineStore in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
parent- Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}`featureOnlineStore- Required. The FeatureOnlineStore to create.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:
ApiException- if the remote call fails
-
createFeatureOnlineStoreAsync
public final OperationFuture<FeatureOnlineStore,CreateFeatureOnlineStoreOperationMetadata> createFeatureOnlineStoreAsync(String parent, FeatureOnlineStore featureOnlineStore, String featureOnlineStoreId) Creates a new FeatureOnlineStore in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
parent- Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}`featureOnlineStore- Required. The FeatureOnlineStore to create.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:
ApiException- if the remote call fails
-
createFeatureOnlineStoreAsync
public final OperationFuture<FeatureOnlineStore,CreateFeatureOnlineStoreOperationMetadata> createFeatureOnlineStoreAsync(CreateFeatureOnlineStoreRequest request) Creates a new FeatureOnlineStore in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createFeatureOnlineStoreOperationCallable
public final OperationCallable<CreateFeatureOnlineStoreRequest,FeatureOnlineStore, createFeatureOnlineStoreOperationCallable()CreateFeatureOnlineStoreOperationMetadata> Creates a new FeatureOnlineStore in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureOnlineStore, CreateFeatureOnlineStoreOperationMetadata> future = featureOnlineStoreAdminServiceClient .createFeatureOnlineStoreOperationCallable() .futureCall(request); // Do something. FeatureOnlineStore response = future.get(); } -
createFeatureOnlineStoreCallable
public final UnaryCallable<CreateFeatureOnlineStoreRequest,Operation> createFeatureOnlineStoreCallable()Creates a new FeatureOnlineStore in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Operation> future = featureOnlineStoreAdminServiceClient .createFeatureOnlineStoreCallable() .futureCall(request); // Do something. Operation response = future.get(); } -
getFeatureOnlineStore
Gets details of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
name- Required. The name of the FeatureOnlineStore resource.- Throws:
ApiException- if the remote call fails
-
getFeatureOnlineStore
Gets details of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
name- Required. The name of the FeatureOnlineStore resource.- Throws:
ApiException- if the remote call fails
-
getFeatureOnlineStore
Gets details of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getFeatureOnlineStoreCallable
public final UnaryCallable<GetFeatureOnlineStoreRequest,FeatureOnlineStore> getFeatureOnlineStoreCallable()Gets details of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureOnlineStore> future = featureOnlineStoreAdminServiceClient.getFeatureOnlineStoreCallable().futureCall(request); // Do something. FeatureOnlineStore response = future.get(); } -
listFeatureOnlineStores
public final FeatureOnlineStoreAdminServiceClient.ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(LocationName parent) Lists FeatureOnlineStores in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
parent- Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`- Throws:
ApiException- if the remote call fails
-
listFeatureOnlineStores
public final FeatureOnlineStoreAdminServiceClient.ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(String parent) Lists FeatureOnlineStores in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
parent- Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`- Throws:
ApiException- if the remote call fails
-
listFeatureOnlineStores
public final FeatureOnlineStoreAdminServiceClient.ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(ListFeatureOnlineStoresRequest request) Lists FeatureOnlineStores in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listFeatureOnlineStoresPagedCallable
public final UnaryCallable<ListFeatureOnlineStoresRequest,FeatureOnlineStoreAdminServiceClient.ListFeatureOnlineStoresPagedResponse> listFeatureOnlineStoresPagedCallable()Lists FeatureOnlineStores in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureOnlineStore> future = featureOnlineStoreAdminServiceClient .listFeatureOnlineStoresPagedCallable() .futureCall(request); // Do something. for (FeatureOnlineStore element : future.get().iterateAll()) { // doThingsWith(element); } } -
listFeatureOnlineStoresCallable
public final UnaryCallable<ListFeatureOnlineStoresRequest,ListFeatureOnlineStoresResponse> listFeatureOnlineStoresCallable()Lists FeatureOnlineStores in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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; } } } -
updateFeatureOnlineStoreAsync
public final OperationFuture<FeatureOnlineStore,UpdateFeatureOnlineStoreOperationMetadata> updateFeatureOnlineStoreAsync(FeatureOnlineStore featureOnlineStore, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
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}`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.Updatable fields:
* `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica`
- Throws:
ApiException- if the remote call fails
-
updateFeatureOnlineStoreAsync
public final OperationFuture<FeatureOnlineStore,UpdateFeatureOnlineStoreOperationMetadata> updateFeatureOnlineStoreAsync(UpdateFeatureOnlineStoreRequest request) Updates the parameters of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateFeatureOnlineStoreOperationCallable
public final OperationCallable<UpdateFeatureOnlineStoreRequest,FeatureOnlineStore, updateFeatureOnlineStoreOperationCallable()UpdateFeatureOnlineStoreOperationMetadata> Updates the parameters of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureOnlineStore, UpdateFeatureOnlineStoreOperationMetadata> future = featureOnlineStoreAdminServiceClient .updateFeatureOnlineStoreOperationCallable() .futureCall(request); // Do something. FeatureOnlineStore response = future.get(); } -
updateFeatureOnlineStoreCallable
public final UnaryCallable<UpdateFeatureOnlineStoreRequest,Operation> updateFeatureOnlineStoreCallable()Updates the parameters of a single FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Operation> future = featureOnlineStoreAdminServiceClient .updateFeatureOnlineStoreCallable() .futureCall(request); // Do something. Operation response = future.get(); } -
deleteFeatureOnlineStoreAsync
public final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureOnlineStoreAsync(FeatureOnlineStoreName name, boolean force) Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
name- Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`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:
ApiException- if the remote call fails
-
deleteFeatureOnlineStoreAsync
public final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureOnlineStoreAsync(String name, boolean force) Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
name- Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`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:
ApiException- if the remote call fails
-
deleteFeatureOnlineStoreAsync
public final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureOnlineStoreAsync(DeleteFeatureOnlineStoreRequest request) Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteFeatureOnlineStoreOperationCallable
public final OperationCallable<DeleteFeatureOnlineStoreRequest,com.google.protobuf.Empty, deleteFeatureOnlineStoreOperationCallable()DeleteOperationMetadata> Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Empty, DeleteOperationMetadata> future = featureOnlineStoreAdminServiceClient .deleteFeatureOnlineStoreOperationCallable() .futureCall(request); // Do something. future.get(); } -
deleteFeatureOnlineStoreCallable
public final UnaryCallable<DeleteFeatureOnlineStoreRequest,Operation> deleteFeatureOnlineStoreCallable()Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Operation> future = featureOnlineStoreAdminServiceClient .deleteFeatureOnlineStoreCallable() .futureCall(request); // Do something. future.get(); } -
createFeatureViewAsync
public final OperationFuture<FeatureView,CreateFeatureViewOperationMetadata> createFeatureViewAsync(FeatureOnlineStoreName parent, FeatureView featureView, String featureViewId) Creates a new FeatureView in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
parent- Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`featureView- Required. The FeatureView to create.featureViewId- Required. The ID to use for the FeatureView, which will become the final component of the FeatureView'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 a FeatureOnlineStore.
- Throws:
ApiException- if the remote call fails
-
createFeatureViewAsync
public final OperationFuture<FeatureView,CreateFeatureViewOperationMetadata> createFeatureViewAsync(String parent, FeatureView featureView, String featureViewId) Creates a new FeatureView in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
parent- Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`featureView- Required. The FeatureView to create.featureViewId- Required. The ID to use for the FeatureView, which will become the final component of the FeatureView'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 a FeatureOnlineStore.
- Throws:
ApiException- if the remote call fails
-
createFeatureViewAsync
public final OperationFuture<FeatureView,CreateFeatureViewOperationMetadata> createFeatureViewAsync(CreateFeatureViewRequest request) Creates a new FeatureView in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createFeatureViewOperationCallable
public final OperationCallable<CreateFeatureViewRequest,FeatureView, createFeatureViewOperationCallable()CreateFeatureViewOperationMetadata> Creates a new FeatureView in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureView, CreateFeatureViewOperationMetadata> future = featureOnlineStoreAdminServiceClient .createFeatureViewOperationCallable() .futureCall(request); // Do something. FeatureView response = future.get(); } -
createFeatureViewCallable
Creates a new FeatureView in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Operation> future = featureOnlineStoreAdminServiceClient.createFeatureViewCallable().futureCall(request); // Do something. Operation response = future.get(); } -
getFeatureView
Gets details of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
name- Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
getFeatureView
Gets details of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
name- Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
getFeatureView
Gets details of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getFeatureViewCallable
Gets details of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureView> future = featureOnlineStoreAdminServiceClient.getFeatureViewCallable().futureCall(request); // Do something. FeatureView response = future.get(); } -
listFeatureViews
public final FeatureOnlineStoreAdminServiceClient.ListFeatureViewsPagedResponse listFeatureViews(FeatureOnlineStoreName parent) Lists FeatureViews in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
parent- Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`- Throws:
ApiException- if the remote call fails
-
listFeatureViews
public final FeatureOnlineStoreAdminServiceClient.ListFeatureViewsPagedResponse listFeatureViews(String parent) Lists FeatureViews in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
parent- Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`- Throws:
ApiException- if the remote call fails
-
listFeatureViews
public final FeatureOnlineStoreAdminServiceClient.ListFeatureViewsPagedResponse listFeatureViews(ListFeatureViewsRequest request) Lists FeatureViews in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listFeatureViewsPagedCallable
public final UnaryCallable<ListFeatureViewsRequest,FeatureOnlineStoreAdminServiceClient.ListFeatureViewsPagedResponse> listFeatureViewsPagedCallable()Lists FeatureViews in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureView> future = featureOnlineStoreAdminServiceClient.listFeatureViewsPagedCallable().futureCall(request); // Do something. for (FeatureView element : future.get().iterateAll()) { // doThingsWith(element); } } -
listFeatureViewsCallable
public final UnaryCallable<ListFeatureViewsRequest,ListFeatureViewsResponse> listFeatureViewsCallable()Lists FeatureViews in a given FeatureOnlineStore.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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; } } } -
updateFeatureViewAsync
public final OperationFuture<FeatureView,UpdateFeatureViewOperationMetadata> updateFeatureViewAsync(FeatureView featureView, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
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}`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.Updatable fields:
* `labels` * `service_agent_type` * `big_query_source` * `big_query_source.uri` * `big_query_source.entity_id_columns` * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron` * `optimized_config.automatic_resources`
- Throws:
ApiException- if the remote call fails
-
updateFeatureViewAsync
public final OperationFuture<FeatureView,UpdateFeatureViewOperationMetadata> updateFeatureViewAsync(UpdateFeatureViewRequest request) Updates the parameters of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateFeatureViewOperationCallable
public final OperationCallable<UpdateFeatureViewRequest,FeatureView, updateFeatureViewOperationCallable()UpdateFeatureViewOperationMetadata> Updates the parameters of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureView, UpdateFeatureViewOperationMetadata> future = featureOnlineStoreAdminServiceClient .updateFeatureViewOperationCallable() .futureCall(request); // Do something. FeatureView response = future.get(); } -
updateFeatureViewCallable
Updates the parameters of a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Operation> future = featureOnlineStoreAdminServiceClient.updateFeatureViewCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteFeatureViewAsync
public final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureViewAsync(FeatureViewName name) Deletes a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
name- Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
deleteFeatureViewAsync
public final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureViewAsync(String name) Deletes a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
name- Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
deleteFeatureViewAsync
public final OperationFuture<com.google.protobuf.Empty,DeleteOperationMetadata> deleteFeatureViewAsync(DeleteFeatureViewRequest request) Deletes a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteFeatureViewOperationCallable
public final OperationCallable<DeleteFeatureViewRequest,com.google.protobuf.Empty, deleteFeatureViewOperationCallable()DeleteOperationMetadata> Deletes a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Empty, DeleteOperationMetadata> future = featureOnlineStoreAdminServiceClient .deleteFeatureViewOperationCallable() .futureCall(request); // Do something. future.get(); } -
deleteFeatureViewCallable
Deletes a single FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Operation> future = featureOnlineStoreAdminServiceClient.deleteFeatureViewCallable().futureCall(request); // Do something. future.get(); } -
syncFeatureView
Triggers on-demand sync for the FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
featureView- Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
syncFeatureView
Triggers on-demand sync for the FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
featureView- Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
syncFeatureView
Triggers on-demand sync for the FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
syncFeatureViewCallable
public final UnaryCallable<SyncFeatureViewRequest,SyncFeatureViewResponse> syncFeatureViewCallable()Triggers on-demand sync for the FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<SyncFeatureViewResponse> future = featureOnlineStoreAdminServiceClient.syncFeatureViewCallable().futureCall(request); // Do something. SyncFeatureViewResponse response = future.get(); } -
getFeatureViewSync
Gets details of a single FeatureViewSync.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
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:
ApiException- if the remote call fails
-
getFeatureViewSync
Gets details of a single FeatureViewSync.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
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:
ApiException- if the remote call fails
-
getFeatureViewSync
Gets details of a single FeatureViewSync.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getFeatureViewSyncCallable
Gets details of a single FeatureViewSync.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureViewSync> future = featureOnlineStoreAdminServiceClient.getFeatureViewSyncCallable().futureCall(request); // Do something. FeatureViewSync response = future.get(); } -
listFeatureViewSyncs
public final FeatureOnlineStoreAdminServiceClient.ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(FeatureViewName parent) Lists FeatureViewSyncs in a given FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
parent- Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
listFeatureViewSyncs
public final FeatureOnlineStoreAdminServiceClient.ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(String parent) Lists FeatureViewSyncs in a given FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
parent- Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`- Throws:
ApiException- if the remote call fails
-
listFeatureViewSyncs
public final FeatureOnlineStoreAdminServiceClient.ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(ListFeatureViewSyncsRequest request) Lists FeatureViewSyncs in a given FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listFeatureViewSyncsPagedCallable
public final UnaryCallable<ListFeatureViewSyncsRequest,FeatureOnlineStoreAdminServiceClient.ListFeatureViewSyncsPagedResponse> listFeatureViewSyncsPagedCallable()Lists FeatureViewSyncs in a given FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<FeatureViewSync> future = featureOnlineStoreAdminServiceClient .listFeatureViewSyncsPagedCallable() .futureCall(request); // Do something. for (FeatureViewSync element : future.get().iterateAll()) { // doThingsWith(element); } } -
listFeatureViewSyncsCallable
public final UnaryCallable<ListFeatureViewSyncsRequest,ListFeatureViewSyncsResponse> listFeatureViewSyncsCallable()Lists FeatureViewSyncs in a given FeatureView.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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; } } } -
listLocations
public final FeatureOnlineStoreAdminServiceClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLocationsPagedCallable
public final UnaryCallable<ListLocationsRequest,FeatureOnlineStoreAdminServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Location> future = featureOnlineStoreAdminServiceClient.listLocationsPagedCallable().futureCall(request); // Do something. for (Location element : future.get().iterateAll()) { // doThingsWith(element); } } -
listLocationsCallable
Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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; } } } -
getLocation
Gets information about a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLocationCallable
Gets information about a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Location> future = featureOnlineStoreAdminServiceClient.getLocationCallable().futureCall(request); // Do something. Location response = future.get(); } -
setIamPolicy
Sets the access control policy on the specified resource. Replacesany existing policy.Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
setIamPolicyCallable
Sets the access control policy on the specified resource. Replacesany existing policy.Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Policy> future = featureOnlineStoreAdminServiceClient.setIamPolicyCallable().futureCall(request); // Do something. Policy response = future.get(); } -
getIamPolicy
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getIamPolicyCallable
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<Policy> future = featureOnlineStoreAdminServiceClient.getIamPolicyCallable().futureCall(request); // Do something. Policy response = future.get(); } -
testIamPermissions
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.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:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<String>()) .build(); TestIamPermissionsResponse response = featureOnlineStoreAdminServiceClient.testIamPermissions(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
testIamPermissionsCallable
public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()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.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:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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<String>()) .build(); ApiFuture<TestIamPermissionsResponse> future = featureOnlineStoreAdminServiceClient.testIamPermissionsCallable().futureCall(request); // Do something. TestIamPermissionsResponse response = future.get(); } -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-