Package com.google.cloud.compute.v1.stub
Class HttpJsonGlobalAddressesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.GlobalAddressesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonGlobalAddressesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonGlobalAddressesStub extends GlobalAddressesStub
REST stub implementation for the GlobalAddresses service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonGlobalAddressesStub, using the given settings.protectedHttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonGlobalAddressesStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonGlobalAddressesStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonGlobalAddressesStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonGlobalAddressesStubcreate(GlobalAddressesStubSettings settings)com.google.api.gax.rpc.UnaryCallable<DeleteGlobalAddressRequest,Operation>deleteCallable()com.google.api.gax.rpc.OperationCallable<DeleteGlobalAddressRequest,Operation,Operation>deleteOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetGlobalAddressRequest,Address>getCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<InsertGlobalAddressRequest,Operation>insertCallable()com.google.api.gax.rpc.OperationCallable<InsertGlobalAddressRequest,Operation,Operation>insertOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListGlobalAddressesRequest,AddressList>listCallable()com.google.api.gax.rpc.UnaryCallable<ListGlobalAddressesRequest,GlobalAddressesClient.ListPagedResponse>listPagedCallable()com.google.api.gax.rpc.UnaryCallable<MoveGlobalAddressRequest,Operation>moveCallable()com.google.api.gax.rpc.OperationCallable<MoveGlobalAddressRequest,Operation,Operation>moveOperationCallable()com.google.api.gax.rpc.UnaryCallable<SetLabelsGlobalAddressRequest,Operation>setLabelsCallable()com.google.api.gax.rpc.OperationCallable<SetLabelsGlobalAddressRequest,Operation,Operation>setLabelsOperationCallable()voidshutdown()voidshutdownNow()
-
-
-
Constructor Detail
-
HttpJsonGlobalAddressesStub
protected HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonGlobalAddressesStub, 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
-
HttpJsonGlobalAddressesStub
protected HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonGlobalAddressesStub, 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 HttpJsonGlobalAddressesStub create(GlobalAddressesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonGlobalAddressesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonGlobalAddressesStub 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<DeleteGlobalAddressRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classGlobalAddressesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteGlobalAddressRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classGlobalAddressesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetGlobalAddressRequest,Address> getCallable()
- Overrides:
getCallablein classGlobalAddressesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertGlobalAddressRequest,Operation> insertCallable()
- Overrides:
insertCallablein classGlobalAddressesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertGlobalAddressRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classGlobalAddressesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListGlobalAddressesRequest,AddressList> listCallable()
- Overrides:
listCallablein classGlobalAddressesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListGlobalAddressesRequest,GlobalAddressesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classGlobalAddressesStub
-
moveCallable
public com.google.api.gax.rpc.UnaryCallable<MoveGlobalAddressRequest,Operation> moveCallable()
- Overrides:
moveCallablein classGlobalAddressesStub
-
moveOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveGlobalAddressRequest,Operation,Operation> moveOperationCallable()
- Overrides:
moveOperationCallablein classGlobalAddressesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsGlobalAddressRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classGlobalAddressesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsGlobalAddressRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classGlobalAddressesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGlobalAddressesStub
-
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
-
-