Class GrpcSampleQueryServiceStub (0.48.0)

public class GrpcSampleQueryServiceStub extends SampleQueryServiceStub

gRPC stub implementation for the SampleQueryService service API.

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

Inheritance

java.lang.Object > SampleQueryServiceStub > GrpcSampleQueryServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SampleQueryServiceStubSettings settings)

public static final GrpcSampleQueryServiceStub create(SampleQueryServiceStubSettings settings)
Parameter
Name Description
settings SampleQueryServiceStubSettings
Returns
Type Description
GrpcSampleQueryServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext)

protected GrpcSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSampleQueryServiceStub, 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 SampleQueryServiceStubSettings
clientContext ClientContext

GrpcSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createSampleQueryCallable()

public UnaryCallable<CreateSampleQueryRequest,SampleQuery> createSampleQueryCallable()
Returns
Type Description
UnaryCallable<CreateSampleQueryRequest,SampleQuery>
Overrides

deleteSampleQueryCallable()

public UnaryCallable<DeleteSampleQueryRequest,Empty> deleteSampleQueryCallable()
Returns
Type Description
UnaryCallable<DeleteSampleQueryRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getSampleQueryCallable()

public UnaryCallable<GetSampleQueryRequest,SampleQuery> getSampleQueryCallable()
Returns
Type Description
UnaryCallable<GetSampleQueryRequest,SampleQuery>
Overrides

importSampleQueriesCallable()

public UnaryCallable<ImportSampleQueriesRequest,Operation> importSampleQueriesCallable()
Returns
Type Description
UnaryCallable<ImportSampleQueriesRequest,Operation>
Overrides

importSampleQueriesOperationCallable()

public OperationCallable<ImportSampleQueriesRequest,ImportSampleQueriesResponse,ImportSampleQueriesMetadata> importSampleQueriesOperationCallable()
Returns
Type Description
OperationCallable<ImportSampleQueriesRequest,ImportSampleQueriesResponse,ImportSampleQueriesMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSampleQueriesCallable()

public UnaryCallable<ListSampleQueriesRequest,ListSampleQueriesResponse> listSampleQueriesCallable()
Returns
Type Description
UnaryCallable<ListSampleQueriesRequest,ListSampleQueriesResponse>
Overrides

listSampleQueriesPagedCallable()

public UnaryCallable<ListSampleQueriesRequest,SampleQueryServiceClient.ListSampleQueriesPagedResponse> listSampleQueriesPagedCallable()
Returns
Type Description
UnaryCallable<ListSampleQueriesRequest,ListSampleQueriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSampleQueryCallable()

public UnaryCallable<UpdateSampleQueryRequest,SampleQuery> updateSampleQueryCallable()
Returns
Type Description
UnaryCallable<UpdateSampleQueryRequest,SampleQuery>
Overrides