Class HttpJsonMachineTypesStub (1.51.0)

public class HttpJsonMachineTypesStub extends MachineTypesStub

REST stub implementation for the MachineTypes service API.

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

Inheritance

java.lang.Object > MachineTypesStub > HttpJsonMachineTypesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(MachineTypesStubSettings settings)

public static final HttpJsonMachineTypesStub create(MachineTypesStubSettings settings)
Parameter
NameDescription
settingsMachineTypesStubSettings
Returns
TypeDescription
HttpJsonMachineTypesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonMachineTypesStub(MachineTypesStubSettings settings, ClientContext clientContext)

protected HttpJsonMachineTypesStub(MachineTypesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonMachineTypesStub, 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
settingsMachineTypesStubSettings
clientContextClientContext

HttpJsonMachineTypesStub(MachineTypesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonMachineTypesStub(MachineTypesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonMachineTypesStub, 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
settingsMachineTypesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListMachineTypesRequest,MachineTypeAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListMachineTypesRequest,MachineTypeAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListMachineTypesRequest,MachineTypesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListMachineTypesRequest,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<GetMachineTypeRequest,MachineType> getCallable()
Returns
TypeDescription
UnaryCallable<GetMachineTypeRequest,MachineType>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListMachineTypesRequest,MachineTypeList> listCallable()
Returns
TypeDescription
UnaryCallable<ListMachineTypesRequest,MachineTypeList>
Overrides

listPagedCallable()

public UnaryCallable<ListMachineTypesRequest,MachineTypesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMachineTypesRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()