Class HttpJsonConnectionServiceStub (2.16.0)

public class HttpJsonConnectionServiceStub extends ConnectionServiceStub

REST stub implementation for the ConnectionService service API.

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

Inheritance

java.lang.Object > ConnectionServiceStub > HttpJsonConnectionServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonConnectionServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonConnectionServiceStub
Exceptions
TypeDescription
IOException

create(ConnectionServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonConnectionServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

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