Class HttpJsonConversationsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2beta1.stub.ConversationsStub
-
- com.google.cloud.dialogflow.v2beta1.stub.HttpJsonConversationsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonConversationsStub extends ConversationsStub
REST stub implementation for the Conversations service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonConversationsStub, using the given settings.protected
HttpJsonConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonConversationsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
com.google.api.gax.rpc.UnaryCallable<BatchCreateMessagesRequest,BatchCreateMessagesResponse>
batchCreateMessagesCallable()
void
close()
com.google.api.gax.rpc.UnaryCallable<CompleteConversationRequest,Conversation>
completeConversationCallable()
static HttpJsonConversationsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonConversationsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonConversationsStub
create(ConversationsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateConversationRequest,Conversation>
createConversationCallable()
com.google.api.gax.rpc.UnaryCallable<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse>
generateStatelessSummaryCallable()
com.google.api.gax.rpc.UnaryCallable<GetConversationRequest,Conversation>
getConversationCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ListConversationsResponse>
listConversationsCallable()
com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ConversationsClient.ListConversationsPagedResponse>
listConversationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ConversationsClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListMessagesRequest,ListMessagesResponse>
listMessagesCallable()
com.google.api.gax.rpc.UnaryCallable<ListMessagesRequest,ConversationsClient.ListMessagesPagedResponse>
listMessagesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<SearchKnowledgeRequest,SearchKnowledgeResponse>
searchKnowledgeCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse>
suggestConversationSummaryCallable()
-
-
-
Constructor Detail
-
HttpJsonConversationsStub
protected HttpJsonConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonConversationsStub, 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
-
HttpJsonConversationsStub
protected HttpJsonConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonConversationsStub, 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 Detail
-
create
public static final HttpJsonConversationsStub create(ConversationsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonConversationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonConversationsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createConversationCallable
public com.google.api.gax.rpc.UnaryCallable<CreateConversationRequest,Conversation> createConversationCallable()
- Overrides:
createConversationCallable
in classConversationsStub
-
listConversationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
- Overrides:
listConversationsCallable
in classConversationsStub
-
listConversationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ConversationsClient.ListConversationsPagedResponse> listConversationsPagedCallable()
- Overrides:
listConversationsPagedCallable
in classConversationsStub
-
getConversationCallable
public com.google.api.gax.rpc.UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
- Overrides:
getConversationCallable
in classConversationsStub
-
completeConversationCallable
public com.google.api.gax.rpc.UnaryCallable<CompleteConversationRequest,Conversation> completeConversationCallable()
- Overrides:
completeConversationCallable
in classConversationsStub
-
batchCreateMessagesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCreateMessagesRequest,BatchCreateMessagesResponse> batchCreateMessagesCallable()
- Overrides:
batchCreateMessagesCallable
in classConversationsStub
-
listMessagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListMessagesRequest,ListMessagesResponse> listMessagesCallable()
- Overrides:
listMessagesCallable
in classConversationsStub
-
listMessagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMessagesRequest,ConversationsClient.ListMessagesPagedResponse> listMessagesPagedCallable()
- Overrides:
listMessagesPagedCallable
in classConversationsStub
-
suggestConversationSummaryCallable
public com.google.api.gax.rpc.UnaryCallable<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse> suggestConversationSummaryCallable()
- Overrides:
suggestConversationSummaryCallable
in classConversationsStub
-
generateStatelessSummaryCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse> generateStatelessSummaryCallable()
- Overrides:
generateStatelessSummaryCallable
in classConversationsStub
-
searchKnowledgeCallable
public com.google.api.gax.rpc.UnaryCallable<SearchKnowledgeRequest,SearchKnowledgeResponse> searchKnowledgeCallable()
- Overrides:
searchKnowledgeCallable
in classConversationsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classConversationsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ConversationsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classConversationsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classConversationsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classConversationsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-