1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.google.cloud.dialogflow.v2; 17 18 import static io.grpc.MethodDescriptor.generateFullMethodName; 19 20 /** 21 * 22 * 23 * <pre> 24 * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. 25 * </pre> 26 */ 27 @javax.annotation.Generated( 28 value = "by gRPC proto compiler", 29 comments = "Source: google/cloud/dialogflow/v2/participant.proto") 30 @io.grpc.stub.annotations.GrpcGenerated 31 public final class ParticipantsGrpc { 32 ParticipantsGrpc()33 private ParticipantsGrpc() {} 34 35 public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Participants"; 36 37 // Static method descriptors that strictly reflect the proto. 38 private static volatile io.grpc.MethodDescriptor< 39 com.google.cloud.dialogflow.v2.CreateParticipantRequest, 40 com.google.cloud.dialogflow.v2.Participant> 41 getCreateParticipantMethod; 42 43 @io.grpc.stub.annotations.RpcMethod( 44 fullMethodName = SERVICE_NAME + '/' + "CreateParticipant", 45 requestType = com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, 46 responseType = com.google.cloud.dialogflow.v2.Participant.class, 47 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 48 public static io.grpc.MethodDescriptor< 49 com.google.cloud.dialogflow.v2.CreateParticipantRequest, 50 com.google.cloud.dialogflow.v2.Participant> getCreateParticipantMethod()51 getCreateParticipantMethod() { 52 io.grpc.MethodDescriptor< 53 com.google.cloud.dialogflow.v2.CreateParticipantRequest, 54 com.google.cloud.dialogflow.v2.Participant> 55 getCreateParticipantMethod; 56 if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { 57 synchronized (ParticipantsGrpc.class) { 58 if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { 59 ParticipantsGrpc.getCreateParticipantMethod = 60 getCreateParticipantMethod = 61 io.grpc.MethodDescriptor 62 .<com.google.cloud.dialogflow.v2.CreateParticipantRequest, 63 com.google.cloud.dialogflow.v2.Participant> 64 newBuilder() 65 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 66 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateParticipant")) 67 .setSampledToLocalTracing(true) 68 .setRequestMarshaller( 69 io.grpc.protobuf.ProtoUtils.marshaller( 70 com.google.cloud.dialogflow.v2.CreateParticipantRequest 71 .getDefaultInstance())) 72 .setResponseMarshaller( 73 io.grpc.protobuf.ProtoUtils.marshaller( 74 com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) 75 .setSchemaDescriptor( 76 new ParticipantsMethodDescriptorSupplier("CreateParticipant")) 77 .build(); 78 } 79 } 80 } 81 return getCreateParticipantMethod; 82 } 83 84 private static volatile io.grpc.MethodDescriptor< 85 com.google.cloud.dialogflow.v2.GetParticipantRequest, 86 com.google.cloud.dialogflow.v2.Participant> 87 getGetParticipantMethod; 88 89 @io.grpc.stub.annotations.RpcMethod( 90 fullMethodName = SERVICE_NAME + '/' + "GetParticipant", 91 requestType = com.google.cloud.dialogflow.v2.GetParticipantRequest.class, 92 responseType = com.google.cloud.dialogflow.v2.Participant.class, 93 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 94 public static io.grpc.MethodDescriptor< 95 com.google.cloud.dialogflow.v2.GetParticipantRequest, 96 com.google.cloud.dialogflow.v2.Participant> getGetParticipantMethod()97 getGetParticipantMethod() { 98 io.grpc.MethodDescriptor< 99 com.google.cloud.dialogflow.v2.GetParticipantRequest, 100 com.google.cloud.dialogflow.v2.Participant> 101 getGetParticipantMethod; 102 if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { 103 synchronized (ParticipantsGrpc.class) { 104 if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { 105 ParticipantsGrpc.getGetParticipantMethod = 106 getGetParticipantMethod = 107 io.grpc.MethodDescriptor 108 .<com.google.cloud.dialogflow.v2.GetParticipantRequest, 109 com.google.cloud.dialogflow.v2.Participant> 110 newBuilder() 111 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 112 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParticipant")) 113 .setSampledToLocalTracing(true) 114 .setRequestMarshaller( 115 io.grpc.protobuf.ProtoUtils.marshaller( 116 com.google.cloud.dialogflow.v2.GetParticipantRequest 117 .getDefaultInstance())) 118 .setResponseMarshaller( 119 io.grpc.protobuf.ProtoUtils.marshaller( 120 com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) 121 .setSchemaDescriptor( 122 new ParticipantsMethodDescriptorSupplier("GetParticipant")) 123 .build(); 124 } 125 } 126 } 127 return getGetParticipantMethod; 128 } 129 130 private static volatile io.grpc.MethodDescriptor< 131 com.google.cloud.dialogflow.v2.ListParticipantsRequest, 132 com.google.cloud.dialogflow.v2.ListParticipantsResponse> 133 getListParticipantsMethod; 134 135 @io.grpc.stub.annotations.RpcMethod( 136 fullMethodName = SERVICE_NAME + '/' + "ListParticipants", 137 requestType = com.google.cloud.dialogflow.v2.ListParticipantsRequest.class, 138 responseType = com.google.cloud.dialogflow.v2.ListParticipantsResponse.class, 139 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 140 public static io.grpc.MethodDescriptor< 141 com.google.cloud.dialogflow.v2.ListParticipantsRequest, 142 com.google.cloud.dialogflow.v2.ListParticipantsResponse> getListParticipantsMethod()143 getListParticipantsMethod() { 144 io.grpc.MethodDescriptor< 145 com.google.cloud.dialogflow.v2.ListParticipantsRequest, 146 com.google.cloud.dialogflow.v2.ListParticipantsResponse> 147 getListParticipantsMethod; 148 if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { 149 synchronized (ParticipantsGrpc.class) { 150 if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { 151 ParticipantsGrpc.getListParticipantsMethod = 152 getListParticipantsMethod = 153 io.grpc.MethodDescriptor 154 .<com.google.cloud.dialogflow.v2.ListParticipantsRequest, 155 com.google.cloud.dialogflow.v2.ListParticipantsResponse> 156 newBuilder() 157 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 158 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListParticipants")) 159 .setSampledToLocalTracing(true) 160 .setRequestMarshaller( 161 io.grpc.protobuf.ProtoUtils.marshaller( 162 com.google.cloud.dialogflow.v2.ListParticipantsRequest 163 .getDefaultInstance())) 164 .setResponseMarshaller( 165 io.grpc.protobuf.ProtoUtils.marshaller( 166 com.google.cloud.dialogflow.v2.ListParticipantsResponse 167 .getDefaultInstance())) 168 .setSchemaDescriptor( 169 new ParticipantsMethodDescriptorSupplier("ListParticipants")) 170 .build(); 171 } 172 } 173 } 174 return getListParticipantsMethod; 175 } 176 177 private static volatile io.grpc.MethodDescriptor< 178 com.google.cloud.dialogflow.v2.UpdateParticipantRequest, 179 com.google.cloud.dialogflow.v2.Participant> 180 getUpdateParticipantMethod; 181 182 @io.grpc.stub.annotations.RpcMethod( 183 fullMethodName = SERVICE_NAME + '/' + "UpdateParticipant", 184 requestType = com.google.cloud.dialogflow.v2.UpdateParticipantRequest.class, 185 responseType = com.google.cloud.dialogflow.v2.Participant.class, 186 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 187 public static io.grpc.MethodDescriptor< 188 com.google.cloud.dialogflow.v2.UpdateParticipantRequest, 189 com.google.cloud.dialogflow.v2.Participant> getUpdateParticipantMethod()190 getUpdateParticipantMethod() { 191 io.grpc.MethodDescriptor< 192 com.google.cloud.dialogflow.v2.UpdateParticipantRequest, 193 com.google.cloud.dialogflow.v2.Participant> 194 getUpdateParticipantMethod; 195 if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { 196 synchronized (ParticipantsGrpc.class) { 197 if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { 198 ParticipantsGrpc.getUpdateParticipantMethod = 199 getUpdateParticipantMethod = 200 io.grpc.MethodDescriptor 201 .<com.google.cloud.dialogflow.v2.UpdateParticipantRequest, 202 com.google.cloud.dialogflow.v2.Participant> 203 newBuilder() 204 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 205 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParticipant")) 206 .setSampledToLocalTracing(true) 207 .setRequestMarshaller( 208 io.grpc.protobuf.ProtoUtils.marshaller( 209 com.google.cloud.dialogflow.v2.UpdateParticipantRequest 210 .getDefaultInstance())) 211 .setResponseMarshaller( 212 io.grpc.protobuf.ProtoUtils.marshaller( 213 com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) 214 .setSchemaDescriptor( 215 new ParticipantsMethodDescriptorSupplier("UpdateParticipant")) 216 .build(); 217 } 218 } 219 } 220 return getUpdateParticipantMethod; 221 } 222 223 private static volatile io.grpc.MethodDescriptor< 224 com.google.cloud.dialogflow.v2.AnalyzeContentRequest, 225 com.google.cloud.dialogflow.v2.AnalyzeContentResponse> 226 getAnalyzeContentMethod; 227 228 @io.grpc.stub.annotations.RpcMethod( 229 fullMethodName = SERVICE_NAME + '/' + "AnalyzeContent", 230 requestType = com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, 231 responseType = com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, 232 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 233 public static io.grpc.MethodDescriptor< 234 com.google.cloud.dialogflow.v2.AnalyzeContentRequest, 235 com.google.cloud.dialogflow.v2.AnalyzeContentResponse> getAnalyzeContentMethod()236 getAnalyzeContentMethod() { 237 io.grpc.MethodDescriptor< 238 com.google.cloud.dialogflow.v2.AnalyzeContentRequest, 239 com.google.cloud.dialogflow.v2.AnalyzeContentResponse> 240 getAnalyzeContentMethod; 241 if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { 242 synchronized (ParticipantsGrpc.class) { 243 if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { 244 ParticipantsGrpc.getAnalyzeContentMethod = 245 getAnalyzeContentMethod = 246 io.grpc.MethodDescriptor 247 .<com.google.cloud.dialogflow.v2.AnalyzeContentRequest, 248 com.google.cloud.dialogflow.v2.AnalyzeContentResponse> 249 newBuilder() 250 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 251 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeContent")) 252 .setSampledToLocalTracing(true) 253 .setRequestMarshaller( 254 io.grpc.protobuf.ProtoUtils.marshaller( 255 com.google.cloud.dialogflow.v2.AnalyzeContentRequest 256 .getDefaultInstance())) 257 .setResponseMarshaller( 258 io.grpc.protobuf.ProtoUtils.marshaller( 259 com.google.cloud.dialogflow.v2.AnalyzeContentResponse 260 .getDefaultInstance())) 261 .setSchemaDescriptor( 262 new ParticipantsMethodDescriptorSupplier("AnalyzeContent")) 263 .build(); 264 } 265 } 266 } 267 return getAnalyzeContentMethod; 268 } 269 270 private static volatile io.grpc.MethodDescriptor< 271 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest, 272 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> 273 getStreamingAnalyzeContentMethod; 274 275 @io.grpc.stub.annotations.RpcMethod( 276 fullMethodName = SERVICE_NAME + '/' + "StreamingAnalyzeContent", 277 requestType = com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.class, 278 responseType = com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.class, 279 methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) 280 public static io.grpc.MethodDescriptor< 281 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest, 282 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> getStreamingAnalyzeContentMethod()283 getStreamingAnalyzeContentMethod() { 284 io.grpc.MethodDescriptor< 285 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest, 286 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> 287 getStreamingAnalyzeContentMethod; 288 if ((getStreamingAnalyzeContentMethod = ParticipantsGrpc.getStreamingAnalyzeContentMethod) 289 == null) { 290 synchronized (ParticipantsGrpc.class) { 291 if ((getStreamingAnalyzeContentMethod = ParticipantsGrpc.getStreamingAnalyzeContentMethod) 292 == null) { 293 ParticipantsGrpc.getStreamingAnalyzeContentMethod = 294 getStreamingAnalyzeContentMethod = 295 io.grpc.MethodDescriptor 296 .<com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest, 297 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> 298 newBuilder() 299 .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) 300 .setFullMethodName( 301 generateFullMethodName(SERVICE_NAME, "StreamingAnalyzeContent")) 302 .setSampledToLocalTracing(true) 303 .setRequestMarshaller( 304 io.grpc.protobuf.ProtoUtils.marshaller( 305 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest 306 .getDefaultInstance())) 307 .setResponseMarshaller( 308 io.grpc.protobuf.ProtoUtils.marshaller( 309 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse 310 .getDefaultInstance())) 311 .setSchemaDescriptor( 312 new ParticipantsMethodDescriptorSupplier("StreamingAnalyzeContent")) 313 .build(); 314 } 315 } 316 } 317 return getStreamingAnalyzeContentMethod; 318 } 319 320 private static volatile io.grpc.MethodDescriptor< 321 com.google.cloud.dialogflow.v2.SuggestArticlesRequest, 322 com.google.cloud.dialogflow.v2.SuggestArticlesResponse> 323 getSuggestArticlesMethod; 324 325 @io.grpc.stub.annotations.RpcMethod( 326 fullMethodName = SERVICE_NAME + '/' + "SuggestArticles", 327 requestType = com.google.cloud.dialogflow.v2.SuggestArticlesRequest.class, 328 responseType = com.google.cloud.dialogflow.v2.SuggestArticlesResponse.class, 329 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 330 public static io.grpc.MethodDescriptor< 331 com.google.cloud.dialogflow.v2.SuggestArticlesRequest, 332 com.google.cloud.dialogflow.v2.SuggestArticlesResponse> getSuggestArticlesMethod()333 getSuggestArticlesMethod() { 334 io.grpc.MethodDescriptor< 335 com.google.cloud.dialogflow.v2.SuggestArticlesRequest, 336 com.google.cloud.dialogflow.v2.SuggestArticlesResponse> 337 getSuggestArticlesMethod; 338 if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { 339 synchronized (ParticipantsGrpc.class) { 340 if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { 341 ParticipantsGrpc.getSuggestArticlesMethod = 342 getSuggestArticlesMethod = 343 io.grpc.MethodDescriptor 344 .<com.google.cloud.dialogflow.v2.SuggestArticlesRequest, 345 com.google.cloud.dialogflow.v2.SuggestArticlesResponse> 346 newBuilder() 347 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 348 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestArticles")) 349 .setSampledToLocalTracing(true) 350 .setRequestMarshaller( 351 io.grpc.protobuf.ProtoUtils.marshaller( 352 com.google.cloud.dialogflow.v2.SuggestArticlesRequest 353 .getDefaultInstance())) 354 .setResponseMarshaller( 355 io.grpc.protobuf.ProtoUtils.marshaller( 356 com.google.cloud.dialogflow.v2.SuggestArticlesResponse 357 .getDefaultInstance())) 358 .setSchemaDescriptor( 359 new ParticipantsMethodDescriptorSupplier("SuggestArticles")) 360 .build(); 361 } 362 } 363 } 364 return getSuggestArticlesMethod; 365 } 366 367 private static volatile io.grpc.MethodDescriptor< 368 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, 369 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> 370 getSuggestFaqAnswersMethod; 371 372 @io.grpc.stub.annotations.RpcMethod( 373 fullMethodName = SERVICE_NAME + '/' + "SuggestFaqAnswers", 374 requestType = com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.class, 375 responseType = com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.class, 376 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 377 public static io.grpc.MethodDescriptor< 378 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, 379 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> getSuggestFaqAnswersMethod()380 getSuggestFaqAnswersMethod() { 381 io.grpc.MethodDescriptor< 382 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, 383 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> 384 getSuggestFaqAnswersMethod; 385 if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { 386 synchronized (ParticipantsGrpc.class) { 387 if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { 388 ParticipantsGrpc.getSuggestFaqAnswersMethod = 389 getSuggestFaqAnswersMethod = 390 io.grpc.MethodDescriptor 391 .<com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, 392 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> 393 newBuilder() 394 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 395 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestFaqAnswers")) 396 .setSampledToLocalTracing(true) 397 .setRequestMarshaller( 398 io.grpc.protobuf.ProtoUtils.marshaller( 399 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest 400 .getDefaultInstance())) 401 .setResponseMarshaller( 402 io.grpc.protobuf.ProtoUtils.marshaller( 403 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse 404 .getDefaultInstance())) 405 .setSchemaDescriptor( 406 new ParticipantsMethodDescriptorSupplier("SuggestFaqAnswers")) 407 .build(); 408 } 409 } 410 } 411 return getSuggestFaqAnswersMethod; 412 } 413 414 private static volatile io.grpc.MethodDescriptor< 415 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest, 416 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> 417 getSuggestSmartRepliesMethod; 418 419 @io.grpc.stub.annotations.RpcMethod( 420 fullMethodName = SERVICE_NAME + '/' + "SuggestSmartReplies", 421 requestType = com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.class, 422 responseType = com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.class, 423 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 424 public static io.grpc.MethodDescriptor< 425 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest, 426 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> getSuggestSmartRepliesMethod()427 getSuggestSmartRepliesMethod() { 428 io.grpc.MethodDescriptor< 429 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest, 430 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> 431 getSuggestSmartRepliesMethod; 432 if ((getSuggestSmartRepliesMethod = ParticipantsGrpc.getSuggestSmartRepliesMethod) == null) { 433 synchronized (ParticipantsGrpc.class) { 434 if ((getSuggestSmartRepliesMethod = ParticipantsGrpc.getSuggestSmartRepliesMethod) 435 == null) { 436 ParticipantsGrpc.getSuggestSmartRepliesMethod = 437 getSuggestSmartRepliesMethod = 438 io.grpc.MethodDescriptor 439 .<com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest, 440 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> 441 newBuilder() 442 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 443 .setFullMethodName( 444 generateFullMethodName(SERVICE_NAME, "SuggestSmartReplies")) 445 .setSampledToLocalTracing(true) 446 .setRequestMarshaller( 447 io.grpc.protobuf.ProtoUtils.marshaller( 448 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest 449 .getDefaultInstance())) 450 .setResponseMarshaller( 451 io.grpc.protobuf.ProtoUtils.marshaller( 452 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse 453 .getDefaultInstance())) 454 .setSchemaDescriptor( 455 new ParticipantsMethodDescriptorSupplier("SuggestSmartReplies")) 456 .build(); 457 } 458 } 459 } 460 return getSuggestSmartRepliesMethod; 461 } 462 463 /** Creates a new async stub that supports all call types for the service */ newStub(io.grpc.Channel channel)464 public static ParticipantsStub newStub(io.grpc.Channel channel) { 465 io.grpc.stub.AbstractStub.StubFactory<ParticipantsStub> factory = 466 new io.grpc.stub.AbstractStub.StubFactory<ParticipantsStub>() { 467 @java.lang.Override 468 public ParticipantsStub newStub( 469 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 470 return new ParticipantsStub(channel, callOptions); 471 } 472 }; 473 return ParticipantsStub.newStub(factory, channel); 474 } 475 476 /** 477 * Creates a new blocking-style stub that supports unary and streaming output calls on the service 478 */ newBlockingStub(io.grpc.Channel channel)479 public static ParticipantsBlockingStub newBlockingStub(io.grpc.Channel channel) { 480 io.grpc.stub.AbstractStub.StubFactory<ParticipantsBlockingStub> factory = 481 new io.grpc.stub.AbstractStub.StubFactory<ParticipantsBlockingStub>() { 482 @java.lang.Override 483 public ParticipantsBlockingStub newStub( 484 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 485 return new ParticipantsBlockingStub(channel, callOptions); 486 } 487 }; 488 return ParticipantsBlockingStub.newStub(factory, channel); 489 } 490 491 /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ newFutureStub(io.grpc.Channel channel)492 public static ParticipantsFutureStub newFutureStub(io.grpc.Channel channel) { 493 io.grpc.stub.AbstractStub.StubFactory<ParticipantsFutureStub> factory = 494 new io.grpc.stub.AbstractStub.StubFactory<ParticipantsFutureStub>() { 495 @java.lang.Override 496 public ParticipantsFutureStub newStub( 497 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 498 return new ParticipantsFutureStub(channel, callOptions); 499 } 500 }; 501 return ParticipantsFutureStub.newStub(factory, channel); 502 } 503 504 /** 505 * 506 * 507 * <pre> 508 * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. 509 * </pre> 510 */ 511 public interface AsyncService { 512 513 /** 514 * 515 * 516 * <pre> 517 * Creates a new participant in a conversation. 518 * </pre> 519 */ createParticipant( com.google.cloud.dialogflow.v2.CreateParticipantRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver)520 default void createParticipant( 521 com.google.cloud.dialogflow.v2.CreateParticipantRequest request, 522 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver) { 523 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 524 getCreateParticipantMethod(), responseObserver); 525 } 526 527 /** 528 * 529 * 530 * <pre> 531 * Retrieves a conversation participant. 532 * </pre> 533 */ getParticipant( com.google.cloud.dialogflow.v2.GetParticipantRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver)534 default void getParticipant( 535 com.google.cloud.dialogflow.v2.GetParticipantRequest request, 536 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver) { 537 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 538 getGetParticipantMethod(), responseObserver); 539 } 540 541 /** 542 * 543 * 544 * <pre> 545 * Returns the list of all participants in the specified conversation. 546 * </pre> 547 */ listParticipants( com.google.cloud.dialogflow.v2.ListParticipantsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListParticipantsResponse> responseObserver)548 default void listParticipants( 549 com.google.cloud.dialogflow.v2.ListParticipantsRequest request, 550 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListParticipantsResponse> 551 responseObserver) { 552 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 553 getListParticipantsMethod(), responseObserver); 554 } 555 556 /** 557 * 558 * 559 * <pre> 560 * Updates the specified participant. 561 * </pre> 562 */ updateParticipant( com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver)563 default void updateParticipant( 564 com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, 565 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver) { 566 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 567 getUpdateParticipantMethod(), responseObserver); 568 } 569 570 /** 571 * 572 * 573 * <pre> 574 * Adds a text (chat, for example), or audio (phone recording, for example) 575 * message from a participant into the conversation. 576 * Note: Always use agent versions for production traffic 577 * sent to virtual agents. See [Versions and 578 * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). 579 * </pre> 580 */ analyzeContent( com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnalyzeContentResponse> responseObserver)581 default void analyzeContent( 582 com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, 583 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnalyzeContentResponse> 584 responseObserver) { 585 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 586 getAnalyzeContentMethod(), responseObserver); 587 } 588 589 /** 590 * 591 * 592 * <pre> 593 * Adds a text (chat, for example), or audio (phone recording, for example) 594 * message from a participant into the conversation. 595 * Note: This method is only available through the gRPC API (not REST). 596 * The top-level message sent to the client by the server is 597 * `StreamingAnalyzeContentResponse`. Multiple response messages can be 598 * returned in order. The first one or more messages contain the 599 * `recognition_result` field. Each result represents a more complete 600 * transcript of what the user said. The next message contains the 601 * `reply_text` field and potentially the `reply_audio` field. The message can 602 * also contain the `automated_agent_reply` field. 603 * Note: Always use agent versions for production traffic 604 * sent to virtual agents. See [Versions and 605 * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). 606 * </pre> 607 */ 608 default io.grpc.stub.StreamObserver< 609 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest> streamingAnalyzeContent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> responseObserver)610 streamingAnalyzeContent( 611 io.grpc.stub.StreamObserver< 612 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> 613 responseObserver) { 614 return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( 615 getStreamingAnalyzeContentMethod(), responseObserver); 616 } 617 618 /** 619 * 620 * 621 * <pre> 622 * Gets suggested articles for a participant based on specific historical 623 * messages. 624 * </pre> 625 */ suggestArticles( com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestArticlesResponse> responseObserver)626 default void suggestArticles( 627 com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, 628 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestArticlesResponse> 629 responseObserver) { 630 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 631 getSuggestArticlesMethod(), responseObserver); 632 } 633 634 /** 635 * 636 * 637 * <pre> 638 * Gets suggested faq answers for a participant based on specific historical 639 * messages. 640 * </pre> 641 */ suggestFaqAnswers( com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> responseObserver)642 default void suggestFaqAnswers( 643 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, 644 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> 645 responseObserver) { 646 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 647 getSuggestFaqAnswersMethod(), responseObserver); 648 } 649 650 /** 651 * 652 * 653 * <pre> 654 * Gets smart replies for a participant based on specific historical 655 * messages. 656 * </pre> 657 */ suggestSmartReplies( com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> responseObserver)658 default void suggestSmartReplies( 659 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request, 660 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> 661 responseObserver) { 662 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 663 getSuggestSmartRepliesMethod(), responseObserver); 664 } 665 } 666 667 /** 668 * Base class for the server implementation of the service Participants. 669 * 670 * <pre> 671 * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. 672 * </pre> 673 */ 674 public abstract static class ParticipantsImplBase 675 implements io.grpc.BindableService, AsyncService { 676 677 @java.lang.Override bindService()678 public final io.grpc.ServerServiceDefinition bindService() { 679 return ParticipantsGrpc.bindService(this); 680 } 681 } 682 683 /** 684 * A stub to allow clients to do asynchronous rpc calls to service Participants. 685 * 686 * <pre> 687 * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. 688 * </pre> 689 */ 690 public static final class ParticipantsStub 691 extends io.grpc.stub.AbstractAsyncStub<ParticipantsStub> { ParticipantsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)692 private ParticipantsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 693 super(channel, callOptions); 694 } 695 696 @java.lang.Override build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)697 protected ParticipantsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 698 return new ParticipantsStub(channel, callOptions); 699 } 700 701 /** 702 * 703 * 704 * <pre> 705 * Creates a new participant in a conversation. 706 * </pre> 707 */ createParticipant( com.google.cloud.dialogflow.v2.CreateParticipantRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver)708 public void createParticipant( 709 com.google.cloud.dialogflow.v2.CreateParticipantRequest request, 710 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver) { 711 io.grpc.stub.ClientCalls.asyncUnaryCall( 712 getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), 713 request, 714 responseObserver); 715 } 716 717 /** 718 * 719 * 720 * <pre> 721 * Retrieves a conversation participant. 722 * </pre> 723 */ getParticipant( com.google.cloud.dialogflow.v2.GetParticipantRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver)724 public void getParticipant( 725 com.google.cloud.dialogflow.v2.GetParticipantRequest request, 726 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver) { 727 io.grpc.stub.ClientCalls.asyncUnaryCall( 728 getChannel().newCall(getGetParticipantMethod(), getCallOptions()), 729 request, 730 responseObserver); 731 } 732 733 /** 734 * 735 * 736 * <pre> 737 * Returns the list of all participants in the specified conversation. 738 * </pre> 739 */ listParticipants( com.google.cloud.dialogflow.v2.ListParticipantsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListParticipantsResponse> responseObserver)740 public void listParticipants( 741 com.google.cloud.dialogflow.v2.ListParticipantsRequest request, 742 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListParticipantsResponse> 743 responseObserver) { 744 io.grpc.stub.ClientCalls.asyncUnaryCall( 745 getChannel().newCall(getListParticipantsMethod(), getCallOptions()), 746 request, 747 responseObserver); 748 } 749 750 /** 751 * 752 * 753 * <pre> 754 * Updates the specified participant. 755 * </pre> 756 */ updateParticipant( com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver)757 public void updateParticipant( 758 com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, 759 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant> responseObserver) { 760 io.grpc.stub.ClientCalls.asyncUnaryCall( 761 getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), 762 request, 763 responseObserver); 764 } 765 766 /** 767 * 768 * 769 * <pre> 770 * Adds a text (chat, for example), or audio (phone recording, for example) 771 * message from a participant into the conversation. 772 * Note: Always use agent versions for production traffic 773 * sent to virtual agents. See [Versions and 774 * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). 775 * </pre> 776 */ analyzeContent( com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnalyzeContentResponse> responseObserver)777 public void analyzeContent( 778 com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, 779 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnalyzeContentResponse> 780 responseObserver) { 781 io.grpc.stub.ClientCalls.asyncUnaryCall( 782 getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), 783 request, 784 responseObserver); 785 } 786 787 /** 788 * 789 * 790 * <pre> 791 * Adds a text (chat, for example), or audio (phone recording, for example) 792 * message from a participant into the conversation. 793 * Note: This method is only available through the gRPC API (not REST). 794 * The top-level message sent to the client by the server is 795 * `StreamingAnalyzeContentResponse`. Multiple response messages can be 796 * returned in order. The first one or more messages contain the 797 * `recognition_result` field. Each result represents a more complete 798 * transcript of what the user said. The next message contains the 799 * `reply_text` field and potentially the `reply_audio` field. The message can 800 * also contain the `automated_agent_reply` field. 801 * Note: Always use agent versions for production traffic 802 * sent to virtual agents. See [Versions and 803 * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). 804 * </pre> 805 */ 806 public io.grpc.stub.StreamObserver< 807 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest> streamingAnalyzeContent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> responseObserver)808 streamingAnalyzeContent( 809 io.grpc.stub.StreamObserver< 810 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> 811 responseObserver) { 812 return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( 813 getChannel().newCall(getStreamingAnalyzeContentMethod(), getCallOptions()), 814 responseObserver); 815 } 816 817 /** 818 * 819 * 820 * <pre> 821 * Gets suggested articles for a participant based on specific historical 822 * messages. 823 * </pre> 824 */ suggestArticles( com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestArticlesResponse> responseObserver)825 public void suggestArticles( 826 com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, 827 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestArticlesResponse> 828 responseObserver) { 829 io.grpc.stub.ClientCalls.asyncUnaryCall( 830 getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), 831 request, 832 responseObserver); 833 } 834 835 /** 836 * 837 * 838 * <pre> 839 * Gets suggested faq answers for a participant based on specific historical 840 * messages. 841 * </pre> 842 */ suggestFaqAnswers( com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> responseObserver)843 public void suggestFaqAnswers( 844 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, 845 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> 846 responseObserver) { 847 io.grpc.stub.ClientCalls.asyncUnaryCall( 848 getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), 849 request, 850 responseObserver); 851 } 852 853 /** 854 * 855 * 856 * <pre> 857 * Gets smart replies for a participant based on specific historical 858 * messages. 859 * </pre> 860 */ suggestSmartReplies( com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> responseObserver)861 public void suggestSmartReplies( 862 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request, 863 io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> 864 responseObserver) { 865 io.grpc.stub.ClientCalls.asyncUnaryCall( 866 getChannel().newCall(getSuggestSmartRepliesMethod(), getCallOptions()), 867 request, 868 responseObserver); 869 } 870 } 871 872 /** 873 * A stub to allow clients to do synchronous rpc calls to service Participants. 874 * 875 * <pre> 876 * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. 877 * </pre> 878 */ 879 public static final class ParticipantsBlockingStub 880 extends io.grpc.stub.AbstractBlockingStub<ParticipantsBlockingStub> { ParticipantsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)881 private ParticipantsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 882 super(channel, callOptions); 883 } 884 885 @java.lang.Override build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)886 protected ParticipantsBlockingStub build( 887 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 888 return new ParticipantsBlockingStub(channel, callOptions); 889 } 890 891 /** 892 * 893 * 894 * <pre> 895 * Creates a new participant in a conversation. 896 * </pre> 897 */ createParticipant( com.google.cloud.dialogflow.v2.CreateParticipantRequest request)898 public com.google.cloud.dialogflow.v2.Participant createParticipant( 899 com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { 900 return io.grpc.stub.ClientCalls.blockingUnaryCall( 901 getChannel(), getCreateParticipantMethod(), getCallOptions(), request); 902 } 903 904 /** 905 * 906 * 907 * <pre> 908 * Retrieves a conversation participant. 909 * </pre> 910 */ getParticipant( com.google.cloud.dialogflow.v2.GetParticipantRequest request)911 public com.google.cloud.dialogflow.v2.Participant getParticipant( 912 com.google.cloud.dialogflow.v2.GetParticipantRequest request) { 913 return io.grpc.stub.ClientCalls.blockingUnaryCall( 914 getChannel(), getGetParticipantMethod(), getCallOptions(), request); 915 } 916 917 /** 918 * 919 * 920 * <pre> 921 * Returns the list of all participants in the specified conversation. 922 * </pre> 923 */ listParticipants( com.google.cloud.dialogflow.v2.ListParticipantsRequest request)924 public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants( 925 com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { 926 return io.grpc.stub.ClientCalls.blockingUnaryCall( 927 getChannel(), getListParticipantsMethod(), getCallOptions(), request); 928 } 929 930 /** 931 * 932 * 933 * <pre> 934 * Updates the specified participant. 935 * </pre> 936 */ updateParticipant( com.google.cloud.dialogflow.v2.UpdateParticipantRequest request)937 public com.google.cloud.dialogflow.v2.Participant updateParticipant( 938 com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { 939 return io.grpc.stub.ClientCalls.blockingUnaryCall( 940 getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); 941 } 942 943 /** 944 * 945 * 946 * <pre> 947 * Adds a text (chat, for example), or audio (phone recording, for example) 948 * message from a participant into the conversation. 949 * Note: Always use agent versions for production traffic 950 * sent to virtual agents. See [Versions and 951 * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). 952 * </pre> 953 */ analyzeContent( com.google.cloud.dialogflow.v2.AnalyzeContentRequest request)954 public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent( 955 com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { 956 return io.grpc.stub.ClientCalls.blockingUnaryCall( 957 getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); 958 } 959 960 /** 961 * 962 * 963 * <pre> 964 * Gets suggested articles for a participant based on specific historical 965 * messages. 966 * </pre> 967 */ suggestArticles( com.google.cloud.dialogflow.v2.SuggestArticlesRequest request)968 public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles( 969 com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { 970 return io.grpc.stub.ClientCalls.blockingUnaryCall( 971 getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); 972 } 973 974 /** 975 * 976 * 977 * <pre> 978 * Gets suggested faq answers for a participant based on specific historical 979 * messages. 980 * </pre> 981 */ suggestFaqAnswers( com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request)982 public com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggestFaqAnswers( 983 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { 984 return io.grpc.stub.ClientCalls.blockingUnaryCall( 985 getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); 986 } 987 988 /** 989 * 990 * 991 * <pre> 992 * Gets smart replies for a participant based on specific historical 993 * messages. 994 * </pre> 995 */ suggestSmartReplies( com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request)996 public com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggestSmartReplies( 997 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request) { 998 return io.grpc.stub.ClientCalls.blockingUnaryCall( 999 getChannel(), getSuggestSmartRepliesMethod(), getCallOptions(), request); 1000 } 1001 } 1002 1003 /** 1004 * A stub to allow clients to do ListenableFuture-style rpc calls to service Participants. 1005 * 1006 * <pre> 1007 * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. 1008 * </pre> 1009 */ 1010 public static final class ParticipantsFutureStub 1011 extends io.grpc.stub.AbstractFutureStub<ParticipantsFutureStub> { ParticipantsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1012 private ParticipantsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1013 super(channel, callOptions); 1014 } 1015 1016 @java.lang.Override build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1017 protected ParticipantsFutureStub build( 1018 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1019 return new ParticipantsFutureStub(channel, callOptions); 1020 } 1021 1022 /** 1023 * 1024 * 1025 * <pre> 1026 * Creates a new participant in a conversation. 1027 * </pre> 1028 */ 1029 public com.google.common.util.concurrent.ListenableFuture< 1030 com.google.cloud.dialogflow.v2.Participant> createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request)1031 createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { 1032 return io.grpc.stub.ClientCalls.futureUnaryCall( 1033 getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request); 1034 } 1035 1036 /** 1037 * 1038 * 1039 * <pre> 1040 * Retrieves a conversation participant. 1041 * </pre> 1042 */ 1043 public com.google.common.util.concurrent.ListenableFuture< 1044 com.google.cloud.dialogflow.v2.Participant> getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request)1045 getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request) { 1046 return io.grpc.stub.ClientCalls.futureUnaryCall( 1047 getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); 1048 } 1049 1050 /** 1051 * 1052 * 1053 * <pre> 1054 * Returns the list of all participants in the specified conversation. 1055 * </pre> 1056 */ 1057 public com.google.common.util.concurrent.ListenableFuture< 1058 com.google.cloud.dialogflow.v2.ListParticipantsResponse> listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request)1059 listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { 1060 return io.grpc.stub.ClientCalls.futureUnaryCall( 1061 getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); 1062 } 1063 1064 /** 1065 * 1066 * 1067 * <pre> 1068 * Updates the specified participant. 1069 * </pre> 1070 */ 1071 public com.google.common.util.concurrent.ListenableFuture< 1072 com.google.cloud.dialogflow.v2.Participant> updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request)1073 updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { 1074 return io.grpc.stub.ClientCalls.futureUnaryCall( 1075 getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request); 1076 } 1077 1078 /** 1079 * 1080 * 1081 * <pre> 1082 * Adds a text (chat, for example), or audio (phone recording, for example) 1083 * message from a participant into the conversation. 1084 * Note: Always use agent versions for production traffic 1085 * sent to virtual agents. See [Versions and 1086 * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). 1087 * </pre> 1088 */ 1089 public com.google.common.util.concurrent.ListenableFuture< 1090 com.google.cloud.dialogflow.v2.AnalyzeContentResponse> analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request)1091 analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { 1092 return io.grpc.stub.ClientCalls.futureUnaryCall( 1093 getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request); 1094 } 1095 1096 /** 1097 * 1098 * 1099 * <pre> 1100 * Gets suggested articles for a participant based on specific historical 1101 * messages. 1102 * </pre> 1103 */ 1104 public com.google.common.util.concurrent.ListenableFuture< 1105 com.google.cloud.dialogflow.v2.SuggestArticlesResponse> suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request)1106 suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { 1107 return io.grpc.stub.ClientCalls.futureUnaryCall( 1108 getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request); 1109 } 1110 1111 /** 1112 * 1113 * 1114 * <pre> 1115 * Gets suggested faq answers for a participant based on specific historical 1116 * messages. 1117 * </pre> 1118 */ 1119 public com.google.common.util.concurrent.ListenableFuture< 1120 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request)1121 suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { 1122 return io.grpc.stub.ClientCalls.futureUnaryCall( 1123 getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request); 1124 } 1125 1126 /** 1127 * 1128 * 1129 * <pre> 1130 * Gets smart replies for a participant based on specific historical 1131 * messages. 1132 * </pre> 1133 */ 1134 public com.google.common.util.concurrent.ListenableFuture< 1135 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse> suggestSmartReplies(com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request)1136 suggestSmartReplies(com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request) { 1137 return io.grpc.stub.ClientCalls.futureUnaryCall( 1138 getChannel().newCall(getSuggestSmartRepliesMethod(), getCallOptions()), request); 1139 } 1140 } 1141 1142 private static final int METHODID_CREATE_PARTICIPANT = 0; 1143 private static final int METHODID_GET_PARTICIPANT = 1; 1144 private static final int METHODID_LIST_PARTICIPANTS = 2; 1145 private static final int METHODID_UPDATE_PARTICIPANT = 3; 1146 private static final int METHODID_ANALYZE_CONTENT = 4; 1147 private static final int METHODID_SUGGEST_ARTICLES = 5; 1148 private static final int METHODID_SUGGEST_FAQ_ANSWERS = 6; 1149 private static final int METHODID_SUGGEST_SMART_REPLIES = 7; 1150 private static final int METHODID_STREAMING_ANALYZE_CONTENT = 8; 1151 1152 private static final class MethodHandlers<Req, Resp> 1153 implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, 1154 io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, 1155 io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, 1156 io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { 1157 private final AsyncService serviceImpl; 1158 private final int methodId; 1159 MethodHandlers(AsyncService serviceImpl, int methodId)1160 MethodHandlers(AsyncService serviceImpl, int methodId) { 1161 this.serviceImpl = serviceImpl; 1162 this.methodId = methodId; 1163 } 1164 1165 @java.lang.Override 1166 @java.lang.SuppressWarnings("unchecked") invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)1167 public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { 1168 switch (methodId) { 1169 case METHODID_CREATE_PARTICIPANT: 1170 serviceImpl.createParticipant( 1171 (com.google.cloud.dialogflow.v2.CreateParticipantRequest) request, 1172 (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant>) 1173 responseObserver); 1174 break; 1175 case METHODID_GET_PARTICIPANT: 1176 serviceImpl.getParticipant( 1177 (com.google.cloud.dialogflow.v2.GetParticipantRequest) request, 1178 (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant>) 1179 responseObserver); 1180 break; 1181 case METHODID_LIST_PARTICIPANTS: 1182 serviceImpl.listParticipants( 1183 (com.google.cloud.dialogflow.v2.ListParticipantsRequest) request, 1184 (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListParticipantsResponse>) 1185 responseObserver); 1186 break; 1187 case METHODID_UPDATE_PARTICIPANT: 1188 serviceImpl.updateParticipant( 1189 (com.google.cloud.dialogflow.v2.UpdateParticipantRequest) request, 1190 (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Participant>) 1191 responseObserver); 1192 break; 1193 case METHODID_ANALYZE_CONTENT: 1194 serviceImpl.analyzeContent( 1195 (com.google.cloud.dialogflow.v2.AnalyzeContentRequest) request, 1196 (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnalyzeContentResponse>) 1197 responseObserver); 1198 break; 1199 case METHODID_SUGGEST_ARTICLES: 1200 serviceImpl.suggestArticles( 1201 (com.google.cloud.dialogflow.v2.SuggestArticlesRequest) request, 1202 (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.SuggestArticlesResponse>) 1203 responseObserver); 1204 break; 1205 case METHODID_SUGGEST_FAQ_ANSWERS: 1206 serviceImpl.suggestFaqAnswers( 1207 (com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest) request, 1208 (io.grpc.stub.StreamObserver< 1209 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>) 1210 responseObserver); 1211 break; 1212 case METHODID_SUGGEST_SMART_REPLIES: 1213 serviceImpl.suggestSmartReplies( 1214 (com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest) request, 1215 (io.grpc.stub.StreamObserver< 1216 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse>) 1217 responseObserver); 1218 break; 1219 default: 1220 throw new AssertionError(); 1221 } 1222 } 1223 1224 @java.lang.Override 1225 @java.lang.SuppressWarnings("unchecked") invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)1226 public io.grpc.stub.StreamObserver<Req> invoke( 1227 io.grpc.stub.StreamObserver<Resp> responseObserver) { 1228 switch (methodId) { 1229 case METHODID_STREAMING_ANALYZE_CONTENT: 1230 return (io.grpc.stub.StreamObserver<Req>) 1231 serviceImpl.streamingAnalyzeContent( 1232 (io.grpc.stub.StreamObserver< 1233 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse>) 1234 responseObserver); 1235 default: 1236 throw new AssertionError(); 1237 } 1238 } 1239 } 1240 bindService(AsyncService service)1241 public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 1242 return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) 1243 .addMethod( 1244 getCreateParticipantMethod(), 1245 io.grpc.stub.ServerCalls.asyncUnaryCall( 1246 new MethodHandlers< 1247 com.google.cloud.dialogflow.v2.CreateParticipantRequest, 1248 com.google.cloud.dialogflow.v2.Participant>( 1249 service, METHODID_CREATE_PARTICIPANT))) 1250 .addMethod( 1251 getGetParticipantMethod(), 1252 io.grpc.stub.ServerCalls.asyncUnaryCall( 1253 new MethodHandlers< 1254 com.google.cloud.dialogflow.v2.GetParticipantRequest, 1255 com.google.cloud.dialogflow.v2.Participant>(service, METHODID_GET_PARTICIPANT))) 1256 .addMethod( 1257 getListParticipantsMethod(), 1258 io.grpc.stub.ServerCalls.asyncUnaryCall( 1259 new MethodHandlers< 1260 com.google.cloud.dialogflow.v2.ListParticipantsRequest, 1261 com.google.cloud.dialogflow.v2.ListParticipantsResponse>( 1262 service, METHODID_LIST_PARTICIPANTS))) 1263 .addMethod( 1264 getUpdateParticipantMethod(), 1265 io.grpc.stub.ServerCalls.asyncUnaryCall( 1266 new MethodHandlers< 1267 com.google.cloud.dialogflow.v2.UpdateParticipantRequest, 1268 com.google.cloud.dialogflow.v2.Participant>( 1269 service, METHODID_UPDATE_PARTICIPANT))) 1270 .addMethod( 1271 getAnalyzeContentMethod(), 1272 io.grpc.stub.ServerCalls.asyncUnaryCall( 1273 new MethodHandlers< 1274 com.google.cloud.dialogflow.v2.AnalyzeContentRequest, 1275 com.google.cloud.dialogflow.v2.AnalyzeContentResponse>( 1276 service, METHODID_ANALYZE_CONTENT))) 1277 .addMethod( 1278 getStreamingAnalyzeContentMethod(), 1279 io.grpc.stub.ServerCalls.asyncBidiStreamingCall( 1280 new MethodHandlers< 1281 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest, 1282 com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse>( 1283 service, METHODID_STREAMING_ANALYZE_CONTENT))) 1284 .addMethod( 1285 getSuggestArticlesMethod(), 1286 io.grpc.stub.ServerCalls.asyncUnaryCall( 1287 new MethodHandlers< 1288 com.google.cloud.dialogflow.v2.SuggestArticlesRequest, 1289 com.google.cloud.dialogflow.v2.SuggestArticlesResponse>( 1290 service, METHODID_SUGGEST_ARTICLES))) 1291 .addMethod( 1292 getSuggestFaqAnswersMethod(), 1293 io.grpc.stub.ServerCalls.asyncUnaryCall( 1294 new MethodHandlers< 1295 com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, 1296 com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>( 1297 service, METHODID_SUGGEST_FAQ_ANSWERS))) 1298 .addMethod( 1299 getSuggestSmartRepliesMethod(), 1300 io.grpc.stub.ServerCalls.asyncUnaryCall( 1301 new MethodHandlers< 1302 com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest, 1303 com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse>( 1304 service, METHODID_SUGGEST_SMART_REPLIES))) 1305 .build(); 1306 } 1307 1308 private abstract static class ParticipantsBaseDescriptorSupplier 1309 implements io.grpc.protobuf.ProtoFileDescriptorSupplier, 1310 io.grpc.protobuf.ProtoServiceDescriptorSupplier { ParticipantsBaseDescriptorSupplier()1311 ParticipantsBaseDescriptorSupplier() {} 1312 1313 @java.lang.Override getFileDescriptor()1314 public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { 1315 return com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor(); 1316 } 1317 1318 @java.lang.Override getServiceDescriptor()1319 public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { 1320 return getFileDescriptor().findServiceByName("Participants"); 1321 } 1322 } 1323 1324 private static final class ParticipantsFileDescriptorSupplier 1325 extends ParticipantsBaseDescriptorSupplier { ParticipantsFileDescriptorSupplier()1326 ParticipantsFileDescriptorSupplier() {} 1327 } 1328 1329 private static final class ParticipantsMethodDescriptorSupplier 1330 extends ParticipantsBaseDescriptorSupplier 1331 implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { 1332 private final String methodName; 1333 ParticipantsMethodDescriptorSupplier(String methodName)1334 ParticipantsMethodDescriptorSupplier(String methodName) { 1335 this.methodName = methodName; 1336 } 1337 1338 @java.lang.Override getMethodDescriptor()1339 public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { 1340 return getServiceDescriptor().findMethodByName(methodName); 1341 } 1342 } 1343 1344 private static volatile io.grpc.ServiceDescriptor serviceDescriptor; 1345 getServiceDescriptor()1346 public static io.grpc.ServiceDescriptor getServiceDescriptor() { 1347 io.grpc.ServiceDescriptor result = serviceDescriptor; 1348 if (result == null) { 1349 synchronized (ParticipantsGrpc.class) { 1350 result = serviceDescriptor; 1351 if (result == null) { 1352 serviceDescriptor = 1353 result = 1354 io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) 1355 .setSchemaDescriptor(new ParticipantsFileDescriptorSupplier()) 1356 .addMethod(getCreateParticipantMethod()) 1357 .addMethod(getGetParticipantMethod()) 1358 .addMethod(getListParticipantsMethod()) 1359 .addMethod(getUpdateParticipantMethod()) 1360 .addMethod(getAnalyzeContentMethod()) 1361 .addMethod(getStreamingAnalyzeContentMethod()) 1362 .addMethod(getSuggestArticlesMethod()) 1363 .addMethod(getSuggestFaqAnswersMethod()) 1364 .addMethod(getSuggestSmartRepliesMethod()) 1365 .build(); 1366 } 1367 } 1368 } 1369 return result; 1370 } 1371 } 1372