Class GrpcVectorSearchServiceStub (0.1.0)

public class GrpcVectorSearchServiceStub extends VectorSearchServiceStub

gRPC stub implementation for the VectorSearchService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > VectorSearchServiceStub > GrpcVectorSearchServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcVectorSearchServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcVectorSearchServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcVectorSearchServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcVectorSearchServiceStub
Exceptions
Type Description
IOException

create(VectorSearchServiceStubSettings settings)

public static final GrpcVectorSearchServiceStub create(VectorSearchServiceStubSettings settings)
Parameter
Name Description
settings VectorSearchServiceStubSettings
Returns
Type Description
GrpcVectorSearchServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext)

protected GrpcVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcVectorSearchServiceStub, 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.

Parameters
Name Description
settings VectorSearchServiceStubSettings
clientContext ClientContext

GrpcVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcVectorSearchServiceStub, 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.

Parameters
Name Description
settings VectorSearchServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createCollectionCallable()

public UnaryCallable<CreateCollectionRequest,Operation> createCollectionCallable()
Returns
Type Description
UnaryCallable<CreateCollectionRequest,Operation>
Overrides

createCollectionOperationCallable()

public OperationCallable<CreateCollectionRequest,Collection,OperationMetadata> createCollectionOperationCallable()
Returns
Type Description
OperationCallable<CreateCollectionRequest,Collection,OperationMetadata>
Overrides

createIndexCallable()

public UnaryCallable<CreateIndexRequest,Operation> createIndexCallable()
Returns
Type Description
UnaryCallable<CreateIndexRequest,Operation>
Overrides

createIndexOperationCallable()

public OperationCallable<CreateIndexRequest,Index,OperationMetadata> createIndexOperationCallable()
Returns
Type Description
OperationCallable<CreateIndexRequest,Index,OperationMetadata>
Overrides

deleteCollectionCallable()

public UnaryCallable<DeleteCollectionRequest,Operation> deleteCollectionCallable()
Returns
Type Description
UnaryCallable<DeleteCollectionRequest,Operation>
Overrides

deleteCollectionOperationCallable()

public OperationCallable<DeleteCollectionRequest,Empty,OperationMetadata> deleteCollectionOperationCallable()
Returns
Type Description
OperationCallable<DeleteCollectionRequest,Empty,OperationMetadata>
Overrides

deleteIndexCallable()

public UnaryCallable<DeleteIndexRequest,Operation> deleteIndexCallable()
Returns
Type Description
UnaryCallable<DeleteIndexRequest,Operation>
Overrides

deleteIndexOperationCallable()

public OperationCallable<DeleteIndexRequest,Empty,OperationMetadata> deleteIndexOperationCallable()
Returns
Type Description
OperationCallable<DeleteIndexRequest,Empty,OperationMetadata>
Overrides

getCollectionCallable()

public UnaryCallable<GetCollectionRequest,Collection> getCollectionCallable()
Returns
Type Description
UnaryCallable<GetCollectionRequest,Collection>
Overrides

getIndexCallable()

public UnaryCallable<GetIndexRequest,Index> getIndexCallable()
Returns
Type Description
UnaryCallable<GetIndexRequest,Index>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

importDataObjectsCallable()

public UnaryCallable<ImportDataObjectsRequest,Operation> importDataObjectsCallable()
Returns
Type Description
UnaryCallable<ImportDataObjectsRequest,Operation>
Overrides

importDataObjectsOperationCallable()

public OperationCallable<ImportDataObjectsRequest,ImportDataObjectsResponse,ImportDataObjectsMetadata> importDataObjectsOperationCallable()
Returns
Type Description
OperationCallable<ImportDataObjectsRequest,ImportDataObjectsResponse,ImportDataObjectsMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCollectionsCallable()

public UnaryCallable<ListCollectionsRequest,ListCollectionsResponse> listCollectionsCallable()
Returns
Type Description
UnaryCallable<ListCollectionsRequest,ListCollectionsResponse>
Overrides

listCollectionsPagedCallable()

public UnaryCallable<ListCollectionsRequest,VectorSearchServiceClient.ListCollectionsPagedResponse> listCollectionsPagedCallable()
Returns
Type Description
UnaryCallable<ListCollectionsRequest,ListCollectionsPagedResponse>
Overrides

listIndexesCallable()

public UnaryCallable<ListIndexesRequest,ListIndexesResponse> listIndexesCallable()
Returns
Type Description
UnaryCallable<ListIndexesRequest,ListIndexesResponse>
Overrides

listIndexesPagedCallable()

public UnaryCallable<ListIndexesRequest,VectorSearchServiceClient.ListIndexesPagedResponse> listIndexesPagedCallable()
Returns
Type Description
UnaryCallable<ListIndexesRequest,ListIndexesPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,VectorSearchServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCollectionCallable()

public UnaryCallable<UpdateCollectionRequest,Operation> updateCollectionCallable()
Returns
Type Description
UnaryCallable<UpdateCollectionRequest,Operation>
Overrides

updateCollectionOperationCallable()

public OperationCallable<UpdateCollectionRequest,Collection,OperationMetadata> updateCollectionOperationCallable()
Returns
Type Description
OperationCallable<UpdateCollectionRequest,Collection,OperationMetadata>
Overrides