Package com.google.cloud.compute.v1.stub
Class HttpJsonAddressesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.AddressesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonAddressesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonAddressesStub extends AddressesStub
REST stub implementation for the Addresses service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonAddressesStub(AddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonAddressesStub, using the given settings.protected
HttpJsonAddressesStub(AddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonAddressesStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallable<AggregatedListAddressesRequest,AddressAggregatedList>
aggregatedListCallable()
com.google.api.gax.rpc.UnaryCallable<AggregatedListAddressesRequest,AddressesClient.AggregatedListPagedResponse>
aggregatedListPagedCallable()
boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonAddressesStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonAddressesStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonAddressesStub
create(AddressesStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<DeleteAddressRequest,Operation>
deleteCallable()
com.google.api.gax.rpc.OperationCallable<DeleteAddressRequest,Operation,Operation>
deleteOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetAddressRequest,Address>
getCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<InsertAddressRequest,Operation>
insertCallable()
com.google.api.gax.rpc.OperationCallable<InsertAddressRequest,Operation,Operation>
insertOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListAddressesRequest,AddressList>
listCallable()
com.google.api.gax.rpc.UnaryCallable<ListAddressesRequest,AddressesClient.ListPagedResponse>
listPagedCallable()
com.google.api.gax.rpc.UnaryCallable<MoveAddressRequest,Operation>
moveCallable()
com.google.api.gax.rpc.OperationCallable<MoveAddressRequest,Operation,Operation>
moveOperationCallable()
com.google.api.gax.rpc.UnaryCallable<SetLabelsAddressRequest,Operation>
setLabelsCallable()
com.google.api.gax.rpc.OperationCallable<SetLabelsAddressRequest,Operation,Operation>
setLabelsOperationCallable()
void
shutdown()
void
shutdownNow()
-
-
-
Constructor Detail
-
HttpJsonAddressesStub
protected HttpJsonAddressesStub(AddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonAddressesStub, 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
-
HttpJsonAddressesStub
protected HttpJsonAddressesStub(AddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonAddressesStub, 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 HttpJsonAddressesStub create(AddressesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAddressesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAddressesStub 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<AggregatedListAddressesRequest,AddressAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classAddressesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListAddressesRequest,AddressesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classAddressesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAddressRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classAddressesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteAddressRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classAddressesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetAddressRequest,Address> getCallable()
- Overrides:
getCallable
in classAddressesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertAddressRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classAddressesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertAddressRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classAddressesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListAddressesRequest,AddressList> listCallable()
- Overrides:
listCallable
in classAddressesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAddressesRequest,AddressesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classAddressesStub
-
moveCallable
public com.google.api.gax.rpc.UnaryCallable<MoveAddressRequest,Operation> moveCallable()
- Overrides:
moveCallable
in classAddressesStub
-
moveOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveAddressRequest,Operation,Operation> moveOperationCallable()
- Overrides:
moveOperationCallable
in classAddressesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsAddressRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classAddressesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsAddressRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classAddressesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classAddressesStub
-
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
-
-