Class HttpJsonDiskTypesStub (1.55.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDiskTypesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DiskTypesStubSettings settings)

public static final HttpJsonDiskTypesStub create(DiskTypesStubSettings settings)
Parameter
Name Description
settings DiskTypesStubSettings
Returns
Type Description
HttpJsonDiskTypesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings DiskTypesStubSettings
clientContext ClientContext

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
Name Description
settings DiskTypesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

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

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListDiskTypesRequest,DiskTypesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
Type Description
UnaryCallable<AggregatedListDiskTypesRequest,AggregatedListPagedResponse>
Overrides

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

getCallable()

public UnaryCallable<GetDiskTypeRequest,DiskType> getCallable()
Returns
Type Description
UnaryCallable<GetDiskTypeRequest,DiskType>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()