Package com.google.cloud.compute.v1.stub
Class HttpJsonInstanceGroupsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.InstanceGroupsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonInstanceGroupsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonInstanceGroupsStub extends InstanceGroupsStub
REST stub implementation for the InstanceGroups service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonInstanceGroupsStub, using the given settings.protectedHttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonInstanceGroupsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonInstanceGroupsStub
protected HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonInstanceGroupsStub, 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
-
HttpJsonInstanceGroupsStub
protected HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonInstanceGroupsStub, 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 HttpJsonInstanceGroupsStub create(InstanceGroupsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonInstanceGroupsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonInstanceGroupsStub 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()
-
addInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<AddInstancesInstanceGroupRequest,Operation> addInstancesCallable()
- Overrides:
addInstancesCallablein classInstanceGroupsStub
-
addInstancesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddInstancesInstanceGroupRequest,Operation,Operation> addInstancesOperationCallable()
- Overrides:
addInstancesOperationCallablein classInstanceGroupsStub
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classInstanceGroupsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classInstanceGroupsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceGroupRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classInstanceGroupsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceGroupRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classInstanceGroupsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceGroupRequest,InstanceGroup> getCallable()
- Overrides:
getCallablein classInstanceGroupsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertInstanceGroupRequest,Operation> insertCallable()
- Overrides:
insertCallablein classInstanceGroupsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertInstanceGroupRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classInstanceGroupsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceGroupsRequest,InstanceGroupList> listCallable()
- Overrides:
listCallablein classInstanceGroupsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceGroupsRequest,InstanceGroupsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classInstanceGroupsStub
-
listInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsListInstances> listInstancesCallable()
- Overrides:
listInstancesCallablein classInstanceGroupsStub
-
listInstancesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsClient.ListInstancesPagedResponse> listInstancesPagedCallable()
- Overrides:
listInstancesPagedCallablein classInstanceGroupsStub
-
removeInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveInstancesInstanceGroupRequest,Operation> removeInstancesCallable()
- Overrides:
removeInstancesCallablein classInstanceGroupsStub
-
removeInstancesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveInstancesInstanceGroupRequest,Operation,Operation> removeInstancesOperationCallable()
- Overrides:
removeInstancesOperationCallablein classInstanceGroupsStub
-
setNamedPortsCallable
public com.google.api.gax.rpc.UnaryCallable<SetNamedPortsInstanceGroupRequest,Operation> setNamedPortsCallable()
- Overrides:
setNamedPortsCallablein classInstanceGroupsStub
-
setNamedPortsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetNamedPortsInstanceGroupRequest,Operation,Operation> setNamedPortsOperationCallable()
- Overrides:
setNamedPortsOperationCallablein classInstanceGroupsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classInstanceGroupsStub
-
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
-
-