Class GrpcVpcAccessServiceStub
- java.lang.Object
-
- com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStub
-
- com.google.cloud.vpcaccess.v1.stub.GrpcVpcAccessServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcVpcAccessServiceStub extends VpcAccessServiceStub
gRPC 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 protectedGrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcVpcAccessServiceStub, using the given settings.protectedGrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcVpcAccessServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcVpcAccessServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcVpcAccessServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcVpcAccessServiceStubcreate(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.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()-
Methods inherited from class com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcVpcAccessServiceStub
protected GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcVpcAccessServiceStub, 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
-
GrpcVpcAccessServiceStub
protected GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcVpcAccessServiceStub, 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 GrpcVpcAccessServiceStub create(VpcAccessServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcVpcAccessServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcVpcAccessServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classVpcAccessServiceStub
-
createConnectorCallable
public com.google.api.gax.rpc.UnaryCallable<CreateConnectorRequest,com.google.longrunning.Operation> createConnectorCallable()
- Overrides:
createConnectorCallablein classVpcAccessServiceStub
-
createConnectorOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateConnectorRequest,Connector,OperationMetadata> createConnectorOperationCallable()
- Overrides:
createConnectorOperationCallablein classVpcAccessServiceStub
-
getConnectorCallable
public com.google.api.gax.rpc.UnaryCallable<GetConnectorRequest,Connector> getConnectorCallable()
- Overrides:
getConnectorCallablein classVpcAccessServiceStub
-
listConnectorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListConnectorsRequest,ListConnectorsResponse> listConnectorsCallable()
- Overrides:
listConnectorsCallablein classVpcAccessServiceStub
-
listConnectorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListConnectorsRequest,VpcAccessServiceClient.ListConnectorsPagedResponse> listConnectorsPagedCallable()
- Overrides:
listConnectorsPagedCallablein classVpcAccessServiceStub
-
deleteConnectorCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteConnectorRequest,com.google.longrunning.Operation> deleteConnectorCallable()
- Overrides:
deleteConnectorCallablein classVpcAccessServiceStub
-
deleteConnectorOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteConnectorRequest,com.google.protobuf.Empty,OperationMetadata> deleteConnectorOperationCallable()
- Overrides:
deleteConnectorOperationCallablein classVpcAccessServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classVpcAccessServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,VpcAccessServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classVpcAccessServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-