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 protectedHttpJsonConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonConversationsStub, using the given settings.protectedHttpJsonConversationsStub(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 booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<BatchCreateMessagesRequest,BatchCreateMessagesResponse>batchCreateMessagesCallable()voidclose()com.google.api.gax.rpc.UnaryCallable<CompleteConversationRequest,Conversation>completeConversationCallable()static HttpJsonConversationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonConversationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonConversationsStubcreate(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()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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:
createConversationCallablein classConversationsStub
-
listConversationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
- Overrides:
listConversationsCallablein classConversationsStub
-
listConversationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ConversationsClient.ListConversationsPagedResponse> listConversationsPagedCallable()
- Overrides:
listConversationsPagedCallablein classConversationsStub
-
getConversationCallable
public com.google.api.gax.rpc.UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
- Overrides:
getConversationCallablein classConversationsStub
-
completeConversationCallable
public com.google.api.gax.rpc.UnaryCallable<CompleteConversationRequest,Conversation> completeConversationCallable()
- Overrides:
completeConversationCallablein classConversationsStub
-
batchCreateMessagesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCreateMessagesRequest,BatchCreateMessagesResponse> batchCreateMessagesCallable()
- Overrides:
batchCreateMessagesCallablein classConversationsStub
-
listMessagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListMessagesRequest,ListMessagesResponse> listMessagesCallable()
- Overrides:
listMessagesCallablein classConversationsStub
-
listMessagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMessagesRequest,ConversationsClient.ListMessagesPagedResponse> listMessagesPagedCallable()
- Overrides:
listMessagesPagedCallablein classConversationsStub
-
suggestConversationSummaryCallable
public com.google.api.gax.rpc.UnaryCallable<SuggestConversationSummaryRequest,SuggestConversationSummaryResponse> suggestConversationSummaryCallable()
- Overrides:
suggestConversationSummaryCallablein classConversationsStub
-
generateStatelessSummaryCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateStatelessSummaryRequest,GenerateStatelessSummaryResponse> generateStatelessSummaryCallable()
- Overrides:
generateStatelessSummaryCallablein classConversationsStub
-
searchKnowledgeCallable
public com.google.api.gax.rpc.UnaryCallable<SearchKnowledgeRequest,SearchKnowledgeResponse> searchKnowledgeCallable()
- Overrides:
searchKnowledgeCallablein classConversationsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classConversationsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ConversationsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classConversationsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classConversationsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-