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 protectedHttpJsonRoutersStub(RoutersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonRoutersStub, using the given settings.protectedHttpJsonRoutersStub(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:
aggregatedListCallablein classRoutersStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListRoutersRequest,RoutersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classRoutersStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRouterRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classRoutersStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRouterRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classRoutersStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetRouterRequest,Router> getCallable()
- Overrides:
getCallablein classRoutersStub
-
getNatMappingInfoCallable
public com.google.api.gax.rpc.UnaryCallable<GetNatMappingInfoRoutersRequest,VmEndpointNatMappingsList> getNatMappingInfoCallable()
- Overrides:
getNatMappingInfoCallablein classRoutersStub
-
getNatMappingInfoPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GetNatMappingInfoRoutersRequest,RoutersClient.GetNatMappingInfoPagedResponse> getNatMappingInfoPagedCallable()
- Overrides:
getNatMappingInfoPagedCallablein classRoutersStub
-
getRouterStatusCallable
public com.google.api.gax.rpc.UnaryCallable<GetRouterStatusRouterRequest,RouterStatusResponse> getRouterStatusCallable()
- Overrides:
getRouterStatusCallablein classRoutersStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertRouterRequest,Operation> insertCallable()
- Overrides:
insertCallablein classRoutersStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertRouterRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classRoutersStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,RouterList> listCallable()
- Overrides:
listCallablein classRoutersStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,RoutersClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classRoutersStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchRouterRequest,Operation> patchCallable()
- Overrides:
patchCallablein classRoutersStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchRouterRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classRoutersStub
-
previewCallable
public com.google.api.gax.rpc.UnaryCallable<PreviewRouterRequest,RoutersPreviewResponse> previewCallable()
- Overrides:
previewCallablein classRoutersStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRouterRequest,Operation> updateCallable()
- Overrides:
updateCallablein classRoutersStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRouterRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallablein classRoutersStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-