com.google.cloud.dialogflow.v2beta1.ConversationsGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-dialogflow-v2beta1 Show documentation
Show all versions of grpc-google-cloud-dialogflow-v2beta1 Show documentation
GRPC library for grpc-google-cloud-dialogflow-v2beta1
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.dialogflow.v2beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Service for managing
* [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/dialogflow/v2beta1/conversation.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ConversationsGrpc {
private ConversationsGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.cloud.dialogflow.v2beta1.Conversations";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getCreateConversationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateConversation",
requestType = com.google.cloud.dialogflow.v2beta1.CreateConversationRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.Conversation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getCreateConversationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getCreateConversationMethod;
if ((getCreateConversationMethod = ConversationsGrpc.getCreateConversationMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getCreateConversationMethod = ConversationsGrpc.getCreateConversationMethod) == null) {
ConversationsGrpc.getCreateConversationMethod =
getCreateConversationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.Conversation
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("CreateConversation"))
.build();
}
}
}
return getCreateConversationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest,
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>
getListConversationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListConversations",
requestType = com.google.cloud.dialogflow.v2beta1.ListConversationsRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.ListConversationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest,
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>
getListConversationsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest,
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>
getListConversationsMethod;
if ((getListConversationsMethod = ConversationsGrpc.getListConversationsMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getListConversationsMethod = ConversationsGrpc.getListConversationsMethod) == null) {
ConversationsGrpc.getListConversationsMethod =
getListConversationsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("ListConversations"))
.build();
}
}
}
return getListConversationsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GetConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getGetConversationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConversation",
requestType = com.google.cloud.dialogflow.v2beta1.GetConversationRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.Conversation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GetConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getGetConversationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GetConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getGetConversationMethod;
if ((getGetConversationMethod = ConversationsGrpc.getGetConversationMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getGetConversationMethod = ConversationsGrpc.getGetConversationMethod) == null) {
ConversationsGrpc.getGetConversationMethod =
getGetConversationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.GetConversationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.Conversation
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("GetConversation"))
.build();
}
}
}
return getGetConversationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getCompleteConversationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CompleteConversation",
requestType = com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.Conversation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getCompleteConversationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>
getCompleteConversationMethod;
if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod)
== null) {
ConversationsGrpc.getCompleteConversationMethod =
getCompleteConversationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "CompleteConversation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.Conversation
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("CompleteConversation"))
.build();
}
}
}
return getCompleteConversationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest,
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>
getBatchCreateMessagesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchCreateMessages",
requestType = com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest,
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>
getBatchCreateMessagesMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest,
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>
getBatchCreateMessagesMethod;
if ((getBatchCreateMessagesMethod = ConversationsGrpc.getBatchCreateMessagesMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getBatchCreateMessagesMethod = ConversationsGrpc.getBatchCreateMessagesMethod)
== null) {
ConversationsGrpc.getBatchCreateMessagesMethod =
getBatchCreateMessagesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "BatchCreateMessages"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("BatchCreateMessages"))
.build();
}
}
}
return getBatchCreateMessagesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest,
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>
getListMessagesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListMessages",
requestType = com.google.cloud.dialogflow.v2beta1.ListMessagesRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.ListMessagesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest,
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>
getListMessagesMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest,
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>
getListMessagesMethod;
if ((getListMessagesMethod = ConversationsGrpc.getListMessagesMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getListMessagesMethod = ConversationsGrpc.getListMessagesMethod) == null) {
ConversationsGrpc.getListMessagesMethod =
getListMessagesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMessages"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("ListMessages"))
.build();
}
}
}
return getListMessagesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest,
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>
getSuggestConversationSummaryMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SuggestConversationSummary",
requestType = com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest,
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>
getSuggestConversationSummaryMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest,
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>
getSuggestConversationSummaryMethod;
if ((getSuggestConversationSummaryMethod =
ConversationsGrpc.getSuggestConversationSummaryMethod)
== null) {
synchronized (ConversationsGrpc.class) {
if ((getSuggestConversationSummaryMethod =
ConversationsGrpc.getSuggestConversationSummaryMethod)
== null) {
ConversationsGrpc.getSuggestConversationSummaryMethod =
getSuggestConversationSummaryMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "SuggestConversationSummary"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("SuggestConversationSummary"))
.build();
}
}
}
return getSuggestConversationSummaryMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>
getGenerateStatelessSummaryMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateStatelessSummary",
requestType = com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>
getGenerateStatelessSummaryMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>
getGenerateStatelessSummaryMethod;
if ((getGenerateStatelessSummaryMethod = ConversationsGrpc.getGenerateStatelessSummaryMethod)
== null) {
synchronized (ConversationsGrpc.class) {
if ((getGenerateStatelessSummaryMethod =
ConversationsGrpc.getGenerateStatelessSummaryMethod)
== null) {
ConversationsGrpc.getGenerateStatelessSummaryMethod =
getGenerateStatelessSummaryMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GenerateStatelessSummary"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("GenerateStatelessSummary"))
.build();
}
}
}
return getGenerateStatelessSummaryMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>
getGenerateStatelessSuggestionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateStatelessSuggestion",
requestType = com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>
getGenerateStatelessSuggestionMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>
getGenerateStatelessSuggestionMethod;
if ((getGenerateStatelessSuggestionMethod =
ConversationsGrpc.getGenerateStatelessSuggestionMethod)
== null) {
synchronized (ConversationsGrpc.class) {
if ((getGenerateStatelessSuggestionMethod =
ConversationsGrpc.getGenerateStatelessSuggestionMethod)
== null) {
ConversationsGrpc.getGenerateStatelessSuggestionMethod =
getGenerateStatelessSuggestionMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GenerateStatelessSuggestion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1
.GenerateStatelessSuggestionResponse.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("GenerateStatelessSuggestion"))
.build();
}
}
}
return getGenerateStatelessSuggestionMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest,
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse>
getSearchKnowledgeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SearchKnowledge",
requestType = com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.class,
responseType = com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest,
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse>
getSearchKnowledgeMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest,
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse>
getSearchKnowledgeMethod;
if ((getSearchKnowledgeMethod = ConversationsGrpc.getSearchKnowledgeMethod) == null) {
synchronized (ConversationsGrpc.class) {
if ((getSearchKnowledgeMethod = ConversationsGrpc.getSearchKnowledgeMethod) == null) {
ConversationsGrpc.getSearchKnowledgeMethod =
getSearchKnowledgeMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchKnowledge"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationsMethodDescriptorSupplier("SearchKnowledge"))
.build();
}
}
}
return getSearchKnowledgeMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static ConversationsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationsStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationsStub(channel, callOptions);
}
};
return ConversationsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ConversationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationsBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationsBlockingStub(channel, callOptions);
}
};
return ConversationsBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static ConversationsFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationsFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationsFutureStub(channel, callOptions);
}
};
return ConversationsFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Service for managing
* [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
*
*/
public interface AsyncService {
/**
*
*
*
* Creates a new conversation. Conversations are auto-completed after 24
* hours.
* Conversation Lifecycle:
* There are two stages during a conversation: Automated Agent Stage and
* Assist Stage.
* For Automated Agent Stage, there will be a dialogflow agent responding to
* user queries.
* For Assist Stage, there's no dialogflow agent responding to user queries.
* But we will provide suggestions which are generated from conversation.
* If
* [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile]
* is configured for a dialogflow agent, conversation will start from
* `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
* during `Automated Agent Stage`, once an
* [Intent][google.cloud.dialogflow.v2beta1.Intent] with
* [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff]
* is triggered, conversation will transfer to Assist Stage.
*
*/
default void createConversation(
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateConversationMethod(), responseObserver);
}
/**
*
*
*
* Returns the list of all conversations in the specified project.
*
*/
default void listConversations(
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListConversationsMethod(), responseObserver);
}
/**
*
*
*
* Retrieves the specific conversation.
*
*/
default void getConversation(
com.google.cloud.dialogflow.v2beta1.GetConversationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetConversationMethod(), responseObserver);
}
/**
*
*
*
* Completes the specified conversation. Finished conversations are purged
* from the database after 30 days.
*
*/
default void completeConversation(
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCompleteConversationMethod(), responseObserver);
}
/**
*
*
*
* Batch ingests messages to conversation. Customers can use this RPC to
* ingest historical messages to conversation.
*
*/
default void batchCreateMessages(
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getBatchCreateMessagesMethod(), responseObserver);
}
/**
*
*
*
* Lists messages that belong to a given conversation.
* `messages` are ordered by `create_time` in descending order. To fetch
* updates without duplication, send request with filter
* `create_time_epoch_microseconds >
* [first item's create_time of previous request]` and empty page_token.
*
*/
default void listMessages(
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListMessagesMethod(), responseObserver);
}
/**
*
*
*
* Suggest summary for a conversation based on specific historical messages.
* The range of the messages to be used for summary can be specified in the
* request.
*
*/
default void suggestConversationSummary(
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getSuggestConversationSummaryMethod(), responseObserver);
}
/**
*
*
*
* Generates and returns a summary for a conversation that does not have a
* resource created for it.
*
*/
default void generateStatelessSummary(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGenerateStatelessSummaryMethod(), responseObserver);
}
/**
*
*
*
* Generates and returns a suggestion for a conversation that does not have a
* resource created for it.
*
*/
default void generateStatelessSuggestion(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGenerateStatelessSuggestionMethod(), responseObserver);
}
/**
*
*
*
* Get answers for the given query based on knowledge documents.
*
*/
default void searchKnowledge(
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getSearchKnowledgeMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Conversations.
*
*
* Service for managing
* [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
*
*/
public abstract static class ConversationsImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return ConversationsGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Conversations.
*
*
* Service for managing
* [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
*
*/
public static final class ConversationsStub
extends io.grpc.stub.AbstractAsyncStub {
private ConversationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationsStub(channel, callOptions);
}
/**
*
*
*
* Creates a new conversation. Conversations are auto-completed after 24
* hours.
* Conversation Lifecycle:
* There are two stages during a conversation: Automated Agent Stage and
* Assist Stage.
* For Automated Agent Stage, there will be a dialogflow agent responding to
* user queries.
* For Assist Stage, there's no dialogflow agent responding to user queries.
* But we will provide suggestions which are generated from conversation.
* If
* [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile]
* is configured for a dialogflow agent, conversation will start from
* `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
* during `Automated Agent Stage`, once an
* [Intent][google.cloud.dialogflow.v2beta1.Intent] with
* [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff]
* is triggered, conversation will transfer to Assist Stage.
*
*/
public void createConversation(
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateConversationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Returns the list of all conversations in the specified project.
*
*/
public void listConversations(
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListConversationsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Retrieves the specific conversation.
*
*/
public void getConversation(
com.google.cloud.dialogflow.v2beta1.GetConversationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConversationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Completes the specified conversation. Finished conversations are purged
* from the database after 30 days.
*
*/
public void completeConversation(
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCompleteConversationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Batch ingests messages to conversation. Customers can use this RPC to
* ingest historical messages to conversation.
*
*/
public void batchCreateMessages(
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBatchCreateMessagesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists messages that belong to a given conversation.
* `messages` are ordered by `create_time` in descending order. To fetch
* updates without duplication, send request with filter
* `create_time_epoch_microseconds >
* [first item's create_time of previous request]` and empty page_token.
*
*/
public void listMessages(
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMessagesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Suggest summary for a conversation based on specific historical messages.
* The range of the messages to be used for summary can be specified in the
* request.
*
*/
public void suggestConversationSummary(
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSuggestConversationSummaryMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Generates and returns a summary for a conversation that does not have a
* resource created for it.
*
*/
public void generateStatelessSummary(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateStatelessSummaryMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Generates and returns a suggestion for a conversation that does not have a
* resource created for it.
*
*/
public void generateStatelessSuggestion(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateStatelessSuggestionMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Get answers for the given query based on knowledge documents.
*
*/
public void searchKnowledge(
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSearchKnowledgeMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Conversations.
*
*
* Service for managing
* [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
*
*/
public static final class ConversationsBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ConversationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationsBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationsBlockingStub(channel, callOptions);
}
/**
*
*
*
* Creates a new conversation. Conversations are auto-completed after 24
* hours.
* Conversation Lifecycle:
* There are two stages during a conversation: Automated Agent Stage and
* Assist Stage.
* For Automated Agent Stage, there will be a dialogflow agent responding to
* user queries.
* For Assist Stage, there's no dialogflow agent responding to user queries.
* But we will provide suggestions which are generated from conversation.
* If
* [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile]
* is configured for a dialogflow agent, conversation will start from
* `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
* during `Automated Agent Stage`, once an
* [Intent][google.cloud.dialogflow.v2beta1.Intent] with
* [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff]
* is triggered, conversation will transfer to Assist Stage.
*
*/
public com.google.cloud.dialogflow.v2beta1.Conversation createConversation(
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateConversationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Returns the list of all conversations in the specified project.
*
*/
public com.google.cloud.dialogflow.v2beta1.ListConversationsResponse listConversations(
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListConversationsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Retrieves the specific conversation.
*
*/
public com.google.cloud.dialogflow.v2beta1.Conversation getConversation(
com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConversationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Completes the specified conversation. Finished conversations are purged
* from the database after 30 days.
*
*/
public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation(
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCompleteConversationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Batch ingests messages to conversation. Customers can use this RPC to
* ingest historical messages to conversation.
*
*/
public com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse batchCreateMessages(
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBatchCreateMessagesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists messages that belong to a given conversation.
* `messages` are ordered by `create_time` in descending order. To fetch
* updates without duplication, send request with filter
* `create_time_epoch_microseconds >
* [first item's create_time of previous request]` and empty page_token.
*
*/
public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages(
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMessagesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Suggest summary for a conversation based on specific historical messages.
* The range of the messages to be used for summary can be specified in the
* request.
*
*/
public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse
suggestConversationSummary(
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSuggestConversationSummaryMethod(), getCallOptions(), request);
}
/**
*
*
*
* Generates and returns a summary for a conversation that does not have a
* resource created for it.
*
*/
public com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse
generateStatelessSummary(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateStatelessSummaryMethod(), getCallOptions(), request);
}
/**
*
*
*
* Generates and returns a suggestion for a conversation that does not have a
* resource created for it.
*
*/
public com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse
generateStatelessSuggestion(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateStatelessSuggestionMethod(), getCallOptions(), request);
}
/**
*
*
*
* Get answers for the given query based on knowledge documents.
*
*/
public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse searchKnowledge(
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSearchKnowledgeMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Conversations.
*
*
* Service for managing
* [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
*
*/
public static final class ConversationsFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ConversationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationsFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationsFutureStub(channel, callOptions);
}
/**
*
*
*
* Creates a new conversation. Conversations are auto-completed after 24
* hours.
* Conversation Lifecycle:
* There are two stages during a conversation: Automated Agent Stage and
* Assist Stage.
* For Automated Agent Stage, there will be a dialogflow agent responding to
* user queries.
* For Assist Stage, there's no dialogflow agent responding to user queries.
* But we will provide suggestions which are generated from conversation.
* If
* [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile]
* is configured for a dialogflow agent, conversation will start from
* `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
* during `Automated Agent Stage`, once an
* [Intent][google.cloud.dialogflow.v2beta1.Intent] with
* [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff]
* is triggered, conversation will transfer to Assist Stage.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.Conversation>
createConversation(com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Returns the list of all conversations in the specified project.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>
listConversations(com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListConversationsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Retrieves the specific conversation.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.Conversation>
getConversation(com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConversationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Completes the specified conversation. Finished conversations are purged
* from the database after 30 days.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.Conversation>
completeConversation(
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Batch ingests messages to conversation. Customers can use this RPC to
* ingest historical messages to conversation.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>
batchCreateMessages(
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBatchCreateMessagesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists messages that belong to a given conversation.
* `messages` are ordered by `create_time` in descending order. To fetch
* updates without duplication, send request with filter
* `create_time_epoch_microseconds >
* [first item's create_time of previous request]` and empty page_token.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>
listMessages(com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMessagesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Suggest summary for a conversation based on specific historical messages.
* The range of the messages to be used for summary can be specified in the
* request.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>
suggestConversationSummary(
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSuggestConversationSummaryMethod(), getCallOptions()), request);
}
/**
*
*
*
* Generates and returns a summary for a conversation that does not have a
* resource created for it.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>
generateStatelessSummary(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateStatelessSummaryMethod(), getCallOptions()), request);
}
/**
*
*
*
* Generates and returns a suggestion for a conversation that does not have a
* resource created for it.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>
generateStatelessSuggestion(
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateStatelessSuggestionMethod(), getCallOptions()), request);
}
/**
*
*
*
* Get answers for the given query based on knowledge documents.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse>
searchKnowledge(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSearchKnowledgeMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_CONVERSATION = 0;
private static final int METHODID_LIST_CONVERSATIONS = 1;
private static final int METHODID_GET_CONVERSATION = 2;
private static final int METHODID_COMPLETE_CONVERSATION = 3;
private static final int METHODID_BATCH_CREATE_MESSAGES = 4;
private static final int METHODID_LIST_MESSAGES = 5;
private static final int METHODID_SUGGEST_CONVERSATION_SUMMARY = 6;
private static final int METHODID_GENERATE_STATELESS_SUMMARY = 7;
private static final int METHODID_GENERATE_STATELESS_SUGGESTION = 8;
private static final int METHODID_SEARCH_KNOWLEDGE = 9;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CREATE_CONVERSATION:
serviceImpl.createConversation(
(com.google.cloud.dialogflow.v2beta1.CreateConversationRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_LIST_CONVERSATIONS:
serviceImpl.listConversations(
(com.google.cloud.dialogflow.v2beta1.ListConversationsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>)
responseObserver);
break;
case METHODID_GET_CONVERSATION:
serviceImpl.getConversation(
(com.google.cloud.dialogflow.v2beta1.GetConversationRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_COMPLETE_CONVERSATION:
serviceImpl.completeConversation(
(com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_BATCH_CREATE_MESSAGES:
serviceImpl.batchCreateMessages(
(com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>)
responseObserver);
break;
case METHODID_LIST_MESSAGES:
serviceImpl.listMessages(
(com.google.cloud.dialogflow.v2beta1.ListMessagesRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>)
responseObserver);
break;
case METHODID_SUGGEST_CONVERSATION_SUMMARY:
serviceImpl.suggestConversationSummary(
(com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>)
responseObserver);
break;
case METHODID_GENERATE_STATELESS_SUMMARY:
serviceImpl.generateStatelessSummary(
(com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>)
responseObserver);
break;
case METHODID_GENERATE_STATELESS_SUGGESTION:
serviceImpl.generateStatelessSuggestion(
(com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>)
responseObserver);
break;
case METHODID_SEARCH_KNOWLEDGE:
serviceImpl.searchKnowledge(
(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse>)
responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateConversationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.CreateConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>(
service, METHODID_CREATE_CONVERSATION)))
.addMethod(
getListConversationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.ListConversationsRequest,
com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>(
service, METHODID_LIST_CONVERSATIONS)))
.addMethod(
getGetConversationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.GetConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>(
service, METHODID_GET_CONVERSATION)))
.addMethod(
getCompleteConversationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest,
com.google.cloud.dialogflow.v2beta1.Conversation>(
service, METHODID_COMPLETE_CONVERSATION)))
.addMethod(
getBatchCreateMessagesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest,
com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>(
service, METHODID_BATCH_CREATE_MESSAGES)))
.addMethod(
getListMessagesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.ListMessagesRequest,
com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>(
service, METHODID_LIST_MESSAGES)))
.addMethod(
getSuggestConversationSummaryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest,
com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse>(
service, METHODID_SUGGEST_CONVERSATION_SUMMARY)))
.addMethod(
getGenerateStatelessSummaryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse>(
service, METHODID_GENERATE_STATELESS_SUMMARY)))
.addMethod(
getGenerateStatelessSuggestionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest,
com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse>(
service, METHODID_GENERATE_STATELESS_SUGGESTION)))
.addMethod(
getSearchKnowledgeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest,
com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse>(
service, METHODID_SEARCH_KNOWLEDGE)))
.build();
}
private abstract static class ConversationsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ConversationsBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.dialogflow.v2beta1.ConversationProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Conversations");
}
}
private static final class ConversationsFileDescriptorSupplier
extends ConversationsBaseDescriptorSupplier {
ConversationsFileDescriptorSupplier() {}
}
private static final class ConversationsMethodDescriptorSupplier
extends ConversationsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
ConversationsMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (ConversationsGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ConversationsFileDescriptorSupplier())
.addMethod(getCreateConversationMethod())
.addMethod(getListConversationsMethod())
.addMethod(getGetConversationMethod())
.addMethod(getCompleteConversationMethod())
.addMethod(getBatchCreateMessagesMethod())
.addMethod(getListMessagesMethod())
.addMethod(getSuggestConversationSummaryMethod())
.addMethod(getGenerateStatelessSummaryMethod())
.addMethod(getGenerateStatelessSuggestionMethod())
.addMethod(getSearchKnowledgeMethod())
.build();
}
}
}
return result;
}
}