Class GrpcVpcAccessServiceStub (2.48.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcVpcAccessServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcVpcAccessServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcVpcAccessServiceStub
Exceptions
Type Description
IOException

create(VpcAccessServiceStubSettings settings)

public static final GrpcVpcAccessServiceStub create(VpcAccessServiceStubSettings settings)
Parameter
Name Description
settings VpcAccessServiceStubSettings
Returns
Type Description
GrpcVpcAccessServiceStub
Exceptions
Type Description
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
Name Description
settings VpcAccessServiceStubSettings
clientContext ClientContext

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
Name Description
settings VpcAccessServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createConnectorCallable()

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

createConnectorOperationCallable()

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

deleteConnectorCallable()

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

deleteConnectorOperationCallable()

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

getConnectorCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listConnectorsCallable()

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

listConnectorsPagedCallable()

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

listLocationsCallable()

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

listLocationsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()