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 protected
GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcVpcAccessServiceStub, using the given settings.protected
GrpcVpcAccessServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcVpcAccessServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcVpcAccessServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcVpcAccessServiceStub
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.longrunning.stub.GrpcOperationsStub
getOperationsStub()
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
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:
getOperationsStub
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
-
-