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 protected
HttpJsonServiceAttachmentsStub(ServiceAttachmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonServiceAttachmentsStub, using the given settings.protected
HttpJsonServiceAttachmentsStub(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:
aggregatedListCallable
in classServiceAttachmentsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListServiceAttachmentsRequest,ServiceAttachmentsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classServiceAttachmentsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceAttachmentRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classServiceAttachmentsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteServiceAttachmentRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classServiceAttachmentsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceAttachmentRequest,ServiceAttachment> getCallable()
- Overrides:
getCallable
in classServiceAttachmentsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyServiceAttachmentRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classServiceAttachmentsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertServiceAttachmentRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classServiceAttachmentsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertServiceAttachmentRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classServiceAttachmentsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceAttachmentsRequest,ServiceAttachmentList> listCallable()
- Overrides:
listCallable
in classServiceAttachmentsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceAttachmentsRequest,ServiceAttachmentsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classServiceAttachmentsStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchServiceAttachmentRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classServiceAttachmentsStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchServiceAttachmentRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classServiceAttachmentsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyServiceAttachmentRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classServiceAttachmentsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsServiceAttachmentRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classServiceAttachmentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-