Class GrpcVpcAccessServiceStub (2.42.0)

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.

Inheritance

java.lang.Object > VpcAccessServiceStub > GrpcVpcAccessServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcVpcAccessServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcVpcAccessServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcVpcAccessServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcVpcAccessServiceStub
Exceptions
TypeDescription
IOException

create(VpcAccessServiceStubSettings settings)

public static final GrpcVpcAccessServiceStub create(VpcAccessServiceStubSettings settings)
Parameter
NameDescription
settingsVpcAccessServiceStubSettings
Returns
TypeDescription
GrpcVpcAccessServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, ClientContext clientContext)

protected GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsVpcAccessServiceStubSettings
clientContextClientContext

GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcVpcAccessServiceStub(VpcAccessServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsVpcAccessServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createConnectorCallable()

public UnaryCallable<CreateConnectorRequest,Operation> createConnectorCallable()
Returns
TypeDescription
UnaryCallable<CreateConnectorRequest,Operation>
Overrides

createConnectorOperationCallable()

public OperationCallable<CreateConnectorRequest,Connector,OperationMetadata> createConnectorOperationCallable()
Returns
TypeDescription
OperationCallable<CreateConnectorRequest,Connector,OperationMetadata>
Overrides

deleteConnectorCallable()

public UnaryCallable<DeleteConnectorRequest,Operation> deleteConnectorCallable()
Returns
TypeDescription
UnaryCallable<DeleteConnectorRequest,Operation>
Overrides

deleteConnectorOperationCallable()

public OperationCallable<DeleteConnectorRequest,Empty,OperationMetadata> deleteConnectorOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteConnectorRequest,Empty,OperationMetadata>
Overrides

getConnectorCallable()

public UnaryCallable<GetConnectorRequest,Connector> getConnectorCallable()
Returns
TypeDescription
UnaryCallable<GetConnectorRequest,Connector>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConnectorsCallable()

public UnaryCallable<ListConnectorsRequest,ListConnectorsResponse> listConnectorsCallable()
Returns
TypeDescription
UnaryCallable<ListConnectorsRequest,ListConnectorsResponse>
Overrides

listConnectorsPagedCallable()

public UnaryCallable<ListConnectorsRequest,VpcAccessServiceClient.ListConnectorsPagedResponse> listConnectorsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConnectorsRequest,ListConnectorsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,VpcAccessServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()