com.google.cloud.aiplatform.v1.stub.GrpcFeatureRegistryServiceStub Maven / Gradle / Ivy
Show all versions of google-cloud-aiplatform Show documentation
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.aiplatform.v1.stub;
import static com.google.cloud.aiplatform.v1.FeatureRegistryServiceClient.ListFeatureGroupsPagedResponse;
import static com.google.cloud.aiplatform.v1.FeatureRegistryServiceClient.ListFeaturesPagedResponse;
import static com.google.cloud.aiplatform.v1.FeatureRegistryServiceClient.ListLocationsPagedResponse;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateFeatureRequest;
import com.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.DeleteFeatureRequest;
import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1.Feature;
import com.google.cloud.aiplatform.v1.FeatureGroup;
import com.google.cloud.aiplatform.v1.GetFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.GetFeatureRequest;
import com.google.cloud.aiplatform.v1.ListFeatureGroupsRequest;
import com.google.cloud.aiplatform.v1.ListFeatureGroupsResponse;
import com.google.cloud.aiplatform.v1.ListFeaturesRequest;
import com.google.cloud.aiplatform.v1.ListFeaturesResponse;
import com.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata;
import com.google.cloud.aiplatform.v1.UpdateFeatureRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* gRPC stub implementation for the FeatureRegistryService service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
private static final MethodDescriptor
createFeatureGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1.FeatureRegistryService/CreateFeatureGroup")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateFeatureGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
getFeatureGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1.FeatureRegistryService/GetFeatureGroup")
.setRequestMarshaller(
ProtoUtils.marshaller(GetFeatureGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(FeatureGroup.getDefaultInstance()))
.build();
private static final MethodDescriptor
listFeatureGroupsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1.FeatureRegistryService/ListFeatureGroups")
.setRequestMarshaller(
ProtoUtils.marshaller(ListFeatureGroupsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListFeatureGroupsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateFeatureGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1.FeatureRegistryService/UpdateFeatureGroup")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateFeatureGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteFeatureGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1.FeatureRegistryService/DeleteFeatureGroup")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteFeatureGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
createFeatureMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1.FeatureRegistryService/CreateFeature")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateFeatureRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor getFeatureMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1.FeatureRegistryService/GetFeature")
.setRequestMarshaller(ProtoUtils.marshaller(GetFeatureRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Feature.getDefaultInstance()))
.build();
private static final MethodDescriptor
listFeaturesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1.FeatureRegistryService/ListFeatures")
.setRequestMarshaller(ProtoUtils.marshaller(ListFeaturesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListFeaturesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateFeatureMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1.FeatureRegistryService/UpdateFeature")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateFeatureRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteFeatureMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1.FeatureRegistryService/DeleteFeature")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteFeatureRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.location.Locations/ListLocations")
.setRequestMarshaller(
ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getLocationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.location.Locations/GetLocation")
.setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
.build();
private static final MethodDescriptor setIamPolicyMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
.setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
.build();
private static final MethodDescriptor getIamPolicyMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
.setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
.build();
private static final MethodDescriptor
testIamPermissionsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
.setRequestMarshaller(
ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
.build();
private final UnaryCallable createFeatureGroupCallable;
private final OperationCallable<
CreateFeatureGroupRequest, FeatureGroup, CreateFeatureGroupOperationMetadata>
createFeatureGroupOperationCallable;
private final UnaryCallable getFeatureGroupCallable;
private final UnaryCallable
listFeatureGroupsCallable;
private final UnaryCallable
listFeatureGroupsPagedCallable;
private final UnaryCallable updateFeatureGroupCallable;
private final OperationCallable<
UpdateFeatureGroupRequest, FeatureGroup, UpdateFeatureGroupOperationMetadata>
updateFeatureGroupOperationCallable;
private final UnaryCallable deleteFeatureGroupCallable;
private final OperationCallable
deleteFeatureGroupOperationCallable;
private final UnaryCallable createFeatureCallable;
private final OperationCallable
createFeatureOperationCallable;
private final UnaryCallable getFeatureCallable;
private final UnaryCallable listFeaturesCallable;
private final UnaryCallable
listFeaturesPagedCallable;
private final UnaryCallable updateFeatureCallable;
private final OperationCallable
updateFeatureOperationCallable;
private final UnaryCallable deleteFeatureCallable;
private final OperationCallable
deleteFeatureOperationCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
private final UnaryCallable getLocationCallable;
private final UnaryCallable setIamPolicyCallable;
private final UnaryCallable getIamPolicyCallable;
private final UnaryCallable
testIamPermissionsCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
private final GrpcStubCallableFactory callableFactory;
public static final GrpcFeatureRegistryServiceStub create(
FeatureRegistryServiceStubSettings settings) throws IOException {
return new GrpcFeatureRegistryServiceStub(settings, ClientContext.create(settings));
}
public static final GrpcFeatureRegistryServiceStub create(ClientContext clientContext)
throws IOException {
return new GrpcFeatureRegistryServiceStub(
FeatureRegistryServiceStubSettings.newBuilder().build(), clientContext);
}
public static final GrpcFeatureRegistryServiceStub create(
ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
return new GrpcFeatureRegistryServiceStub(
FeatureRegistryServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
}
/**
* Constructs an instance of GrpcFeatureRegistryServiceStub, using the given settings. This is
* protected so that it is easy to make a subclass, but otherwise, the static factory methods
* should be preferred.
*/
protected GrpcFeatureRegistryServiceStub(
FeatureRegistryServiceStubSettings settings, ClientContext clientContext) throws IOException {
this(settings, clientContext, new GrpcFeatureRegistryServiceCallableFactory());
}
/**
* Constructs an instance of GrpcFeatureRegistryServiceStub, using the given settings. This is
* protected so that it is easy to make a subclass, but otherwise, the static factory methods
* should be preferred.
*/
protected GrpcFeatureRegistryServiceStub(
FeatureRegistryServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
GrpcCallSettings createFeatureGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createFeatureGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getFeatureGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getFeatureGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listFeatureGroupsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listFeatureGroupsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateFeatureGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateFeatureGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"feature_group.name", String.valueOf(request.getFeatureGroup().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteFeatureGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteFeatureGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createFeatureTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createFeatureMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getFeatureTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getFeatureMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listFeaturesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listFeaturesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateFeatureTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateFeatureMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("feature.name", String.valueOf(request.getFeature().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteFeatureTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteFeatureMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings getLocationTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getLocationMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings setIamPolicyTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(setIamPolicyMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("resource", String.valueOf(request.getResource()));
return builder.build();
})
.build();
GrpcCallSettings getIamPolicyTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getIamPolicyMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("resource", String.valueOf(request.getResource()));
return builder.build();
})
.build();
GrpcCallSettings
testIamPermissionsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(testIamPermissionsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("resource", String.valueOf(request.getResource()));
return builder.build();
})
.build();
this.createFeatureGroupCallable =
callableFactory.createUnaryCallable(
createFeatureGroupTransportSettings,
settings.createFeatureGroupSettings(),
clientContext);
this.createFeatureGroupOperationCallable =
callableFactory.createOperationCallable(
createFeatureGroupTransportSettings,
settings.createFeatureGroupOperationSettings(),
clientContext,
operationsStub);
this.getFeatureGroupCallable =
callableFactory.createUnaryCallable(
getFeatureGroupTransportSettings, settings.getFeatureGroupSettings(), clientContext);
this.listFeatureGroupsCallable =
callableFactory.createUnaryCallable(
listFeatureGroupsTransportSettings,
settings.listFeatureGroupsSettings(),
clientContext);
this.listFeatureGroupsPagedCallable =
callableFactory.createPagedCallable(
listFeatureGroupsTransportSettings,
settings.listFeatureGroupsSettings(),
clientContext);
this.updateFeatureGroupCallable =
callableFactory.createUnaryCallable(
updateFeatureGroupTransportSettings,
settings.updateFeatureGroupSettings(),
clientContext);
this.updateFeatureGroupOperationCallable =
callableFactory.createOperationCallable(
updateFeatureGroupTransportSettings,
settings.updateFeatureGroupOperationSettings(),
clientContext,
operationsStub);
this.deleteFeatureGroupCallable =
callableFactory.createUnaryCallable(
deleteFeatureGroupTransportSettings,
settings.deleteFeatureGroupSettings(),
clientContext);
this.deleteFeatureGroupOperationCallable =
callableFactory.createOperationCallable(
deleteFeatureGroupTransportSettings,
settings.deleteFeatureGroupOperationSettings(),
clientContext,
operationsStub);
this.createFeatureCallable =
callableFactory.createUnaryCallable(
createFeatureTransportSettings, settings.createFeatureSettings(), clientContext);
this.createFeatureOperationCallable =
callableFactory.createOperationCallable(
createFeatureTransportSettings,
settings.createFeatureOperationSettings(),
clientContext,
operationsStub);
this.getFeatureCallable =
callableFactory.createUnaryCallable(
getFeatureTransportSettings, settings.getFeatureSettings(), clientContext);
this.listFeaturesCallable =
callableFactory.createUnaryCallable(
listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext);
this.listFeaturesPagedCallable =
callableFactory.createPagedCallable(
listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext);
this.updateFeatureCallable =
callableFactory.createUnaryCallable(
updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext);
this.updateFeatureOperationCallable =
callableFactory.createOperationCallable(
updateFeatureTransportSettings,
settings.updateFeatureOperationSettings(),
clientContext,
operationsStub);
this.deleteFeatureCallable =
callableFactory.createUnaryCallable(
deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext);
this.deleteFeatureOperationCallable =
callableFactory.createOperationCallable(
deleteFeatureTransportSettings,
settings.deleteFeatureOperationSettings(),
clientContext,
operationsStub);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
this.listLocationsPagedCallable =
callableFactory.createPagedCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
this.getLocationCallable =
callableFactory.createUnaryCallable(
getLocationTransportSettings, settings.getLocationSettings(), clientContext);
this.setIamPolicyCallable =
callableFactory.createUnaryCallable(
setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
this.getIamPolicyCallable =
callableFactory.createUnaryCallable(
getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
this.testIamPermissionsCallable =
callableFactory.createUnaryCallable(
testIamPermissionsTransportSettings,
settings.testIamPermissionsSettings(),
clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
}
public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
@Override
public UnaryCallable createFeatureGroupCallable() {
return createFeatureGroupCallable;
}
@Override
public OperationCallable<
CreateFeatureGroupRequest, FeatureGroup, CreateFeatureGroupOperationMetadata>
createFeatureGroupOperationCallable() {
return createFeatureGroupOperationCallable;
}
@Override
public UnaryCallable getFeatureGroupCallable() {
return getFeatureGroupCallable;
}
@Override
public UnaryCallable
listFeatureGroupsCallable() {
return listFeatureGroupsCallable;
}
@Override
public UnaryCallable
listFeatureGroupsPagedCallable() {
return listFeatureGroupsPagedCallable;
}
@Override
public UnaryCallable updateFeatureGroupCallable() {
return updateFeatureGroupCallable;
}
@Override
public OperationCallable<
UpdateFeatureGroupRequest, FeatureGroup, UpdateFeatureGroupOperationMetadata>
updateFeatureGroupOperationCallable() {
return updateFeatureGroupOperationCallable;
}
@Override
public UnaryCallable deleteFeatureGroupCallable() {
return deleteFeatureGroupCallable;
}
@Override
public OperationCallable
deleteFeatureGroupOperationCallable() {
return deleteFeatureGroupOperationCallable;
}
@Override
public UnaryCallable createFeatureCallable() {
return createFeatureCallable;
}
@Override
public OperationCallable
createFeatureOperationCallable() {
return createFeatureOperationCallable;
}
@Override
public UnaryCallable getFeatureCallable() {
return getFeatureCallable;
}
@Override
public UnaryCallable listFeaturesCallable() {
return listFeaturesCallable;
}
@Override
public UnaryCallable listFeaturesPagedCallable() {
return listFeaturesPagedCallable;
}
@Override
public UnaryCallable updateFeatureCallable() {
return updateFeatureCallable;
}
@Override
public OperationCallable
updateFeatureOperationCallable() {
return updateFeatureOperationCallable;
}
@Override
public UnaryCallable deleteFeatureCallable() {
return deleteFeatureCallable;
}
@Override
public OperationCallable
deleteFeatureOperationCallable() {
return deleteFeatureOperationCallable;
}
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
}
@Override
public UnaryCallable
listLocationsPagedCallable() {
return listLocationsPagedCallable;
}
@Override
public UnaryCallable getLocationCallable() {
return getLocationCallable;
}
@Override
public UnaryCallable setIamPolicyCallable() {
return setIamPolicyCallable;
}
@Override
public UnaryCallable getIamPolicyCallable() {
return getIamPolicyCallable;
}
@Override
public UnaryCallable
testIamPermissionsCallable() {
return testIamPermissionsCallable;
}
@Override
public final void close() {
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}
@Override
public void shutdown() {
backgroundResources.shutdown();
}
@Override
public boolean isShutdown() {
return backgroundResources.isShutdown();
}
@Override
public boolean isTerminated() {
return backgroundResources.isTerminated();
}
@Override
public void shutdownNow() {
backgroundResources.shutdownNow();
}
@Override
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
return backgroundResources.awaitTermination(duration, unit);
}
}