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 protectedHttpJsonAddressesStub(AddressesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonAddressesStub, using the given settings.protectedHttpJsonAddressesStub(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()booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonAddressesStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonAddressesStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonAddressesStubcreate(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()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()
-
-
-
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:
aggregatedListCallablein classAddressesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListAddressesRequest,AddressesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classAddressesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAddressRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classAddressesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteAddressRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classAddressesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetAddressRequest,Address> getCallable()
- Overrides:
getCallablein classAddressesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertAddressRequest,Operation> insertCallable()
- Overrides:
insertCallablein classAddressesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertAddressRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classAddressesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListAddressesRequest,AddressList> listCallable()
- Overrides:
listCallablein classAddressesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAddressesRequest,AddressesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classAddressesStub
-
moveCallable
public com.google.api.gax.rpc.UnaryCallable<MoveAddressRequest,Operation> moveCallable()
- Overrides:
moveCallablein classAddressesStub
-
moveOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveAddressRequest,Operation,Operation> moveOperationCallable()
- Overrides:
moveOperationCallablein classAddressesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsAddressRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classAddressesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsAddressRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classAddressesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-