Class HttpJsonImagesStub (1.26.0)

public class HttpJsonImagesStub extends ImagesStub

REST stub implementation for the Images service API.

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

Inheritance

java.lang.Object > ImagesStub > HttpJsonImagesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ImagesStubSettings settings)

public static final HttpJsonImagesStub create(ImagesStubSettings settings)
Parameter
NameDescription
settingsImagesStubSettings
Returns
TypeDescription
HttpJsonImagesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonImagesStub(ImagesStubSettings settings, ClientContext clientContext)

protected HttpJsonImagesStub(ImagesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonImagesStub, 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
settingsImagesStubSettings
clientContextClientContext

HttpJsonImagesStub(ImagesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonImagesStub(ImagesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonImagesStub, 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
settingsImagesStubSettings
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<DeleteImageRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteImageRequest,Operation>
Overrides

deleteOperationCallable()

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

deprecateCallable()

public UnaryCallable<DeprecateImageRequest,Operation> deprecateCallable()
Returns
TypeDescription
UnaryCallable<DeprecateImageRequest,Operation>
Overrides

deprecateOperationCallable()

public OperationCallable<DeprecateImageRequest,Operation,Operation> deprecateOperationCallable()
Returns
TypeDescription
OperationCallable<DeprecateImageRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetImageRequest,Image> getCallable()
Returns
TypeDescription
UnaryCallable<GetImageRequest,Image>
Overrides

getFromFamilyCallable()

public UnaryCallable<GetFromFamilyImageRequest,Image> getFromFamilyCallable()
Returns
TypeDescription
UnaryCallable<GetFromFamilyImageRequest,Image>
Overrides

getIamPolicyCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListImagesRequest,ImageList> listCallable()
Returns
TypeDescription
UnaryCallable<ListImagesRequest,ImageList>
Overrides

listPagedCallable()

public UnaryCallable<ListImagesRequest,ImagesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListImagesRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchImageRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchImageRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchImageRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchImageRequest,Operation,Operation>
Overrides

setIamPolicyCallable()

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

setLabelsCallable()

public UnaryCallable<SetLabelsImageRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsImageRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsImageRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsImageRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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