Class HttpJsonAddressesStub (1.58.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonAddressesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAddressesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonAddressesStub
Exceptions
Type Description
IOException

create(AddressesStubSettings settings)

public static final HttpJsonAddressesStub create(AddressesStubSettings settings)
Parameter
Name Description
settings AddressesStubSettings
Returns
Type Description
HttpJsonAddressesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings AddressesStubSettings
clientContext ClientContext

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
Name Description
settings AddressesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

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

aggregatedListPagedCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

moveCallable()

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

moveOperationCallable()

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

setLabelsCallable()

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

setLabelsOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()