Package com.google.cloud.compute.v1.stub
Class HttpJsonGlobalForwardingRulesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.GlobalForwardingRulesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonGlobalForwardingRulesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonGlobalForwardingRulesStub, using the given settings.protectedHttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonGlobalForwardingRulesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonGlobalForwardingRulesStub
protected HttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonGlobalForwardingRulesStub
protected HttpJsonGlobalForwardingRulesStub(GlobalForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonGlobalForwardingRulesStub create(GlobalForwardingRulesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonGlobalForwardingRulesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonGlobalForwardingRulesStub 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()
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteGlobalForwardingRuleRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classGlobalForwardingRulesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteGlobalForwardingRuleRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classGlobalForwardingRulesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetGlobalForwardingRuleRequest,ForwardingRule> getCallable()
- Overrides:
getCallablein classGlobalForwardingRulesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertGlobalForwardingRuleRequest,Operation> insertCallable()
- Overrides:
insertCallablein classGlobalForwardingRulesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertGlobalForwardingRuleRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classGlobalForwardingRulesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListGlobalForwardingRulesRequest,ForwardingRuleList> listCallable()
- Overrides:
listCallablein classGlobalForwardingRulesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListGlobalForwardingRulesRequest,GlobalForwardingRulesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classGlobalForwardingRulesStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchGlobalForwardingRuleRequest,Operation> patchCallable()
- Overrides:
patchCallablein classGlobalForwardingRulesStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchGlobalForwardingRuleRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classGlobalForwardingRulesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsGlobalForwardingRuleRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classGlobalForwardingRulesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsGlobalForwardingRuleRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classGlobalForwardingRulesStub
-
setTargetCallable
public com.google.api.gax.rpc.UnaryCallable<SetTargetGlobalForwardingRuleRequest,Operation> setTargetCallable()
- Overrides:
setTargetCallablein classGlobalForwardingRulesStub
-
setTargetOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetTargetGlobalForwardingRuleRequest,Operation,Operation> setTargetOperationCallable()
- Overrides:
setTargetOperationCallablein classGlobalForwardingRulesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGlobalForwardingRulesStub
-
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
-
-