Class GrpcConversationsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2.stub.ConversationsStub
-
- com.google.cloud.dialogflow.v2.stub.GrpcConversationsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcConversationsStub extends ConversationsStub
gRPC 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 protectedGrpcConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcConversationsStub, using the given settings.protectedGrpcConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcConversationsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()com.google.api.gax.rpc.UnaryCallable<CompleteConversationRequest,Conversation>completeConversationCallable()static GrpcConversationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcConversationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcConversationsStubcreate(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()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()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
-
GrpcConversationsStub
protected GrpcConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcConversationsStub, 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
-
GrpcConversationsStub
protected GrpcConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcConversationsStub, 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 GrpcConversationsStub create(ConversationsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcConversationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcConversationsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
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
-
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
-
-