Class HttpJsonConversationDatasetsStub (4.7.5)

public class HttpJsonConversationDatasetsStub extends ConversationDatasetsStub

REST stub implementation for the ConversationDatasets service API.

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

Inheritance

java.lang.Object > ConversationDatasetsStub > HttpJsonConversationDatasetsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ConversationDatasetsStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext)

protected HttpJsonConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext)

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

HttpJsonConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonConversationDatasetsStub(ConversationDatasetsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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()