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 protected
HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonInstanceGroupsStub, using the given settings.protected
HttpJsonInstanceGroupsStub(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:
addInstancesCallable
in classInstanceGroupsStub
-
addInstancesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddInstancesInstanceGroupRequest,Operation,Operation> addInstancesOperationCallable()
- Overrides:
addInstancesOperationCallable
in classInstanceGroupsStub
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classInstanceGroupsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classInstanceGroupsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceGroupRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classInstanceGroupsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceGroupRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classInstanceGroupsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceGroupRequest,InstanceGroup> getCallable()
- Overrides:
getCallable
in classInstanceGroupsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertInstanceGroupRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classInstanceGroupsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertInstanceGroupRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classInstanceGroupsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceGroupsRequest,InstanceGroupList> listCallable()
- Overrides:
listCallable
in classInstanceGroupsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceGroupsRequest,InstanceGroupsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classInstanceGroupsStub
-
listInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsListInstances> listInstancesCallable()
- Overrides:
listInstancesCallable
in classInstanceGroupsStub
-
listInstancesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsClient.ListInstancesPagedResponse> listInstancesPagedCallable()
- Overrides:
listInstancesPagedCallable
in classInstanceGroupsStub
-
removeInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveInstancesInstanceGroupRequest,Operation> removeInstancesCallable()
- Overrides:
removeInstancesCallable
in classInstanceGroupsStub
-
removeInstancesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveInstancesInstanceGroupRequest,Operation,Operation> removeInstancesOperationCallable()
- Overrides:
removeInstancesOperationCallable
in classInstanceGroupsStub
-
setNamedPortsCallable
public com.google.api.gax.rpc.UnaryCallable<SetNamedPortsInstanceGroupRequest,Operation> setNamedPortsCallable()
- Overrides:
setNamedPortsCallable
in classInstanceGroupsStub
-
setNamedPortsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetNamedPortsInstanceGroupRequest,Operation,Operation> setNamedPortsOperationCallable()
- Overrides:
setNamedPortsOperationCallable
in classInstanceGroupsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-