Class GrpcConversationDatasetsStub (4.5.11)

public class GrpcConversationDatasetsStub extends ConversationDatasetsStub

gRPC stub implementation for the ConversationDatasets service API.

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

Inheritance

java.lang.Object > ConversationDatasetsStub > GrpcConversationDatasetsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ConversationDatasetsStubSettings settings)

public static final GrpcConversationDatasetsStub create(ConversationDatasetsStubSettings settings)
Parameter
NameDescription
settingsConversationDatasetsStubSettings
Returns
TypeDescription
GrpcConversationDatasetsStub
Exceptions
TypeDescription
IOException

Constructors

GrpcConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext)

protected GrpcConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConversationDatasetsStub, 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
settingsConversationDatasetsStubSettings
clientContextClientContext

GrpcConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createConversationDatasetCallable()

public UnaryCallable<CreateConversationDatasetRequest,Operation> createConversationDatasetCallable()
Returns
TypeDescription
UnaryCallable<CreateConversationDatasetRequest,Operation>
Overrides

createConversationDatasetOperationCallable()

public OperationCallable<CreateConversationDatasetRequest,ConversationDataset,CreateConversationDatasetOperationMetadata> createConversationDatasetOperationCallable()
Returns
TypeDescription
OperationCallable<CreateConversationDatasetRequest,ConversationDataset,CreateConversationDatasetOperationMetadata>
Overrides

deleteConversationDatasetCallable()

public UnaryCallable<DeleteConversationDatasetRequest,Operation> deleteConversationDatasetCallable()
Returns
TypeDescription
UnaryCallable<DeleteConversationDatasetRequest,Operation>
Overrides

deleteConversationDatasetOperationCallable()

public OperationCallable<DeleteConversationDatasetRequest,Empty,DeleteConversationDatasetOperationMetadata> deleteConversationDatasetOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteConversationDatasetRequest,Empty,DeleteConversationDatasetOperationMetadata>
Overrides

getConversationDatasetCallable()

public UnaryCallable<GetConversationDatasetRequest,ConversationDataset> getConversationDatasetCallable()
Returns
TypeDescription
UnaryCallable<GetConversationDatasetRequest,ConversationDataset>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importConversationDataCallable()

public UnaryCallable<ImportConversationDataRequest,Operation> importConversationDataCallable()
Returns
TypeDescription
UnaryCallable<ImportConversationDataRequest,Operation>
Overrides

importConversationDataOperationCallable()

public OperationCallable<ImportConversationDataRequest,ImportConversationDataOperationResponse,ImportConversationDataOperationMetadata> importConversationDataOperationCallable()
Returns
TypeDescription
OperationCallable<ImportConversationDataRequest,ImportConversationDataOperationResponse,ImportConversationDataOperationMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConversationDatasetsCallable()

public UnaryCallable<ListConversationDatasetsRequest,ListConversationDatasetsResponse> listConversationDatasetsCallable()
Returns
TypeDescription
UnaryCallable<ListConversationDatasetsRequest,ListConversationDatasetsResponse>
Overrides

listConversationDatasetsPagedCallable()

public UnaryCallable<ListConversationDatasetsRequest,ConversationDatasetsClient.ListConversationDatasetsPagedResponse> listConversationDatasetsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConversationDatasetsRequest,ListConversationDatasetsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()