Class GrpcDatastreamStub (1.45.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()
Returns
Type Description
UnaryCallable<CreateConnectionProfileRequest,Operation>
Overrides

createConnectionProfileOperationCallable()

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

createPrivateConnectionCallable()

public UnaryCallable<CreatePrivateConnectionRequest,Operation> createPrivateConnectionCallable()
Returns
Type Description
UnaryCallable<CreatePrivateConnectionRequest,Operation>
Overrides

createPrivateConnectionOperationCallable()

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

createRouteCallable()

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

createRouteOperationCallable()

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

createStreamCallable()

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

createStreamOperationCallable()

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

deleteConnectionProfileCallable()

public UnaryCallable<DeleteConnectionProfileRequest,Operation> deleteConnectionProfileCallable()
Returns
Type Description
UnaryCallable<DeleteConnectionProfileRequest,Operation>
Overrides

deleteConnectionProfileOperationCallable()

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

deletePrivateConnectionCallable()

public UnaryCallable<DeletePrivateConnectionRequest,Operation> deletePrivateConnectionCallable()
Returns
Type Description
UnaryCallable<DeletePrivateConnectionRequest,Operation>
Overrides

deletePrivateConnectionOperationCallable()

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

deleteRouteCallable()

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

deleteRouteOperationCallable()

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

deleteStreamCallable()

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

deleteStreamOperationCallable()

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

discoverConnectionProfileCallable()

public UnaryCallable<DiscoverConnectionProfileRequest,DiscoverConnectionProfileResponse> discoverConnectionProfileCallable()
Returns
Type Description
UnaryCallable<DiscoverConnectionProfileRequest,DiscoverConnectionProfileResponse>
Overrides

fetchErrorsCallable()

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

fetchErrorsOperationCallable()

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

fetchStaticIpsCallable()

public UnaryCallable<FetchStaticIpsRequest,FetchStaticIpsResponse> fetchStaticIpsCallable()
Returns
Type Description
UnaryCallable<FetchStaticIpsRequest,FetchStaticIpsResponse>
Overrides

fetchStaticIpsPagedCallable()

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

getConnectionProfileCallable()

public UnaryCallable<GetConnectionProfileRequest,ConnectionProfile> getConnectionProfileCallable()
Returns
Type Description
UnaryCallable<GetConnectionProfileRequest,ConnectionProfile>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getPrivateConnectionCallable()

public UnaryCallable<GetPrivateConnectionRequest,PrivateConnection> getPrivateConnectionCallable()
Returns
Type Description
UnaryCallable<GetPrivateConnectionRequest,PrivateConnection>
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()
Returns
Type Description
UnaryCallable<ListConnectionProfilesRequest,ListConnectionProfilesResponse>
Overrides

listConnectionProfilesPagedCallable()

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

listPrivateConnectionsCallable()

public UnaryCallable<ListPrivateConnectionsRequest,ListPrivateConnectionsResponse> listPrivateConnectionsCallable()
Returns
Type Description
UnaryCallable<ListPrivateConnectionsRequest,ListPrivateConnectionsResponse>
Overrides

listPrivateConnectionsPagedCallable()

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

listRoutesCallable()

public UnaryCallable<ListRoutesRequest,ListRoutesResponse> listRoutesCallable()
Returns
Type Description
UnaryCallable<ListRoutesRequest,ListRoutesResponse>
Overrides

listRoutesPagedCallable()

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

listStreamsCallable()

public UnaryCallable<ListStreamsRequest,ListStreamsResponse> listStreamsCallable()
Returns
Type Description
UnaryCallable<ListStreamsRequest,ListStreamsResponse>
Overrides

listStreamsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateConnectionProfileCallable()

public UnaryCallable<UpdateConnectionProfileRequest,Operation> updateConnectionProfileCallable()
Returns
Type Description
UnaryCallable<UpdateConnectionProfileRequest,Operation>
Overrides

updateConnectionProfileOperationCallable()

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

updateStreamCallable()

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

updateStreamOperationCallable()

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