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 protected
HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonGlobalAddressesStub, using the given settings.protected
HttpJsonGlobalAddressesStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonGlobalAddressesStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonGlobalAddressesStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonGlobalAddressesStub
create(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()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
-
-
-
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:
deleteCallable
in classGlobalAddressesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteGlobalAddressRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classGlobalAddressesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetGlobalAddressRequest,Address> getCallable()
- Overrides:
getCallable
in classGlobalAddressesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertGlobalAddressRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classGlobalAddressesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertGlobalAddressRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classGlobalAddressesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListGlobalAddressesRequest,AddressList> listCallable()
- Overrides:
listCallable
in classGlobalAddressesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListGlobalAddressesRequest,GlobalAddressesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classGlobalAddressesStub
-
moveCallable
public com.google.api.gax.rpc.UnaryCallable<MoveGlobalAddressRequest,Operation> moveCallable()
- Overrides:
moveCallable
in classGlobalAddressesStub
-
moveOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveGlobalAddressRequest,Operation,Operation> moveOperationCallable()
- Overrides:
moveOperationCallable
in classGlobalAddressesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsGlobalAddressRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classGlobalAddressesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsGlobalAddressRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classGlobalAddressesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-