Class HttpJsonDiskTypesStub (1.37.0)

public class HttpJsonDiskTypesStub extends DiskTypesStub

REST stub implementation for the DiskTypes service API.

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

Inheritance

java.lang.Object > DiskTypesStub > HttpJsonDiskTypesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DiskTypesStubSettings settings)

public static final HttpJsonDiskTypesStub create(DiskTypesStubSettings settings)
Parameter
NameDescription
settingsDiskTypesStubSettings
Returns
TypeDescription
HttpJsonDiskTypesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonDiskTypesStub(DiskTypesStubSettings settings, ClientContext clientContext)

protected HttpJsonDiskTypesStub(DiskTypesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDiskTypesStub, 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
settingsDiskTypesStubSettings
clientContextClientContext

HttpJsonDiskTypesStub(DiskTypesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDiskTypesStub(DiskTypesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDiskTypesStub, 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
settingsDiskTypesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListDiskTypesRequest,DiskTypeAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListDiskTypesRequest,DiskTypeAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListDiskTypesRequest,DiskTypesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListDiskTypesRequest,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<GetDiskTypeRequest,DiskType> getCallable()
Returns
TypeDescription
UnaryCallable<GetDiskTypeRequest,DiskType>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListDiskTypesRequest,DiskTypeList> listCallable()
Returns
TypeDescription
UnaryCallable<ListDiskTypesRequest,DiskTypeList>
Overrides

listPagedCallable()

public UnaryCallable<ListDiskTypesRequest,DiskTypesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDiskTypesRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()