Package com.google.cloud.compute.v1.stub
Class HttpJsonForwardingRulesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.ForwardingRulesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonForwardingRulesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonForwardingRulesStub extends ForwardingRulesStub
REST stub implementation for the ForwardingRules service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonForwardingRulesStub(ForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonForwardingRulesStub, using the given settings.protected
HttpJsonForwardingRulesStub(ForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonForwardingRulesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonForwardingRulesStub
protected HttpJsonForwardingRulesStub(ForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonForwardingRulesStub, 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
-
HttpJsonForwardingRulesStub
protected HttpJsonForwardingRulesStub(ForwardingRulesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonForwardingRulesStub, 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 HttpJsonForwardingRulesStub create(ForwardingRulesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonForwardingRulesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonForwardingRulesStub 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()
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListForwardingRulesRequest,ForwardingRuleAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classForwardingRulesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListForwardingRulesRequest,ForwardingRulesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classForwardingRulesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteForwardingRuleRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classForwardingRulesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteForwardingRuleRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classForwardingRulesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetForwardingRuleRequest,ForwardingRule> getCallable()
- Overrides:
getCallable
in classForwardingRulesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertForwardingRuleRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classForwardingRulesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertForwardingRuleRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classForwardingRulesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListForwardingRulesRequest,ForwardingRuleList> listCallable()
- Overrides:
listCallable
in classForwardingRulesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListForwardingRulesRequest,ForwardingRulesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classForwardingRulesStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchForwardingRuleRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classForwardingRulesStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchForwardingRuleRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classForwardingRulesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsForwardingRuleRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classForwardingRulesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsForwardingRuleRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classForwardingRulesStub
-
setTargetCallable
public com.google.api.gax.rpc.UnaryCallable<SetTargetForwardingRuleRequest,Operation> setTargetCallable()
- Overrides:
setTargetCallable
in classForwardingRulesStub
-
setTargetOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetTargetForwardingRuleRequest,Operation,Operation> setTargetOperationCallable()
- Overrides:
setTargetOperationCallable
in classForwardingRulesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classForwardingRulesStub
-
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
-
-