From 590fc50c2dea6ca8913dd09d132772146c6f8bfc Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 8 Mar 2021 16:29:45 -0800 Subject: [PATCH 1/3] fix!: remove MixedAudio BREAKING CHANGE: mixed_audio is removed from ResponseMessage Committer: @sheimi PiperOrigin-RevId: 361217394 Source-Author: Google APIs Source-Date: Fri Mar 5 13:47:59 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 3b0afe54b5aedcd7cee0036b16d2a31324d0db60 Source-Link: https://github.com/googleapis/googleapis/commit/3b0afe54b5aedcd7cee0036b16d2a31324d0db60 --- .../dialogflow/v2beta1/ParticipantProto.java | 227 +- .../dialogflow/v2beta1/ResponseMessage.java | 2834 +---------------- .../v2beta1/ResponseMessageOrBuilder.java | 38 - .../dialogflow/v2beta1/participant.proto | 31 - synth.metadata | 10 +- 5 files changed, 239 insertions(+), 2901 deletions(-) diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 279b8cf8f..30fa22ece 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -211,14 +211,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_EndInteraction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_EndInteraction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -451,7 +443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pileSuggestionResponse\022?\n\nsuggestion\030\001 \001" + "(\0132+.google.cloud.dialogflow.v2beta1.Sug" + "gestion\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014conte" - + "xt_size\030\003 \001(\005:\002\030\001\"\310\005\n\017ResponseMessage\022E\n" + + "xt_size\030\003 \001(\005:\002\030\001\"\263\003\n\017ResponseMessage\022E\n" + "\004text\030\001 \001(\01325.google.cloud.dialogflow.v2" + "beta1.ResponseMessage.TextH\000\022*\n\007payload\030" + "\002 \001(\0132\027.google.protobuf.StructH\000\022_\n\022live" @@ -459,108 +451,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogflow.v2beta1.ResponseMessage.LiveAgent" + "HandoffH\000\022Z\n\017end_interaction\030\004 \001(\0132?.goo" + "gle.cloud.dialogflow.v2beta1.ResponseMes" - + "sage.EndInteractionH\000\022R\n\013mixed_audio\030\005 \001" - + "(\0132;.google.cloud.dialogflow.v2beta1.Res" - + "ponseMessage.MixedAudioH\000\032\024\n\004Text\022\014\n\004tex" - + "t\030\001 \003(\t\032=\n\020LiveAgentHandoff\022)\n\010metadata\030" - + "\001 \001(\0132\027.google.protobuf.Struct\032\020\n\016EndInt" - + "eraction\032\276\001\n\nMixedAudio\022U\n\010segments\030\001 \003(" - + "\0132C.google.cloud.dialogflow.v2beta1.Resp" - + "onseMessage.MixedAudio.Segment\032Y\n\007Segmen" - + "t\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022#\n\033all" - + "ow_playback_interruption\030\003 \001(\010B\t\n\007conten" - + "tB\t\n\007message2\207\033\n\014Participants\022\271\002\n\021Create" - + "Participant\0229.google.cloud.dialogflow.v2" - + "beta1.CreateParticipantRequest\032,.google." - + "cloud.dialogflow.v2beta1.Participant\"\272\001\202" - + "\323\344\223\002\236\001\"9/v2beta1/{parent=projects/*/conv" - + "ersations/*}/participants:\013participantZT" - + "\"E/v2beta1/{parent=projects/*/locations/" - + "*/conversations/*}/participants:\013partici" - + "pant\332A\022parent,participant\022\213\002\n\016GetPartici" - + "pant\0226.google.cloud.dialogflow.v2beta1.G" - + "etParticipantRequest\032,.google.cloud.dial" - + "ogflow.v2beta1.Participant\"\222\001\202\323\344\223\002\204\001\0229/v" - + "2beta1/{name=projects/*/conversations/*/" - + "participants/*}ZG\022E/v2beta1/{name=projec" - + "ts/*/locations/*/conversations/*/partici" - + "pants/*}\332A\004name\022\236\002\n\020ListParticipants\0228.g" - + "oogle.cloud.dialogflow.v2beta1.ListParti" - + "cipantsRequest\0329.google.cloud.dialogflow" - + ".v2beta1.ListParticipantsResponse\"\224\001\202\323\344\223" - + "\002\204\001\0229/v2beta1/{parent=projects/*/convers" - + "ations/*}/participantsZG\022E/v2beta1/{pare" - + "nt=projects/*/locations/*/conversations/" - + "*}/participants\332A\006parent\022\326\002\n\021UpdateParti" - + "cipant\0229.google.cloud.dialogflow.v2beta1" - + ".UpdateParticipantRequest\032,.google.cloud" - + ".dialogflow.v2beta1.Participant\"\327\001\202\323\344\223\002\266" - + "\0012E/v2beta1/{participant.name=projects/*" - + "/conversations/*/participants/*}:\013partic" - + "ipantZ`2Q/v2beta1/{participant.name=proj" + + "sage.EndInteractionH\000\032\024\n\004Text\022\014\n\004text\030\001 " + + "\003(\t\032=\n\020LiveAgentHandoff\022)\n\010metadata\030\001 \001(" + + "\0132\027.google.protobuf.Struct\032\020\n\016EndInterac" + + "tionB\t\n\007message2\207\033\n\014Participants\022\271\002\n\021Cre" + + "ateParticipant\0229.google.cloud.dialogflow" + + ".v2beta1.CreateParticipantRequest\032,.goog" + + "le.cloud.dialogflow.v2beta1.Participant\"" + + "\272\001\202\323\344\223\002\236\001\"9/v2beta1/{parent=projects/*/c" + + "onversations/*}/participants:\013participan" + + "tZT\"E/v2beta1/{parent=projects/*/locatio" + + "ns/*/conversations/*}/participants:\013part" + + "icipant\332A\022parent,participant\022\213\002\n\016GetPart" + + "icipant\0226.google.cloud.dialogflow.v2beta" + + "1.GetParticipantRequest\032,.google.cloud.d" + + "ialogflow.v2beta1.Participant\"\222\001\202\323\344\223\002\204\001\022" + + "9/v2beta1/{name=projects/*/conversations" + + "/*/participants/*}ZG\022E/v2beta1/{name=pro" + + "jects/*/locations/*/conversations/*/part" + + "icipants/*}\332A\004name\022\236\002\n\020ListParticipants\022" + + "8.google.cloud.dialogflow.v2beta1.ListPa" + + "rticipantsRequest\0329.google.cloud.dialogf" + + "low.v2beta1.ListParticipantsResponse\"\224\001\202" + + "\323\344\223\002\204\001\0229/v2beta1/{parent=projects/*/conv" + + "ersations/*}/participantsZG\022E/v2beta1/{p" + + "arent=projects/*/locations/*/conversatio" + + "ns/*}/participants\332A\006parent\022\326\002\n\021UpdatePa" + + "rticipant\0229.google.cloud.dialogflow.v2be" + + "ta1.UpdateParticipantRequest\032,.google.cl" + + "oud.dialogflow.v2beta1.Participant\"\327\001\202\323\344" + + "\223\002\266\0012E/v2beta1/{participant.name=project" + + "s/*/conversations/*/participants/*}:\013par" + + "ticipantZ`2Q/v2beta1/{participant.name=p" + + "rojects/*/locations/*/conversations/*/pa" + + "rticipants/*}:\013participant\332A\027participant" + + ",update_mask\022\216\003\n\016AnalyzeContent\0226.google" + + ".cloud.dialogflow.v2beta1.AnalyzeContent" + + "Request\0327.google.cloud.dialogflow.v2beta" + + "1.AnalyzeContentResponse\"\212\002\202\323\344\223\002\266\001\"O/v2b" + + "eta1/{participant=projects/*/conversatio" + + "ns/*/participants/*}:analyzeContent:\001*Z`" + + "\"[/v2beta1/{participant=projects/*/locat" + + "ions/*/conversations/*/participants/*}:a" + + "nalyzeContent:\001*\332A\026participant,text_inpu" + + "t\332A\027participant,audio_input\332A\027participan" + + "t,event_input\022\242\001\n\027StreamingAnalyzeConten" + + "t\022?.google.cloud.dialogflow.v2beta1.Stre" + + "amingAnalyzeContentRequest\032@.google.clou" + + "d.dialogflow.v2beta1.StreamingAnalyzeCon" + + "tentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\0227" + + ".google.cloud.dialogflow.v2beta1.Suggest" + + "ArticlesRequest\0328.google.cloud.dialogflo" + + "w.v2beta1.SuggestArticlesResponse\"\326\001\202\323\344\223" + + "\002\306\001\"W/v2beta1/{parent=projects/*/convers" + + "ations/*/participants/*}/suggestions:sug" + + "gestArticles:\001*Zh\"c/v2beta1/{parent=proj" + "ects/*/locations/*/conversations/*/parti" - + "cipants/*}:\013participant\332A\027participant,up" - + "date_mask\022\216\003\n\016AnalyzeContent\0226.google.cl" - + "oud.dialogflow.v2beta1.AnalyzeContentReq" - + "uest\0327.google.cloud.dialogflow.v2beta1.A" - + "nalyzeContentResponse\"\212\002\202\323\344\223\002\266\001\"O/v2beta" - + "1/{participant=projects/*/conversations/" - + "*/participants/*}:analyzeContent:\001*Z`\"[/" - + "v2beta1/{participant=projects/*/location" - + "s/*/conversations/*/participants/*}:anal" - + "yzeContent:\001*\332A\026participant,text_input\332A" - + "\027participant,audio_input\332A\027participant,e" - + "vent_input\022\242\001\n\027StreamingAnalyzeContent\022?" - + ".google.cloud.dialogflow.v2beta1.Streami" - + "ngAnalyzeContentRequest\032@.google.cloud.d" - + "ialogflow.v2beta1.StreamingAnalyzeConten" - + "tResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\0227.go" - + "ogle.cloud.dialogflow.v2beta1.SuggestArt" - + "iclesRequest\0328.google.cloud.dialogflow.v" - + "2beta1.SuggestArticlesResponse\"\326\001\202\323\344\223\002\306\001" - + "\"W/v2beta1/{parent=projects/*/conversati" - + "ons/*/participants/*}/suggestions:sugges" - + "tArticles:\001*Zh\"c/v2beta1/{parent=project" - + "s/*/locations/*/conversations/*/particip" - + "ants/*}/suggestions:suggestArticles:\001*\332A" - + "\006parent\022\347\002\n\021SuggestFaqAnswers\0229.google.c" - + "loud.dialogflow.v2beta1.SuggestFaqAnswer" - + "sRequest\032:.google.cloud.dialogflow.v2bet" - + "a1.SuggestFaqAnswersResponse\"\332\001\202\323\344\223\002\312\001\"Y" - + "/v2beta1/{parent=projects/*/conversation" - + "s/*/participants/*}/suggestions:suggestF" - + "aqAnswers:\001*Zj\"e/v2beta1/{parent=project" - + "s/*/locations/*/conversations/*/particip" - + "ants/*}/suggestions:suggestFaqAnswers:\001*" - + "\332A\006parent\022\361\002\n\023SuggestSmartReplies\022;.goog" - + "le.cloud.dialogflow.v2beta1.SuggestSmart" - + "RepliesRequest\032<.google.cloud.dialogflow" - + ".v2beta1.SuggestSmartRepliesResponse\"\336\001\202" - + "\323\344\223\002\316\001\"[/v2beta1/{parent=projects/*/conv" - + "ersations/*/participants/*}/suggestions:" - + "suggestSmartReplies:\001*Zl\"g/v2beta1/{pare" - + "nt=projects/*/locations/*/conversations/" - + "*/participants/*}/suggestions:suggestSma" - + "rtReplies:\001*\332A\006parent\022\330\001\n\017ListSuggestion" - + "s\0227.google.cloud.dialogflow.v2beta1.List" - + "SuggestionsRequest\0328.google.cloud.dialog" - + "flow.v2beta1.ListSuggestionsResponse\"R\210\002" - + "\001\202\323\344\223\002I\022G/v2beta1/{parent=projects/*/con" - + "versations/*/participants/*}/suggestions" - + "\022\351\001\n\021CompileSuggestion\0229.google.cloud.di" - + "alogflow.v2beta1.CompileSuggestionReques" - + "t\032:.google.cloud.dialogflow.v2beta1.Comp" - + "ileSuggestionResponse\"]\210\002\001\202\323\344\223\002T\"O/v2bet" - + "a1/{parent=projects/*/conversations/*/pa" - + "rticipants/*}/suggestions:compile:\001*\032x\312A" - + "\031dialogflow.googleapis.com\322AYhttps://www" - + ".googleapis.com/auth/cloud-platform,http" - + "s://www.googleapis.com/auth/dialogflowB\256" - + "\001\n#com.google.cloud.dialogflow.v2beta1B\020" - + "ParticipantProtoP\001ZIgoogle.golang.org/ge" - + "nproto/googleapis/cloud/dialogflow/v2bet" - + "a1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dia" - + "logflow.V2beta1b\006proto3" + + "cipants/*}/suggestions:suggestArticles:\001" + + "*\332A\006parent\022\347\002\n\021SuggestFaqAnswers\0229.googl" + + "e.cloud.dialogflow.v2beta1.SuggestFaqAns" + + "wersRequest\032:.google.cloud.dialogflow.v2" + + "beta1.SuggestFaqAnswersResponse\"\332\001\202\323\344\223\002\312" + + "\001\"Y/v2beta1/{parent=projects/*/conversat" + + "ions/*/participants/*}/suggestions:sugge" + + "stFaqAnswers:\001*Zj\"e/v2beta1/{parent=proj" + + "ects/*/locations/*/conversations/*/parti" + + "cipants/*}/suggestions:suggestFaqAnswers" + + ":\001*\332A\006parent\022\361\002\n\023SuggestSmartReplies\022;.g" + + "oogle.cloud.dialogflow.v2beta1.SuggestSm" + + "artRepliesRequest\032<.google.cloud.dialogf" + + "low.v2beta1.SuggestSmartRepliesResponse\"" + + "\336\001\202\323\344\223\002\316\001\"[/v2beta1/{parent=projects/*/c" + + "onversations/*/participants/*}/suggestio" + + "ns:suggestSmartReplies:\001*Zl\"g/v2beta1/{p" + + "arent=projects/*/locations/*/conversatio" + + "ns/*/participants/*}/suggestions:suggest" + + "SmartReplies:\001*\332A\006parent\022\330\001\n\017ListSuggest" + + "ions\0227.google.cloud.dialogflow.v2beta1.L" + + "istSuggestionsRequest\0328.google.cloud.dia" + + "logflow.v2beta1.ListSuggestionsResponse\"" + + "R\210\002\001\202\323\344\223\002I\022G/v2beta1/{parent=projects/*/" + + "conversations/*/participants/*}/suggesti" + + "ons\022\351\001\n\021CompileSuggestion\0229.google.cloud" + + ".dialogflow.v2beta1.CompileSuggestionReq" + + "uest\032:.google.cloud.dialogflow.v2beta1.C" + + "ompileSuggestionResponse\"]\210\002\001\202\323\344\223\002T\"O/v2" + + "beta1/{parent=projects/*/conversations/*" + + "/participants/*}/suggestions:compile:\001*\032" + + "x\312A\031dialogflow.googleapis.com\322AYhttps://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/dialogflo" + + "wB\256\001\n#com.google.cloud.dialogflow.v2beta" + + "1B\020ParticipantProtoP\001ZIgoogle.golang.org" + + "/genproto/googleapis/cloud/dialogflow/v2" + + "beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud." + + "Dialogflow.V2beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -984,7 +969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_descriptor, new java.lang.String[] { - "Text", "Payload", "LiveAgentHandoff", "EndInteraction", "MixedAudio", "Message", + "Text", "Payload", "LiveAgentHandoff", "EndInteraction", "Message", }); internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_Text_descriptor = internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_descriptor @@ -1014,26 +999,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_EndInteraction_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor = - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor, - new java.lang.String[] { - "Segments", - }); - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_descriptor = - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_descriptor, - new java.lang.String[] { - "Audio", "Uri", "AllowPlaybackInterruption", "Content", - }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java index 9a121e352..e0d52b2e4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java @@ -146,27 +146,6 @@ private ResponseMessage( messageCase_ = 4; break; } - case 42: - { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder subBuilder = - null; - if (messageCase_ == 5) { - subBuilder = - ((com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_) - .toBuilder(); - } - message_ = - input.readMessage( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_); - message_ = subBuilder.buildPartial(); - } - messageCase_ = 5; - break; - } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -2233,2389 +2212,160 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface MixedAudioOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) - com.google.protobuf.MessageOrBuilder { + private int messageCase_ = 0; + private java.lang.Object message_; + public enum MessageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + PAYLOAD(2), + LIVE_AGENT_HANDOFF(3), + END_INTERACTION(4), + MESSAGE_NOT_SET(0); + private final int value; + + private MessageCase(int value) { + this.value = value; + } /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - java.util.List - getSegmentsList(); - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment getSegments(int index); - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - int getSegmentsCount(); - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder> - getSegmentsOrBuilderList(); - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder - getSegmentsOrBuilder(int index); + @java.lang.Deprecated + public static MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return PAYLOAD; + case 3: + return LIVE_AGENT_HANDOFF; + case 4: + return END_INTERACTION; + case 0: + return MESSAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageCase getMessageCase() { + return MessageCase.forNumber(messageCase_); } + + public static final int TEXT_FIELD_NUMBER = 1; /** * * *
-   * Represents an audio message that is composed of both segments
-   * synthesized from the Dialogflow agent prompts and ones hosted externally
-   * at the specified URIs.
+   * Returns a text response.
    * 
* - * Protobuf type {@code google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio} + * .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; + * + * @return Whether the text field is set. */ - public static final class MixedAudio extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) - MixedAudioOrBuilder { - private static final long serialVersionUID = 0L; - // Use MixedAudio.newBuilder() to construct. - private MixedAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MixedAudio() { - segments_ = java.util.Collections.emptyList(); + @java.lang.Override + public boolean hasText() { + return messageCase_ == 1; + } + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; + * + * @return The text. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text getText() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text) message_; } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MixedAudio(); + return com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text.getDefaultInstance(); + } + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ResponseMessage.TextOrBuilder getTextOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text) message_; } + return com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + public static final int PAYLOAD_FIELD_NUMBER = 2; + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return messageCase_ == 2; + } + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; } - - private MixedAudio( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - segments_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment>(); - mutable_bitField0_ |= 0x00000001; - } - segments_.add( - input.readMessage( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - .parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.class, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder.class); - } - - public interface SegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Raw audio synthesized from the Dialogflow agent's response using
-       * the output config specified in the request.
-       * 
- * - * bytes audio = 1; - * - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - * - * - *
-       * Raw audio synthesized from the Dialogflow agent's response using
-       * the output config specified in the request.
-       * 
- * - * bytes audio = 1; - * - * @return The audio. - */ - com.google.protobuf.ByteString getAudio(); - - /** - * - * - *
-       * Client-specific URI that points to an audio clip accessible to the
-       * client.
-       * 
- * - * string uri = 2; - * - * @return Whether the uri field is set. - */ - boolean hasUri(); - /** - * - * - *
-       * Client-specific URI that points to an audio clip accessible to the
-       * client.
-       * 
- * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); - /** - * - * - *
-       * Client-specific URI that points to an audio clip accessible to the
-       * client.
-       * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
-       * Whether the playback of this segment can be interrupted by the end
-       * user's speech and the client should then start the next Dialogflow
-       * request.
-       * 
- * - * bool allow_playback_interruption = 3; - * - * @return The allowPlaybackInterruption. - */ - boolean getAllowPlaybackInterruption(); - - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.ContentCase - getContentCase(); - } - /** - * - * - *
-     * Represents one segment of audio.
-     * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment} - */ - public static final class Segment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) - SegmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use Segment.newBuilder() to construct. - private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Segment() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Segment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Segment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - contentCase_ = 1; - content_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 2; - content_ = s; - break; - } - case 24: - { - allowPlaybackInterruption_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.class, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - .class); - } - - private int contentCase_ = 0; - private java.lang.Object content_; - - public enum ContentCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AUDIO(1), - URI(2), - CONTENT_NOT_SET(0); - private final int value; - - private ContentCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContentCase valueOf(int value) { - return forNumber(value); - } - - public static ContentCase forNumber(int value) { - switch (value) { - case 1: - return AUDIO; - case 2: - return URI; - case 0: - return CONTENT_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } - - public static final int AUDIO_FIELD_NUMBER = 1; - /** - * - * - *
-       * Raw audio synthesized from the Dialogflow agent's response using
-       * the output config specified in the request.
-       * 
- * - * bytes audio = 1; - * - * @return Whether the audio field is set. - */ - @java.lang.Override - public boolean hasAudio() { - return contentCase_ == 1; - } - /** - * - * - *
-       * Raw audio synthesized from the Dialogflow agent's response using
-       * the output config specified in the request.
-       * 
- * - * bytes audio = 1; - * - * @return The audio. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAudio() { - if (contentCase_ == 1) { - return (com.google.protobuf.ByteString) content_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int URI_FIELD_NUMBER = 2; - /** - * - * - *
-       * Client-specific URI that points to an audio clip accessible to the
-       * client.
-       * 
- * - * string uri = 2; - * - * @return Whether the uri field is set. - */ - public boolean hasUri() { - return contentCase_ == 2; - } - /** - * - * - *
-       * Client-specific URI that points to an audio clip accessible to the
-       * client.
-       * 
- * - * string uri = 2; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 2) { - content_ = s; - } - return s; - } - } - /** - * - * - *
-       * Client-specific URI that points to an audio clip accessible to the
-       * client.
-       * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (contentCase_ == 2) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3; - private boolean allowPlaybackInterruption_; - /** - * - * - *
-       * Whether the playback of this segment can be interrupted by the end
-       * user's speech and the client should then start the next Dialogflow
-       * request.
-       * 
- * - * bool allow_playback_interruption = 3; - * - * @return The allowPlaybackInterruption. - */ - @java.lang.Override - public boolean getAllowPlaybackInterruption() { - return allowPlaybackInterruption_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (contentCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) content_); - } - if (contentCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); - } - if (allowPlaybackInterruption_ != false) { - output.writeBool(3, allowPlaybackInterruption_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (contentCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) content_); - } - if (contentCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); - } - if (allowPlaybackInterruption_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowPlaybackInterruption_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment other = - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) obj; - - if (getAllowPlaybackInterruption() != other.getAllowPlaybackInterruption()) return false; - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 1: - if (!getAudio().equals(other.getAudio())) return false; - break; - case 2: - if (!getUri().equals(other.getUri())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPlaybackInterruption()); - switch (contentCase_) { - case 1: - hash = (37 * hash) + AUDIO_FIELD_NUMBER; - hash = (53 * hash) + getAudio().hashCode(); - break; - case 2: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * Represents one segment of audio.
-       * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.class, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - .class); - } - - // Construct using - // com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - allowPlaybackInterruption_ = false; - - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_Segment_descriptor; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment build() { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - buildPartial() { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment result = - new com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment(this); - if (contentCase_ == 1) { - result.content_ = content_; - } - if (contentCase_ == 2) { - result.content_ = content_; - } - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - result.contentCase_ = contentCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment other) { - if (other - == com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - .getDefaultInstance()) return this; - if (other.getAllowPlaybackInterruption() != false) { - setAllowPlaybackInterruption(other.getAllowPlaybackInterruption()); - } - switch (other.getContentCase()) { - case AUDIO: - { - setAudio(other.getAudio()); - break; - } - case URI: - { - contentCase_ = 2; - content_ = other.content_; - onChanged(); - break; - } - case CONTENT_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int contentCase_ = 0; - private java.lang.Object content_; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-         * Raw audio synthesized from the Dialogflow agent's response using
-         * the output config specified in the request.
-         * 
- * - * bytes audio = 1; - * - * @return Whether the audio field is set. - */ - public boolean hasAudio() { - return contentCase_ == 1; - } - /** - * - * - *
-         * Raw audio synthesized from the Dialogflow agent's response using
-         * the output config specified in the request.
-         * 
- * - * bytes audio = 1; - * - * @return The audio. - */ - public com.google.protobuf.ByteString getAudio() { - if (contentCase_ == 1) { - return (com.google.protobuf.ByteString) content_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * - * - *
-         * Raw audio synthesized from the Dialogflow agent's response using
-         * the output config specified in the request.
-         * 
- * - * bytes audio = 1; - * - * @param value The audio to set. - * @return This builder for chaining. - */ - public Builder setAudio(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 1; - content_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * Raw audio synthesized from the Dialogflow agent's response using
-         * the output config specified in the request.
-         * 
- * - * bytes audio = 1; - * - * @return This builder for chaining. - */ - public Builder clearAudio() { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-         * Client-specific URI that points to an audio clip accessible to the
-         * client.
-         * 
- * - * string uri = 2; - * - * @return Whether the uri field is set. - */ - @java.lang.Override - public boolean hasUri() { - return contentCase_ == 2; - } - /** - * - * - *
-         * Client-specific URI that points to an audio clip accessible to the
-         * client.
-         * 
- * - * string uri = 2; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 2) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Client-specific URI that points to an audio clip accessible to the
-         * client.
-         * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (contentCase_ == 2) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Client-specific URI that points to an audio clip accessible to the
-         * client.
-         * 
- * - * string uri = 2; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 2; - content_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * Client-specific URI that points to an audio clip accessible to the
-         * client.
-         * 
- * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-         * Client-specific URI that points to an audio clip accessible to the
-         * client.
-         * 
- * - * string uri = 2; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contentCase_ = 2; - content_ = value; - onChanged(); - return this; - } - - private boolean allowPlaybackInterruption_; - /** - * - * - *
-         * Whether the playback of this segment can be interrupted by the end
-         * user's speech and the client should then start the next Dialogflow
-         * request.
-         * 
- * - * bool allow_playback_interruption = 3; - * - * @return The allowPlaybackInterruption. - */ - @java.lang.Override - public boolean getAllowPlaybackInterruption() { - return allowPlaybackInterruption_; - } - /** - * - * - *
-         * Whether the playback of this segment can be interrupted by the end
-         * user's speech and the client should then start the next Dialogflow
-         * request.
-         * 
- * - * bool allow_playback_interruption = 3; - * - * @param value The allowPlaybackInterruption to set. - * @return This builder for chaining. - */ - public Builder setAllowPlaybackInterruption(boolean value) { - - allowPlaybackInterruption_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * Whether the playback of this segment can be interrupted by the end
-         * user's speech and the client should then start the next Dialogflow
-         * request.
-         * 
- * - * bool allow_playback_interruption = 3; - * - * @return This builder for chaining. - */ - public Builder clearAllowPlaybackInterruption() { - - allowPlaybackInterruption_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment) - private static final com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment(); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Segment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Segment(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int SEGMENTS_FIELD_NUMBER = 1; - private java.util.List - segments_; - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - @java.lang.Override - public java.util.List - getSegmentsList() { - return segments_; - } - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder> - getSegmentsOrBuilderList() { - return segments_; - } - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - @java.lang.Override - public int getSegmentsCount() { - return segments_.size(); - } - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment getSegments( - int index) { - return segments_.get(index); - } - /** - * - * - *
-     * Segments this audio response is composed of.
-     * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder - getSegmentsOrBuilder(int index) { - return segments_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < segments_.size(); i++) { - output.writeMessage(1, segments_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < segments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, segments_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio other = - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) obj; - - if (!getSegmentsList().equals(other.getSegmentsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSegmentsCount() > 0) { - hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; - hash = (53 * hash) + getSegmentsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Represents an audio message that is composed of both segments
-     * synthesized from the Dialogflow agent prompts and ones hosted externally
-     * at the specified URIs.
-     * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.class, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder.class); - } - - // Construct using com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSegmentsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - segmentsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_MixedAudio_descriptor; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio build() { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio buildPartial() { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio result = - new com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio(this); - int from_bitField0_ = bitField0_; - if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.segments_ = segments_; - } else { - result.segments_ = segmentsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) { - return mergeFrom((com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio other) { - if (other - == com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance()) - return this; - if (segmentsBuilder_ == null) { - if (!other.segments_.isEmpty()) { - if (segments_.isEmpty()) { - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSegmentsIsMutable(); - segments_.addAll(other.segments_); - } - onChanged(); - } - } else { - if (!other.segments_.isEmpty()) { - if (segmentsBuilder_.isEmpty()) { - segmentsBuilder_.dispose(); - segmentsBuilder_ = null; - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000001); - segmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSegmentsFieldBuilder() - : null; - } else { - segmentsBuilder_.addAllMessages(other.segments_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - segments_ = java.util.Collections.emptyList(); - - private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - segments_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment>( - segments_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder> - segmentsBuilder_; - - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public java.util.List - getSegmentsList() { - if (segmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(segments_); - } else { - return segmentsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public int getSegmentsCount() { - if (segmentsBuilder_ == null) { - return segments_.size(); - } else { - return segmentsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment getSegments( - int index) { - if (segmentsBuilder_ == null) { - return segments_.get(index); - } else { - return segmentsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder setSegments( - int index, com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment value) { - if (segmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSegmentsIsMutable(); - segments_.set(index, value); - onChanged(); - } else { - segmentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder setSegments( - int index, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.set(index, builderForValue.build()); - onChanged(); - } else { - segmentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder addSegments( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment value) { - if (segmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSegmentsIsMutable(); - segments_.add(value); - onChanged(); - } else { - segmentsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder addSegments( - int index, com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment value) { - if (segmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSegmentsIsMutable(); - segments_.add(index, value); - onChanged(); - } else { - segmentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder addSegments( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(builderForValue.build()); - onChanged(); - } else { - segmentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder addSegments( - int index, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(index, builderForValue.build()); - onChanged(); - } else { - segmentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder addAllSegments( - java.lang.Iterable< - ? extends com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment> - values) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); - onChanged(); - } else { - segmentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder clearSegments() { - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - segmentsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public Builder removeSegments(int index) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.remove(index); - onChanged(); - } else { - segmentsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - getSegmentsBuilder(int index) { - return getSegmentsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder - getSegmentsOrBuilder(int index) { - if (segmentsBuilder_ == null) { - return segments_.get(index); - } else { - return segmentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder> - getSegmentsOrBuilderList() { - if (segmentsBuilder_ != null) { - return segmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(segments_); - } - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - addSegmentsBuilder() { - return getSegmentsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - .getDefaultInstance()); - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder - addSegmentsBuilder(int index) { - return getSegmentsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment - .getDefaultInstance()); - } - /** - * - * - *
-       * Segments this audio response is composed of.
-       * 
- * - * - * repeated .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1; - * - */ - public java.util.List< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder> - getSegmentsBuilderList() { - return getSegmentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder> - getSegmentsFieldBuilder() { - if (segmentsBuilder_ == null) { - segmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - segments_ = null; - } - return segmentsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) - private static final com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio(); - } - - public static com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MixedAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MixedAudio(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int messageCase_ = 0; - private java.lang.Object message_; - - public enum MessageCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TEXT(1), - PAYLOAD(2), - LIVE_AGENT_HANDOFF(3), - END_INTERACTION(4), - MIXED_AUDIO(5), - MESSAGE_NOT_SET(0); - private final int value; - - private MessageCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MessageCase valueOf(int value) { - return forNumber(value); - } - - public static MessageCase forNumber(int value) { - switch (value) { - case 1: - return TEXT; - case 2: - return PAYLOAD; - case 3: - return LIVE_AGENT_HANDOFF; - case 4: - return END_INTERACTION; - case 5: - return MIXED_AUDIO; - case 0: - return MESSAGE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); - } - - public static final int TEXT_FIELD_NUMBER = 1; - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return messageCase_ == 1; - } - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; - * - * @return The text. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text getText() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text) message_; - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text.getDefaultInstance(); - } - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.TextOrBuilder getTextOrBuilder() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text) message_; - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.Text.getDefaultInstance(); - } - - public static final int PAYLOAD_FIELD_NUMBER = 2; - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - * - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return messageCase_ == 2; - } - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.Struct getPayload() { - if (messageCase_ == 2) { - return (com.google.protobuf.Struct) message_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - if (messageCase_ == 2) { - return (com.google.protobuf.Struct) message_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } + return com.google.protobuf.Struct.getDefaultInstance(); + } public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER = 3; /** @@ -4733,61 +2483,6 @@ public com.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction getEnd return com.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction.getDefaultInstance(); } - public static final int MIXED_AUDIO_FIELD_NUMBER = 5; - /** - * - * - *
-   * An audio response message composed of both the synthesized Dialogflow
-   * agent responses and the audios hosted in places known to the client.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - * - * @return Whether the mixedAudio field is set. - */ - @java.lang.Override - public boolean hasMixedAudio() { - return messageCase_ == 5; - } - /** - * - * - *
-   * An audio response message composed of both the synthesized Dialogflow
-   * agent responses and the audios hosted in places known to the client.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - * - * @return The mixedAudio. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio getMixedAudio() { - if (messageCase_ == 5) { - return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_; - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } - /** - * - * - *
-   * An audio response message composed of both the synthesized Dialogflow
-   * agent responses and the audios hosted in places known to the client.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder - getMixedAudioOrBuilder() { - if (messageCase_ == 5) { - return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_; - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4816,10 +2511,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction) message_); } - if (messageCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_); - } unknownFields.writeTo(output); } @@ -4849,11 +2540,6 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction) message_); } - if (messageCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4884,9 +2570,6 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getEndInteraction().equals(other.getEndInteraction())) return false; break; - case 5: - if (!getMixedAudio().equals(other.getMixedAudio())) return false; - break; case 0: default: } @@ -4918,10 +2601,6 @@ public int hashCode() { hash = (37 * hash) + END_INTERACTION_FIELD_NUMBER; hash = (53 * hash) + getEndInteraction().hashCode(); break; - case 5: - hash = (37 * hash) + MIXED_AUDIO_FIELD_NUMBER; - hash = (53 * hash) + getMixedAudio().hashCode(); - break; case 0: default: } @@ -5127,13 +2806,6 @@ public com.google.cloud.dialogflow.v2beta1.ResponseMessage buildPartial() { result.message_ = endInteractionBuilder_.build(); } } - if (messageCase_ == 5) { - if (mixedAudioBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = mixedAudioBuilder_.build(); - } - } result.messageCase_ = messageCase_; onBuilt(); return result; @@ -5206,11 +2878,6 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ResponseMessage oth mergeEndInteraction(other.getEndInteraction()); break; } - case MIXED_AUDIO: - { - mergeMixedAudio(other.getMixedAudio()); - break; - } case MESSAGE_NOT_SET: { break; @@ -6154,231 +3821,6 @@ public Builder clearEndInteraction() { return endInteractionBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder> - mixedAudioBuilder_; - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - * - * @return Whether the mixedAudio field is set. - */ - @java.lang.Override - public boolean hasMixedAudio() { - return messageCase_ == 5; - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - * - * @return The mixedAudio. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio getMixedAudio() { - if (mixedAudioBuilder_ == null) { - if (messageCase_ == 5) { - return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_; - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } else { - if (messageCase_ == 5) { - return mixedAudioBuilder_.getMessage(); - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - public Builder setMixedAudio( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio value) { - if (mixedAudioBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - message_ = value; - onChanged(); - } else { - mixedAudioBuilder_.setMessage(value); - } - messageCase_ = 5; - return this; - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - public Builder setMixedAudio( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder builderForValue) { - if (mixedAudioBuilder_ == null) { - message_ = builderForValue.build(); - onChanged(); - } else { - mixedAudioBuilder_.setMessage(builderForValue.build()); - } - messageCase_ = 5; - return this; - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - public Builder mergeMixedAudio( - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio value) { - if (mixedAudioBuilder_ == null) { - if (messageCase_ == 5 - && message_ - != com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio - .getDefaultInstance()) { - message_ = - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.newBuilder( - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_) - .mergeFrom(value) - .buildPartial(); - } else { - message_ = value; - } - onChanged(); - } else { - if (messageCase_ == 5) { - mixedAudioBuilder_.mergeFrom(value); - } - mixedAudioBuilder_.setMessage(value); - } - messageCase_ = 5; - return this; - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - public Builder clearMixedAudio() { - if (mixedAudioBuilder_ == null) { - if (messageCase_ == 5) { - messageCase_ = 0; - message_ = null; - onChanged(); - } - } else { - if (messageCase_ == 5) { - messageCase_ = 0; - message_ = null; - } - mixedAudioBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder - getMixedAudioBuilder() { - return getMixedAudioFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder - getMixedAudioOrBuilder() { - if ((messageCase_ == 5) && (mixedAudioBuilder_ != null)) { - return mixedAudioBuilder_.getMessageOrBuilder(); - } else { - if (messageCase_ == 5) { - return (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_; - } - return com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } - } - /** - * - * - *
-     * An audio response message composed of both the synthesized Dialogflow
-     * agent responses and the audios hosted in places known to the client.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder> - getMixedAudioFieldBuilder() { - if (mixedAudioBuilder_ == null) { - if (!(messageCase_ == 5)) { - message_ = - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.getDefaultInstance(); - } - mixedAudioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Builder, - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio) message_, - getParentForChildren(), - isClean()); - message_ = null; - } - messageCase_ = 5; - onChanged(); - ; - return mixedAudioBuilder_; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessageOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessageOrBuilder.java index 764ed66a1..26d2a5338 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessageOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessageOrBuilder.java @@ -174,43 +174,5 @@ public interface ResponseMessageOrBuilder com.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder(); - /** - * - * - *
-   * An audio response message composed of both the synthesized Dialogflow
-   * agent responses and the audios hosted in places known to the client.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - * - * @return Whether the mixedAudio field is set. - */ - boolean hasMixedAudio(); - /** - * - * - *
-   * An audio response message composed of both the synthesized Dialogflow
-   * agent responses and the audios hosted in places known to the client.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - * - * @return The mixedAudio. - */ - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio getMixedAudio(); - /** - * - * - *
-   * An audio response message composed of both the synthesized Dialogflow
-   * agent responses and the audios hosted in places known to the client.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; - */ - com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioOrBuilder getMixedAudioOrBuilder(); - public com.google.cloud.dialogflow.v2beta1.ResponseMessage.MessageCase getMessageCase(); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index 93e0b7094..afe0c9faf 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -1237,33 +1237,6 @@ message ResponseMessage { } - // Represents an audio message that is composed of both segments - // synthesized from the Dialogflow agent prompts and ones hosted externally - // at the specified URIs. - message MixedAudio { - // Represents one segment of audio. - message Segment { - // Content of the segment. - oneof content { - // Raw audio synthesized from the Dialogflow agent's response using - // the output config specified in the request. - bytes audio = 1; - - // Client-specific URI that points to an audio clip accessible to the - // client. - string uri = 2; - } - - // Whether the playback of this segment can be interrupted by the end - // user's speech and the client should then start the next Dialogflow - // request. - bool allow_playback_interruption = 3; - } - - // Segments this audio response is composed of. - repeated Segment segments = 1; - } - // Required. The rich response message. oneof message { // Returns a text response. @@ -1278,9 +1251,5 @@ message ResponseMessage { // A signal that indicates the interaction with the Dialogflow agent has // ended. EndInteraction end_interaction = 4; - - // An audio response message composed of both the synthesized Dialogflow - // agent responses and the audios hosted in places known to the client. - MixedAudio mixed_audio = 5; } } diff --git a/synth.metadata b/synth.metadata index 402a13bf6..3f3bd97c3 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow.git", - "sha": "b0db749954aa1ae75b580535de4cb9a2ce80a0e9" + "sha": "38e5684abf27ffd6c19b0a92baf35dd0dffc0dc5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "369e98ef9cbae3fcbd9623ba084af51e54ddec65", - "internalRef": "361003369" + "sha": "3b0afe54b5aedcd7cee0036b16d2a31324d0db60", + "internalRef": "361217394" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "369e98ef9cbae3fcbd9623ba084af51e54ddec65", - "internalRef": "361003369" + "sha": "3b0afe54b5aedcd7cee0036b16d2a31324d0db60", + "internalRef": "361217394" } }, { From 7b206bfc64f0fcead62b4cf462a632be003a8f4d Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 8 Mar 2021 16:38:45 -0800 Subject: [PATCH 2/3] chore: update gax-java dependency to 1.62 PiperOrigin-RevId: 361377784 Source-Author: Google APIs Source-Date: Sat Mar 6 21:09:41 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 Source-Link: https://github.com/googleapis/googleapis/commit/0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 --- .../cloud/dialogflow/v2/AgentsGrpc.java | 111 ++++++++------- .../dialogflow/v2/AnswerRecordsGrpc.java | 27 ++-- .../cloud/dialogflow/v2/ContextsGrpc.java | 75 +++++----- .../v2/ConversationProfilesGrpc.java | 60 ++++---- .../dialogflow/v2/ConversationsGrpc.java | 95 +++++++------ .../cloud/dialogflow/v2/DocumentsGrpc.java | 77 ++++++----- .../cloud/dialogflow/v2/EntityTypesGrpc.java | 117 ++++++++-------- .../cloud/dialogflow/v2/EnvironmentsGrpc.java | 16 +-- .../cloud/dialogflow/v2/IntentsGrpc.java | 87 ++++++------ .../dialogflow/v2/KnowledgeBasesGrpc.java | 60 ++++---- .../cloud/dialogflow/v2/ParticipantsGrpc.java | 95 ++++++------- .../dialogflow/v2/SessionEntityTypesGrpc.java | 60 ++++---- .../cloud/dialogflow/v2/SessionsGrpc.java | 27 ++-- .../cloud/dialogflow/v2beta1/AgentsGrpc.java | 111 ++++++++------- .../dialogflow/v2beta1/AnswerRecordsGrpc.java | 39 +++--- .../dialogflow/v2beta1/ContextsGrpc.java | 75 +++++----- .../v2beta1/ConversationProfilesGrpc.java | 60 ++++---- .../dialogflow/v2beta1/ConversationsGrpc.java | 106 +++++++------- .../dialogflow/v2beta1/DocumentsGrpc.java | 89 ++++++------ .../dialogflow/v2beta1/EntityTypesGrpc.java | 117 ++++++++-------- .../dialogflow/v2beta1/EnvironmentsGrpc.java | 16 +-- .../cloud/dialogflow/v2beta1/IntentsGrpc.java | 87 ++++++------ .../v2beta1/KnowledgeBasesGrpc.java | 60 ++++---- .../dialogflow/v2beta1/ParticipantsGrpc.java | 129 +++++++++--------- .../v2beta1/SessionEntityTypesGrpc.java | 60 ++++---- .../dialogflow/v2beta1/SessionsGrpc.java | 27 ++-- synth.metadata | 8 +- 27 files changed, 983 insertions(+), 908 deletions(-) diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java index a7e2f550f..b05bb2470 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -483,7 +478,7 @@ public abstract static class AgentsImplBase implements io.grpc.BindableService { public void getAgent( com.google.cloud.dialogflow.v2.GetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); } /** @@ -496,7 +491,7 @@ public void getAgent( public void setAgent( com.google.cloud.dialogflow.v2.SetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAgentMethod(), responseObserver); } /** @@ -509,7 +504,8 @@ public void setAgent( public void deleteAgent( com.google.cloud.dialogflow.v2.DeleteAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAgentMethod(), responseObserver); } /** @@ -528,7 +524,8 @@ public void searchAgents( com.google.cloud.dialogflow.v2.SearchAgentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSearchAgentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAgentsMethod(), responseObserver); } /** @@ -542,7 +539,7 @@ public void searchAgents( public void trainAgent( com.google.cloud.dialogflow.v2.TrainAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTrainAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTrainAgentMethod(), responseObserver); } /** @@ -556,7 +553,8 @@ public void trainAgent( public void exportAgent( com.google.cloud.dialogflow.v2.ExportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportAgentMethod(), responseObserver); } /** @@ -579,7 +577,8 @@ public void exportAgent( public void importAgent( com.google.cloud.dialogflow.v2.ImportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportAgentMethod(), responseObserver); } /** @@ -601,7 +600,8 @@ public void importAgent( public void restoreAgent( com.google.cloud.dialogflow.v2.RestoreAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRestoreAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreAgentMethod(), responseObserver); } /** @@ -616,7 +616,8 @@ public void getValidationResult( com.google.cloud.dialogflow.v2.GetValidationResultRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetValidationResultMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetValidationResultMethod(), responseObserver); } @java.lang.Override @@ -624,56 +625,56 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetAgentRequest, com.google.cloud.dialogflow.v2.Agent>(this, METHODID_GET_AGENT))) .addMethod( getSetAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.SetAgentRequest, com.google.cloud.dialogflow.v2.Agent>(this, METHODID_SET_AGENT))) .addMethod( getDeleteAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteAgentRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_AGENT))) .addMethod( getSearchAgentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.SearchAgentsRequest, com.google.cloud.dialogflow.v2.SearchAgentsResponse>( this, METHODID_SEARCH_AGENTS))) .addMethod( getTrainAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.TrainAgentRequest, com.google.longrunning.Operation>(this, METHODID_TRAIN_AGENT))) .addMethod( getExportAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ExportAgentRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_AGENT))) .addMethod( getImportAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ImportAgentRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_AGENT))) .addMethod( getRestoreAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.RestoreAgentRequest, com.google.longrunning.Operation>(this, METHODID_RESTORE_AGENT))) .addMethod( getGetValidationResultMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetValidationResultRequest, com.google.cloud.dialogflow.v2.ValidationResult>( @@ -709,7 +710,7 @@ protected AgentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti public void getAgent( com.google.cloud.dialogflow.v2.GetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); } @@ -723,7 +724,7 @@ public void getAgent( public void setAgent( com.google.cloud.dialogflow.v2.SetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetAgentMethod(), getCallOptions()), request, responseObserver); } @@ -737,7 +738,7 @@ public void setAgent( public void deleteAgent( com.google.cloud.dialogflow.v2.DeleteAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request, responseObserver); @@ -759,7 +760,7 @@ public void searchAgents( com.google.cloud.dialogflow.v2.SearchAgentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request, responseObserver); @@ -776,7 +777,7 @@ public void searchAgents( public void trainAgent( com.google.cloud.dialogflow.v2.TrainAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTrainAgentMethod(), getCallOptions()), request, responseObserver); } @@ -791,7 +792,7 @@ public void trainAgent( public void exportAgent( com.google.cloud.dialogflow.v2.ExportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportAgentMethod(), getCallOptions()), request, responseObserver); @@ -817,7 +818,7 @@ public void exportAgent( public void importAgent( com.google.cloud.dialogflow.v2.ImportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportAgentMethod(), getCallOptions()), request, responseObserver); @@ -842,7 +843,7 @@ public void importAgent( public void restoreAgent( com.google.cloud.dialogflow.v2.RestoreAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRestoreAgentMethod(), getCallOptions()), request, responseObserver); @@ -860,7 +861,7 @@ public void getValidationResult( com.google.cloud.dialogflow.v2.GetValidationResultRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), request, responseObserver); @@ -894,7 +895,8 @@ protected AgentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.cloud.dialogflow.v2.Agent getAgent( com.google.cloud.dialogflow.v2.GetAgentRequest request) { - return blockingUnaryCall(getChannel(), getGetAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); } /** @@ -906,7 +908,8 @@ public com.google.cloud.dialogflow.v2.Agent getAgent( */ public com.google.cloud.dialogflow.v2.Agent setAgent( com.google.cloud.dialogflow.v2.SetAgentRequest request) { - return blockingUnaryCall(getChannel(), getSetAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAgentMethod(), getCallOptions(), request); } /** @@ -918,7 +921,8 @@ public com.google.cloud.dialogflow.v2.Agent setAgent( */ public com.google.protobuf.Empty deleteAgent( com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { - return blockingUnaryCall(getChannel(), getDeleteAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } /** @@ -935,7 +939,8 @@ public com.google.protobuf.Empty deleteAgent( */ public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents( com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { - return blockingUnaryCall(getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAgentsMethod(), getCallOptions(), request); } /** @@ -948,7 +953,8 @@ public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents( */ public com.google.longrunning.Operation trainAgent( com.google.cloud.dialogflow.v2.TrainAgentRequest request) { - return blockingUnaryCall(getChannel(), getTrainAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTrainAgentMethod(), getCallOptions(), request); } /** @@ -961,7 +967,8 @@ public com.google.longrunning.Operation trainAgent( */ public com.google.longrunning.Operation exportAgent( com.google.cloud.dialogflow.v2.ExportAgentRequest request) { - return blockingUnaryCall(getChannel(), getExportAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportAgentMethod(), getCallOptions(), request); } /** @@ -983,7 +990,8 @@ public com.google.longrunning.Operation exportAgent( */ public com.google.longrunning.Operation importAgent( com.google.cloud.dialogflow.v2.ImportAgentRequest request) { - return blockingUnaryCall(getChannel(), getImportAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportAgentMethod(), getCallOptions(), request); } /** @@ -1004,7 +1012,8 @@ public com.google.longrunning.Operation importAgent( */ public com.google.longrunning.Operation restoreAgent( com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { - return blockingUnaryCall(getChannel(), getRestoreAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreAgentMethod(), getCallOptions(), request); } /** @@ -1017,7 +1026,7 @@ public com.google.longrunning.Operation restoreAgent( */ public com.google.cloud.dialogflow.v2.ValidationResult getValidationResult( com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetValidationResultMethod(), getCallOptions(), request); } } @@ -1049,7 +1058,8 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture getAgent(com.google.cloud.dialogflow.v2.GetAgentRequest request) { - return futureUnaryCall(getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); } /** @@ -1061,7 +1071,8 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture setAgent(com.google.cloud.dialogflow.v2.SetAgentRequest request) { - return futureUnaryCall(getChannel().newCall(getSetAgentMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAgentMethod(), getCallOptions()), request); } /** @@ -1073,7 +1084,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deleteAgent(com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request); } @@ -1092,7 +1103,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.SearchAgentsResponse> searchAgents(com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request); } @@ -1106,7 +1117,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture trainAgent(com.google.cloud.dialogflow.v2.TrainAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTrainAgentMethod(), getCallOptions()), request); } @@ -1120,7 +1131,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture exportAgent(com.google.cloud.dialogflow.v2.ExportAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAgentMethod(), getCallOptions()), request); } @@ -1143,7 +1154,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture importAgent(com.google.cloud.dialogflow.v2.ImportAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportAgentMethod(), getCallOptions()), request); } @@ -1165,7 +1176,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture restoreAgent(com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreAgentMethod(), getCallOptions()), request); } @@ -1180,7 +1191,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ValidationResult> getValidationResult(com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java index 3ec607300..a69c236a5 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -194,7 +189,8 @@ public void listAnswerRecords( com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAnswerRecordsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAnswerRecordsMethod(), responseObserver); } /** @@ -207,7 +203,8 @@ public void listAnswerRecords( public void updateAnswerRecord( com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAnswerRecordMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAnswerRecordMethod(), responseObserver); } @java.lang.Override @@ -215,14 +212,14 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListAnswerRecordsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest, com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>( this, METHODID_LIST_ANSWER_RECORDS))) .addMethod( getUpdateAnswerRecordMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest, com.google.cloud.dialogflow.v2.AnswerRecord>( @@ -261,7 +258,7 @@ public void listAnswerRecords( com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request, responseObserver); @@ -277,7 +274,7 @@ public void listAnswerRecords( public void updateAnswerRecord( com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request, responseObserver); @@ -313,7 +310,7 @@ protected AnswerRecordsBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecords( com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); } @@ -326,7 +323,7 @@ public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecord */ public com.google.cloud.dialogflow.v2.AnswerRecord updateAnswerRecord( com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); } } @@ -361,7 +358,7 @@ protected AnswerRecordsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse> listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request); } @@ -375,7 +372,7 @@ protected AnswerRecordsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.AnswerRecord> updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java index fe5c53068..428b03cc6 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -363,7 +358,8 @@ public void listContexts( com.google.cloud.dialogflow.v2.ListContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListContextsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListContextsMethod(), responseObserver); } /** @@ -376,7 +372,7 @@ public void listContexts( public void getContext( com.google.cloud.dialogflow.v2.GetContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); } /** @@ -390,7 +386,8 @@ public void getContext( public void createContext( com.google.cloud.dialogflow.v2.CreateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateContextMethod(), responseObserver); } /** @@ -403,7 +400,8 @@ public void createContext( public void updateContext( com.google.cloud.dialogflow.v2.UpdateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateContextMethod(), responseObserver); } /** @@ -416,7 +414,8 @@ public void updateContext( public void deleteContext( com.google.cloud.dialogflow.v2.DeleteContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteContextMethod(), responseObserver); } /** @@ -429,7 +428,8 @@ public void deleteContext( public void deleteAllContexts( com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAllContextsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAllContextsMethod(), responseObserver); } @java.lang.Override @@ -437,38 +437,38 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListContextsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListContextsRequest, com.google.cloud.dialogflow.v2.ListContextsResponse>( this, METHODID_LIST_CONTEXTS))) .addMethod( getGetContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetContextRequest, com.google.cloud.dialogflow.v2.Context>(this, METHODID_GET_CONTEXT))) .addMethod( getCreateContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateContextRequest, com.google.cloud.dialogflow.v2.Context>(this, METHODID_CREATE_CONTEXT))) .addMethod( getUpdateContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateContextRequest, com.google.cloud.dialogflow.v2.Context>(this, METHODID_UPDATE_CONTEXT))) .addMethod( getDeleteContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteContextRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_CONTEXT))) .addMethod( getDeleteAllContextsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteAllContextsRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ALL_CONTEXTS))) @@ -504,7 +504,7 @@ public void listContexts( com.google.cloud.dialogflow.v2.ListContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListContextsMethod(), getCallOptions()), request, responseObserver); @@ -520,7 +520,7 @@ public void listContexts( public void getContext( com.google.cloud.dialogflow.v2.GetContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver); } @@ -535,7 +535,7 @@ public void getContext( public void createContext( com.google.cloud.dialogflow.v2.CreateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateContextMethod(), getCallOptions()), request, responseObserver); @@ -551,7 +551,7 @@ public void createContext( public void updateContext( com.google.cloud.dialogflow.v2.UpdateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request, responseObserver); @@ -567,7 +567,7 @@ public void updateContext( public void deleteContext( com.google.cloud.dialogflow.v2.DeleteContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request, responseObserver); @@ -583,7 +583,7 @@ public void deleteContext( public void deleteAllContexts( com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request, responseObserver); @@ -617,7 +617,8 @@ protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts( com.google.cloud.dialogflow.v2.ListContextsRequest request) { - return blockingUnaryCall(getChannel(), getListContextsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContextsMethod(), getCallOptions(), request); } /** @@ -629,7 +630,8 @@ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts( */ public com.google.cloud.dialogflow.v2.Context getContext( com.google.cloud.dialogflow.v2.GetContextRequest request) { - return blockingUnaryCall(getChannel(), getGetContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetContextMethod(), getCallOptions(), request); } /** @@ -642,7 +644,8 @@ public com.google.cloud.dialogflow.v2.Context getContext( */ public com.google.cloud.dialogflow.v2.Context createContext( com.google.cloud.dialogflow.v2.CreateContextRequest request) { - return blockingUnaryCall(getChannel(), getCreateContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateContextMethod(), getCallOptions(), request); } /** @@ -654,7 +657,8 @@ public com.google.cloud.dialogflow.v2.Context createContext( */ public com.google.cloud.dialogflow.v2.Context updateContext( com.google.cloud.dialogflow.v2.UpdateContextRequest request) { - return blockingUnaryCall(getChannel(), getUpdateContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateContextMethod(), getCallOptions(), request); } /** @@ -666,7 +670,8 @@ public com.google.cloud.dialogflow.v2.Context updateContext( */ public com.google.protobuf.Empty deleteContext( com.google.cloud.dialogflow.v2.DeleteContextRequest request) { - return blockingUnaryCall(getChannel(), getDeleteContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteContextMethod(), getCallOptions(), request); } /** @@ -678,7 +683,7 @@ public com.google.protobuf.Empty deleteContext( */ public com.google.protobuf.Empty deleteAllContexts( com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); } } @@ -711,7 +716,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListContextsResponse> listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListContextsMethod(), getCallOptions()), request); } @@ -725,7 +730,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Context> getContext(com.google.cloud.dialogflow.v2.GetContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetContextMethod(), getCallOptions()), request); } @@ -740,7 +745,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Context> createContext(com.google.cloud.dialogflow.v2.CreateContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateContextMethod(), getCallOptions()), request); } @@ -754,7 +759,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Context> updateContext(com.google.cloud.dialogflow.v2.UpdateContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request); } @@ -767,7 +772,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture deleteContext(com.google.cloud.dialogflow.v2.DeleteContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); } @@ -780,7 +785,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture deleteAllContexts(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java index 2422938f1..c9a414397 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -363,7 +358,8 @@ public void listConversationProfiles( com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListConversationProfilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversationProfilesMethod(), responseObserver); } /** @@ -377,7 +373,8 @@ public void getConversationProfile( com.google.cloud.dialogflow.v2.GetConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversationProfileMethod(), responseObserver); } /** @@ -394,7 +391,8 @@ public void createConversationProfile( com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversationProfileMethod(), responseObserver); } /** @@ -411,7 +409,8 @@ public void updateConversationProfile( com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConversationProfileMethod(), responseObserver); } /** @@ -424,7 +423,8 @@ public void updateConversationProfile( public void deleteConversationProfile( com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversationProfileMethod(), responseObserver); } @java.lang.Override @@ -432,35 +432,35 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListConversationProfilesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListConversationProfilesRequest, com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>( this, METHODID_LIST_CONVERSATION_PROFILES))) .addMethod( getGetConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetConversationProfileRequest, com.google.cloud.dialogflow.v2.ConversationProfile>( this, METHODID_GET_CONVERSATION_PROFILE))) .addMethod( getCreateConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateConversationProfileRequest, com.google.cloud.dialogflow.v2.ConversationProfile>( this, METHODID_CREATE_CONVERSATION_PROFILE))) .addMethod( getUpdateConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest, com.google.cloud.dialogflow.v2.ConversationProfile>( this, METHODID_UPDATE_CONVERSATION_PROFILE))) .addMethod( getDeleteConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_CONVERSATION_PROFILE))) @@ -498,7 +498,7 @@ public void listConversationProfiles( com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request, responseObserver); @@ -515,7 +515,7 @@ public void getConversationProfile( com.google.cloud.dialogflow.v2.GetConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -535,7 +535,7 @@ public void createConversationProfile( com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -555,7 +555,7 @@ public void updateConversationProfile( com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -571,7 +571,7 @@ public void updateConversationProfile( public void deleteConversationProfile( com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -607,7 +607,7 @@ protected ConversationProfilesBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConversationProfiles( com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); } @@ -620,7 +620,7 @@ public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConve */ public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile( com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); } @@ -636,7 +636,7 @@ public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile */ public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProfile( com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); } @@ -652,7 +652,7 @@ public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProf */ public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProfile( com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); } @@ -665,7 +665,7 @@ public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProf */ public com.google.protobuf.Empty deleteConversationProfile( com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); } } @@ -701,7 +701,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2.ListConversationProfilesResponse> listConversationProfiles( com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request); } @@ -716,7 +716,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2.ConversationProfile> getConversationProfile( com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request); } @@ -734,7 +734,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2.ConversationProfile> createConversationProfile( com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request); } @@ -752,7 +752,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2.ConversationProfile> updateConversationProfile( com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request); } @@ -766,7 +766,7 @@ protected ConversationProfilesFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteConversationProfile( com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java index 22ab42642..d2e894f54 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -482,7 +477,8 @@ public abstract static class ConversationsImplBase implements io.grpc.BindableSe public void createConversation( com.google.cloud.dialogflow.v2.CreateConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversationMethod(), responseObserver); } /** @@ -496,7 +492,8 @@ public void listConversations( com.google.cloud.dialogflow.v2.ListConversationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListConversationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversationsMethod(), responseObserver); } /** @@ -509,7 +506,8 @@ public void listConversations( public void getConversation( com.google.cloud.dialogflow.v2.GetConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversationMethod(), responseObserver); } /** @@ -523,7 +521,8 @@ public void getConversation( public void completeConversation( com.google.cloud.dialogflow.v2.CompleteConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCompleteConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompleteConversationMethod(), responseObserver); } /** @@ -537,7 +536,8 @@ public void completeConversation( public void createCallMatcher( com.google.cloud.dialogflow.v2.CreateCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateCallMatcherMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCallMatcherMethod(), responseObserver); } /** @@ -551,7 +551,8 @@ public void listCallMatchers( com.google.cloud.dialogflow.v2.ListCallMatchersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListCallMatchersMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCallMatchersMethod(), responseObserver); } /** @@ -564,7 +565,8 @@ public void listCallMatchers( public void deleteCallMatcher( com.google.cloud.dialogflow.v2.DeleteCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteCallMatcherMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCallMatcherMethod(), responseObserver); } /** @@ -582,7 +584,8 @@ public void listMessages( com.google.cloud.dialogflow.v2.ListMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListMessagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMessagesMethod(), responseObserver); } @java.lang.Override @@ -590,55 +593,55 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateConversationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateConversationRequest, com.google.cloud.dialogflow.v2.Conversation>( this, METHODID_CREATE_CONVERSATION))) .addMethod( getListConversationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListConversationsRequest, com.google.cloud.dialogflow.v2.ListConversationsResponse>( this, METHODID_LIST_CONVERSATIONS))) .addMethod( getGetConversationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetConversationRequest, com.google.cloud.dialogflow.v2.Conversation>( this, METHODID_GET_CONVERSATION))) .addMethod( getCompleteConversationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CompleteConversationRequest, com.google.cloud.dialogflow.v2.Conversation>( this, METHODID_COMPLETE_CONVERSATION))) .addMethod( getCreateCallMatcherMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateCallMatcherRequest, com.google.cloud.dialogflow.v2.CallMatcher>( this, METHODID_CREATE_CALL_MATCHER))) .addMethod( getListCallMatchersMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListCallMatchersRequest, com.google.cloud.dialogflow.v2.ListCallMatchersResponse>( this, METHODID_LIST_CALL_MATCHERS))) .addMethod( getDeleteCallMatcherMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteCallMatcherRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_CALL_MATCHER))) .addMethod( getListMessagesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListMessagesRequest, com.google.cloud.dialogflow.v2.ListMessagesResponse>( @@ -688,7 +691,7 @@ protected ConversationsStub build(io.grpc.Channel channel, io.grpc.CallOptions c public void createConversation( com.google.cloud.dialogflow.v2.CreateConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request, responseObserver); @@ -705,7 +708,7 @@ public void listConversations( com.google.cloud.dialogflow.v2.ListConversationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListConversationsMethod(), getCallOptions()), request, responseObserver); @@ -721,7 +724,7 @@ public void listConversations( public void getConversation( com.google.cloud.dialogflow.v2.GetConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConversationMethod(), getCallOptions()), request, responseObserver); @@ -738,7 +741,7 @@ public void getConversation( public void completeConversation( com.google.cloud.dialogflow.v2.CompleteConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request, responseObserver); @@ -755,7 +758,7 @@ public void completeConversation( public void createCallMatcher( com.google.cloud.dialogflow.v2.CreateCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateCallMatcherMethod(), getCallOptions()), request, responseObserver); @@ -772,7 +775,7 @@ public void listCallMatchers( com.google.cloud.dialogflow.v2.ListCallMatchersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListCallMatchersMethod(), getCallOptions()), request, responseObserver); @@ -788,7 +791,7 @@ public void listCallMatchers( public void deleteCallMatcher( com.google.cloud.dialogflow.v2.DeleteCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteCallMatcherMethod(), getCallOptions()), request, responseObserver); @@ -809,7 +812,7 @@ public void listMessages( com.google.cloud.dialogflow.v2.ListMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMessagesMethod(), getCallOptions()), request, responseObserver); @@ -857,7 +860,7 @@ protected ConversationsBlockingStub build( */ public com.google.cloud.dialogflow.v2.Conversation createConversation( com.google.cloud.dialogflow.v2.CreateConversationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -870,7 +873,7 @@ public com.google.cloud.dialogflow.v2.Conversation createConversation( */ public com.google.cloud.dialogflow.v2.ListConversationsResponse listConversations( com.google.cloud.dialogflow.v2.ListConversationsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -883,7 +886,8 @@ public com.google.cloud.dialogflow.v2.ListConversationsResponse listConversation */ public com.google.cloud.dialogflow.v2.Conversation getConversation( com.google.cloud.dialogflow.v2.GetConversationRequest request) { - return blockingUnaryCall(getChannel(), getGetConversationMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); } /** @@ -896,7 +900,7 @@ public com.google.cloud.dialogflow.v2.Conversation getConversation( */ public com.google.cloud.dialogflow.v2.Conversation completeConversation( com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteConversationMethod(), getCallOptions(), request); } @@ -910,7 +914,7 @@ public com.google.cloud.dialogflow.v2.Conversation completeConversation( */ public com.google.cloud.dialogflow.v2.CallMatcher createCallMatcher( com.google.cloud.dialogflow.v2.CreateCallMatcherRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateCallMatcherMethod(), getCallOptions(), request); } @@ -923,7 +927,7 @@ public com.google.cloud.dialogflow.v2.CallMatcher createCallMatcher( */ public com.google.cloud.dialogflow.v2.ListCallMatchersResponse listCallMatchers( com.google.cloud.dialogflow.v2.ListCallMatchersRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListCallMatchersMethod(), getCallOptions(), request); } @@ -936,7 +940,7 @@ public com.google.cloud.dialogflow.v2.ListCallMatchersResponse listCallMatchers( */ public com.google.protobuf.Empty deleteCallMatcher( com.google.cloud.dialogflow.v2.DeleteCallMatcherRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteCallMatcherMethod(), getCallOptions(), request); } @@ -953,7 +957,8 @@ public com.google.protobuf.Empty deleteCallMatcher( */ public com.google.cloud.dialogflow.v2.ListMessagesResponse listMessages( com.google.cloud.dialogflow.v2.ListMessagesRequest request) { - return blockingUnaryCall(getChannel(), getListMessagesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMessagesMethod(), getCallOptions(), request); } } @@ -999,7 +1004,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Conversation> createConversation(com.google.cloud.dialogflow.v2.CreateConversationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); } @@ -1013,7 +1018,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListConversationsResponse> listConversations(com.google.cloud.dialogflow.v2.ListConversationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); } @@ -1027,7 +1032,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Conversation> getConversation(com.google.cloud.dialogflow.v2.GetConversationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); } @@ -1042,7 +1047,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Conversation> completeConversation(com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request); } @@ -1057,7 +1062,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.CallMatcher> createCallMatcher(com.google.cloud.dialogflow.v2.CreateCallMatcherRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateCallMatcherMethod(), getCallOptions()), request); } @@ -1071,7 +1076,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListCallMatchersResponse> listCallMatchers(com.google.cloud.dialogflow.v2.ListCallMatchersRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCallMatchersMethod(), getCallOptions()), request); } @@ -1084,7 +1089,7 @@ protected ConversationsFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteCallMatcher(com.google.cloud.dialogflow.v2.DeleteCallMatcherRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteCallMatcherMethod(), getCallOptions()), request); } @@ -1102,7 +1107,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListMessagesResponse> listMessages(com.google.cloud.dialogflow.v2.ListMessagesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMessagesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java index 1ec5b4d86..61f8e5d60 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -358,7 +353,8 @@ public void listDocuments( com.google.cloud.dialogflow.v2.ListDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDocumentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDocumentsMethod(), responseObserver); } /** @@ -371,7 +367,8 @@ public void listDocuments( public void getDocument( com.google.cloud.dialogflow.v2.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDocumentMethod(), responseObserver); } /** @@ -386,7 +383,8 @@ public void getDocument( public void createDocument( com.google.cloud.dialogflow.v2.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDocumentMethod(), responseObserver); } /** @@ -401,7 +399,8 @@ public void createDocument( public void deleteDocument( com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentMethod(), responseObserver); } /** @@ -416,7 +415,8 @@ public void deleteDocument( public void updateDocument( com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDocumentMethod(), responseObserver); } /** @@ -436,7 +436,8 @@ public void updateDocument( public void reloadDocument( com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getReloadDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReloadDocumentMethod(), responseObserver); } @java.lang.Override @@ -444,38 +445,38 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListDocumentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListDocumentsRequest, com.google.cloud.dialogflow.v2.ListDocumentsResponse>( this, METHODID_LIST_DOCUMENTS))) .addMethod( getGetDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetDocumentRequest, com.google.cloud.dialogflow.v2.Document>(this, METHODID_GET_DOCUMENT))) .addMethod( getCreateDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_DOCUMENT))) .addMethod( getDeleteDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DOCUMENT))) .addMethod( getUpdateDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_DOCUMENT))) .addMethod( getReloadDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation>(this, METHODID_RELOAD_DOCUMENT))) @@ -511,7 +512,7 @@ public void listDocuments( com.google.cloud.dialogflow.v2.ListDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); @@ -527,7 +528,7 @@ public void listDocuments( public void getDocument( com.google.cloud.dialogflow.v2.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); @@ -545,7 +546,7 @@ public void getDocument( public void createDocument( com.google.cloud.dialogflow.v2.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); @@ -563,7 +564,7 @@ public void createDocument( public void deleteDocument( com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); @@ -581,7 +582,7 @@ public void deleteDocument( public void updateDocument( com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); @@ -604,7 +605,7 @@ public void updateDocument( public void reloadDocument( com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request, responseObserver); @@ -639,7 +640,8 @@ protected DocumentsBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments( com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { - return blockingUnaryCall(getChannel(), getListDocumentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentsMethod(), getCallOptions(), request); } /** @@ -651,7 +653,8 @@ public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments( */ public com.google.cloud.dialogflow.v2.Document getDocument( com.google.cloud.dialogflow.v2.GetDocumentRequest request) { - return blockingUnaryCall(getChannel(), getGetDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); } /** @@ -665,7 +668,8 @@ public com.google.cloud.dialogflow.v2.Document getDocument( */ public com.google.longrunning.Operation createDocument( com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { - return blockingUnaryCall(getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } /** @@ -679,7 +683,8 @@ public com.google.longrunning.Operation createDocument( */ public com.google.longrunning.Operation deleteDocument( com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { - return blockingUnaryCall(getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } /** @@ -693,7 +698,8 @@ public com.google.longrunning.Operation deleteDocument( */ public com.google.longrunning.Operation updateDocument( com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { - return blockingUnaryCall(getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } /** @@ -712,7 +718,8 @@ public com.google.longrunning.Operation updateDocument( */ public com.google.longrunning.Operation reloadDocument( com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { - return blockingUnaryCall(getChannel(), getReloadDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReloadDocumentMethod(), getCallOptions(), request); } } @@ -744,7 +751,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListDocumentsResponse> listDocuments(com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); } @@ -758,7 +765,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Document> getDocument(com.google.cloud.dialogflow.v2.GetDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); } @@ -773,7 +780,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture createDocument(com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); } @@ -788,7 +795,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture deleteDocument(com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); } @@ -803,7 +810,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture updateDocument(com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); } @@ -823,7 +830,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture reloadDocument(com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java index 9413b7e53..d8ebcd2f7 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -565,7 +560,8 @@ public void listEntityTypes( com.google.cloud.dialogflow.v2.ListEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEntityTypesMethod(), responseObserver); } /** @@ -578,7 +574,8 @@ public void listEntityTypes( public void getEntityType( com.google.cloud.dialogflow.v2.GetEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEntityTypeMethod(), responseObserver); } /** @@ -591,7 +588,8 @@ public void getEntityType( public void createEntityType( com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEntityTypeMethod(), responseObserver); } /** @@ -604,7 +602,8 @@ public void createEntityType( public void updateEntityType( com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEntityTypeMethod(), responseObserver); } /** @@ -617,7 +616,8 @@ public void updateEntityType( public void deleteEntityType( com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEntityTypeMethod(), responseObserver); } /** @@ -631,7 +631,8 @@ public void deleteEntityType( public void batchUpdateEntityTypes( com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateEntityTypesMethod(), responseObserver); } /** @@ -645,7 +646,8 @@ public void batchUpdateEntityTypes( public void batchDeleteEntityTypes( com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteEntityTypesMethod(), responseObserver); } /** @@ -659,7 +661,8 @@ public void batchDeleteEntityTypes( public void batchCreateEntities( com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchCreateEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateEntitiesMethod(), responseObserver); } /** @@ -675,7 +678,8 @@ public void batchCreateEntities( public void batchUpdateEntities( com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateEntitiesMethod(), responseObserver); } /** @@ -689,7 +693,8 @@ public void batchUpdateEntities( public void batchDeleteEntities( com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteEntitiesMethod(), responseObserver); } @java.lang.Override @@ -697,64 +702,64 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListEntityTypesRequest, com.google.cloud.dialogflow.v2.ListEntityTypesResponse>( this, METHODID_LIST_ENTITY_TYPES))) .addMethod( getGetEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetEntityTypeRequest, com.google.cloud.dialogflow.v2.EntityType>(this, METHODID_GET_ENTITY_TYPE))) .addMethod( getCreateEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateEntityTypeRequest, com.google.cloud.dialogflow.v2.EntityType>( this, METHODID_CREATE_ENTITY_TYPE))) .addMethod( getUpdateEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest, com.google.cloud.dialogflow.v2.EntityType>( this, METHODID_UPDATE_ENTITY_TYPE))) .addMethod( getDeleteEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ENTITY_TYPE))) .addMethod( getBatchUpdateEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_ENTITY_TYPES))) .addMethod( getBatchDeleteEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_ENTITY_TYPES))) .addMethod( getBatchCreateEntitiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_CREATE_ENTITIES))) .addMethod( getBatchUpdateEntitiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_ENTITIES))) .addMethod( getBatchDeleteEntitiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_ENTITIES))) @@ -791,7 +796,7 @@ public void listEntityTypes( com.google.cloud.dialogflow.v2.ListEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -807,7 +812,7 @@ public void listEntityTypes( public void getEntityType( com.google.cloud.dialogflow.v2.GetEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -823,7 +828,7 @@ public void getEntityType( public void createEntityType( com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -839,7 +844,7 @@ public void createEntityType( public void updateEntityType( com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -855,7 +860,7 @@ public void updateEntityType( public void deleteEntityType( com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -872,7 +877,7 @@ public void deleteEntityType( public void batchUpdateEntityTypes( com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -889,7 +894,7 @@ public void batchUpdateEntityTypes( public void batchDeleteEntityTypes( com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -906,7 +911,7 @@ public void batchDeleteEntityTypes( public void batchCreateEntities( com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), request, responseObserver); @@ -925,7 +930,7 @@ public void batchCreateEntities( public void batchUpdateEntities( com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), request, responseObserver); @@ -942,7 +947,7 @@ public void batchUpdateEntities( public void batchDeleteEntities( com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), request, responseObserver); @@ -977,7 +982,8 @@ protected EntityTypesBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListEntityTypesResponse listEntityTypes( com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { - return blockingUnaryCall(getChannel(), getListEntityTypesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } /** @@ -989,7 +995,8 @@ public com.google.cloud.dialogflow.v2.ListEntityTypesResponse listEntityTypes( */ public com.google.cloud.dialogflow.v2.EntityType getEntityType( com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { - return blockingUnaryCall(getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } /** @@ -1001,7 +1008,7 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityType( */ public com.google.cloud.dialogflow.v2.EntityType createEntityType( com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -1014,7 +1021,7 @@ public com.google.cloud.dialogflow.v2.EntityType createEntityType( */ public com.google.cloud.dialogflow.v2.EntityType updateEntityType( com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -1027,7 +1034,7 @@ public com.google.cloud.dialogflow.v2.EntityType updateEntityType( */ public com.google.protobuf.Empty deleteEntityType( com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -1041,7 +1048,7 @@ public com.google.protobuf.Empty deleteEntityType( */ public com.google.longrunning.Operation batchUpdateEntityTypes( com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateEntityTypesMethod(), getCallOptions(), request); } @@ -1055,7 +1062,7 @@ public com.google.longrunning.Operation batchUpdateEntityTypes( */ public com.google.longrunning.Operation batchDeleteEntityTypes( com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteEntityTypesMethod(), getCallOptions(), request); } @@ -1069,7 +1076,7 @@ public com.google.longrunning.Operation batchDeleteEntityTypes( */ public com.google.longrunning.Operation batchCreateEntities( com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateEntitiesMethod(), getCallOptions(), request); } @@ -1085,7 +1092,7 @@ public com.google.longrunning.Operation batchCreateEntities( */ public com.google.longrunning.Operation batchUpdateEntities( com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateEntitiesMethod(), getCallOptions(), request); } @@ -1099,7 +1106,7 @@ public com.google.longrunning.Operation batchUpdateEntities( */ public com.google.longrunning.Operation batchDeleteEntities( com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteEntitiesMethod(), getCallOptions(), request); } } @@ -1133,7 +1140,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListEntityTypesResponse> listEntityTypes(com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request); } @@ -1147,7 +1154,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.EntityType> getEntityType(com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request); } @@ -1161,7 +1168,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.EntityType> createEntityType(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request); } @@ -1175,7 +1182,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.EntityType> updateEntityType(com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request); } @@ -1188,7 +1195,7 @@ protected EntityTypesFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteEntityType(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request); } @@ -1203,7 +1210,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchUpdateEntityTypes( com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), request); } @@ -1218,7 +1225,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchDeleteEntityTypes( com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), request); } @@ -1232,7 +1239,7 @@ protected EntityTypesFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture batchCreateEntities(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), request); } @@ -1248,7 +1255,7 @@ protected EntityTypesFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture batchUpdateEntities(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), request); } @@ -1262,7 +1269,7 @@ protected EntityTypesFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture batchDeleteEntities(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java index 4ae9008e7..659d6adec 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -147,7 +142,8 @@ public void listEnvironments( com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEnvironmentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEnvironmentsMethod(), responseObserver); } @java.lang.Override @@ -155,7 +151,7 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListEnvironmentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListEnvironmentsRequest, com.google.cloud.dialogflow.v2.ListEnvironmentsResponse>( @@ -193,7 +189,7 @@ public void listEnvironments( com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request, responseObserver); @@ -228,7 +224,7 @@ protected EnvironmentsBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListEnvironmentsResponse listEnvironments( com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } } @@ -262,7 +258,7 @@ protected EnvironmentsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListEnvironmentsResponse> listEnvironments(com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java index 18cfe7210..ed4f43ebc 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -406,7 +401,8 @@ public void listIntents( com.google.cloud.dialogflow.v2.ListIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIntentsMethod(), responseObserver); } /** @@ -419,7 +415,7 @@ public void listIntents( public void getIntent( com.google.cloud.dialogflow.v2.GetIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIntentMethod(), responseObserver); } /** @@ -432,7 +428,8 @@ public void getIntent( public void createIntent( com.google.cloud.dialogflow.v2.CreateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIntentMethod(), responseObserver); } /** @@ -445,7 +442,8 @@ public void createIntent( public void updateIntent( com.google.cloud.dialogflow.v2.UpdateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIntentMethod(), responseObserver); } /** @@ -458,7 +456,8 @@ public void updateIntent( public void deleteIntent( com.google.cloud.dialogflow.v2.DeleteIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIntentMethod(), responseObserver); } /** @@ -472,7 +471,8 @@ public void deleteIntent( public void batchUpdateIntents( com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateIntentsMethod(), responseObserver); } /** @@ -486,7 +486,8 @@ public void batchUpdateIntents( public void batchDeleteIntents( com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteIntentsMethod(), responseObserver); } @java.lang.Override @@ -494,44 +495,44 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListIntentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListIntentsRequest, com.google.cloud.dialogflow.v2.ListIntentsResponse>( this, METHODID_LIST_INTENTS))) .addMethod( getGetIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetIntentRequest, com.google.cloud.dialogflow.v2.Intent>(this, METHODID_GET_INTENT))) .addMethod( getCreateIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateIntentRequest, com.google.cloud.dialogflow.v2.Intent>(this, METHODID_CREATE_INTENT))) .addMethod( getUpdateIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateIntentRequest, com.google.cloud.dialogflow.v2.Intent>(this, METHODID_UPDATE_INTENT))) .addMethod( getDeleteIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteIntentRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_INTENT))) .addMethod( getBatchUpdateIntentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_INTENTS))) .addMethod( getBatchDeleteIntentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_INTENTS))) @@ -567,7 +568,7 @@ public void listIntents( com.google.cloud.dialogflow.v2.ListIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListIntentsMethod(), getCallOptions()), request, responseObserver); @@ -583,7 +584,7 @@ public void listIntents( public void getIntent( com.google.cloud.dialogflow.v2.GetIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIntentMethod(), getCallOptions()), request, responseObserver); } @@ -597,7 +598,7 @@ public void getIntent( public void createIntent( com.google.cloud.dialogflow.v2.CreateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateIntentMethod(), getCallOptions()), request, responseObserver); @@ -613,7 +614,7 @@ public void createIntent( public void updateIntent( com.google.cloud.dialogflow.v2.UpdateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), request, responseObserver); @@ -629,7 +630,7 @@ public void updateIntent( public void deleteIntent( com.google.cloud.dialogflow.v2.DeleteIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request, responseObserver); @@ -646,7 +647,7 @@ public void deleteIntent( public void batchUpdateIntents( com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), request, responseObserver); @@ -663,7 +664,7 @@ public void batchUpdateIntents( public void batchDeleteIntents( com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), request, responseObserver); @@ -697,7 +698,8 @@ protected IntentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.cloud.dialogflow.v2.ListIntentsResponse listIntents( com.google.cloud.dialogflow.v2.ListIntentsRequest request) { - return blockingUnaryCall(getChannel(), getListIntentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIntentsMethod(), getCallOptions(), request); } /** @@ -709,7 +711,8 @@ public com.google.cloud.dialogflow.v2.ListIntentsResponse listIntents( */ public com.google.cloud.dialogflow.v2.Intent getIntent( com.google.cloud.dialogflow.v2.GetIntentRequest request) { - return blockingUnaryCall(getChannel(), getGetIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIntentMethod(), getCallOptions(), request); } /** @@ -721,7 +724,8 @@ public com.google.cloud.dialogflow.v2.Intent getIntent( */ public com.google.cloud.dialogflow.v2.Intent createIntent( com.google.cloud.dialogflow.v2.CreateIntentRequest request) { - return blockingUnaryCall(getChannel(), getCreateIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIntentMethod(), getCallOptions(), request); } /** @@ -733,7 +737,8 @@ public com.google.cloud.dialogflow.v2.Intent createIntent( */ public com.google.cloud.dialogflow.v2.Intent updateIntent( com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { - return blockingUnaryCall(getChannel(), getUpdateIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } /** @@ -745,7 +750,8 @@ public com.google.cloud.dialogflow.v2.Intent updateIntent( */ public com.google.protobuf.Empty deleteIntent( com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { - return blockingUnaryCall(getChannel(), getDeleteIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } /** @@ -758,7 +764,7 @@ public com.google.protobuf.Empty deleteIntent( */ public com.google.longrunning.Operation batchUpdateIntents( com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateIntentsMethod(), getCallOptions(), request); } @@ -772,7 +778,7 @@ public com.google.longrunning.Operation batchUpdateIntents( */ public com.google.longrunning.Operation batchDeleteIntents( com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteIntentsMethod(), getCallOptions(), request); } } @@ -805,7 +811,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListIntentsResponse> listIntents(com.google.cloud.dialogflow.v2.ListIntentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListIntentsMethod(), getCallOptions()), request); } @@ -818,7 +824,8 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture getIntent(com.google.cloud.dialogflow.v2.GetIntentRequest request) { - return futureUnaryCall(getChannel().newCall(getGetIntentMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIntentMethod(), getCallOptions()), request); } /** @@ -830,7 +837,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture createIntent(com.google.cloud.dialogflow.v2.CreateIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateIntentMethod(), getCallOptions()), request); } @@ -843,7 +850,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture updateIntent(com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), request); } @@ -856,7 +863,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture deleteIntent(com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request); } @@ -870,7 +877,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture batchUpdateIntents(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), request); } @@ -884,7 +891,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture batchDeleteIntents(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java index 31b26edb5..6fea20b1d 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -335,7 +330,8 @@ public void listKnowledgeBases( com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListKnowledgeBasesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListKnowledgeBasesMethod(), responseObserver); } /** @@ -349,7 +345,8 @@ public void getKnowledgeBase( com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetKnowledgeBaseMethod(), responseObserver); } /** @@ -363,7 +360,8 @@ public void createKnowledgeBase( com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateKnowledgeBaseMethod(), responseObserver); } /** @@ -376,7 +374,8 @@ public void createKnowledgeBase( public void deleteKnowledgeBase( com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteKnowledgeBaseMethod(), responseObserver); } /** @@ -390,7 +389,8 @@ public void updateKnowledgeBase( com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateKnowledgeBaseMethod(), responseObserver); } @java.lang.Override @@ -398,34 +398,34 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListKnowledgeBasesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest, com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse>( this, METHODID_LIST_KNOWLEDGE_BASES))) .addMethod( getGetKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest, com.google.cloud.dialogflow.v2.KnowledgeBase>( this, METHODID_GET_KNOWLEDGE_BASE))) .addMethod( getCreateKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest, com.google.cloud.dialogflow.v2.KnowledgeBase>( this, METHODID_CREATE_KNOWLEDGE_BASE))) .addMethod( getDeleteKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_KNOWLEDGE_BASE))) .addMethod( getUpdateKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest, com.google.cloud.dialogflow.v2.KnowledgeBase>( @@ -463,7 +463,7 @@ public void listKnowledgeBases( com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request, responseObserver); @@ -480,7 +480,7 @@ public void getKnowledgeBase( com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -497,7 +497,7 @@ public void createKnowledgeBase( com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -513,7 +513,7 @@ public void createKnowledgeBase( public void deleteKnowledgeBase( com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -530,7 +530,7 @@ public void updateKnowledgeBase( com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -565,7 +565,7 @@ protected KnowledgeBasesBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse listKnowledgeBases( com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); } @@ -578,7 +578,7 @@ public com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse listKnowledgeBa */ public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase( com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); } @@ -591,7 +591,7 @@ public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase( */ public com.google.cloud.dialogflow.v2.KnowledgeBase createKnowledgeBase( com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); } @@ -604,7 +604,7 @@ public com.google.cloud.dialogflow.v2.KnowledgeBase createKnowledgeBase( */ public com.google.protobuf.Empty deleteKnowledgeBase( com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); } @@ -617,7 +617,7 @@ public com.google.protobuf.Empty deleteKnowledgeBase( */ public com.google.cloud.dialogflow.v2.KnowledgeBase updateKnowledgeBase( com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); } } @@ -651,7 +651,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse> listKnowledgeBases(com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request); } @@ -665,7 +665,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.KnowledgeBase> getKnowledgeBase(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request); } @@ -679,7 +679,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.KnowledgeBase> createKnowledgeBase(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request); } @@ -692,7 +692,7 @@ protected KnowledgeBasesFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteKnowledgeBase(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request); } @@ -706,7 +706,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.KnowledgeBase> updateKnowledgeBase(com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java index 787b5f1b9..f0e61c545 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java @@ -16,14 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -478,7 +470,8 @@ public abstract static class ParticipantsImplBase implements io.grpc.BindableSer public void createParticipant( com.google.cloud.dialogflow.v2.CreateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateParticipantMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateParticipantMethod(), responseObserver); } /** @@ -491,7 +484,8 @@ public void createParticipant( public void getParticipant( com.google.cloud.dialogflow.v2.GetParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetParticipantMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetParticipantMethod(), responseObserver); } /** @@ -505,7 +499,8 @@ public void listParticipants( com.google.cloud.dialogflow.v2.ListParticipantsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListParticipantsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListParticipantsMethod(), responseObserver); } /** @@ -518,7 +513,8 @@ public void listParticipants( public void updateParticipant( com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateParticipantMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateParticipantMethod(), responseObserver); } /** @@ -536,7 +532,8 @@ public void analyzeContent( com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAnalyzeContentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnalyzeContentMethod(), responseObserver); } /** @@ -564,7 +561,8 @@ public void analyzeContent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> responseObserver) { - return asyncUnimplementedStreamingCall(getStreamingAnalyzeContentMethod(), responseObserver); + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingAnalyzeContentMethod(), responseObserver); } /** @@ -579,7 +577,8 @@ public void suggestArticles( com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSuggestArticlesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuggestArticlesMethod(), responseObserver); } /** @@ -594,7 +593,8 @@ public void suggestFaqAnswers( com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSuggestFaqAnswersMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuggestFaqAnswersMethod(), responseObserver); } @java.lang.Override @@ -602,55 +602,55 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateParticipantMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateParticipantRequest, com.google.cloud.dialogflow.v2.Participant>( this, METHODID_CREATE_PARTICIPANT))) .addMethod( getGetParticipantMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetParticipantRequest, com.google.cloud.dialogflow.v2.Participant>(this, METHODID_GET_PARTICIPANT))) .addMethod( getListParticipantsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListParticipantsRequest, com.google.cloud.dialogflow.v2.ListParticipantsResponse>( this, METHODID_LIST_PARTICIPANTS))) .addMethod( getUpdateParticipantMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateParticipantRequest, com.google.cloud.dialogflow.v2.Participant>( this, METHODID_UPDATE_PARTICIPANT))) .addMethod( getAnalyzeContentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.AnalyzeContentRequest, com.google.cloud.dialogflow.v2.AnalyzeContentResponse>( this, METHODID_ANALYZE_CONTENT))) .addMethod( getStreamingAnalyzeContentMethod(), - asyncBidiStreamingCall( + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest, com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse>( this, METHODID_STREAMING_ANALYZE_CONTENT))) .addMethod( getSuggestArticlesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.SuggestArticlesRequest, com.google.cloud.dialogflow.v2.SuggestArticlesResponse>( this, METHODID_SUGGEST_ARTICLES))) .addMethod( getSuggestFaqAnswersMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>( @@ -687,7 +687,7 @@ protected ParticipantsStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public void createParticipant( com.google.cloud.dialogflow.v2.CreateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request, responseObserver); @@ -703,7 +703,7 @@ public void createParticipant( public void getParticipant( com.google.cloud.dialogflow.v2.GetParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request, responseObserver); @@ -720,7 +720,7 @@ public void listParticipants( com.google.cloud.dialogflow.v2.ListParticipantsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request, responseObserver); @@ -736,7 +736,7 @@ public void listParticipants( public void updateParticipant( com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request, responseObserver); @@ -757,7 +757,7 @@ public void analyzeContent( com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request, responseObserver); @@ -788,7 +788,7 @@ public void analyzeContent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse> responseObserver) { - return asyncBidiStreamingCall( + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamingAnalyzeContentMethod(), getCallOptions()), responseObserver); } @@ -805,7 +805,7 @@ public void suggestArticles( com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request, responseObserver); @@ -823,7 +823,7 @@ public void suggestFaqAnswers( com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request, responseObserver); @@ -858,7 +858,7 @@ protected ParticipantsBlockingStub build( */ public com.google.cloud.dialogflow.v2.Participant createParticipant( com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateParticipantMethod(), getCallOptions(), request); } @@ -871,7 +871,8 @@ public com.google.cloud.dialogflow.v2.Participant createParticipant( */ public com.google.cloud.dialogflow.v2.Participant getParticipant( com.google.cloud.dialogflow.v2.GetParticipantRequest request) { - return blockingUnaryCall(getChannel(), getGetParticipantMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetParticipantMethod(), getCallOptions(), request); } /** @@ -883,7 +884,7 @@ public com.google.cloud.dialogflow.v2.Participant getParticipant( */ public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants( com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListParticipantsMethod(), getCallOptions(), request); } @@ -896,7 +897,7 @@ public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants( */ public com.google.cloud.dialogflow.v2.Participant updateParticipant( com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); } @@ -913,7 +914,8 @@ public com.google.cloud.dialogflow.v2.Participant updateParticipant( */ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent( com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { - return blockingUnaryCall(getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); } /** @@ -926,7 +928,8 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent( */ public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles( com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { - return blockingUnaryCall(getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); } /** @@ -939,7 +942,7 @@ public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles( */ public com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggestFaqAnswers( com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); } } @@ -973,7 +976,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Participant> createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request); } @@ -987,7 +990,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Participant> getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); } @@ -1001,7 +1004,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListParticipantsResponse> listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); } @@ -1015,7 +1018,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Participant> updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request); } @@ -1033,7 +1036,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.AnalyzeContentResponse> analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request); } @@ -1048,7 +1051,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.SuggestArticlesResponse> suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request); } @@ -1063,7 +1066,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java index 220866b5d..47a24a129 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -354,7 +349,8 @@ public void listSessionEntityTypes( com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSessionEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSessionEntityTypesMethod(), responseObserver); } /** @@ -371,7 +367,8 @@ public void getSessionEntityType( com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSessionEntityTypeMethod(), responseObserver); } /** @@ -390,7 +387,8 @@ public void createSessionEntityType( com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSessionEntityTypeMethod(), responseObserver); } /** @@ -407,7 +405,8 @@ public void updateSessionEntityType( com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSessionEntityTypeMethod(), responseObserver); } /** @@ -423,7 +422,8 @@ public void updateSessionEntityType( public void deleteSessionEntityType( com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSessionEntityTypeMethod(), responseObserver); } @java.lang.Override @@ -431,35 +431,35 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListSessionEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest, com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse>( this, METHODID_LIST_SESSION_ENTITY_TYPES))) .addMethod( getGetSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest, com.google.cloud.dialogflow.v2.SessionEntityType>( this, METHODID_GET_SESSION_ENTITY_TYPE))) .addMethod( getCreateSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest, com.google.cloud.dialogflow.v2.SessionEntityType>( this, METHODID_CREATE_SESSION_ENTITY_TYPE))) .addMethod( getUpdateSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest, com.google.cloud.dialogflow.v2.SessionEntityType>( this, METHODID_UPDATE_SESSION_ENTITY_TYPE))) .addMethod( getDeleteSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_SESSION_ENTITY_TYPE))) @@ -500,7 +500,7 @@ public void listSessionEntityTypes( com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -520,7 +520,7 @@ public void getSessionEntityType( com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -542,7 +542,7 @@ public void createSessionEntityType( com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -562,7 +562,7 @@ public void updateSessionEntityType( com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -581,7 +581,7 @@ public void updateSessionEntityType( public void deleteSessionEntityType( com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -620,7 +620,7 @@ protected SessionEntityTypesBlockingStub build( */ public com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse listSessionEntityTypes( com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); } @@ -636,7 +636,7 @@ public com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse listSession */ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType( com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); } @@ -654,7 +654,7 @@ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType( */ public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType( com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -670,7 +670,7 @@ public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType( */ public com.google.cloud.dialogflow.v2.SessionEntityType updateSessionEntityType( com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -686,7 +686,7 @@ public com.google.cloud.dialogflow.v2.SessionEntityType updateSessionEntityType( */ public com.google.protobuf.Empty deleteSessionEntityType( com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); } } @@ -724,7 +724,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse> listSessionEntityTypes( com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request); } @@ -741,7 +741,7 @@ protected SessionEntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.SessionEntityType> getSessionEntityType(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request); } @@ -761,7 +761,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2.SessionEntityType> createSessionEntityType( com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request); } @@ -779,7 +779,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2.SessionEntityType> updateSessionEntityType( com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request); } @@ -796,7 +796,7 @@ protected SessionEntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteSessionEntityType( com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java index 214154e56..e518ed5ca 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java @@ -16,14 +16,6 @@ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -207,7 +199,8 @@ public void detectIntent( com.google.cloud.dialogflow.v2.DetectIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDetectIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetectIntentMethod(), responseObserver); } /** @@ -227,7 +220,8 @@ public void detectIntent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> responseObserver) { - return asyncUnimplementedStreamingCall(getStreamingDetectIntentMethod(), responseObserver); + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingDetectIntentMethod(), responseObserver); } @java.lang.Override @@ -235,14 +229,14 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getDetectIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DetectIntentRequest, com.google.cloud.dialogflow.v2.DetectIntentResponse>( this, METHODID_DETECT_INTENT))) .addMethod( getStreamingDetectIntentMethod(), - asyncBidiStreamingCall( + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest, com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse>( @@ -287,7 +281,7 @@ public void detectIntent( com.google.cloud.dialogflow.v2.DetectIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request, responseObserver); @@ -310,7 +304,7 @@ public void detectIntent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> responseObserver) { - return asyncBidiStreamingCall( + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamingDetectIntentMethod(), getCallOptions()), responseObserver); } @@ -351,7 +345,8 @@ protected SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntent( com.google.cloud.dialogflow.v2.DetectIntentRequest request) { - return blockingUnaryCall(getChannel(), getDetectIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectIntentMethod(), getCallOptions(), request); } } @@ -391,7 +386,7 @@ protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.DetectIntentResponse> detectIntent(com.google.cloud.dialogflow.v2.DetectIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java index e83b2540b..68993b565 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -495,7 +490,7 @@ public abstract static class AgentsImplBase implements io.grpc.BindableService { public void getAgent( com.google.cloud.dialogflow.v2beta1.GetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); } /** @@ -508,7 +503,7 @@ public void getAgent( public void setAgent( com.google.cloud.dialogflow.v2beta1.SetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAgentMethod(), responseObserver); } /** @@ -521,7 +516,8 @@ public void setAgent( public void deleteAgent( com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAgentMethod(), responseObserver); } /** @@ -540,7 +536,8 @@ public void searchAgents( com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSearchAgentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAgentsMethod(), responseObserver); } /** @@ -554,7 +551,7 @@ public void searchAgents( public void trainAgent( com.google.cloud.dialogflow.v2beta1.TrainAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTrainAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTrainAgentMethod(), responseObserver); } /** @@ -568,7 +565,8 @@ public void trainAgent( public void exportAgent( com.google.cloud.dialogflow.v2beta1.ExportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportAgentMethod(), responseObserver); } /** @@ -591,7 +589,8 @@ public void exportAgent( public void importAgent( com.google.cloud.dialogflow.v2beta1.ImportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportAgentMethod(), responseObserver); } /** @@ -613,7 +612,8 @@ public void importAgent( public void restoreAgent( com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRestoreAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreAgentMethod(), responseObserver); } /** @@ -628,7 +628,8 @@ public void getValidationResult( com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetValidationResultMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetValidationResultMethod(), responseObserver); } @java.lang.Override @@ -636,56 +637,56 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetAgentRequest, com.google.cloud.dialogflow.v2beta1.Agent>(this, METHODID_GET_AGENT))) .addMethod( getSetAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.SetAgentRequest, com.google.cloud.dialogflow.v2beta1.Agent>(this, METHODID_SET_AGENT))) .addMethod( getDeleteAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_AGENT))) .addMethod( getSearchAgentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest, com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse>( this, METHODID_SEARCH_AGENTS))) .addMethod( getTrainAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.TrainAgentRequest, com.google.longrunning.Operation>(this, METHODID_TRAIN_AGENT))) .addMethod( getExportAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ExportAgentRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_AGENT))) .addMethod( getImportAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ImportAgentRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_AGENT))) .addMethod( getRestoreAgentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest, com.google.longrunning.Operation>(this, METHODID_RESTORE_AGENT))) .addMethod( getGetValidationResultMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, com.google.cloud.dialogflow.v2beta1.ValidationResult>( @@ -721,7 +722,7 @@ protected AgentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti public void getAgent( com.google.cloud.dialogflow.v2beta1.GetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); } @@ -735,7 +736,7 @@ public void getAgent( public void setAgent( com.google.cloud.dialogflow.v2beta1.SetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetAgentMethod(), getCallOptions()), request, responseObserver); } @@ -749,7 +750,7 @@ public void setAgent( public void deleteAgent( com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request, responseObserver); @@ -771,7 +772,7 @@ public void searchAgents( com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request, responseObserver); @@ -788,7 +789,7 @@ public void searchAgents( public void trainAgent( com.google.cloud.dialogflow.v2beta1.TrainAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTrainAgentMethod(), getCallOptions()), request, responseObserver); } @@ -803,7 +804,7 @@ public void trainAgent( public void exportAgent( com.google.cloud.dialogflow.v2beta1.ExportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportAgentMethod(), getCallOptions()), request, responseObserver); @@ -829,7 +830,7 @@ public void exportAgent( public void importAgent( com.google.cloud.dialogflow.v2beta1.ImportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportAgentMethod(), getCallOptions()), request, responseObserver); @@ -854,7 +855,7 @@ public void importAgent( public void restoreAgent( com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRestoreAgentMethod(), getCallOptions()), request, responseObserver); @@ -872,7 +873,7 @@ public void getValidationResult( com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), request, responseObserver); @@ -906,7 +907,8 @@ protected AgentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.cloud.dialogflow.v2beta1.Agent getAgent( com.google.cloud.dialogflow.v2beta1.GetAgentRequest request) { - return blockingUnaryCall(getChannel(), getGetAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); } /** @@ -918,7 +920,8 @@ public com.google.cloud.dialogflow.v2beta1.Agent getAgent( */ public com.google.cloud.dialogflow.v2beta1.Agent setAgent( com.google.cloud.dialogflow.v2beta1.SetAgentRequest request) { - return blockingUnaryCall(getChannel(), getSetAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAgentMethod(), getCallOptions(), request); } /** @@ -930,7 +933,8 @@ public com.google.cloud.dialogflow.v2beta1.Agent setAgent( */ public com.google.protobuf.Empty deleteAgent( com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest request) { - return blockingUnaryCall(getChannel(), getDeleteAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } /** @@ -947,7 +951,8 @@ public com.google.protobuf.Empty deleteAgent( */ public com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse searchAgents( com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest request) { - return blockingUnaryCall(getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAgentsMethod(), getCallOptions(), request); } /** @@ -960,7 +965,8 @@ public com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse searchAgents( */ public com.google.longrunning.Operation trainAgent( com.google.cloud.dialogflow.v2beta1.TrainAgentRequest request) { - return blockingUnaryCall(getChannel(), getTrainAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTrainAgentMethod(), getCallOptions(), request); } /** @@ -973,7 +979,8 @@ public com.google.longrunning.Operation trainAgent( */ public com.google.longrunning.Operation exportAgent( com.google.cloud.dialogflow.v2beta1.ExportAgentRequest request) { - return blockingUnaryCall(getChannel(), getExportAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportAgentMethod(), getCallOptions(), request); } /** @@ -995,7 +1002,8 @@ public com.google.longrunning.Operation exportAgent( */ public com.google.longrunning.Operation importAgent( com.google.cloud.dialogflow.v2beta1.ImportAgentRequest request) { - return blockingUnaryCall(getChannel(), getImportAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportAgentMethod(), getCallOptions(), request); } /** @@ -1016,7 +1024,8 @@ public com.google.longrunning.Operation importAgent( */ public com.google.longrunning.Operation restoreAgent( com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest request) { - return blockingUnaryCall(getChannel(), getRestoreAgentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreAgentMethod(), getCallOptions(), request); } /** @@ -1029,7 +1038,7 @@ public com.google.longrunning.Operation restoreAgent( */ public com.google.cloud.dialogflow.v2beta1.ValidationResult getValidationResult( com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetValidationResultMethod(), getCallOptions(), request); } } @@ -1062,7 +1071,8 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Agent> getAgent(com.google.cloud.dialogflow.v2beta1.GetAgentRequest request) { - return futureUnaryCall(getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); } /** @@ -1075,7 +1085,8 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Agent> setAgent(com.google.cloud.dialogflow.v2beta1.SetAgentRequest request) { - return futureUnaryCall(getChannel().newCall(getSetAgentMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAgentMethod(), getCallOptions()), request); } /** @@ -1087,7 +1098,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deleteAgent(com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request); } @@ -1106,7 +1117,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse> searchAgents(com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request); } @@ -1120,7 +1131,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture trainAgent(com.google.cloud.dialogflow.v2beta1.TrainAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTrainAgentMethod(), getCallOptions()), request); } @@ -1134,7 +1145,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture exportAgent(com.google.cloud.dialogflow.v2beta1.ExportAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAgentMethod(), getCallOptions()), request); } @@ -1157,7 +1168,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture importAgent(com.google.cloud.dialogflow.v2beta1.ImportAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportAgentMethod(), getCallOptions()), request); } @@ -1179,7 +1190,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture restoreAgent(com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreAgentMethod(), getCallOptions()), request); } @@ -1195,7 +1206,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca com.google.cloud.dialogflow.v2beta1.ValidationResult> getValidationResult( com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java index 1a48403aa..3fc7d3d2a 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -243,7 +238,8 @@ public void getAnswerRecord( com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAnswerRecordMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnswerRecordMethod(), responseObserver); } /** @@ -258,7 +254,8 @@ public void listAnswerRecords( com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAnswerRecordsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAnswerRecordsMethod(), responseObserver); } /** @@ -272,7 +269,8 @@ public void updateAnswerRecord( com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAnswerRecordMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAnswerRecordMethod(), responseObserver); } @java.lang.Override @@ -280,21 +278,21 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetAnswerRecordMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest, com.google.cloud.dialogflow.v2beta1.AnswerRecord>( this, METHODID_GET_ANSWER_RECORD))) .addMethod( getListAnswerRecordsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest, com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>( this, METHODID_LIST_ANSWER_RECORDS))) .addMethod( getUpdateAnswerRecordMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest, com.google.cloud.dialogflow.v2beta1.AnswerRecord>( @@ -334,7 +332,7 @@ public void getAnswerRecord( com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAnswerRecordMethod(), getCallOptions()), request, responseObserver); @@ -352,7 +350,7 @@ public void listAnswerRecords( com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request, responseObserver); @@ -369,7 +367,7 @@ public void updateAnswerRecord( com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request, responseObserver); @@ -406,7 +404,8 @@ protected AnswerRecordsBlockingStub build( @java.lang.Deprecated public com.google.cloud.dialogflow.v2beta1.AnswerRecord getAnswerRecord( com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request) { - return blockingUnaryCall(getChannel(), getGetAnswerRecordMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnswerRecordMethod(), getCallOptions(), request); } /** @@ -419,7 +418,7 @@ public com.google.cloud.dialogflow.v2beta1.AnswerRecord getAnswerRecord( */ public com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse listAnswerRecords( com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); } @@ -432,7 +431,7 @@ public com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse listAnswerR */ public com.google.cloud.dialogflow.v2beta1.AnswerRecord updateAnswerRecord( com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); } } @@ -468,7 +467,7 @@ protected AnswerRecordsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.AnswerRecord> getAnswerRecord(com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAnswerRecordMethod(), getCallOptions()), request); } @@ -483,7 +482,7 @@ protected AnswerRecordsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse> listAnswerRecords(com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request); } @@ -497,7 +496,7 @@ protected AnswerRecordsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.AnswerRecord> updateAnswerRecord(com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java index e23c8a088..d088c006d 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -365,7 +360,8 @@ public void listContexts( com.google.cloud.dialogflow.v2beta1.ListContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListContextsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListContextsMethod(), responseObserver); } /** @@ -378,7 +374,7 @@ public void listContexts( public void getContext( com.google.cloud.dialogflow.v2beta1.GetContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); } /** @@ -392,7 +388,8 @@ public void getContext( public void createContext( com.google.cloud.dialogflow.v2beta1.CreateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateContextMethod(), responseObserver); } /** @@ -405,7 +402,8 @@ public void createContext( public void updateContext( com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateContextMethod(), responseObserver); } /** @@ -418,7 +416,8 @@ public void updateContext( public void deleteContext( com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteContextMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteContextMethod(), responseObserver); } /** @@ -431,7 +430,8 @@ public void deleteContext( public void deleteAllContexts( com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAllContextsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAllContextsMethod(), responseObserver); } @java.lang.Override @@ -439,38 +439,38 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListContextsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListContextsRequest, com.google.cloud.dialogflow.v2beta1.ListContextsResponse>( this, METHODID_LIST_CONTEXTS))) .addMethod( getGetContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetContextRequest, com.google.cloud.dialogflow.v2beta1.Context>(this, METHODID_GET_CONTEXT))) .addMethod( getCreateContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateContextRequest, com.google.cloud.dialogflow.v2beta1.Context>(this, METHODID_CREATE_CONTEXT))) .addMethod( getUpdateContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateContextRequest, com.google.cloud.dialogflow.v2beta1.Context>(this, METHODID_UPDATE_CONTEXT))) .addMethod( getDeleteContextMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteContextRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_CONTEXT))) .addMethod( getDeleteAllContextsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ALL_CONTEXTS))) @@ -506,7 +506,7 @@ public void listContexts( com.google.cloud.dialogflow.v2beta1.ListContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListContextsMethod(), getCallOptions()), request, responseObserver); @@ -522,7 +522,7 @@ public void listContexts( public void getContext( com.google.cloud.dialogflow.v2beta1.GetContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver); } @@ -537,7 +537,7 @@ public void getContext( public void createContext( com.google.cloud.dialogflow.v2beta1.CreateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateContextMethod(), getCallOptions()), request, responseObserver); @@ -553,7 +553,7 @@ public void createContext( public void updateContext( com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request, responseObserver); @@ -569,7 +569,7 @@ public void updateContext( public void deleteContext( com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request, responseObserver); @@ -585,7 +585,7 @@ public void deleteContext( public void deleteAllContexts( com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request, responseObserver); @@ -619,7 +619,8 @@ protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.cloud.dialogflow.v2beta1.ListContextsResponse listContexts( com.google.cloud.dialogflow.v2beta1.ListContextsRequest request) { - return blockingUnaryCall(getChannel(), getListContextsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContextsMethod(), getCallOptions(), request); } /** @@ -631,7 +632,8 @@ public com.google.cloud.dialogflow.v2beta1.ListContextsResponse listContexts( */ public com.google.cloud.dialogflow.v2beta1.Context getContext( com.google.cloud.dialogflow.v2beta1.GetContextRequest request) { - return blockingUnaryCall(getChannel(), getGetContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetContextMethod(), getCallOptions(), request); } /** @@ -644,7 +646,8 @@ public com.google.cloud.dialogflow.v2beta1.Context getContext( */ public com.google.cloud.dialogflow.v2beta1.Context createContext( com.google.cloud.dialogflow.v2beta1.CreateContextRequest request) { - return blockingUnaryCall(getChannel(), getCreateContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateContextMethod(), getCallOptions(), request); } /** @@ -656,7 +659,8 @@ public com.google.cloud.dialogflow.v2beta1.Context createContext( */ public com.google.cloud.dialogflow.v2beta1.Context updateContext( com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request) { - return blockingUnaryCall(getChannel(), getUpdateContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateContextMethod(), getCallOptions(), request); } /** @@ -668,7 +672,8 @@ public com.google.cloud.dialogflow.v2beta1.Context updateContext( */ public com.google.protobuf.Empty deleteContext( com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request) { - return blockingUnaryCall(getChannel(), getDeleteContextMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteContextMethod(), getCallOptions(), request); } /** @@ -680,7 +685,7 @@ public com.google.protobuf.Empty deleteContext( */ public com.google.protobuf.Empty deleteAllContexts( com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); } } @@ -713,7 +718,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListContextsResponse> listContexts(com.google.cloud.dialogflow.v2beta1.ListContextsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListContextsMethod(), getCallOptions()), request); } @@ -727,7 +732,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Context> getContext(com.google.cloud.dialogflow.v2beta1.GetContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetContextMethod(), getCallOptions()), request); } @@ -742,7 +747,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Context> createContext(com.google.cloud.dialogflow.v2beta1.CreateContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateContextMethod(), getCallOptions()), request); } @@ -756,7 +761,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Context> updateContext(com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request); } @@ -769,7 +774,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture deleteContext(com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); } @@ -782,7 +787,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture deleteAllContexts(com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java index 3241b32f4..a66c4b407 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -364,7 +359,8 @@ public void listConversationProfiles( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListConversationProfilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversationProfilesMethod(), responseObserver); } /** @@ -378,7 +374,8 @@ public void getConversationProfile( com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversationProfileMethod(), responseObserver); } /** @@ -395,7 +392,8 @@ public void createConversationProfile( com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversationProfileMethod(), responseObserver); } /** @@ -412,7 +410,8 @@ public void updateConversationProfile( com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConversationProfileMethod(), responseObserver); } /** @@ -425,7 +424,8 @@ public void updateConversationProfile( public void deleteConversationProfile( com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteConversationProfileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversationProfileMethod(), responseObserver); } @java.lang.Override @@ -433,35 +433,35 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListConversationProfilesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest, com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse>( this, METHODID_LIST_CONVERSATION_PROFILES))) .addMethod( getGetConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest, com.google.cloud.dialogflow.v2beta1.ConversationProfile>( this, METHODID_GET_CONVERSATION_PROFILE))) .addMethod( getCreateConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest, com.google.cloud.dialogflow.v2beta1.ConversationProfile>( this, METHODID_CREATE_CONVERSATION_PROFILE))) .addMethod( getUpdateConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest, com.google.cloud.dialogflow.v2beta1.ConversationProfile>( this, METHODID_UPDATE_CONVERSATION_PROFILE))) .addMethod( getDeleteConversationProfileMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_CONVERSATION_PROFILE))) @@ -500,7 +500,7 @@ public void listConversationProfiles( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request, responseObserver); @@ -517,7 +517,7 @@ public void getConversationProfile( com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -537,7 +537,7 @@ public void createConversationProfile( com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -557,7 +557,7 @@ public void updateConversationProfile( com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -573,7 +573,7 @@ public void updateConversationProfile( public void deleteConversationProfile( com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request, responseObserver); @@ -610,7 +610,7 @@ protected ConversationProfilesBlockingStub build( public com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse listConversationProfiles( com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); } @@ -623,7 +623,7 @@ protected ConversationProfilesBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.ConversationProfile getConversationProfile( com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); } @@ -639,7 +639,7 @@ public com.google.cloud.dialogflow.v2beta1.ConversationProfile getConversationPr */ public com.google.cloud.dialogflow.v2beta1.ConversationProfile createConversationProfile( com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); } @@ -655,7 +655,7 @@ public com.google.cloud.dialogflow.v2beta1.ConversationProfile createConversatio */ public com.google.cloud.dialogflow.v2beta1.ConversationProfile updateConversationProfile( com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); } @@ -668,7 +668,7 @@ public com.google.cloud.dialogflow.v2beta1.ConversationProfile updateConversatio */ public com.google.protobuf.Empty deleteConversationProfile( com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); } } @@ -704,7 +704,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> listConversationProfiles( com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request); } @@ -719,7 +719,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2beta1.ConversationProfile> getConversationProfile( com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request); } @@ -737,7 +737,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2beta1.ConversationProfile> createConversationProfile( com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request); } @@ -755,7 +755,7 @@ protected ConversationProfilesFutureStub build( com.google.cloud.dialogflow.v2beta1.ConversationProfile> updateConversationProfile( com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request); } @@ -769,7 +769,7 @@ protected ConversationProfilesFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteConversationProfile( com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java index f03aee273..3358365f4 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -535,7 +530,8 @@ public void createConversation( com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversationMethod(), responseObserver); } /** @@ -549,7 +545,8 @@ public void listConversations( com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListConversationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversationsMethod(), responseObserver); } /** @@ -563,7 +560,8 @@ public void getConversation( com.google.cloud.dialogflow.v2beta1.GetConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversationMethod(), responseObserver); } /** @@ -578,7 +576,8 @@ public void completeConversation( com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCompleteConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompleteConversationMethod(), responseObserver); } /** @@ -593,7 +592,8 @@ public void createCallMatcher( com.google.cloud.dialogflow.v2beta1.CreateCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateCallMatcherMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCallMatcherMethod(), responseObserver); } /** @@ -607,7 +607,8 @@ public void listCallMatchers( com.google.cloud.dialogflow.v2beta1.ListCallMatchersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListCallMatchersMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCallMatchersMethod(), responseObserver); } /** @@ -620,7 +621,8 @@ public void listCallMatchers( public void deleteCallMatcher( com.google.cloud.dialogflow.v2beta1.DeleteCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteCallMatcherMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCallMatcherMethod(), responseObserver); } /** @@ -635,7 +637,8 @@ public void batchCreateMessages( com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchCreateMessagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateMessagesMethod(), responseObserver); } /** @@ -653,7 +656,8 @@ public void listMessages( com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListMessagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMessagesMethod(), responseObserver); } @java.lang.Override @@ -661,62 +665,62 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateConversationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateConversationRequest, com.google.cloud.dialogflow.v2beta1.Conversation>( this, METHODID_CREATE_CONVERSATION))) .addMethod( getListConversationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListConversationsRequest, com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>( this, METHODID_LIST_CONVERSATIONS))) .addMethod( getGetConversationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetConversationRequest, com.google.cloud.dialogflow.v2beta1.Conversation>( this, METHODID_GET_CONVERSATION))) .addMethod( getCompleteConversationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest, com.google.cloud.dialogflow.v2beta1.Conversation>( this, METHODID_COMPLETE_CONVERSATION))) .addMethod( getCreateCallMatcherMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateCallMatcherRequest, com.google.cloud.dialogflow.v2beta1.CallMatcher>( this, METHODID_CREATE_CALL_MATCHER))) .addMethod( getListCallMatchersMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListCallMatchersRequest, com.google.cloud.dialogflow.v2beta1.ListCallMatchersResponse>( this, METHODID_LIST_CALL_MATCHERS))) .addMethod( getDeleteCallMatcherMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteCallMatcherRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_CALL_MATCHER))) .addMethod( getBatchCreateMessagesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest, com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>( this, METHODID_BATCH_CREATE_MESSAGES))) .addMethod( getListMessagesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListMessagesRequest, com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>( @@ -767,7 +771,7 @@ public void createConversation( com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request, responseObserver); @@ -784,7 +788,7 @@ public void listConversations( com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListConversationsMethod(), getCallOptions()), request, responseObserver); @@ -801,7 +805,7 @@ public void getConversation( com.google.cloud.dialogflow.v2beta1.GetConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConversationMethod(), getCallOptions()), request, responseObserver); @@ -819,7 +823,7 @@ public void completeConversation( com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request, responseObserver); @@ -837,7 +841,7 @@ public void createCallMatcher( com.google.cloud.dialogflow.v2beta1.CreateCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateCallMatcherMethod(), getCallOptions()), request, responseObserver); @@ -854,7 +858,7 @@ public void listCallMatchers( com.google.cloud.dialogflow.v2beta1.ListCallMatchersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListCallMatchersMethod(), getCallOptions()), request, responseObserver); @@ -870,7 +874,7 @@ public void listCallMatchers( public void deleteCallMatcher( com.google.cloud.dialogflow.v2beta1.DeleteCallMatcherRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteCallMatcherMethod(), getCallOptions()), request, responseObserver); @@ -888,7 +892,7 @@ public void batchCreateMessages( com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchCreateMessagesMethod(), getCallOptions()), request, responseObserver); @@ -909,7 +913,7 @@ public void listMessages( com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMessagesMethod(), getCallOptions()), request, responseObserver); @@ -957,7 +961,7 @@ protected ConversationsBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.Conversation createConversation( com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -970,7 +974,7 @@ public com.google.cloud.dialogflow.v2beta1.Conversation createConversation( */ public com.google.cloud.dialogflow.v2beta1.ListConversationsResponse listConversations( com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -983,7 +987,8 @@ public com.google.cloud.dialogflow.v2beta1.ListConversationsResponse listConvers */ public com.google.cloud.dialogflow.v2beta1.Conversation getConversation( com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) { - return blockingUnaryCall(getChannel(), getGetConversationMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); } /** @@ -996,7 +1001,7 @@ public com.google.cloud.dialogflow.v2beta1.Conversation getConversation( */ public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation( com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteConversationMethod(), getCallOptions(), request); } @@ -1010,7 +1015,7 @@ public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation( */ public com.google.cloud.dialogflow.v2beta1.CallMatcher createCallMatcher( com.google.cloud.dialogflow.v2beta1.CreateCallMatcherRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateCallMatcherMethod(), getCallOptions(), request); } @@ -1023,7 +1028,7 @@ public com.google.cloud.dialogflow.v2beta1.CallMatcher createCallMatcher( */ public com.google.cloud.dialogflow.v2beta1.ListCallMatchersResponse listCallMatchers( com.google.cloud.dialogflow.v2beta1.ListCallMatchersRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListCallMatchersMethod(), getCallOptions(), request); } @@ -1036,7 +1041,7 @@ public com.google.cloud.dialogflow.v2beta1.ListCallMatchersResponse listCallMatc */ public com.google.protobuf.Empty deleteCallMatcher( com.google.cloud.dialogflow.v2beta1.DeleteCallMatcherRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteCallMatcherMethod(), getCallOptions(), request); } @@ -1050,7 +1055,7 @@ public com.google.protobuf.Empty deleteCallMatcher( */ public com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse batchCreateMessages( com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateMessagesMethod(), getCallOptions(), request); } @@ -1067,7 +1072,8 @@ public com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse batchCrea */ public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) { - return blockingUnaryCall(getChannel(), getListMessagesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMessagesMethod(), getCallOptions(), request); } } @@ -1113,7 +1119,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Conversation> createConversation(com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); } @@ -1127,7 +1133,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListConversationsResponse> listConversations(com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); } @@ -1141,7 +1147,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Conversation> getConversation(com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); } @@ -1157,7 +1163,7 @@ protected ConversationsFutureStub build( com.google.cloud.dialogflow.v2beta1.Conversation> completeConversation( com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request); } @@ -1172,7 +1178,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.CallMatcher> createCallMatcher(com.google.cloud.dialogflow.v2beta1.CreateCallMatcherRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateCallMatcherMethod(), getCallOptions()), request); } @@ -1186,7 +1192,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListCallMatchersResponse> listCallMatchers(com.google.cloud.dialogflow.v2beta1.ListCallMatchersRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCallMatchersMethod(), getCallOptions()), request); } @@ -1199,7 +1205,7 @@ protected ConversationsFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteCallMatcher(com.google.cloud.dialogflow.v2beta1.DeleteCallMatcherRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteCallMatcherMethod(), getCallOptions()), request); } @@ -1215,7 +1221,7 @@ protected ConversationsFutureStub build( com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse> batchCreateMessages( com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateMessagesMethod(), getCallOptions()), request); } @@ -1233,7 +1239,7 @@ protected ConversationsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListMessagesResponse> listMessages(com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMessagesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java index 93f875b71..443a7e49c 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -417,7 +412,8 @@ public void listDocuments( com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDocumentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDocumentsMethod(), responseObserver); } /** @@ -433,7 +429,8 @@ public void getDocument( com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDocumentMethod(), responseObserver); } /** @@ -448,7 +445,8 @@ public void getDocument( public void createDocument( com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDocumentMethod(), responseObserver); } /** @@ -461,7 +459,8 @@ public void createDocument( public void importDocuments( com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportDocumentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportDocumentsMethod(), responseObserver); } /** @@ -476,7 +475,8 @@ public void importDocuments( public void deleteDocument( com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentMethod(), responseObserver); } /** @@ -491,7 +491,8 @@ public void deleteDocument( public void updateDocument( com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDocumentMethod(), responseObserver); } /** @@ -512,7 +513,8 @@ public void updateDocument( public void reloadDocument( com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getReloadDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReloadDocumentMethod(), responseObserver); } @java.lang.Override @@ -520,44 +522,44 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListDocumentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest, com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse>( this, METHODID_LIST_DOCUMENTS))) .addMethod( getGetDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetDocumentRequest, com.google.cloud.dialogflow.v2beta1.Document>(this, METHODID_GET_DOCUMENT))) .addMethod( getCreateDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_DOCUMENT))) .addMethod( getImportDocumentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_DOCUMENTS))) .addMethod( getDeleteDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DOCUMENT))) .addMethod( getUpdateDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_DOCUMENT))) .addMethod( getReloadDocumentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, com.google.longrunning.Operation>(this, METHODID_RELOAD_DOCUMENT))) @@ -595,7 +597,7 @@ public void listDocuments( com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); @@ -614,7 +616,7 @@ public void getDocument( com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); @@ -632,7 +634,7 @@ public void getDocument( public void createDocument( com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); @@ -648,7 +650,7 @@ public void createDocument( public void importDocuments( com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request, responseObserver); @@ -666,7 +668,7 @@ public void importDocuments( public void deleteDocument( com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); @@ -684,7 +686,7 @@ public void deleteDocument( public void updateDocument( com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); @@ -708,7 +710,7 @@ public void updateDocument( public void reloadDocument( com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request, responseObserver); @@ -745,7 +747,8 @@ protected DocumentsBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse listDocuments( com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request) { - return blockingUnaryCall(getChannel(), getListDocumentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentsMethod(), getCallOptions(), request); } /** @@ -759,7 +762,8 @@ public com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse listDocuments( */ public com.google.cloud.dialogflow.v2beta1.Document getDocument( com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request) { - return blockingUnaryCall(getChannel(), getGetDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); } /** @@ -773,7 +777,8 @@ public com.google.cloud.dialogflow.v2beta1.Document getDocument( */ public com.google.longrunning.Operation createDocument( com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request) { - return blockingUnaryCall(getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } /** @@ -785,7 +790,8 @@ public com.google.longrunning.Operation createDocument( */ public com.google.longrunning.Operation importDocuments( com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest request) { - return blockingUnaryCall(getChannel(), getImportDocumentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } /** @@ -799,7 +805,8 @@ public com.google.longrunning.Operation importDocuments( */ public com.google.longrunning.Operation deleteDocument( com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request) { - return blockingUnaryCall(getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } /** @@ -813,7 +820,8 @@ public com.google.longrunning.Operation deleteDocument( */ public com.google.longrunning.Operation updateDocument( com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request) { - return blockingUnaryCall(getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } /** @@ -833,7 +841,8 @@ public com.google.longrunning.Operation updateDocument( */ public com.google.longrunning.Operation reloadDocument( com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request) { - return blockingUnaryCall(getChannel(), getReloadDocumentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReloadDocumentMethod(), getCallOptions(), request); } } @@ -867,7 +876,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse> listDocuments(com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); } @@ -883,7 +892,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Document> getDocument(com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); } @@ -898,7 +907,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture createDocument(com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); } @@ -911,7 +920,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture importDocuments(com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); } @@ -926,7 +935,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture deleteDocument(com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); } @@ -941,7 +950,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture updateDocument(com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); } @@ -962,7 +971,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture reloadDocument(com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java index dceccf1b4..6347e3b1e 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -565,7 +560,8 @@ public void listEntityTypes( com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEntityTypesMethod(), responseObserver); } /** @@ -579,7 +575,8 @@ public void getEntityType( com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEntityTypeMethod(), responseObserver); } /** @@ -593,7 +590,8 @@ public void createEntityType( com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEntityTypeMethod(), responseObserver); } /** @@ -607,7 +605,8 @@ public void updateEntityType( com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEntityTypeMethod(), responseObserver); } /** @@ -620,7 +619,8 @@ public void updateEntityType( public void deleteEntityType( com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEntityTypeMethod(), responseObserver); } /** @@ -634,7 +634,8 @@ public void deleteEntityType( public void batchUpdateEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateEntityTypesMethod(), responseObserver); } /** @@ -648,7 +649,8 @@ public void batchUpdateEntityTypes( public void batchDeleteEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteEntityTypesMethod(), responseObserver); } /** @@ -662,7 +664,8 @@ public void batchDeleteEntityTypes( public void batchCreateEntities( com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchCreateEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateEntitiesMethod(), responseObserver); } /** @@ -678,7 +681,8 @@ public void batchCreateEntities( public void batchUpdateEntities( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateEntitiesMethod(), responseObserver); } /** @@ -692,7 +696,8 @@ public void batchUpdateEntities( public void batchDeleteEntities( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteEntitiesMethod(), responseObserver); } @java.lang.Override @@ -700,65 +705,65 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest, com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse>( this, METHODID_LIST_ENTITY_TYPES))) .addMethod( getGetEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest, com.google.cloud.dialogflow.v2beta1.EntityType>( this, METHODID_GET_ENTITY_TYPE))) .addMethod( getCreateEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest, com.google.cloud.dialogflow.v2beta1.EntityType>( this, METHODID_CREATE_ENTITY_TYPE))) .addMethod( getUpdateEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest, com.google.cloud.dialogflow.v2beta1.EntityType>( this, METHODID_UPDATE_ENTITY_TYPE))) .addMethod( getDeleteEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ENTITY_TYPE))) .addMethod( getBatchUpdateEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_ENTITY_TYPES))) .addMethod( getBatchDeleteEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_ENTITY_TYPES))) .addMethod( getBatchCreateEntitiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_CREATE_ENTITIES))) .addMethod( getBatchUpdateEntitiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_ENTITIES))) .addMethod( getBatchDeleteEntitiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_ENTITIES))) @@ -795,7 +800,7 @@ public void listEntityTypes( com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -812,7 +817,7 @@ public void getEntityType( com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -829,7 +834,7 @@ public void createEntityType( com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -846,7 +851,7 @@ public void updateEntityType( com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -862,7 +867,7 @@ public void updateEntityType( public void deleteEntityType( com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -879,7 +884,7 @@ public void deleteEntityType( public void batchUpdateEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -896,7 +901,7 @@ public void batchUpdateEntityTypes( public void batchDeleteEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -913,7 +918,7 @@ public void batchDeleteEntityTypes( public void batchCreateEntities( com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), request, responseObserver); @@ -932,7 +937,7 @@ public void batchCreateEntities( public void batchUpdateEntities( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), request, responseObserver); @@ -949,7 +954,7 @@ public void batchUpdateEntities( public void batchDeleteEntities( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), request, responseObserver); @@ -984,7 +989,8 @@ protected EntityTypesBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse listEntityTypes( com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest request) { - return blockingUnaryCall(getChannel(), getListEntityTypesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } /** @@ -996,7 +1002,8 @@ public com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse listEntityTyp */ public com.google.cloud.dialogflow.v2beta1.EntityType getEntityType( com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest request) { - return blockingUnaryCall(getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } /** @@ -1008,7 +1015,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType getEntityType( */ public com.google.cloud.dialogflow.v2beta1.EntityType createEntityType( com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -1021,7 +1028,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType createEntityType( */ public com.google.cloud.dialogflow.v2beta1.EntityType updateEntityType( com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -1034,7 +1041,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType updateEntityType( */ public com.google.protobuf.Empty deleteEntityType( com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -1048,7 +1055,7 @@ public com.google.protobuf.Empty deleteEntityType( */ public com.google.longrunning.Operation batchUpdateEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateEntityTypesMethod(), getCallOptions(), request); } @@ -1062,7 +1069,7 @@ public com.google.longrunning.Operation batchUpdateEntityTypes( */ public com.google.longrunning.Operation batchDeleteEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteEntityTypesMethod(), getCallOptions(), request); } @@ -1076,7 +1083,7 @@ public com.google.longrunning.Operation batchDeleteEntityTypes( */ public com.google.longrunning.Operation batchCreateEntities( com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateEntitiesMethod(), getCallOptions(), request); } @@ -1092,7 +1099,7 @@ public com.google.longrunning.Operation batchCreateEntities( */ public com.google.longrunning.Operation batchUpdateEntities( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateEntitiesMethod(), getCallOptions(), request); } @@ -1106,7 +1113,7 @@ public com.google.longrunning.Operation batchUpdateEntities( */ public com.google.longrunning.Operation batchDeleteEntities( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteEntitiesMethod(), getCallOptions(), request); } } @@ -1140,7 +1147,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse> listEntityTypes(com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request); } @@ -1154,7 +1161,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.EntityType> getEntityType(com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request); } @@ -1168,7 +1175,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.EntityType> createEntityType(com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request); } @@ -1182,7 +1189,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.EntityType> updateEntityType(com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request); } @@ -1195,7 +1202,7 @@ protected EntityTypesFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteEntityType(com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request); } @@ -1210,7 +1217,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchUpdateEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), request); } @@ -1225,7 +1232,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchDeleteEntityTypes( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), request); } @@ -1240,7 +1247,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchCreateEntities( com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), request); } @@ -1257,7 +1264,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchUpdateEntities( com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), request); } @@ -1272,7 +1279,7 @@ protected EntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchDeleteEntities( com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java index 5d43b784c..9d24d30d6 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -147,7 +142,8 @@ public void listEnvironments( com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEnvironmentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEnvironmentsMethod(), responseObserver); } @java.lang.Override @@ -155,7 +151,7 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListEnvironmentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest, com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse>( @@ -193,7 +189,7 @@ public void listEnvironments( com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request, responseObserver); @@ -228,7 +224,7 @@ protected EnvironmentsBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse listEnvironments( com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } } @@ -262,7 +258,7 @@ protected EnvironmentsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse> listEnvironments(com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java index 21c0b7b7c..e0cbfde7b 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -414,7 +409,8 @@ public void listIntents( com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIntentsMethod(), responseObserver); } /** @@ -427,7 +423,7 @@ public void listIntents( public void getIntent( com.google.cloud.dialogflow.v2beta1.GetIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIntentMethod(), responseObserver); } /** @@ -440,7 +436,8 @@ public void getIntent( public void createIntent( com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIntentMethod(), responseObserver); } /** @@ -453,7 +450,8 @@ public void createIntent( public void updateIntent( com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIntentMethod(), responseObserver); } /** @@ -466,7 +464,8 @@ public void updateIntent( public void deleteIntent( com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIntentMethod(), responseObserver); } /** @@ -480,7 +479,8 @@ public void deleteIntent( public void batchUpdateIntents( com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateIntentsMethod(), responseObserver); } /** @@ -494,7 +494,8 @@ public void batchUpdateIntents( public void batchDeleteIntents( com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteIntentsMethod(), responseObserver); } @java.lang.Override @@ -502,44 +503,44 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListIntentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListIntentsRequest, com.google.cloud.dialogflow.v2beta1.ListIntentsResponse>( this, METHODID_LIST_INTENTS))) .addMethod( getGetIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent>(this, METHODID_GET_INTENT))) .addMethod( getCreateIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent>(this, METHODID_CREATE_INTENT))) .addMethod( getUpdateIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent>(this, METHODID_UPDATE_INTENT))) .addMethod( getDeleteIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_INTENT))) .addMethod( getBatchUpdateIntentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_INTENTS))) .addMethod( getBatchDeleteIntentsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_INTENTS))) @@ -575,7 +576,7 @@ public void listIntents( com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListIntentsMethod(), getCallOptions()), request, responseObserver); @@ -591,7 +592,7 @@ public void listIntents( public void getIntent( com.google.cloud.dialogflow.v2beta1.GetIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIntentMethod(), getCallOptions()), request, responseObserver); } @@ -605,7 +606,7 @@ public void getIntent( public void createIntent( com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateIntentMethod(), getCallOptions()), request, responseObserver); @@ -621,7 +622,7 @@ public void createIntent( public void updateIntent( com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), request, responseObserver); @@ -637,7 +638,7 @@ public void updateIntent( public void deleteIntent( com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request, responseObserver); @@ -654,7 +655,7 @@ public void deleteIntent( public void batchUpdateIntents( com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), request, responseObserver); @@ -671,7 +672,7 @@ public void batchUpdateIntents( public void batchDeleteIntents( com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), request, responseObserver); @@ -705,7 +706,8 @@ protected IntentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.cloud.dialogflow.v2beta1.ListIntentsResponse listIntents( com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request) { - return blockingUnaryCall(getChannel(), getListIntentsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIntentsMethod(), getCallOptions(), request); } /** @@ -717,7 +719,8 @@ public com.google.cloud.dialogflow.v2beta1.ListIntentsResponse listIntents( */ public com.google.cloud.dialogflow.v2beta1.Intent getIntent( com.google.cloud.dialogflow.v2beta1.GetIntentRequest request) { - return blockingUnaryCall(getChannel(), getGetIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIntentMethod(), getCallOptions(), request); } /** @@ -729,7 +732,8 @@ public com.google.cloud.dialogflow.v2beta1.Intent getIntent( */ public com.google.cloud.dialogflow.v2beta1.Intent createIntent( com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request) { - return blockingUnaryCall(getChannel(), getCreateIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIntentMethod(), getCallOptions(), request); } /** @@ -741,7 +745,8 @@ public com.google.cloud.dialogflow.v2beta1.Intent createIntent( */ public com.google.cloud.dialogflow.v2beta1.Intent updateIntent( com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request) { - return blockingUnaryCall(getChannel(), getUpdateIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } /** @@ -753,7 +758,8 @@ public com.google.cloud.dialogflow.v2beta1.Intent updateIntent( */ public com.google.protobuf.Empty deleteIntent( com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request) { - return blockingUnaryCall(getChannel(), getDeleteIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } /** @@ -766,7 +772,7 @@ public com.google.protobuf.Empty deleteIntent( */ public com.google.longrunning.Operation batchUpdateIntents( com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateIntentsMethod(), getCallOptions(), request); } @@ -780,7 +786,7 @@ public com.google.longrunning.Operation batchUpdateIntents( */ public com.google.longrunning.Operation batchDeleteIntents( com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteIntentsMethod(), getCallOptions(), request); } } @@ -813,7 +819,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> listIntents(com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListIntentsMethod(), getCallOptions()), request); } @@ -827,7 +833,8 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Intent> getIntent(com.google.cloud.dialogflow.v2beta1.GetIntentRequest request) { - return futureUnaryCall(getChannel().newCall(getGetIntentMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIntentMethod(), getCallOptions()), request); } /** @@ -840,7 +847,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Intent> createIntent(com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateIntentMethod(), getCallOptions()), request); } @@ -854,7 +861,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Intent> updateIntent(com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), request); } @@ -867,7 +874,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture deleteIntent(com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request); } @@ -881,7 +888,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture batchUpdateIntents(com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), request); } @@ -895,7 +902,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c */ public com.google.common.util.concurrent.ListenableFuture batchDeleteIntents(com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java index cdfba9644..b16d6f07a 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -341,7 +336,8 @@ public void listKnowledgeBases( com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListKnowledgeBasesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListKnowledgeBasesMethod(), responseObserver); } /** @@ -357,7 +353,8 @@ public void getKnowledgeBase( com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetKnowledgeBaseMethod(), responseObserver); } /** @@ -373,7 +370,8 @@ public void createKnowledgeBase( com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateKnowledgeBaseMethod(), responseObserver); } /** @@ -388,7 +386,8 @@ public void createKnowledgeBase( public void deleteKnowledgeBase( com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteKnowledgeBaseMethod(), responseObserver); } /** @@ -404,7 +403,8 @@ public void updateKnowledgeBase( com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateKnowledgeBaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateKnowledgeBaseMethod(), responseObserver); } @java.lang.Override @@ -412,34 +412,34 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListKnowledgeBasesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest, com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse>( this, METHODID_LIST_KNOWLEDGE_BASES))) .addMethod( getGetKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest, com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( this, METHODID_GET_KNOWLEDGE_BASE))) .addMethod( getCreateKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest, com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( this, METHODID_CREATE_KNOWLEDGE_BASE))) .addMethod( getDeleteKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_KNOWLEDGE_BASE))) .addMethod( getUpdateKnowledgeBaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( @@ -479,7 +479,7 @@ public void listKnowledgeBases( com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request, responseObserver); @@ -498,7 +498,7 @@ public void getKnowledgeBase( com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -517,7 +517,7 @@ public void createKnowledgeBase( com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -535,7 +535,7 @@ public void createKnowledgeBase( public void deleteKnowledgeBase( com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -554,7 +554,7 @@ public void updateKnowledgeBase( com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); @@ -591,7 +591,7 @@ protected KnowledgeBasesBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse listKnowledgeBases( com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); } @@ -606,7 +606,7 @@ public com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse listKnowle */ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase( com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); } @@ -621,7 +621,7 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase( */ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase createKnowledgeBase( com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); } @@ -636,7 +636,7 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase createKnowledgeBase( */ public com.google.protobuf.Empty deleteKnowledgeBase( com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); } @@ -651,7 +651,7 @@ public com.google.protobuf.Empty deleteKnowledgeBase( */ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase updateKnowledgeBase( com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); } } @@ -687,7 +687,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> listKnowledgeBases(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request); } @@ -703,7 +703,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.KnowledgeBase> getKnowledgeBase(com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request); } @@ -720,7 +720,7 @@ protected KnowledgeBasesFutureStub build( com.google.cloud.dialogflow.v2beta1.KnowledgeBase> createKnowledgeBase( com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request); } @@ -736,7 +736,7 @@ protected KnowledgeBasesFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteKnowledgeBase( com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request); } @@ -753,7 +753,7 @@ protected KnowledgeBasesFutureStub build( com.google.cloud.dialogflow.v2beta1.KnowledgeBase> updateKnowledgeBase( com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java index ca8d6da5a..05e1eb556 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java @@ -16,14 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -622,7 +614,8 @@ public void createParticipant( com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateParticipantMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateParticipantMethod(), responseObserver); } /** @@ -636,7 +629,8 @@ public void getParticipant( com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetParticipantMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetParticipantMethod(), responseObserver); } /** @@ -650,7 +644,8 @@ public void listParticipants( com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListParticipantsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListParticipantsMethod(), responseObserver); } /** @@ -664,7 +659,8 @@ public void updateParticipant( com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateParticipantMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateParticipantMethod(), responseObserver); } /** @@ -682,7 +678,8 @@ public void analyzeContent( com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAnalyzeContentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnalyzeContentMethod(), responseObserver); } /** @@ -710,7 +707,8 @@ public void analyzeContent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse> responseObserver) { - return asyncUnimplementedStreamingCall(getStreamingAnalyzeContentMethod(), responseObserver); + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingAnalyzeContentMethod(), responseObserver); } /** @@ -728,7 +726,8 @@ public void suggestArticles( com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSuggestArticlesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuggestArticlesMethod(), responseObserver); } /** @@ -743,7 +742,8 @@ public void suggestFaqAnswers( com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSuggestFaqAnswersMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuggestFaqAnswersMethod(), responseObserver); } /** @@ -758,7 +758,8 @@ public void suggestSmartReplies( com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSuggestSmartRepliesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuggestSmartRepliesMethod(), responseObserver); } /** @@ -789,7 +790,8 @@ public void listSuggestions( com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSuggestionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSuggestionsMethod(), responseObserver); } /** @@ -809,7 +811,8 @@ public void compileSuggestion( com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCompileSuggestionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompileSuggestionMethod(), responseObserver); } @java.lang.Override @@ -817,77 +820,77 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateParticipantMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest, com.google.cloud.dialogflow.v2beta1.Participant>( this, METHODID_CREATE_PARTICIPANT))) .addMethod( getGetParticipantMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetParticipantRequest, com.google.cloud.dialogflow.v2beta1.Participant>( this, METHODID_GET_PARTICIPANT))) .addMethod( getListParticipantsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest, com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse>( this, METHODID_LIST_PARTICIPANTS))) .addMethod( getUpdateParticipantMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest, com.google.cloud.dialogflow.v2beta1.Participant>( this, METHODID_UPDATE_PARTICIPANT))) .addMethod( getAnalyzeContentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest, com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse>( this, METHODID_ANALYZE_CONTENT))) .addMethod( getStreamingAnalyzeContentMethod(), - asyncBidiStreamingCall( + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest, com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse>( this, METHODID_STREAMING_ANALYZE_CONTENT))) .addMethod( getSuggestArticlesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest, com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse>( this, METHODID_SUGGEST_ARTICLES))) .addMethod( getSuggestFaqAnswersMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest, com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse>( this, METHODID_SUGGEST_FAQ_ANSWERS))) .addMethod( getSuggestSmartRepliesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest, com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse>( this, METHODID_SUGGEST_SMART_REPLIES))) .addMethod( getListSuggestionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest, com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse>( this, METHODID_LIST_SUGGESTIONS))) .addMethod( getCompileSuggestionMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest, com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse>( @@ -925,7 +928,7 @@ public void createParticipant( com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request, responseObserver); @@ -942,7 +945,7 @@ public void getParticipant( com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request, responseObserver); @@ -959,7 +962,7 @@ public void listParticipants( com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request, responseObserver); @@ -976,7 +979,7 @@ public void updateParticipant( com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request, responseObserver); @@ -997,7 +1000,7 @@ public void analyzeContent( com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request, responseObserver); @@ -1028,7 +1031,7 @@ public void analyzeContent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse> responseObserver) { - return asyncBidiStreamingCall( + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamingAnalyzeContentMethod(), getCallOptions()), responseObserver); } @@ -1048,7 +1051,7 @@ public void suggestArticles( com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request, responseObserver); @@ -1066,7 +1069,7 @@ public void suggestFaqAnswers( com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request, responseObserver); @@ -1084,7 +1087,7 @@ public void suggestSmartReplies( com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSuggestSmartRepliesMethod(), getCallOptions()), request, responseObserver); @@ -1118,7 +1121,7 @@ public void listSuggestions( com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSuggestionsMethod(), getCallOptions()), request, responseObserver); @@ -1141,7 +1144,7 @@ public void compileSuggestion( com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCompileSuggestionMethod(), getCallOptions()), request, responseObserver); @@ -1176,7 +1179,7 @@ protected ParticipantsBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.Participant createParticipant( com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateParticipantMethod(), getCallOptions(), request); } @@ -1189,7 +1192,8 @@ public com.google.cloud.dialogflow.v2beta1.Participant createParticipant( */ public com.google.cloud.dialogflow.v2beta1.Participant getParticipant( com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request) { - return blockingUnaryCall(getChannel(), getGetParticipantMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetParticipantMethod(), getCallOptions(), request); } /** @@ -1201,7 +1205,7 @@ public com.google.cloud.dialogflow.v2beta1.Participant getParticipant( */ public com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse listParticipants( com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListParticipantsMethod(), getCallOptions(), request); } @@ -1214,7 +1218,7 @@ public com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse listParticip */ public com.google.cloud.dialogflow.v2beta1.Participant updateParticipant( com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); } @@ -1231,7 +1235,8 @@ public com.google.cloud.dialogflow.v2beta1.Participant updateParticipant( */ public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyzeContent( com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request) { - return blockingUnaryCall(getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); } /** @@ -1247,7 +1252,8 @@ public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyzeContent */ public com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggestArticles( com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request) { - return blockingUnaryCall(getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); } /** @@ -1260,7 +1266,7 @@ public com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggestArticl */ public com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggestFaqAnswers( com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); } @@ -1274,7 +1280,7 @@ public com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggestFaqA */ public com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggestSmartReplies( com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSuggestSmartRepliesMethod(), getCallOptions(), request); } @@ -1304,7 +1310,8 @@ public com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggestSm @java.lang.Deprecated public com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse listSuggestions( com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request) { - return blockingUnaryCall(getChannel(), getListSuggestionsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSuggestionsMethod(), getCallOptions(), request); } /** @@ -1322,7 +1329,7 @@ public com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse listSuggestio @java.lang.Deprecated public com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse compileSuggestion( com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompileSuggestionMethod(), getCallOptions(), request); } } @@ -1356,7 +1363,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Participant> createParticipant(com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request); } @@ -1370,7 +1377,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Participant> getParticipant(com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); } @@ -1384,7 +1391,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse> listParticipants(com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); } @@ -1398,7 +1405,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.Participant> updateParticipant(com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request); } @@ -1416,7 +1423,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse> analyzeContent(com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request); } @@ -1434,7 +1441,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> suggestArticles(com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request); } @@ -1449,7 +1456,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse> suggestFaqAnswers(com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request); } @@ -1465,7 +1472,7 @@ protected ParticipantsFutureStub build( com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse> suggestSmartReplies( com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSuggestSmartRepliesMethod(), getCallOptions()), request); } @@ -1496,7 +1503,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse> listSuggestions(com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSuggestionsMethod(), getCallOptions()), request); } @@ -1516,7 +1523,7 @@ protected ParticipantsFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse> compileSuggestion(com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompileSuggestionMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java index 9eaa038a6..3ed4d0d60 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -357,7 +352,8 @@ public void listSessionEntityTypes( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListSessionEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSessionEntityTypesMethod(), responseObserver); } /** @@ -374,7 +370,8 @@ public void getSessionEntityType( com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSessionEntityTypeMethod(), responseObserver); } /** @@ -393,7 +390,8 @@ public void createSessionEntityType( com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSessionEntityTypeMethod(), responseObserver); } /** @@ -410,7 +408,8 @@ public void updateSessionEntityType( com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSessionEntityTypeMethod(), responseObserver); } /** @@ -426,7 +425,8 @@ public void updateSessionEntityType( public void deleteSessionEntityType( com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSessionEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSessionEntityTypeMethod(), responseObserver); } @java.lang.Override @@ -434,35 +434,35 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListSessionEntityTypesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest, com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse>( this, METHODID_LIST_SESSION_ENTITY_TYPES))) .addMethod( getGetSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest, com.google.cloud.dialogflow.v2beta1.SessionEntityType>( this, METHODID_GET_SESSION_ENTITY_TYPE))) .addMethod( getCreateSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest, com.google.cloud.dialogflow.v2beta1.SessionEntityType>( this, METHODID_CREATE_SESSION_ENTITY_TYPE))) .addMethod( getUpdateSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest, com.google.cloud.dialogflow.v2beta1.SessionEntityType>( this, METHODID_UPDATE_SESSION_ENTITY_TYPE))) .addMethod( getDeleteSessionEntityTypeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_SESSION_ENTITY_TYPE))) @@ -504,7 +504,7 @@ public void listSessionEntityTypes( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request, responseObserver); @@ -524,7 +524,7 @@ public void getSessionEntityType( com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -546,7 +546,7 @@ public void createSessionEntityType( com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -566,7 +566,7 @@ public void updateSessionEntityType( com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -585,7 +585,7 @@ public void updateSessionEntityType( public void deleteSessionEntityType( com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); @@ -625,7 +625,7 @@ protected SessionEntityTypesBlockingStub build( public com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse listSessionEntityTypes( com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); } @@ -641,7 +641,7 @@ protected SessionEntityTypesBlockingStub build( */ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityType( com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); } @@ -659,7 +659,7 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp */ public com.google.cloud.dialogflow.v2beta1.SessionEntityType createSessionEntityType( com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -675,7 +675,7 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType createSessionEntity */ public com.google.cloud.dialogflow.v2beta1.SessionEntityType updateSessionEntityType( com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -691,7 +691,7 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType updateSessionEntity */ public com.google.protobuf.Empty deleteSessionEntityType( com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); } } @@ -729,7 +729,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> listSessionEntityTypes( com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request); } @@ -747,7 +747,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2beta1.SessionEntityType> getSessionEntityType( com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request); } @@ -767,7 +767,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2beta1.SessionEntityType> createSessionEntityType( com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request); } @@ -785,7 +785,7 @@ protected SessionEntityTypesFutureStub build( com.google.cloud.dialogflow.v2beta1.SessionEntityType> updateSessionEntityType( com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request); } @@ -802,7 +802,7 @@ protected SessionEntityTypesFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteSessionEntityType( com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java index 6e438df0a..9883d83fd 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java @@ -16,14 +16,6 @@ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -207,7 +199,8 @@ public void detectIntent( com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDetectIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetectIntentMethod(), responseObserver); } /** @@ -228,7 +221,8 @@ public void detectIntent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> responseObserver) { - return asyncUnimplementedStreamingCall(getStreamingDetectIntentMethod(), responseObserver); + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingDetectIntentMethod(), responseObserver); } @java.lang.Override @@ -236,14 +230,14 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getDetectIntentMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DetectIntentRequest, com.google.cloud.dialogflow.v2beta1.DetectIntentResponse>( this, METHODID_DETECT_INTENT))) .addMethod( getStreamingDetectIntentMethod(), - asyncBidiStreamingCall( + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest, com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse>( @@ -288,7 +282,7 @@ public void detectIntent( com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request, responseObserver); @@ -312,7 +306,7 @@ public void detectIntent( io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> responseObserver) { - return asyncBidiStreamingCall( + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamingDetectIntentMethod(), getCallOptions()), responseObserver); } @@ -353,7 +347,8 @@ protected SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.cloud.dialogflow.v2beta1.DetectIntentResponse detectIntent( com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request) { - return blockingUnaryCall(getChannel(), getDetectIntentMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectIntentMethod(), getCallOptions(), request); } } @@ -393,7 +388,7 @@ protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2beta1.DetectIntentResponse> detectIntent(com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request); } } diff --git a/synth.metadata b/synth.metadata index 3f3bd97c3..f8092a4e8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,16 +11,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3b0afe54b5aedcd7cee0036b16d2a31324d0db60", - "internalRef": "361217394" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3b0afe54b5aedcd7cee0036b16d2a31324d0db60", - "internalRef": "361217394" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { From b43d697a5e9382713fca642a7f052548877e0bc5 Mon Sep 17 00:00:00 2001 From: Neenu1995 Date: Mon, 15 Mar 2021 22:22:45 -0400 Subject: [PATCH 3/3] chore: add proto changes to clirr-ignored-differences --- .../clirr-ignored-differences.xml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml b/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml index 4bfe4535b..335e824d9 100644 --- a/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml @@ -16,4 +16,25 @@ com/google/cloud/dialogflow/v2beta1/*OrBuilder boolean has*(*) + + + 7002 + com/google/cloud/dialogflow/v2beta1/ResponseMessage* + * *MixedAudio*(*) + + + 8001 + com/google/cloud/dialogflow/v2beta1/ResponseMessage$MixedAudio* + + + 6001 + com/google/cloud/dialogflow/v2beta1/ResponseMessage* + MIXED_AUDIO + + + 6011 + com/google/cloud/dialogflow/v2beta1/ResponseMessage* + MIXED_AUDIO_FIELD_NUMBER + +