Class HttpJsonGlobalForwardingRulesStub (1.22.0)

public class HttpJsonGlobalForwardingRulesStub extends GlobalForwardingRulesStub

REST stub implementation for the GlobalForwardingRules service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > GlobalForwardingRulesStub > HttpJsonGlobalForwardingRulesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(GlobalForwardingRulesStubSettings settings)

public static final HttpJsonGlobalForwardingRulesStub create(GlobalForwardingRulesStubSettings settings)
Parameter
NameDescription
settingsGlobalForwardingRulesStubSettings
Returns
TypeDescription
HttpJsonGlobalForwardingRulesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, ClientContext clientContext)

protected HttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonGlobalForwardingRulesStub, 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
settingsGlobalForwardingRulesStubSettings
clientContextClientContext

HttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonGlobalForwardingRulesStub, 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
settingsGlobalForwardingRulesStubSettings
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<DeleteGlobalForwardingRuleRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteGlobalForwardingRuleRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetGlobalForwardingRuleRequest,ForwardingRule> getCallable()
Returns
TypeDescription
UnaryCallable<GetGlobalForwardingRuleRequest,ForwardingRule>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListGlobalForwardingRulesRequest,ForwardingRuleList> listCallable()
Returns
TypeDescription
UnaryCallable<ListGlobalForwardingRulesRequest,ForwardingRuleList>
Overrides

listPagedCallable()

public UnaryCallable<ListGlobalForwardingRulesRequest,GlobalForwardingRulesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListGlobalForwardingRulesRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchGlobalForwardingRuleRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchGlobalForwardingRuleRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchGlobalForwardingRuleRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchGlobalForwardingRuleRequest,Operation,Operation>
Overrides

setLabelsCallable()

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

setLabelsOperationCallable()

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

setTargetCallable()

public UnaryCallable<SetTargetGlobalForwardingRuleRequest,Operation> setTargetCallable()
Returns
TypeDescription
UnaryCallable<SetTargetGlobalForwardingRuleRequest,Operation>
Overrides

setTargetOperationCallable()

public OperationCallable<SetTargetGlobalForwardingRuleRequest,Operation,Operation> setTargetOperationCallable()
Returns
TypeDescription
OperationCallable<SetTargetGlobalForwardingRuleRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()