Class HttpJsonSampleQueryServiceStub (0.43.0)

public class HttpJsonSampleQueryServiceStub extends SampleQueryServiceStub

REST stub implementation for the SampleQueryService service API.

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

Inheritance

java.lang.Object > SampleQueryServiceStub > HttpJsonSampleQueryServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SampleQueryServiceStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSampleQueryServiceStub(SampleQueryServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

getHttpJsonOperationsStub()

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