Class GrpcIndexServiceStub
- java.lang.Object
-
- com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStub
-
- com.google.cloud.aiplatform.v1beta1.stub.GrpcIndexServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcIndexServiceStub extends IndexServiceStub
gRPC stub implementation for the IndexService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcIndexServiceStub(IndexServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcIndexServiceStub, using the given settings.protectedGrpcIndexServiceStub(IndexServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcIndexServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcIndexServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcIndexServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcIndexServiceStubcreate(IndexServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateIndexRequest,com.google.longrunning.Operation>createIndexCallable()com.google.api.gax.rpc.OperationCallable<CreateIndexRequest,Index,CreateIndexOperationMetadata>createIndexOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteIndexRequest,com.google.longrunning.Operation>deleteIndexCallable()com.google.api.gax.rpc.OperationCallable<DeleteIndexRequest,com.google.protobuf.Empty,DeleteOperationMetadata>deleteIndexOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<GetIndexRequest,Index>getIndexCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,ListIndexesResponse>listIndexesCallable()com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,IndexServiceClient.ListIndexesPagedResponse>listIndexesPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,IndexServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<RemoveDatapointsRequest,RemoveDatapointsResponse>removeDatapointsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateIndexRequest,com.google.longrunning.Operation>updateIndexCallable()com.google.api.gax.rpc.OperationCallable<UpdateIndexRequest,Index,UpdateIndexOperationMetadata>updateIndexOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpsertDatapointsRequest,UpsertDatapointsResponse>upsertDatapointsCallable()
-
-
-
Constructor Detail
-
GrpcIndexServiceStub
protected GrpcIndexServiceStub(IndexServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcIndexServiceStub, 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
-
GrpcIndexServiceStub
protected GrpcIndexServiceStub(IndexServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcIndexServiceStub, 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
-
-
Method Detail
-
create
public static final GrpcIndexServiceStub create(IndexServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcIndexServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcIndexServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classIndexServiceStub
-
createIndexCallable
public com.google.api.gax.rpc.UnaryCallable<CreateIndexRequest,com.google.longrunning.Operation> createIndexCallable()
- Overrides:
createIndexCallablein classIndexServiceStub
-
createIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateIndexRequest,Index,CreateIndexOperationMetadata> createIndexOperationCallable()
- Overrides:
createIndexOperationCallablein classIndexServiceStub
-
getIndexCallable
public com.google.api.gax.rpc.UnaryCallable<GetIndexRequest,Index> getIndexCallable()
- Overrides:
getIndexCallablein classIndexServiceStub
-
listIndexesCallable
public com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,ListIndexesResponse> listIndexesCallable()
- Overrides:
listIndexesCallablein classIndexServiceStub
-
listIndexesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,IndexServiceClient.ListIndexesPagedResponse> listIndexesPagedCallable()
- Overrides:
listIndexesPagedCallablein classIndexServiceStub
-
updateIndexCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateIndexRequest,com.google.longrunning.Operation> updateIndexCallable()
- Overrides:
updateIndexCallablein classIndexServiceStub
-
updateIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateIndexRequest,Index,UpdateIndexOperationMetadata> updateIndexOperationCallable()
- Overrides:
updateIndexOperationCallablein classIndexServiceStub
-
deleteIndexCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteIndexRequest,com.google.longrunning.Operation> deleteIndexCallable()
- Overrides:
deleteIndexCallablein classIndexServiceStub
-
deleteIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteIndexRequest,com.google.protobuf.Empty,DeleteOperationMetadata> deleteIndexOperationCallable()
- Overrides:
deleteIndexOperationCallablein classIndexServiceStub
-
upsertDatapointsCallable
public com.google.api.gax.rpc.UnaryCallable<UpsertDatapointsRequest,UpsertDatapointsResponse> upsertDatapointsCallable()
- Overrides:
upsertDatapointsCallablein classIndexServiceStub
-
removeDatapointsCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveDatapointsRequest,RemoveDatapointsResponse> removeDatapointsCallable()
- Overrides:
removeDatapointsCallablein classIndexServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classIndexServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,IndexServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classIndexServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classIndexServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classIndexServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classIndexServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classIndexServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classIndexServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-