Package com.google.cloud.compute.v1.stub
Class HttpJsonServiceAttachmentsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.ServiceAttachmentsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonServiceAttachmentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonServiceAttachmentsStub extends ServiceAttachmentsStub
REST stub implementation for the ServiceAttachments service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonServiceAttachmentsStub(ServiceAttachmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonServiceAttachmentsStub, using the given settings.protectedHttpJsonServiceAttachmentsStub(ServiceAttachmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonServiceAttachmentsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonServiceAttachmentsStub
protected HttpJsonServiceAttachmentsStub(ServiceAttachmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonServiceAttachmentsStub, 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
-
HttpJsonServiceAttachmentsStub
protected HttpJsonServiceAttachmentsStub(ServiceAttachmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonServiceAttachmentsStub, 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 HttpJsonServiceAttachmentsStub create(ServiceAttachmentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServiceAttachmentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServiceAttachmentsStub 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()
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListServiceAttachmentsRequest,ServiceAttachmentAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classServiceAttachmentsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListServiceAttachmentsRequest,ServiceAttachmentsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classServiceAttachmentsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceAttachmentRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classServiceAttachmentsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteServiceAttachmentRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classServiceAttachmentsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceAttachmentRequest,ServiceAttachment> getCallable()
- Overrides:
getCallablein classServiceAttachmentsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyServiceAttachmentRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classServiceAttachmentsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertServiceAttachmentRequest,Operation> insertCallable()
- Overrides:
insertCallablein classServiceAttachmentsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertServiceAttachmentRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classServiceAttachmentsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceAttachmentsRequest,ServiceAttachmentList> listCallable()
- Overrides:
listCallablein classServiceAttachmentsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceAttachmentsRequest,ServiceAttachmentsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classServiceAttachmentsStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchServiceAttachmentRequest,Operation> patchCallable()
- Overrides:
patchCallablein classServiceAttachmentsStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchServiceAttachmentRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classServiceAttachmentsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyServiceAttachmentRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classServiceAttachmentsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsServiceAttachmentRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classServiceAttachmentsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classServiceAttachmentsStub
-
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
-
-