Class HttpJsonAcceleratorTypesStub (1.11.0)

public class HttpJsonAcceleratorTypesStub extends AcceleratorTypesStub

REST stub implementation for the AcceleratorTypes service API.

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

Inheritance

java.lang.Object > AcceleratorTypesStub > HttpJsonAcceleratorTypesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AcceleratorTypesStubSettings settings)

public static final HttpJsonAcceleratorTypesStub create(AcceleratorTypesStubSettings settings)
Parameter
NameDescription
settingsAcceleratorTypesStubSettings
Returns
TypeDescription
HttpJsonAcceleratorTypesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonAcceleratorTypesStub(AcceleratorTypesStubSettings settings, ClientContext clientContext)

protected HttpJsonAcceleratorTypesStub(AcceleratorTypesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAcceleratorTypesStub, 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
settingsAcceleratorTypesStubSettings
clientContextClientContext

HttpJsonAcceleratorTypesStub(AcceleratorTypesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAcceleratorTypesStub(AcceleratorTypesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAcceleratorTypesStub, 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
settingsAcceleratorTypesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListAcceleratorTypesRequest,AcceleratorTypeAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListAcceleratorTypesRequest,AcceleratorTypeAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListAcceleratorTypesRequest,AcceleratorTypesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListAcceleratorTypesRequest,AggregatedListPagedResponse>
Overrides

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

getCallable()

public UnaryCallable<GetAcceleratorTypeRequest,AcceleratorType> getCallable()
Returns
TypeDescription
UnaryCallable<GetAcceleratorTypeRequest,AcceleratorType>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListAcceleratorTypesRequest,AcceleratorTypeList> listCallable()
Returns
TypeDescription
UnaryCallable<ListAcceleratorTypesRequest,AcceleratorTypeList>
Overrides

listPagedCallable()

public UnaryCallable<ListAcceleratorTypesRequest,AcceleratorTypesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAcceleratorTypesRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()