Class GrpcIndexServiceStub
- java.lang.Object
-
- com.google.cloud.aiplatform.v1.stub.IndexServiceStub
-
- com.google.cloud.aiplatform.v1.stub.GrpcIndexServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@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 protected
GrpcIndexServiceStub(IndexServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcIndexServiceStub, using the given settings.protected
GrpcIndexServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcIndexServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcIndexServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcIndexServiceStub
create(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.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classIndexServiceStub
-
createIndexCallable
public com.google.api.gax.rpc.UnaryCallable<CreateIndexRequest,com.google.longrunning.Operation> createIndexCallable()
- Overrides:
createIndexCallable
in classIndexServiceStub
-
createIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateIndexRequest,Index,CreateIndexOperationMetadata> createIndexOperationCallable()
- Overrides:
createIndexOperationCallable
in classIndexServiceStub
-
getIndexCallable
public com.google.api.gax.rpc.UnaryCallable<GetIndexRequest,Index> getIndexCallable()
- Overrides:
getIndexCallable
in classIndexServiceStub
-
listIndexesCallable
public com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,ListIndexesResponse> listIndexesCallable()
- Overrides:
listIndexesCallable
in classIndexServiceStub
-
listIndexesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,IndexServiceClient.ListIndexesPagedResponse> listIndexesPagedCallable()
- Overrides:
listIndexesPagedCallable
in classIndexServiceStub
-
updateIndexCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateIndexRequest,com.google.longrunning.Operation> updateIndexCallable()
- Overrides:
updateIndexCallable
in classIndexServiceStub
-
updateIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateIndexRequest,Index,UpdateIndexOperationMetadata> updateIndexOperationCallable()
- Overrides:
updateIndexOperationCallable
in classIndexServiceStub
-
deleteIndexCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteIndexRequest,com.google.longrunning.Operation> deleteIndexCallable()
- Overrides:
deleteIndexCallable
in classIndexServiceStub
-
deleteIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteIndexRequest,com.google.protobuf.Empty,DeleteOperationMetadata> deleteIndexOperationCallable()
- Overrides:
deleteIndexOperationCallable
in classIndexServiceStub
-
upsertDatapointsCallable
public com.google.api.gax.rpc.UnaryCallable<UpsertDatapointsRequest,UpsertDatapointsResponse> upsertDatapointsCallable()
- Overrides:
upsertDatapointsCallable
in classIndexServiceStub
-
removeDatapointsCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveDatapointsRequest,RemoveDatapointsResponse> removeDatapointsCallable()
- Overrides:
removeDatapointsCallable
in classIndexServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classIndexServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,IndexServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classIndexServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classIndexServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classIndexServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classIndexServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classIndexServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-