Class HttpJsonExamplesStub (0.48.0)

public class HttpJsonExamplesStub extends ExamplesStub

REST stub implementation for the Examples service API.

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

Inheritance

java.lang.Object > ExamplesStub > HttpJsonExamplesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonExamplesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonExamplesStub
Exceptions
TypeDescription
IOException

create(ExamplesStubSettings settings)

public static final HttpJsonExamplesStub create(ExamplesStubSettings settings)
Parameter
NameDescription
settingsExamplesStubSettings
Returns
TypeDescription
HttpJsonExamplesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonExamplesStub(ExamplesStubSettings settings, ClientContext clientContext)

protected HttpJsonExamplesStub(ExamplesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonExamplesStub, 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
settingsExamplesStubSettings
clientContextClientContext

HttpJsonExamplesStub(ExamplesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonExamplesStub(ExamplesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonExamplesStub, 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
settingsExamplesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

createExampleCallable()

public UnaryCallable<CreateExampleRequest,Example> createExampleCallable()
Returns
TypeDescription
UnaryCallable<CreateExampleRequest,Example>
Overrides

deleteExampleCallable()

public UnaryCallable<DeleteExampleRequest,Empty> deleteExampleCallable()
Returns
TypeDescription
UnaryCallable<DeleteExampleRequest,Empty>
Overrides

getExampleCallable()

public UnaryCallable<GetExampleRequest,Example> getExampleCallable()
Returns
TypeDescription
UnaryCallable<GetExampleRequest,Example>
Overrides

getLocationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listExamplesCallable()

public UnaryCallable<ListExamplesRequest,ListExamplesResponse> listExamplesCallable()
Returns
TypeDescription
UnaryCallable<ListExamplesRequest,ListExamplesResponse>
Overrides

listExamplesPagedCallable()

public UnaryCallable<ListExamplesRequest,ExamplesClient.ListExamplesPagedResponse> listExamplesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListExamplesRequest,ListExamplesPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ExamplesClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateExampleCallable()

public UnaryCallable<UpdateExampleRequest,Example> updateExampleCallable()
Returns
TypeDescription
UnaryCallable<UpdateExampleRequest,Example>
Overrides