Class HttpJsonConnectionServiceStub
java.lang.Object
com.google.cloud.bigquery.connection.v1beta1.stub.ConnectionServiceStub
com.google.cloud.bigquery.connection.v1beta1.stub.HttpJsonConnectionServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonConnectionServiceStub, using the given settings.protectedHttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonConnectionServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonConnectionServiceStubcreate(ClientContext clientContext) static final HttpJsonConnectionServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonConnectionServiceStubcreate(ConnectionServiceStubSettings settings) UnaryCallable<ConnectionProto.DeleteConnectionRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidUnaryCallable<ConnectionProto.UpdateConnectionCredentialRequest,com.google.protobuf.Empty>
-
Constructor Details
-
HttpJsonConnectionServiceStub
protected HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
HttpJsonConnectionServiceStub
protected HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonConnectionServiceStub create(ConnectionServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonConnectionServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonConnectionServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createConnectionCallable
public UnaryCallable<ConnectionProto.CreateConnectionRequest,ConnectionProto.Connection> createConnectionCallable()- Overrides:
createConnectionCallablein classConnectionServiceStub
-
getConnectionCallable
public UnaryCallable<ConnectionProto.GetConnectionRequest,ConnectionProto.Connection> getConnectionCallable()- Overrides:
getConnectionCallablein classConnectionServiceStub
-
listConnectionsCallable
public UnaryCallable<ConnectionProto.ListConnectionsRequest,ConnectionProto.ListConnectionsResponse> listConnectionsCallable()- Overrides:
listConnectionsCallablein classConnectionServiceStub
-
updateConnectionCallable
public UnaryCallable<ConnectionProto.UpdateConnectionRequest,ConnectionProto.Connection> updateConnectionCallable()- Overrides:
updateConnectionCallablein classConnectionServiceStub
-
updateConnectionCredentialCallable
public UnaryCallable<ConnectionProto.UpdateConnectionCredentialRequest,com.google.protobuf.Empty> updateConnectionCredentialCallable()- Overrides:
updateConnectionCredentialCallablein classConnectionServiceStub
-
deleteConnectionCallable
public UnaryCallable<ConnectionProto.DeleteConnectionRequest,com.google.protobuf.Empty> deleteConnectionCallable()- Overrides:
deleteConnectionCallablein classConnectionServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classConnectionServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classConnectionServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classConnectionServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classConnectionServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-