Class HttpJsonVectorSearchServiceStub (0.1.0)

public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub

REST stub implementation for the VectorSearchService service API.

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

Inheritance

java.lang.Object > VectorSearchServiceStub > HttpJsonVectorSearchServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(VectorSearchServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonVectorSearchServiceStub(VectorSearchServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonVectorSearchServiceStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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

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