Class GrpcConnectionServiceStub (2.12.0)

public class GrpcConnectionServiceStub extends ConnectionServiceStub

gRPC stub implementation for the ConnectionService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ConnectionServiceStub > GrpcConnectionServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ConnectionServiceStubSettings settings)

public static final GrpcConnectionServiceStub create(ConnectionServiceStubSettings settings)
Parameter
NameDescription
settingsConnectionServiceStubSettings
Returns
TypeDescription
GrpcConnectionServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

protected GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConnectionServiceStub, 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
settingsConnectionServiceStubSettings
clientContextClientContext

GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcConnectionServiceStub, 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
settingsConnectionServiceStubSettings
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

createConnectionCallable()

public UnaryCallable<CreateConnectionRequest,Connection> createConnectionCallable()
Returns
TypeDescription
UnaryCallable<CreateConnectionRequest,Connection>
Overrides

deleteConnectionCallable()

public UnaryCallable<DeleteConnectionRequest,Empty> deleteConnectionCallable()
Returns
TypeDescription
UnaryCallable<DeleteConnectionRequest,Empty>
Overrides

getConnectionCallable()

public UnaryCallable<GetConnectionRequest,Connection> getConnectionCallable()
Returns
TypeDescription
UnaryCallable<GetConnectionRequest,Connection>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConnectionsCallable()

public UnaryCallable<ListConnectionsRequest,ListConnectionsResponse> listConnectionsCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionsRequest,ListConnectionsResponse>
Overrides

listConnectionsPagedCallable()

public UnaryCallable<ListConnectionsRequest,ConnectionServiceClient.ListConnectionsPagedResponse> listConnectionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionsRequest,ListConnectionsPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateConnectionCallable()

public UnaryCallable<UpdateConnectionRequest,Connection> updateConnectionCallable()
Returns
TypeDescription
UnaryCallable<UpdateConnectionRequest,Connection>
Overrides