Class HttpJsonGlobalAddressesStub (1.30.0)

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.

Inheritance

java.lang.Object > GlobalAddressesStub > HttpJsonGlobalAddressesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(GlobalAddressesStubSettings settings)

public static final HttpJsonGlobalAddressesStub create(GlobalAddressesStubSettings settings)
Parameter
NameDescription
settingsGlobalAddressesStubSettings
Returns
TypeDescription
HttpJsonGlobalAddressesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, ClientContext clientContext)

protected HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsGlobalAddressesStubSettings
clientContextClientContext

HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonGlobalAddressesStub(GlobalAddressesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsGlobalAddressesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

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<DeleteGlobalAddressRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteGlobalAddressRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

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

listPagedCallable()

public UnaryCallable<ListGlobalAddressesRequest,GlobalAddressesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListGlobalAddressesRequest,ListPagedResponse>
Overrides

setLabelsCallable()

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

setLabelsOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()