Class HttpJsonAddressesStub (1.47.0)

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.

Inheritance

java.lang.Object > AddressesStub > HttpJsonAddressesStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonAddressesStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonAddressesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAddressesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAddressesStub
Exceptions
TypeDescription
IOException

create(AddressesStubSettings settings)

public static final HttpJsonAddressesStub create(AddressesStubSettings settings)
Parameter
NameDescription
settingsAddressesStubSettings
Returns
TypeDescription
HttpJsonAddressesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonAddressesStub(AddressesStubSettings settings, ClientContext clientContext)

protected HttpJsonAddressesStub(AddressesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsAddressesStubSettings
clientContextClientContext

HttpJsonAddressesStub(AddressesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAddressesStub(AddressesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsAddressesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListAddressesRequest,AddressAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListAddressesRequest,AddressAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListAddressesRequest,AddressesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListAddressesRequest,AggregatedListPagedResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteAddressRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteAddressRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteAddressRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteAddressRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetAddressRequest,Address> getCallable()
Returns
TypeDescription
UnaryCallable<GetAddressRequest,Address>
Overrides

insertCallable()

public UnaryCallable<InsertAddressRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertAddressRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertAddressRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertAddressRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListAddressesRequest,AddressList> listCallable()
Returns
TypeDescription
UnaryCallable<ListAddressesRequest,AddressList>
Overrides

listPagedCallable()

public UnaryCallable<ListAddressesRequest,AddressesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAddressesRequest,ListPagedResponse>
Overrides

moveCallable()

public UnaryCallable<MoveAddressRequest,Operation> moveCallable()
Returns
TypeDescription
UnaryCallable<MoveAddressRequest,Operation>
Overrides

moveOperationCallable()

public OperationCallable<MoveAddressRequest,Operation,Operation> moveOperationCallable()
Returns
TypeDescription
OperationCallable<MoveAddressRequest,Operation,Operation>
Overrides

setLabelsCallable()

public UnaryCallable<SetLabelsAddressRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsAddressRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsAddressRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsAddressRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()