Class HttpJsonMachineImagesStub (1.39.0)

public class HttpJsonMachineImagesStub extends MachineImagesStub

REST stub implementation for the MachineImages service API.

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

Inheritance

java.lang.Object > MachineImagesStub > HttpJsonMachineImagesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(MachineImagesStubSettings settings)

public static final HttpJsonMachineImagesStub create(MachineImagesStubSettings settings)
Parameter
NameDescription
settingsMachineImagesStubSettings
Returns
TypeDescription
HttpJsonMachineImagesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonMachineImagesStub(MachineImagesStubSettings settings, ClientContext clientContext)

protected HttpJsonMachineImagesStub(MachineImagesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonMachineImagesStub, 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
settingsMachineImagesStubSettings
clientContextClientContext

HttpJsonMachineImagesStub(MachineImagesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonMachineImagesStub(MachineImagesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonMachineImagesStub, 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
settingsMachineImagesStubSettings
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

deleteCallable()

public UnaryCallable<DeleteMachineImageRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteMachineImageRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteMachineImageRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteMachineImageRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetMachineImageRequest,MachineImage> getCallable()
Returns
TypeDescription
UnaryCallable<GetMachineImageRequest,MachineImage>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyMachineImageRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyMachineImageRequest,Policy>
Overrides

insertCallable()

public UnaryCallable<InsertMachineImageRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertMachineImageRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertMachineImageRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertMachineImageRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListMachineImagesRequest,MachineImageList> listCallable()
Returns
TypeDescription
UnaryCallable<ListMachineImagesRequest,MachineImageList>
Overrides

listPagedCallable()

public UnaryCallable<ListMachineImagesRequest,MachineImagesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMachineImagesRequest,ListPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyMachineImageRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyMachineImageRequest,Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsMachineImageRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsMachineImageRequest,TestPermissionsResponse>
Overrides