Package com.google.cloud.compute.v1.stub
Class HttpJsonRoutersStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.RoutersStub
-
- com.google.cloud.compute.v1.stub.HttpJsonRoutersStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonRoutersStub extends RoutersStub
REST stub implementation for the Routers service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonRoutersStub(RoutersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRoutersStub, using the given settings.protected
HttpJsonRoutersStub(RoutersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRoutersStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonRoutersStub
protected HttpJsonRoutersStub(RoutersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonRoutersStub, 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
-
HttpJsonRoutersStub
protected HttpJsonRoutersStub(RoutersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonRoutersStub, 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 HttpJsonRoutersStub create(RoutersStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRoutersStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRoutersStub 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<AggregatedListRoutersRequest,RouterAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classRoutersStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListRoutersRequest,RoutersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classRoutersStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRouterRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classRoutersStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRouterRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classRoutersStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetRouterRequest,Router> getCallable()
- Overrides:
getCallable
in classRoutersStub
-
getNatMappingInfoCallable
public com.google.api.gax.rpc.UnaryCallable<GetNatMappingInfoRoutersRequest,VmEndpointNatMappingsList> getNatMappingInfoCallable()
- Overrides:
getNatMappingInfoCallable
in classRoutersStub
-
getNatMappingInfoPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GetNatMappingInfoRoutersRequest,RoutersClient.GetNatMappingInfoPagedResponse> getNatMappingInfoPagedCallable()
- Overrides:
getNatMappingInfoPagedCallable
in classRoutersStub
-
getRouterStatusCallable
public com.google.api.gax.rpc.UnaryCallable<GetRouterStatusRouterRequest,RouterStatusResponse> getRouterStatusCallable()
- Overrides:
getRouterStatusCallable
in classRoutersStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertRouterRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classRoutersStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertRouterRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classRoutersStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,RouterList> listCallable()
- Overrides:
listCallable
in classRoutersStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,RoutersClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classRoutersStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchRouterRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classRoutersStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchRouterRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classRoutersStub
-
previewCallable
public com.google.api.gax.rpc.UnaryCallable<PreviewRouterRequest,RoutersPreviewResponse> previewCallable()
- Overrides:
previewCallable
in classRoutersStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRouterRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classRoutersStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRouterRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classRoutersStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classRoutersStub
-
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
-
-