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 protected
HttpJsonImagesStub(ImagesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonImagesStub, using the given settings.protected
HttpJsonImagesStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonImagesStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonImagesStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonImagesStub
create(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()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
deleteCallable
in classImagesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteImageRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classImagesStub
-
deprecateCallable
public com.google.api.gax.rpc.UnaryCallable<DeprecateImageRequest,Operation> deprecateCallable()
- Overrides:
deprecateCallable
in classImagesStub
-
deprecateOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeprecateImageRequest,Operation,Operation> deprecateOperationCallable()
- Overrides:
deprecateOperationCallable
in classImagesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetImageRequest,Image> getCallable()
- Overrides:
getCallable
in classImagesStub
-
getFromFamilyCallable
public com.google.api.gax.rpc.UnaryCallable<GetFromFamilyImageRequest,Image> getFromFamilyCallable()
- Overrides:
getFromFamilyCallable
in classImagesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyImageRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classImagesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertImageRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classImagesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertImageRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classImagesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListImagesRequest,ImageList> listCallable()
- Overrides:
listCallable
in classImagesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListImagesRequest,ImagesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classImagesStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchImageRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classImagesStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchImageRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classImagesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyImageRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classImagesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsImageRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classImagesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsImageRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classImagesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsImageRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classImagesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-