Class GrpcDatastreamStub (1.57.0)

public class GrpcDatastreamStub extends DatastreamStub

gRPC stub implementation for the Datastream service API.

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

Inheritance

java.lang.Object > DatastreamStub > GrpcDatastreamStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDatastreamStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDatastreamStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DatastreamStubSettings settings)

public static final GrpcDatastreamStub create(DatastreamStubSettings settings)
Parameter
Name Description
settings DatastreamStubSettings
Returns
Type Description
GrpcDatastreamStub
Exceptions
Type Description
IOException

Constructors

GrpcDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext)

protected GrpcDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDatastreamStub, 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 DatastreamStubSettings
clientContext ClientContext

GrpcDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createConnectionProfileCallable()

public UnaryCallable<CreateConnectionProfileRequest,Operation> createConnectionProfileCallable()
Overrides

createConnectionProfileOperationCallable()

public OperationCallable<CreateConnectionProfileRequest,ConnectionProfile,OperationMetadata> createConnectionProfileOperationCallable()
Overrides

createPrivateConnectionCallable()

public UnaryCallable<CreatePrivateConnectionRequest,Operation> createPrivateConnectionCallable()
Overrides

createPrivateConnectionOperationCallable()

public OperationCallable<CreatePrivateConnectionRequest,PrivateConnection,OperationMetadata> createPrivateConnectionOperationCallable()
Overrides

createRouteCallable()

public UnaryCallable<CreateRouteRequest,Operation> createRouteCallable()
Returns
Type Description
UnaryCallable<CreateRouteRequest,Operation>
Overrides

createRouteOperationCallable()

public OperationCallable<CreateRouteRequest,Route,OperationMetadata> createRouteOperationCallable()
Overrides

createStreamCallable()

public UnaryCallable<CreateStreamRequest,Operation> createStreamCallable()
Returns
Type Description
UnaryCallable<CreateStreamRequest,Operation>
Overrides

createStreamOperationCallable()

public OperationCallable<CreateStreamRequest,Stream,OperationMetadata> createStreamOperationCallable()
Overrides

deleteConnectionProfileCallable()

public UnaryCallable<DeleteConnectionProfileRequest,Operation> deleteConnectionProfileCallable()
Overrides

deleteConnectionProfileOperationCallable()

public OperationCallable<DeleteConnectionProfileRequest,Empty,OperationMetadata> deleteConnectionProfileOperationCallable()
Overrides

deletePrivateConnectionCallable()

public UnaryCallable<DeletePrivateConnectionRequest,Operation> deletePrivateConnectionCallable()
Overrides

deletePrivateConnectionOperationCallable()

public OperationCallable<DeletePrivateConnectionRequest,Empty,OperationMetadata> deletePrivateConnectionOperationCallable()
Overrides

deleteRouteCallable()

public UnaryCallable<DeleteRouteRequest,Operation> deleteRouteCallable()
Returns
Type Description
UnaryCallable<DeleteRouteRequest,Operation>
Overrides

deleteRouteOperationCallable()

public OperationCallable<DeleteRouteRequest,Empty,OperationMetadata> deleteRouteOperationCallable()
Overrides

deleteStreamCallable()

public UnaryCallable<DeleteStreamRequest,Operation> deleteStreamCallable()
Returns
Type Description
UnaryCallable<DeleteStreamRequest,Operation>
Overrides

deleteStreamOperationCallable()

public OperationCallable<DeleteStreamRequest,Empty,OperationMetadata> deleteStreamOperationCallable()
Overrides

discoverConnectionProfileCallable()

public UnaryCallable<DiscoverConnectionProfileRequest,DiscoverConnectionProfileResponse> discoverConnectionProfileCallable()
Overrides

fetchErrorsCallable()

public UnaryCallable<FetchErrorsRequest,Operation> fetchErrorsCallable()
Returns
Type Description
UnaryCallable<FetchErrorsRequest,Operation>
Overrides

fetchErrorsOperationCallable()

public OperationCallable<FetchErrorsRequest,FetchErrorsResponse,OperationMetadata> fetchErrorsOperationCallable()
Overrides

fetchStaticIpsCallable()

public UnaryCallable<FetchStaticIpsRequest,FetchStaticIpsResponse> fetchStaticIpsCallable()
Overrides

fetchStaticIpsPagedCallable()

public UnaryCallable<FetchStaticIpsRequest,DatastreamClient.FetchStaticIpsPagedResponse> fetchStaticIpsPagedCallable()
Overrides

getConnectionProfileCallable()

public UnaryCallable<GetConnectionProfileRequest,ConnectionProfile> getConnectionProfileCallable()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getPrivateConnectionCallable()

public UnaryCallable<GetPrivateConnectionRequest,PrivateConnection> getPrivateConnectionCallable()
Overrides

getRouteCallable()

public UnaryCallable<GetRouteRequest,Route> getRouteCallable()
Returns
Type Description
UnaryCallable<GetRouteRequest,Route>
Overrides

getStreamCallable()

public UnaryCallable<GetStreamRequest,Stream> getStreamCallable()
Returns
Type Description
UnaryCallable<GetStreamRequest,Stream>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listConnectionProfilesCallable()

public UnaryCallable<ListConnectionProfilesRequest,ListConnectionProfilesResponse> listConnectionProfilesCallable()
Overrides

listConnectionProfilesPagedCallable()

public UnaryCallable<ListConnectionProfilesRequest,DatastreamClient.ListConnectionProfilesPagedResponse> listConnectionProfilesPagedCallable()
Overrides

listPrivateConnectionsCallable()

public UnaryCallable<ListPrivateConnectionsRequest,ListPrivateConnectionsResponse> listPrivateConnectionsCallable()
Overrides

listPrivateConnectionsPagedCallable()

public UnaryCallable<ListPrivateConnectionsRequest,DatastreamClient.ListPrivateConnectionsPagedResponse> listPrivateConnectionsPagedCallable()
Overrides

listRoutesCallable()

public UnaryCallable<ListRoutesRequest,ListRoutesResponse> listRoutesCallable()
Overrides

listRoutesPagedCallable()

public UnaryCallable<ListRoutesRequest,DatastreamClient.ListRoutesPagedResponse> listRoutesPagedCallable()
Overrides

listStreamsCallable()

public UnaryCallable<ListStreamsRequest,ListStreamsResponse> listStreamsCallable()
Overrides

listStreamsPagedCallable()

public UnaryCallable<ListStreamsRequest,DatastreamClient.ListStreamsPagedResponse> listStreamsPagedCallable()
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateConnectionProfileCallable()

public UnaryCallable<UpdateConnectionProfileRequest,Operation> updateConnectionProfileCallable()
Overrides

updateConnectionProfileOperationCallable()

public OperationCallable<UpdateConnectionProfileRequest,ConnectionProfile,OperationMetadata> updateConnectionProfileOperationCallable()
Overrides

updateStreamCallable()

public UnaryCallable<UpdateStreamRequest,Operation> updateStreamCallable()
Returns
Type Description
UnaryCallable<UpdateStreamRequest,Operation>
Overrides

updateStreamOperationCallable()

public OperationCallable<UpdateStreamRequest,Stream,OperationMetadata> updateStreamOperationCallable()
Overrides