Package com.google.cloud.compute.v1.stub
Class HttpJsonImagesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.ImagesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonImagesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonImagesStub(ImagesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonImagesStub, using the given settings.protectedHttpJsonImagesStub(ImagesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonImagesStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonImagesStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonImagesStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonImagesStubcreate(ImagesStubSettings settings)com.google.api.gax.rpc.UnaryCallable<DeleteImageRequest,Operation>deleteCallable()com.google.api.gax.rpc.OperationCallable<DeleteImageRequest,Operation,Operation>deleteOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeprecateImageRequest,Operation>deprecateCallable()com.google.api.gax.rpc.OperationCallable<DeprecateImageRequest,Operation,Operation>deprecateOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetImageRequest,Image>getCallable()com.google.api.gax.rpc.UnaryCallable<GetFromFamilyImageRequest,Image>getFromFamilyCallable()com.google.api.gax.rpc.UnaryCallable<GetIamPolicyImageRequest,Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<InsertImageRequest,Operation>insertCallable()com.google.api.gax.rpc.OperationCallable<InsertImageRequest,Operation,Operation>insertOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListImagesRequest,ImageList>listCallable()com.google.api.gax.rpc.UnaryCallable<ListImagesRequest,ImagesClient.ListPagedResponse>listPagedCallable()com.google.api.gax.rpc.UnaryCallable<PatchImageRequest,Operation>patchCallable()com.google.api.gax.rpc.OperationCallable<PatchImageRequest,Operation,Operation>patchOperationCallable()com.google.api.gax.rpc.UnaryCallable<SetIamPolicyImageRequest,Policy>setIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<SetLabelsImageRequest,Operation>setLabelsCallable()com.google.api.gax.rpc.OperationCallable<SetLabelsImageRequest,Operation,Operation>setLabelsOperationCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsImageRequest,TestPermissionsResponse>testIamPermissionsCallable()
-
-
-
Constructor Detail
-
HttpJsonImagesStub
protected HttpJsonImagesStub(ImagesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonImagesStub
protected HttpJsonImagesStub(ImagesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonImagesStub create(ImagesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonImagesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonImagesStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteImageRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classImagesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteImageRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classImagesStub
-
deprecateCallable
public com.google.api.gax.rpc.UnaryCallable<DeprecateImageRequest,Operation> deprecateCallable()
- Overrides:
deprecateCallablein classImagesStub
-
deprecateOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeprecateImageRequest,Operation,Operation> deprecateOperationCallable()
- Overrides:
deprecateOperationCallablein classImagesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetImageRequest,Image> getCallable()
- Overrides:
getCallablein classImagesStub
-
getFromFamilyCallable
public com.google.api.gax.rpc.UnaryCallable<GetFromFamilyImageRequest,Image> getFromFamilyCallable()
- Overrides:
getFromFamilyCallablein classImagesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyImageRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classImagesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertImageRequest,Operation> insertCallable()
- Overrides:
insertCallablein classImagesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertImageRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classImagesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListImagesRequest,ImageList> listCallable()
- Overrides:
listCallablein classImagesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListImagesRequest,ImagesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classImagesStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchImageRequest,Operation> patchCallable()
- Overrides:
patchCallablein classImagesStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchImageRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classImagesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyImageRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classImagesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsImageRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classImagesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsImageRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classImagesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsImageRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classImagesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classImagesStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-