Class GrpcConversationsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2beta1.stub.ConversationsStub
-
- com.google.cloud.dialogflow.v2beta1.stub.GrpcConversationsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @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 protected
GrpcConversationsStub(ConversationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcConversationsStub, using the given settings.protected
GrpcConversationsStub(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 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 GrpcConversationsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcConversationsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcConversationsStub
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()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
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
-
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:
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
-
-