Class GrpcIndexServiceStub (2.9.6)

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.

Inheritance

java.lang.Object > IndexServiceStub > GrpcIndexServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcIndexServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcIndexServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcIndexServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcIndexServiceStub
Exceptions
TypeDescription
IOException

create(IndexServiceStubSettings settings)

public static final GrpcIndexServiceStub create(IndexServiceStubSettings settings)
Parameter
NameDescription
settingsIndexServiceStubSettings
Returns
TypeDescription
GrpcIndexServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcIndexServiceStub(IndexServiceStubSettings settings, ClientContext clientContext)

protected GrpcIndexServiceStub(IndexServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsIndexServiceStubSettings
clientContextClientContext

GrpcIndexServiceStub(IndexServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcIndexServiceStub(IndexServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsIndexServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createIndexCallable()

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

createIndexOperationCallable()

public OperationCallable<CreateIndexRequest,Index,CreateIndexOperationMetadata> createIndexOperationCallable()
Returns
TypeDescription
OperationCallable<CreateIndexRequest,Index,CreateIndexOperationMetadata>
Overrides

deleteIndexCallable()

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

deleteIndexOperationCallable()

public OperationCallable<DeleteIndexRequest,Empty,DeleteOperationMetadata> deleteIndexOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteIndexRequest,Empty,DeleteOperationMetadata>
Overrides

getIndexCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listIndexesCallable()

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

listIndexesPagedCallable()

public UnaryCallable<ListIndexesRequest,IndexServiceClient.ListIndexesPagedResponse> listIndexesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListIndexesRequest,ListIndexesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateIndexCallable()

public UnaryCallable<UpdateIndexRequest,Operation> updateIndexCallable()
Returns
TypeDescription
UnaryCallable<UpdateIndexRequest,Operation>
Overrides

updateIndexOperationCallable()

public OperationCallable<UpdateIndexRequest,Index,UpdateIndexOperationMetadata> updateIndexOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateIndexRequest,Index,UpdateIndexOperationMetadata>
Overrides