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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(MachineImagesStubSettings settings)

public static final HttpJsonMachineImagesStub create(MachineImagesStubSettings settings)
Parameter
Name Description
settings MachineImagesStubSettings
Returns
Type Description
HttpJsonMachineImagesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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

Methods

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

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

getIamPolicyCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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