Class HttpJsonVpcAccessServiceStub
- java.lang.Object
-
- com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStub
-
- com.google.cloud.vpcaccess.v1.stub.HttpJsonVpcAccessServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonVpcAccessServiceStub extends VpcAccessServiceStub
REST stub implementation for the VpcAccessService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonVpcAccessServiceStub, using the given settings.protected
HttpJsonVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonVpcAccessServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonVpcAccessServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonVpcAccessServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonVpcAccessServiceStub
create(VpcAccessServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateConnectorRequest,com.google.longrunning.Operation>
createConnectorCallable()
com.google.api.gax.rpc.OperationCallable<CreateConnectorRequest,Connector,OperationMetadata>
createConnectorOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteConnectorRequest,com.google.longrunning.Operation>
deleteConnectorCallable()
com.google.api.gax.rpc.OperationCallable<DeleteConnectorRequest,com.google.protobuf.Empty,OperationMetadata>
deleteConnectorOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetConnectorRequest,Connector>
getConnectorCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListConnectorsRequest,ListConnectorsResponse>
listConnectorsCallable()
com.google.api.gax.rpc.UnaryCallable<ListConnectorsRequest,VpcAccessServiceClient.ListConnectorsPagedResponse>
listConnectorsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,VpcAccessServiceClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
void
shutdown()
void
shutdownNow()
-
Methods inherited from class com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonVpcAccessServiceStub
protected HttpJsonVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonVpcAccessServiceStub, 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
-
HttpJsonVpcAccessServiceStub
protected HttpJsonVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonVpcAccessServiceStub, 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 HttpJsonVpcAccessServiceStub create(VpcAccessServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVpcAccessServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVpcAccessServiceStub 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()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classVpcAccessServiceStub
-
createConnectorCallable
public com.google.api.gax.rpc.UnaryCallable<CreateConnectorRequest,com.google.longrunning.Operation> createConnectorCallable()
- Overrides:
createConnectorCallable
in classVpcAccessServiceStub
-
createConnectorOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateConnectorRequest,Connector,OperationMetadata> createConnectorOperationCallable()
- Overrides:
createConnectorOperationCallable
in classVpcAccessServiceStub
-
getConnectorCallable
public com.google.api.gax.rpc.UnaryCallable<GetConnectorRequest,Connector> getConnectorCallable()
- Overrides:
getConnectorCallable
in classVpcAccessServiceStub
-
listConnectorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListConnectorsRequest,ListConnectorsResponse> listConnectorsCallable()
- Overrides:
listConnectorsCallable
in classVpcAccessServiceStub
-
listConnectorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListConnectorsRequest,VpcAccessServiceClient.ListConnectorsPagedResponse> listConnectorsPagedCallable()
- Overrides:
listConnectorsPagedCallable
in classVpcAccessServiceStub
-
deleteConnectorCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteConnectorRequest,com.google.longrunning.Operation> deleteConnectorCallable()
- Overrides:
deleteConnectorCallable
in classVpcAccessServiceStub
-
deleteConnectorOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteConnectorRequest,com.google.protobuf.Empty,OperationMetadata> deleteConnectorOperationCallable()
- Overrides:
deleteConnectorOperationCallable
in classVpcAccessServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classVpcAccessServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,VpcAccessServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classVpcAccessServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classVpcAccessServiceStub
-
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
-
-