diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index fdaeae91bbce..ba4aa3168a61 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -40,46 +40,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n-google/cloud/dialogflow/v2/audio_confi" + "g.proto\022\032google.cloud.dialogflow.v2\032\036goo" + "gle/protobuf/duration.proto\032\034google/api/" - + "annotations.proto\"\344\001\n\020InputAudioConfig\022A" + + "annotations.proto\"\376\001\n\020InputAudioConfig\022A" + "\n\016audio_encoding\030\001 \001(\0162).google.cloud.di" + "alogflow.v2.AudioEncoding\022\031\n\021sample_rate" + "_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014p" + "hrase_hints\030\004 \003(\t\022E\n\rmodel_variant\030\n \001(\016" + "2..google.cloud.dialogflow.v2.SpeechMode" - + "lVariant\"f\n\024VoiceSelectionParams\022\014\n\004name" - + "\030\001 \001(\t\022@\n\013ssml_gender\030\002 \001(\0162+.google.clo" - + "ud.dialogflow.v2.SsmlVoiceGender\"\263\001\n\026Syn" - + "thesizeSpeechConfig\022\025\n\rspeaking_rate\030\001 \001" - + "(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volume_gain_db\030\003 \001(" - + "\001\022\032\n\022effects_profile_id\030\005 \003(\t\022?\n\005voice\030\004" - + " \001(\01320.google.cloud.dialogflow.v2.VoiceS" - + "electionParams\"\315\001\n\021OutputAudioConfig\022G\n\016" - + "audio_encoding\030\001 \001(\0162/.google.cloud.dial" - + "ogflow.v2.OutputAudioEncoding\022\031\n\021sample_" - + "rate_hertz\030\002 \001(\005\022T\n\030synthesize_speech_co" - + "nfig\030\003 \001(\01322.google.cloud.dialogflow.v2." - + "SynthesizeSpeechConfig*\373\001\n\rAudioEncoding" - + "\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\034\n\030AUDI" - + "O_ENCODING_LINEAR_16\020\001\022\027\n\023AUDIO_ENCODING" - + "_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MULAW\020\003\022\026\n\022AUD" - + "IO_ENCODING_AMR\020\004\022\031\n\025AUDIO_ENCODING_AMR_" - + "WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OPUS\020\006\022)\n%AUD" - + "IO_ENCODING_SPEEX_WITH_HEADER_BYTE\020\007*v\n\022" - + "SpeechModelVariant\022$\n SPEECH_MODEL_VARIA" - + "NT_UNSPECIFIED\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001" - + "\022\020\n\014USE_STANDARD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n" - + "\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_UN" - + "SPECIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022" - + "\034\n\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VO" - + "ICE_GENDER_NEUTRAL\020\003*\244\001\n\023OutputAudioEnco" - + "ding\022%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIE" - + "D\020\000\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001" - + "\022\035\n\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022\"\n\036OUTPU" - + "T_AUDIO_ENCODING_OGG_OPUS\020\003B\237\001\n\036com.goog" - + "le.cloud.dialogflow.v2B\020AudioConfigProto" - + "P\001ZDgoogle.golang.org/genproto/googleapi" - + "s/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF" - + "\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" + + "lVariant\022\030\n\020single_utterance\030\010 \001(\010\"f\n\024Vo" + + "iceSelectionParams\022\014\n\004name\030\001 \001(\t\022@\n\013ssml" + + "_gender\030\002 \001(\0162+.google.cloud.dialogflow." + + "v2.SsmlVoiceGender\"\263\001\n\026SynthesizeSpeechC" + + "onfig\022\025\n\rspeaking_rate\030\001 \001(\001\022\r\n\005pitch\030\002 " + + "\001(\001\022\026\n\016volume_gain_db\030\003 \001(\001\022\032\n\022effects_p" + + "rofile_id\030\005 \003(\t\022?\n\005voice\030\004 \001(\01320.google." + + "cloud.dialogflow.v2.VoiceSelectionParams" + + "\"\315\001\n\021OutputAudioConfig\022G\n\016audio_encoding" + + "\030\001 \001(\0162/.google.cloud.dialogflow.v2.Outp" + + "utAudioEncoding\022\031\n\021sample_rate_hertz\030\002 \001" + + "(\005\022T\n\030synthesize_speech_config\030\003 \001(\01322.g" + + "oogle.cloud.dialogflow.v2.SynthesizeSpee" + + "chConfig*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCO" + + "DING_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LIN" + + "EAR_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUD" + + "IO_ENCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AM" + + "R\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_" + + "ENCODING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SP" + + "EEX_WITH_HEADER_BYTE\020\007*v\n\022SpeechModelVar" + + "iant\022$\n SPEECH_MODEL_VARIANT_UNSPECIFIED" + + "\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020\n\014USE_STANDA" + + "RD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017SsmlVoiceGend" + + "er\022!\n\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n" + + "\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_" + + "GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEU" + + "TRAL\020\003*\244\001\n\023OutputAudioEncoding\022%\n!OUTPUT" + + "_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_" + + "AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUD" + + "IO_ENCODING_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCODI" + + "NG_OGG_OPUS\020\003B\237\001\n\036com.google.cloud.dialo" + + "gflow.v2B\020AudioConfigProtoP\001ZDgoogle.gol" + + "ang.org/genproto/googleapis/cloud/dialog" + + "flow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Clou" + + "d.Dialogflow.V2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -102,7 +103,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor, new java.lang.String[] { - "AudioEncoding", "SampleRateHertz", "LanguageCode", "PhraseHints", "ModelVariant", + "AudioEncoding", + "SampleRateHertz", + "LanguageCode", + "PhraseHints", + "ModelVariant", + "SingleUtterance", }); internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java index 221733e5764f..95c43795ea74 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java @@ -82,6 +82,11 @@ private InputAudioConfig( phraseHints_.add(s); break; } + case 64: + { + singleUtterance_ = input.readBool(); + break; + } case 80: { int rawValue = input.readEnum(); @@ -324,6 +329,30 @@ public com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant() { return result == null ? com.google.cloud.dialogflow.v2.SpeechModelVariant.UNRECOGNIZED : result; } + public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 8; + private boolean singleUtterance_; + /** + * + * + *
+ * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public boolean getSingleUtterance() {
+ return singleUtterance_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -351,6 +380,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < phraseHints_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phraseHints_.getRaw(i));
}
+ if (singleUtterance_ != false) {
+ output.writeBool(8, singleUtterance_);
+ }
if (modelVariant_
!= com.google.cloud.dialogflow.v2.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED
.getNumber()) {
@@ -383,6 +415,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getPhraseHintsList().size();
}
+ if (singleUtterance_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, singleUtterance_);
+ }
if (modelVariant_
!= com.google.cloud.dialogflow.v2.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED
.getNumber()) {
@@ -409,6 +444,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLanguageCode().equals(other.getLanguageCode())) return false;
if (!getPhraseHintsList().equals(other.getPhraseHintsList())) return false;
if (modelVariant_ != other.modelVariant_) return false;
+ if (getSingleUtterance() != other.getSingleUtterance()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -432,6 +468,8 @@ public int hashCode() {
}
hash = (37 * hash) + MODEL_VARIANT_FIELD_NUMBER;
hash = (53 * hash) + modelVariant_;
+ hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -587,6 +625,8 @@ public Builder clear() {
bitField0_ = (bitField0_ & ~0x00000008);
modelVariant_ = 0;
+ singleUtterance_ = false;
+
return this;
}
@@ -625,6 +665,7 @@ public com.google.cloud.dialogflow.v2.InputAudioConfig buildPartial() {
}
result.phraseHints_ = phraseHints_;
result.modelVariant_ = modelVariant_;
+ result.singleUtterance_ = singleUtterance_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -699,6 +740,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.InputAudioConfig other)
if (other.modelVariant_ != 0) {
setModelVariantValue(other.getModelVariantValue());
}
+ if (other.getSingleUtterance() != false) {
+ setSingleUtterance(other.getSingleUtterance());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1233,6 +1277,77 @@ public Builder clearModelVariant() {
return this;
}
+ private boolean singleUtterance_;
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public boolean getSingleUtterance() {
+ return singleUtterance_;
+ }
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public Builder setSingleUtterance(boolean value) {
+
+ singleUtterance_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public Builder clearSingleUtterance() {
+
+ singleUtterance_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java
index 67de1ed09f1b..bb1fb6269075 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java
@@ -150,4 +150,24 @@ public interface InputAudioConfigOrBuilder
* .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10;
*/
com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant();
+
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ boolean getSingleUtterance();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java
index f91f96f23e78..87eb37d96ce1 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java
@@ -809,6 +809,10 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
@@ -3591,6 +3595,10 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
@@ -3606,6 +3614,10 @@ public float getIntentDetectionConfidence() {
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
@@ -3624,6 +3636,10 @@ public Builder setIntentDetectionConfidence(float value) {
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java
index 4a7d414469d6..036314075561 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java
@@ -397,6 +397,10 @@ public interface QueryResultOrBuilder
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java
index 5c781c0d5df6..ebe5f5fffe94 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java
@@ -127,55 +127,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "nce\030\014 \001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.goo"
+ "gle.protobuf.Struct\022V\n\031sentiment_analysi"
+ "s_result\030\021 \001(\01323.google.cloud.dialogflow"
- + ".v2.SentimentAnalysisResult\"\252\002\n\034Streamin"
+ + ".v2.SentimentAnalysisResult\"\256\002\n\034Streamin"
+ "gDetectIntentRequest\022\017\n\007session\030\001 \001(\t\022A\n"
+ "\014query_params\030\002 \001(\0132+.google.cloud.dialo"
+ "gflow.v2.QueryParameters\022;\n\013query_input\030"
+ "\003 \001(\0132&.google.cloud.dialogflow.v2.Query"
- + "Input\022\030\n\020single_utterance\030\004 \001(\010\022J\n\023outpu"
- + "t_audio_config\030\005 \001(\0132-.google.cloud.dial"
- + "ogflow.v2.OutputAudioConfig\022\023\n\013input_aud"
- + "io\030\006 \001(\014\"\325\002\n\035StreamingDetectIntentRespon"
- + "se\022\023\n\013response_id\030\001 \001(\t\022R\n\022recognition_r"
- + "esult\030\002 \001(\01326.google.cloud.dialogflow.v2"
- + ".StreamingRecognitionResult\022=\n\014query_res"
- + "ult\030\003 \001(\0132\'.google.cloud.dialogflow.v2.Q"
- + "ueryResult\022*\n\016webhook_status\030\004 \001(\0132\022.goo"
- + "gle.rpc.Status\022\024\n\014output_audio\030\005 \001(\014\022J\n\023"
- + "output_audio_config\030\006 \001(\0132-.google.cloud"
- + ".dialogflow.v2.OutputAudioConfig\"\212\002\n\032Str"
- + "eamingRecognitionResult\022X\n\014message_type\030"
- + "\001 \001(\0162B.google.cloud.dialogflow.v2.Strea"
- + "mingRecognitionResult.MessageType\022\022\n\ntra"
- + "nscript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconfi"
- + "dence\030\004 \001(\002\"X\n\013MessageType\022\034\n\030MESSAGE_TY"
- + "PE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_"
- + "OF_SINGLE_UTTERANCE\020\002\"0\n\tTextInput\022\014\n\004te"
- + "xt\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^\n\nEvent"
- + "Input\022\014\n\004name\030\001 \001(\t\022+\n\nparameters\030\002 \001(\0132"
- + "\027.google.protobuf.Struct\022\025\n\rlanguage_cod"
- + "e\030\003 \001(\t\"F\n\036SentimentAnalysisRequestConfi"
- + "g\022$\n\034analyze_query_text_sentiment\030\001 \001(\010\""
- + "^\n\027SentimentAnalysisResult\022C\n\024query_text"
- + "_sentiment\030\001 \001(\0132%.google.cloud.dialogfl"
- + "ow.v2.Sentiment\"-\n\tSentiment\022\r\n\005score\030\001 "
- + "\001(\002\022\021\n\tmagnitude\030\002 \001(\0022\320\003\n\010Sessions\022\264\001\n\014"
- + "DetectIntent\022/.google.cloud.dialogflow.v"
- + "2.DetectIntentRequest\0320.google.cloud.dia"
- + "logflow.v2.DetectIntentResponse\"A\202\323\344\223\002;\""
- + "6/v2/{session=projects/*/agent/sessions/"
- + "*}:detectIntent:\001*\022\222\001\n\025StreamingDetectIn"
- + "tent\0228.google.cloud.dialogflow.v2.Stream"
- + "ingDetectIntentRequest\0329.google.cloud.di"
- + "alogflow.v2.StreamingDetectIntentRespons"
- + "e\"\000(\0010\001\032x\312A\031dialogflow.googleapis.com\322AY"
- + "https://www.googleapis.com/auth/cloud-pl"
- + "atform,https://www.googleapis.com/auth/d"
- + "ialogflowB\233\001\n\036com.google.cloud.dialogflo"
- + "w.v2B\014SessionProtoP\001ZDgoogle.golang.org/"
- + "genproto/googleapis/cloud/dialogflow/v2;"
- + "dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialog"
- + "flow.V2b\006proto3"
+ + "Input\022\034\n\020single_utterance\030\004 \001(\010B\002\030\001\022J\n\023o"
+ + "utput_audio_config\030\005 \001(\0132-.google.cloud."
+ + "dialogflow.v2.OutputAudioConfig\022\023\n\013input"
+ + "_audio\030\006 \001(\014\"\325\002\n\035StreamingDetectIntentRe"
+ + "sponse\022\023\n\013response_id\030\001 \001(\t\022R\n\022recogniti"
+ + "on_result\030\002 \001(\01326.google.cloud.dialogflo"
+ + "w.v2.StreamingRecognitionResult\022=\n\014query"
+ + "_result\030\003 \001(\0132\'.google.cloud.dialogflow."
+ + "v2.QueryResult\022*\n\016webhook_status\030\004 \001(\0132\022"
+ + ".google.rpc.Status\022\024\n\014output_audio\030\005 \001(\014"
+ + "\022J\n\023output_audio_config\030\006 \001(\0132-.google.c"
+ + "loud.dialogflow.v2.OutputAudioConfig\"\212\002\n"
+ + "\032StreamingRecognitionResult\022X\n\014message_t"
+ + "ype\030\001 \001(\0162B.google.cloud.dialogflow.v2.S"
+ + "treamingRecognitionResult.MessageType\022\022\n"
+ + "\ntranscript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nc"
+ + "onfidence\030\004 \001(\002\"X\n\013MessageType\022\034\n\030MESSAG"
+ + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027"
+ + "END_OF_SINGLE_UTTERANCE\020\002\"0\n\tTextInput\022\014"
+ + "\n\004text\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^\n\nE"
+ + "ventInput\022\014\n\004name\030\001 \001(\t\022+\n\nparameters\030\002 "
+ + "\001(\0132\027.google.protobuf.Struct\022\025\n\rlanguage"
+ + "_code\030\003 \001(\t\"F\n\036SentimentAnalysisRequestC"
+ + "onfig\022$\n\034analyze_query_text_sentiment\030\001 "
+ + "\001(\010\"^\n\027SentimentAnalysisResult\022C\n\024query_"
+ + "text_sentiment\030\001 \001(\0132%.google.cloud.dial"
+ + "ogflow.v2.Sentiment\"-\n\tSentiment\022\r\n\005scor"
+ + "e\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\320\003\n\010Sessions\022"
+ + "\264\001\n\014DetectIntent\022/.google.cloud.dialogfl"
+ + "ow.v2.DetectIntentRequest\0320.google.cloud"
+ + ".dialogflow.v2.DetectIntentResponse\"A\202\323\344"
+ + "\223\002;\"6/v2/{session=projects/*/agent/sessi"
+ + "ons/*}:detectIntent:\001*\022\222\001\n\025StreamingDete"
+ + "ctIntent\0228.google.cloud.dialogflow.v2.St"
+ + "reamingDetectIntentRequest\0329.google.clou"
+ + "d.dialogflow.v2.StreamingDetectIntentRes"
+ + "ponse\"\000(\0010\001\032x\312A\031dialogflow.googleapis.co"
+ + "m\322AYhttps://www.googleapis.com/auth/clou"
+ + "d-platform,https://www.googleapis.com/au"
+ + "th/dialogflowB\233\001\n\036com.google.cloud.dialo"
+ + "gflow.v2B\014SessionProtoP\001ZDgoogle.golang."
+ + "org/genproto/googleapis/cloud/dialogflow"
+ + "/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Di"
+ + "alogflow.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
index ffe1971f384f..8520e9bd3e77 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
@@ -11,7 +11,7 @@
* `StreamingDetectIntent` method.
* Multiple request messages should be sent in order:
* 1. The first message must contain `session`, `query_input` plus optionally
- * `query_params` and/or `single_utterance`. The message must not contain `input_audio`.
+ * `query_params`. The message must not contain `input_audio`.
* 2. If `query_input` was set to a streaming input audio config,
* all subsequent messages must contain only `input_audio`.
* Otherwise, finish the request stream.
@@ -310,18 +310,19 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
*
*
*
- * Optional. If `false` (default), recognition does not cease until the
- * client closes the stream.
- * If `true`, the recognizer will detect a single spoken utterance in input
- * audio. Recognition ceases when it detects the audio's voice has
- * stopped or paused. In this case, once a detected intent is received, the
- * client should close the stream and start a new request with a new stream as
- * needed.
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
+ * Optional. If `false` (default), recognition does not cease until
+ * the client closes the stream. If `true`, the recognizer will detect a
+ * single spoken utterance in input audio. Recognition ceases when it detects
+ * the audio's voice has stopped or paused. In this case, once a detected
+ * intent is received, the client should close the stream and start a new
+ * request with a new stream as needed.
* This setting is ignored when `query_input` is a piece of text or an event.
*
*
- * bool single_utterance = 4;
+ * bool single_utterance = 4 [deprecated = true];
*/
+ @java.lang.Deprecated
public boolean getSingleUtterance() {
return singleUtterance_;
}
@@ -618,7 +619,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* `StreamingDetectIntent` method.
* Multiple request messages should be sent in order:
* 1. The first message must contain `session`, `query_input` plus optionally
- * `query_params` and/or `single_utterance`. The message must not contain `input_audio`.
+ * `query_params`. The message must not contain `input_audio`.
* 2. If `query_input` was set to a streaming input audio config,
* all subsequent messages must contain only `input_audio`.
* Otherwise, finish the request stream.
@@ -1354,18 +1355,19 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
*
*
*
- * Optional. If `false` (default), recognition does not cease until the
- * client closes the stream.
- * If `true`, the recognizer will detect a single spoken utterance in input
- * audio. Recognition ceases when it detects the audio's voice has
- * stopped or paused. In this case, once a detected intent is received, the
- * client should close the stream and start a new request with a new stream as
- * needed.
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
+ * Optional. If `false` (default), recognition does not cease until
+ * the client closes the stream. If `true`, the recognizer will detect a
+ * single spoken utterance in input audio. Recognition ceases when it detects
+ * the audio's voice has stopped or paused. In this case, once a detected
+ * intent is received, the client should close the stream and start a new
+ * request with a new stream as needed.
* This setting is ignored when `query_input` is a piece of text or an event.
*
*
- * bool single_utterance = 4;
+ * bool single_utterance = 4 [deprecated = true];
*/
+ @java.lang.Deprecated
public boolean getSingleUtterance() {
return singleUtterance_;
}
@@ -1373,18 +1375,19 @@ public boolean getSingleUtterance() {
*
*
*
- * Optional. If `false` (default), recognition does not cease until the
- * client closes the stream.
- * If `true`, the recognizer will detect a single spoken utterance in input
- * audio. Recognition ceases when it detects the audio's voice has
- * stopped or paused. In this case, once a detected intent is received, the
- * client should close the stream and start a new request with a new stream as
- * needed.
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
+ * Optional. If `false` (default), recognition does not cease until
+ * the client closes the stream. If `true`, the recognizer will detect a
+ * single spoken utterance in input audio. Recognition ceases when it detects
+ * the audio's voice has stopped or paused. In this case, once a detected
+ * intent is received, the client should close the stream and start a new
+ * request with a new stream as needed.
* This setting is ignored when `query_input` is a piece of text or an event.
*
*
- * bool single_utterance = 4;
+ * bool single_utterance = 4 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder setSingleUtterance(boolean value) {
singleUtterance_ = value;
@@ -1395,18 +1398,19 @@ public Builder setSingleUtterance(boolean value) {
*
*
*
- * Optional. If `false` (default), recognition does not cease until the
- * client closes the stream.
- * If `true`, the recognizer will detect a single spoken utterance in input
- * audio. Recognition ceases when it detects the audio's voice has
- * stopped or paused. In this case, once a detected intent is received, the
- * client should close the stream and start a new request with a new stream as
- * needed.
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
+ * Optional. If `false` (default), recognition does not cease until
+ * the client closes the stream. If `true`, the recognizer will detect a
+ * single spoken utterance in input audio. Recognition ceases when it detects
+ * the audio's voice has stopped or paused. In this case, once a detected
+ * intent is received, the client should close the stream and start a new
+ * request with a new stream as needed.
* This setting is ignored when `query_input` is a piece of text or an event.
*
*
- * bool single_utterance = 4;
+ * bool single_utterance = 4 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder clearSingleUtterance() {
singleUtterance_ = false;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
index 3030db621093..745d2b08f17a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
@@ -117,18 +117,19 @@ public interface StreamingDetectIntentRequestOrBuilder
*
*
*
- * Optional. If `false` (default), recognition does not cease until the
- * client closes the stream.
- * If `true`, the recognizer will detect a single spoken utterance in input
- * audio. Recognition ceases when it detects the audio's voice has
- * stopped or paused. In this case, once a detected intent is received, the
- * client should close the stream and start a new request with a new stream as
- * needed.
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
+ * Optional. If `false` (default), recognition does not cease until
+ * the client closes the stream. If `true`, the recognizer will detect a
+ * single spoken utterance in input audio. Recognition ceases when it detects
+ * the audio's voice has stopped or paused. In this case, once a detected
+ * intent is received, the client should close the stream and start a new
+ * request with a new stream as needed.
* This setting is ignored when `query_input` is a piece of text or an event.
*
*
- * bool single_utterance = 4;
+ * bool single_utterance = 4 [deprecated = true];
*/
+ @java.lang.Deprecated
boolean getSingleUtterance();
/**
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java
index b86b7d47dac6..cd305c052b53 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java
@@ -18,15 +18,15 @@
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
* `is_final: true`). Concatenating these generates the full transcript: "to be
* or not to be that is the question".
* In each response we populate:
- * * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
+ * * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
+ * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.StreamingRecognitionResult}
@@ -328,7 +328,7 @@ public com.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType get
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -349,7 +349,7 @@ public java.lang.String getTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -375,7 +375,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -613,15 +613,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
* `is_final: true`). Concatenating these generates the full transcript: "to be
* or not to be that is the question".
* In each response we populate:
- * * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
+ * * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
+ * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.StreamingRecognitionResult}
@@ -885,7 +885,7 @@ public Builder clearMessageType() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -906,7 +906,7 @@ public java.lang.String getTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -927,7 +927,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -946,7 +946,7 @@ public Builder setTranscript(java.lang.String value) {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -962,7 +962,7 @@ public Builder clearTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -986,7 +986,7 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1001,7 +1001,7 @@ public boolean getIsFinal() {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1019,7 +1019,7 @@ public Builder setIsFinal(boolean value) {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java
index 4f370ff52f9a..32bf9996e201 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java
@@ -36,7 +36,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -47,7 +47,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -61,7 +61,7 @@ public interface StreamingRecognitionResultOrBuilder
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
index 22e2dc8dbe9b..3a1c600c57b7 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
@@ -106,6 +106,18 @@ message InputAudioConfig {
// Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
SpeechModelVariant model_variant = 10;
+
+ // Optional. If `false` (default), recognition does not cease until the
+ // client closes the stream.
+ // If `true`, the recognizer will detect a single spoken utterance in input
+ // audio. Recognition ceases when it detects the audio's voice has
+ // stopped or paused. In this case, once a detected intent is received, the
+ // client should close the stream and start a new request with a new stream as
+ // needed.
+ // Note: This setting is relevant only for streaming methods.
+ // Note: When specified, InputAudioConfig.single_utterance takes precedence
+ // over StreamingDetectIntentRequest.single_utterance.
+ bool single_utterance = 8;
}
// Variant of the specified [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
index 84bbc2c57779..815b4087865e 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
@@ -249,6 +249,10 @@ message QueryResult {
// The intent detection confidence. Values range from 0.0
// (completely uncertain) to 1.0 (completely certain).
+ // This value is for informational purpose only and is only used to
+ // help match the best intent within the classification threshold.
+ // This value may change for the same end-user expression at any time due to a
+ // model retraining or change in implementation.
// If there are `multiple knowledge_answers` messages, this value is set to
// the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;
@@ -269,7 +273,7 @@ message QueryResult {
// Multiple request messages should be sent in order:
//
// 1. The first message must contain `session`, `query_input` plus optionally
-// `query_params` and/or `single_utterance`. The message must not contain `input_audio`.
+// `query_params`. The message must not contain `input_audio`.
//
// 2. If `query_input` was set to a streaming input audio config,
// all subsequent messages must contain only `input_audio`.
@@ -296,15 +300,15 @@ message StreamingDetectIntentRequest {
// 3. an event that specifies which intent to trigger.
QueryInput query_input = 3;
- // Optional. If `false` (default), recognition does not cease until the
- // client closes the stream.
- // If `true`, the recognizer will detect a single spoken utterance in input
- // audio. Recognition ceases when it detects the audio's voice has
- // stopped or paused. In this case, once a detected intent is received, the
- // client should close the stream and start a new request with a new stream as
- // needed.
+ // DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
+ // Optional. If `false` (default), recognition does not cease until
+ // the client closes the stream. If `true`, the recognizer will detect a
+ // single spoken utterance in input audio. Recognition ceases when it detects
+ // the audio's voice has stopped or paused. In this case, once a detected
+ // intent is received, the client should close the stream and start a new
+ // request with a new stream as needed.
// This setting is ignored when `query_input` is a piece of text or an event.
- bool single_utterance = 4;
+ bool single_utterance = 4 [deprecated = true];
// Optional. Instructs the speech synthesizer how to generate the output
// audio. If this field is not set and agent-level speech synthesizer is not
@@ -374,7 +378,7 @@ message StreamingDetectIntentResponse {
//
// 6. transcript: " that is"
//
-// 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
+// 7. message_type: `END_OF_SINGLE_UTTERANCE`
//
// 8. transcript: " that is the question"
// is_final: true
@@ -385,9 +389,9 @@ message StreamingDetectIntentResponse {
//
// In each response we populate:
//
-// * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
+// * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
//
-// * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
+// * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
message StreamingRecognitionResult {
// Type of the response message.
enum MessageType {
@@ -411,13 +415,13 @@ message StreamingRecognitionResult {
MessageType message_type = 1;
// Transcript text representing the words that the user spoke.
- // Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ // Populated if and only if `message_type` = `TRANSCRIPT`.
string transcript = 2;
// If `false`, the `StreamingRecognitionResult` represents an
// interim result that may change. If `true`, the recognizer will not return
// any further hypotheses about this piece of the audio. May only be populated
- // for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ // for `message_type` = `TRANSCRIPT`.
bool is_final = 3;
// The Speech confidence between 0.0 and 1.0 for the current portion of audio.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
index 02e017849e81..1b06bb6cb40c 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
@@ -48,49 +48,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "rdInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_offset\030\001 \001"
+ "(\0132\031.google.protobuf.Duration\022-\n\nend_off"
+ "set\030\002 \001(\0132\031.google.protobuf.Duration\022\022\n\n"
- + "confidence\030\004 \001(\002\"\227\002\n\020InputAudioConfig\022F\n"
+ + "confidence\030\004 \001(\002\"\261\002\n\020InputAudioConfig\022F\n"
+ "\016audio_encoding\030\001 \001(\0162..google.cloud.dia"
+ "logflow.v2beta1.AudioEncoding\022\031\n\021sample_"
+ "rate_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022"
+ "\030\n\020enable_word_info\030\r \001(\010\022\024\n\014phrase_hint"
+ "s\030\004 \003(\t\022\r\n\005model\030\007 \001(\t\022J\n\rmodel_variant\030"
+ "\n \001(\01623.google.cloud.dialogflow.v2beta1."
- + "SpeechModelVariant\"k\n\024VoiceSelectionPara"
- + "ms\022\014\n\004name\030\001 \001(\t\022E\n\013ssml_gender\030\002 \001(\01620."
- + "google.cloud.dialogflow.v2beta1.SsmlVoic"
- + "eGender\"\270\001\n\026SynthesizeSpeechConfig\022\025\n\rsp"
- + "eaking_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volu"
- + "me_gain_db\030\003 \001(\001\022\032\n\022effects_profile_id\030\005"
- + " \003(\t\022D\n\005voice\030\004 \001(\01325.google.cloud.dialo"
- + "gflow.v2beta1.VoiceSelectionParams\"\327\001\n\021O"
- + "utputAudioConfig\022L\n\016audio_encoding\030\001 \001(\016"
- + "24.google.cloud.dialogflow.v2beta1.Outpu"
- + "tAudioEncoding\022\031\n\021sample_rate_hertz\030\002 \001("
- + "\005\022Y\n\030synthesize_speech_config\030\003 \001(\01327.go"
- + "ogle.cloud.dialogflow.v2beta1.Synthesize"
- + "SpeechConfig*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_"
- + "ENCODING_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING"
- + "_LINEAR_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n"
- + "\024AUDIO_ENCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODIN"
- + "G_AMR\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AU"
- + "DIO_ENCODING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODIN"
- + "G_SPEEX_WITH_HEADER_BYTE\020\007*v\n\022SpeechMode"
- + "lVariant\022$\n SPEECH_MODEL_VARIANT_UNSPECI"
- + "FIED\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020\n\014USE_ST"
- + "ANDARD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017SsmlVoice"
- + "Gender\022!\n\035SSML_VOICE_GENDER_UNSPECIFIED\020"
- + "\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VO"
- + "ICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER"
- + "_NEUTRAL\020\003*\244\001\n\023OutputAudioEncoding\022%\n!OU"
- + "TPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUT"
- + "PUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT"
- + "_AUDIO_ENCODING_MP3\020\002\022\"\n\036OUTPUT_AUDIO_EN"
- + "CODING_OGG_OPUS\020\003B\256\001\n#com.google.cloud.d"
- + "ialogflow.v2beta1B\020AudioConfigProtoP\001ZIg"
- + "oogle.golang.org/genproto/googleapis/clo"
- + "ud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF"
- + "\252\002\037Google.Cloud.Dialogflow.V2beta1b\006prot"
- + "o3"
+ + "SpeechModelVariant\022\030\n\020single_utterance\030\010"
+ + " \001(\010\"k\n\024VoiceSelectionParams\022\014\n\004name\030\001 \001"
+ + "(\t\022E\n\013ssml_gender\030\002 \001(\01620.google.cloud.d"
+ + "ialogflow.v2beta1.SsmlVoiceGender\"\270\001\n\026Sy"
+ + "nthesizeSpeechConfig\022\025\n\rspeaking_rate\030\001 "
+ + "\001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volume_gain_db\030\003 \001"
+ + "(\001\022\032\n\022effects_profile_id\030\005 \003(\t\022D\n\005voice\030"
+ + "\004 \001(\01325.google.cloud.dialogflow.v2beta1."
+ + "VoiceSelectionParams\"\327\001\n\021OutputAudioConf"
+ + "ig\022L\n\016audio_encoding\030\001 \001(\01624.google.clou"
+ + "d.dialogflow.v2beta1.OutputAudioEncoding"
+ + "\022\031\n\021sample_rate_hertz\030\002 \001(\005\022Y\n\030synthesiz"
+ + "e_speech_config\030\003 \001(\01327.google.cloud.dia"
+ + "logflow.v2beta1.SynthesizeSpeechConfig*\373"
+ + "\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING_UNSPE"
+ + "CIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027"
+ + "\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODIN"
+ + "G_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUD"
+ + "IO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_O"
+ + "GG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_H"
+ + "EADER_BYTE\020\007*v\n\022SpeechModelVariant\022$\n SP"
+ + "EECH_MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE_"
+ + "BEST_AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014US"
+ + "E_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSML"
+ + "_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VOIC"
+ + "E_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_FEM"
+ + "ALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020\003*\244\001\n"
+ + "\023OutputAudioEncoding\022%\n!OUTPUT_AUDIO_ENC"
+ + "ODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENCO"
+ + "DING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODIN"
+ + "G_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_OPU"
+ + "S\020\003B\256\001\n#com.google.cloud.dialogflow.v2be"
+ + "ta1B\020AudioConfigProtoP\001ZIgoogle.golang.o"
+ + "rg/genproto/googleapis/cloud/dialogflow/"
+ + "v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Clou"
+ + "d.Dialogflow.V2beta1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -128,6 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"PhraseHints",
"Model",
"ModelVariant",
+ "SingleUtterance",
});
internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_descriptor =
getDescriptor().getMessageTypes().get(2);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java
index 4babc7c89aeb..192f61546228 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java
@@ -159,7 +159,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -187,7 +187,7 @@ public java.lang.String getSession() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -794,7 +794,7 @@ public Builder mergeFrom(
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -822,7 +822,7 @@ public java.lang.String getSession() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -850,7 +850,7 @@ public com.google.protobuf.ByteString getSessionBytes() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -876,7 +876,7 @@ public Builder setSession(java.lang.String value) {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -899,7 +899,7 @@ public Builder clearSession() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java
index 341dafca1a06..8bc03b4008df 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java
@@ -18,7 +18,7 @@ public interface DetectIntentRequestOrBuilder
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -36,7 +36,7 @@ public interface DetectIntentRequestOrBuilder
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java
index 68bc8340a342..1c80a74bb92d 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java
@@ -62,80 +62,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "1\032\034google/api/annotations.proto\032#google/"
+ "longrunning/operations.proto\032\033google/pro"
+ "tobuf/empty.proto\032 google/protobuf/field"
- + "_mask.proto\032\027google/rpc/status.proto\032\027go"
- + "ogle/api/client.proto\"\257\002\n\010Document\022\014\n\004na"
- + "me\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\021\n\tmime_t"
- + "ype\030\003 \001(\t\022P\n\017knowledge_types\030\004 \003(\01627.goo"
- + "gle.cloud.dialogflow.v2beta1.Document.Kn"
- + "owledgeType\022\025\n\013content_uri\030\005 \001(\tH\000\022\025\n\007co"
- + "ntent\030\006 \001(\tB\002\030\001H\000\022\025\n\013raw_content\030\t \001(\014H\000"
- + "\"K\n\rKnowledgeType\022\036\n\032KNOWLEDGE_TYPE_UNSP"
- + "ECIFIED\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002B\010\n"
- + "\006source\"M\n\024ListDocumentsRequest\022\016\n\006paren"
- + "t\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token"
- + "\030\003 \001(\t\"n\n\025ListDocumentsResponse\022<\n\tdocum"
- + "ents\030\001 \003(\0132).google.cloud.dialogflow.v2b"
- + "eta1.Document\022\027\n\017next_page_token\030\002 \001(\t\"\""
- + "\n\022GetDocumentRequest\022\014\n\004name\030\001 \001(\t\"d\n\025Cr"
- + "eateDocumentRequest\022\016\n\006parent\030\001 \001(\t\022;\n\010d"
- + "ocument\030\002 \001(\0132).google.cloud.dialogflow."
- + "v2beta1.Document\"%\n\025DeleteDocumentReques"
- + "t\022\014\n\004name\030\001 \001(\t\"\205\001\n\025UpdateDocumentReques"
- + "t\022;\n\010document\030\001 \001(\0132).google.cloud.dialo"
- + "gflow.v2beta1.Document\022/\n\013update_mask\030\002 "
- + "\001(\0132\032.google.protobuf.FieldMask\"\262\001\n\032Know"
- + "ledgeOperationMetadata\022P\n\005state\030\001 \001(\0162A."
- + "google.cloud.dialogflow.v2beta1.Knowledg"
- + "eOperationMetadata.State\"B\n\005State\022\025\n\021STA"
- + "TE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING"
- + "\020\002\022\010\n\004DONE\020\003\"%\n\025ReloadDocumentRequest\022\014\n"
- + "\004name\030\001 \001(\t2\201\r\n\tDocuments\022\201\002\n\rListDocume"
- + "nts\0225.google.cloud.dialogflow.v2beta1.Li"
- + "stDocumentsRequest\0326.google.cloud.dialog"
- + "flow.v2beta1.ListDocumentsResponse\"\200\001\202\323\344"
- + "\223\002z\0227/v2beta1/{parent=projects/*/knowled"
- + "geBases/*}/documentsZ?\022=/v2beta1/{parent"
- + "=projects/*/agent/knowledgeBases/*}/docu"
- + "ments\022\360\001\n\013GetDocument\0223.google.cloud.dia"
- + "logflow.v2beta1.GetDocumentRequest\032).goo"
- + "gle.cloud.dialogflow.v2beta1.Document\"\200\001"
- + "\202\323\344\223\002z\0227/v2beta1/{name=projects/*/knowle"
- + "dgeBases/*/documents/*}Z?\022=/v2beta1/{nam"
- + "e=projects/*/agent/knowledgeBases/*/docu"
- + "ments/*}\022\377\001\n\016CreateDocument\0226.google.clo"
- + "ud.dialogflow.v2beta1.CreateDocumentRequ"
- + "est\032\035.google.longrunning.Operation\"\225\001\202\323\344"
- + "\223\002\216\001\"7/v2beta1/{parent=projects/*/knowle"
- + "dgeBases/*}/documents:\010documentZI\"=/v2be"
- + "ta1/{parent=projects/*/agent/knowledgeBa"
- + "ses/*}/documents:\010document\022\352\001\n\016DeleteDoc"
- + "ument\0226.google.cloud.dialogflow.v2beta1."
- + "DeleteDocumentRequest\032\035.google.longrunni"
- + "ng.Operation\"\200\001\202\323\344\223\002z*7/v2beta1/{name=pr"
- + "ojects/*/knowledgeBases/*/documents/*}Z?"
- + "*=/v2beta1/{name=projects/*/agent/knowle"
- + "dgeBases/*/documents/*}\022\221\002\n\016UpdateDocume"
- + "nt\0226.google.cloud.dialogflow.v2beta1.Upd"
- + "ateDocumentRequest\032\035.google.longrunning."
- + "Operation\"\247\001\202\323\344\223\002\240\0012@/v2beta1/{document."
- + "name=projects/*/knowledgeBases/*/documen"
- + "ts/*}:\010documentZR2F/v2beta1/{document.na"
- + "me=projects/*/agent/knowledgeBases/*/doc"
- + "uments/*}:\010document\022\377\001\n\016ReloadDocument\0226"
- + ".google.cloud.dialogflow.v2beta1.ReloadD"
+ + "_mask.proto\032\037google/protobuf/timestamp.p"
+ + "roto\032\027google/rpc/status.proto\032\027google/ap"
+ + "i/client.proto\"\257\002\n\010Document\022\014\n\004name\030\001 \001("
+ + "\t\022\024\n\014display_name\030\002 \001(\t\022\021\n\tmime_type\030\003 \001"
+ + "(\t\022P\n\017knowledge_types\030\004 \003(\01627.google.clo"
+ + "ud.dialogflow.v2beta1.Document.Knowledge"
+ + "Type\022\025\n\013content_uri\030\005 \001(\tH\000\022\025\n\007content\030\006"
+ + " \001(\tB\002\030\001H\000\022\025\n\013raw_content\030\t \001(\014H\000\"K\n\rKno"
+ + "wledgeType\022\036\n\032KNOWLEDGE_TYPE_UNSPECIFIED"
+ + "\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002B\010\n\006source"
+ + "\"M\n\024ListDocumentsRequest\022\016\n\006parent\030\001 \001(\t"
+ + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\""
+ + "n\n\025ListDocumentsResponse\022<\n\tdocuments\030\001 "
+ + "\003(\0132).google.cloud.dialogflow.v2beta1.Do"
+ + "cument\022\027\n\017next_page_token\030\002 \001(\t\"\"\n\022GetDo"
+ + "cumentRequest\022\014\n\004name\030\001 \001(\t\"d\n\025CreateDoc"
+ + "umentRequest\022\016\n\006parent\030\001 \001(\t\022;\n\010document"
+ + "\030\002 \001(\0132).google.cloud.dialogflow.v2beta1"
+ + ".Document\"%\n\025DeleteDocumentRequest\022\014\n\004na"
+ + "me\030\001 \001(\t\"\205\001\n\025UpdateDocumentRequest\022;\n\010do"
+ + "cument\030\001 \001(\0132).google.cloud.dialogflow.v"
+ + "2beta1.Document\022/\n\013update_mask\030\002 \001(\0132\032.g"
+ + "oogle.protobuf.FieldMask\"\262\001\n\032KnowledgeOp"
+ + "erationMetadata\022P\n\005state\030\001 \001(\0162A.google."
+ + "cloud.dialogflow.v2beta1.KnowledgeOperat"
+ + "ionMetadata.State\"B\n\005State\022\025\n\021STATE_UNSP"
+ + "ECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004D"
+ + "ONE\020\003\"%\n\025ReloadDocumentRequest\022\014\n\004name\030\001"
+ + " \001(\t2\201\r\n\tDocuments\022\201\002\n\rListDocuments\0225.g"
+ + "oogle.cloud.dialogflow.v2beta1.ListDocum"
+ + "entsRequest\0326.google.cloud.dialogflow.v2"
+ + "beta1.ListDocumentsResponse\"\200\001\202\323\344\223\002z\0227/v"
+ + "2beta1/{parent=projects/*/knowledgeBases"
+ + "/*}/documentsZ?\022=/v2beta1/{parent=projec"
+ + "ts/*/agent/knowledgeBases/*}/documents\022\360"
+ + "\001\n\013GetDocument\0223.google.cloud.dialogflow"
+ + ".v2beta1.GetDocumentRequest\032).google.clo"
+ + "ud.dialogflow.v2beta1.Document\"\200\001\202\323\344\223\002z\022"
+ + "7/v2beta1/{name=projects/*/knowledgeBase"
+ + "s/*/documents/*}Z?\022=/v2beta1/{name=proje"
+ + "cts/*/agent/knowledgeBases/*/documents/*"
+ + "}\022\377\001\n\016CreateDocument\0226.google.cloud.dial"
+ + "ogflow.v2beta1.CreateDocumentRequest\032\035.g"
+ + "oogle.longrunning.Operation\"\225\001\202\323\344\223\002\216\001\"7/"
+ + "v2beta1/{parent=projects/*/knowledgeBase"
+ + "s/*}/documents:\010documentZI\"=/v2beta1/{pa"
+ + "rent=projects/*/agent/knowledgeBases/*}/"
+ + "documents:\010document\022\352\001\n\016DeleteDocument\0226"
+ + ".google.cloud.dialogflow.v2beta1.DeleteD"
+ "ocumentRequest\032\035.google.longrunning.Oper"
- + "ation\"\225\001\202\323\344\223\002\216\001\">/v2beta1/{name=projects"
- + "/*/knowledgeBases/*/documents/*}:reload:"
- + "\001*ZI\"D/v2beta1/{name=projects/*/agent/kn"
- + "owledgeBases/*/documents/*}:reload:\001*\032x\312"
- + "A\031dialogflow.googleapis.com\322AYhttps://ww"
- + "w.googleapis.com/auth/cloud-platform,htt"
- + "ps://www.googleapis.com/auth/dialogflowB"
- + "\253\001\n#com.google.cloud.dialogflow.v2beta1B"
- + "\rDocumentProtoP\001ZIgoogle.golang.org/genp"
- + "roto/googleapis/cloud/dialogflow/v2beta1"
- + ";dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialo"
- + "gflow.V2beta1b\006proto3"
+ + "ation\"\200\001\202\323\344\223\002z*7/v2beta1/{name=projects/"
+ + "*/knowledgeBases/*/documents/*}Z?*=/v2be"
+ + "ta1/{name=projects/*/agent/knowledgeBase"
+ + "s/*/documents/*}\022\221\002\n\016UpdateDocument\0226.go"
+ + "ogle.cloud.dialogflow.v2beta1.UpdateDocu"
+ + "mentRequest\032\035.google.longrunning.Operati"
+ + "on\"\247\001\202\323\344\223\002\240\0012@/v2beta1/{document.name=pr"
+ + "ojects/*/knowledgeBases/*/documents/*}:\010"
+ + "documentZR2F/v2beta1/{document.name=proj"
+ + "ects/*/agent/knowledgeBases/*/documents/"
+ + "*}:\010document\022\377\001\n\016ReloadDocument\0226.google"
+ + ".cloud.dialogflow.v2beta1.ReloadDocument"
+ + "Request\032\035.google.longrunning.Operation\"\225"
+ + "\001\202\323\344\223\002\216\001\">/v2beta1/{name=projects/*/know"
+ + "ledgeBases/*/documents/*}:reload:\001*ZI\"D/"
+ + "v2beta1/{name=projects/*/agent/knowledge"
+ + "Bases/*/documents/*}:reload:\001*\032x\312A\031dialo"
+ + "gflow.googleapis.com\322AYhttps://www.googl"
+ + "eapis.com/auth/cloud-platform,https://ww"
+ + "w.googleapis.com/auth/dialogflowB\253\001\n#com"
+ + ".google.cloud.dialogflow.v2beta1B\rDocume"
+ + "ntProtoP\001ZIgoogle.golang.org/genproto/go"
+ + "ogleapis/cloud/dialogflow/v2beta1;dialog"
+ + "flow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V"
+ + "2beta1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -152,6 +153,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.longrunning.OperationsProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
com.google.rpc.StatusProto.getDescriptor(),
com.google.api.ClientProto.getDescriptor(),
},
@@ -246,6 +248,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
com.google.rpc.StatusProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java
index 9dc063aced3d..001d042fdcb5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java
@@ -90,6 +90,11 @@ private InputAudioConfig(
model_ = s;
break;
}
+ case 64:
+ {
+ singleUtterance_ = input.readBool();
+ break;
+ }
case 80:
{
int rawValue = input.readEnum();
@@ -420,6 +425,30 @@ public com.google.cloud.dialogflow.v2beta1.SpeechModelVariant getModelVariant()
: result;
}
+ public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 8;
+ private boolean singleUtterance_;
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public boolean getSingleUtterance() {
+ return singleUtterance_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -451,6 +480,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getModelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, model_);
}
+ if (singleUtterance_ != false) {
+ output.writeBool(8, singleUtterance_);
+ }
if (modelVariant_
!= com.google.cloud.dialogflow.v2beta1.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED
.getNumber()) {
@@ -490,6 +522,9 @@ public int getSerializedSize() {
if (!getModelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, model_);
}
+ if (singleUtterance_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, singleUtterance_);
+ }
if (modelVariant_
!= com.google.cloud.dialogflow.v2beta1.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED
.getNumber()) {
@@ -521,6 +556,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPhraseHintsList().equals(other.getPhraseHintsList())) return false;
if (!getModel().equals(other.getModel())) return false;
if (modelVariant_ != other.modelVariant_) return false;
+ if (getSingleUtterance() != other.getSingleUtterance()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -548,6 +584,8 @@ public int hashCode() {
hash = (53 * hash) + getModel().hashCode();
hash = (37 * hash) + MODEL_VARIANT_FIELD_NUMBER;
hash = (53 * hash) + modelVariant_;
+ hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -707,6 +745,8 @@ public Builder clear() {
modelVariant_ = 0;
+ singleUtterance_ = false;
+
return this;
}
@@ -747,6 +787,7 @@ public com.google.cloud.dialogflow.v2beta1.InputAudioConfig buildPartial() {
result.phraseHints_ = phraseHints_;
result.model_ = model_;
result.modelVariant_ = modelVariant_;
+ result.singleUtterance_ = singleUtterance_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -828,6 +869,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.InputAudioConfig ot
if (other.modelVariant_ != 0) {
setModelVariantValue(other.getModelVariantValue());
}
+ if (other.getSingleUtterance() != false) {
+ setSingleUtterance(other.getSingleUtterance());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1562,6 +1606,77 @@ public Builder clearModelVariant() {
return this;
}
+ private boolean singleUtterance_;
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public boolean getSingleUtterance() {
+ return singleUtterance_;
+ }
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public Builder setSingleUtterance(boolean value) {
+
+ singleUtterance_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ public Builder clearSingleUtterance() {
+
+ singleUtterance_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java
index 53b849ddde29..27163bc4beb7 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java
@@ -205,4 +205,24 @@ public interface InputAudioConfigOrBuilder
* .google.cloud.dialogflow.v2beta1.SpeechModelVariant model_variant = 10;
*/
com.google.cloud.dialogflow.v2beta1.SpeechModelVariant getModelVariant();
+
+ /**
+ *
+ *
+ * + * Optional. If `false` (default), recognition does not cease until the + * client closes the stream. + * If `true`, the recognizer will detect a single spoken utterance in input + * audio. Recognition ceases when it detects the audio's voice has + * stopped or paused. In this case, once a detected intent is received, the + * client should close the stream and start a new request with a new stream as + * needed. + * Note: This setting is relevant only for streaming methods. + * Note: When specified, InputAudioConfig.single_utterance takes precedence + * over StreamingDetectIntentRequest.single_utterance. + *+ * + *
bool single_utterance = 8;
+ */
+ boolean getSingleUtterance();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java
index 3d78e97b85a2..0d3965365216 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java
@@ -6009,6 +6009,119 @@ public interface MessageOrBuilder
com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
getTelephonyTransferCallOrBuilder();
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response. + * RBM allows businesses to send enriched and branded versions of SMS. See + * https://jibe.google.com/business-messaging. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
+ */
+ boolean hasRbmText();
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response. + * RBM allows businesses to send enriched and branded versions of SMS. See + * https://jibe.google.com/business-messaging. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText getRbmText();
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response. + * RBM allows businesses to send enriched and branded versions of SMS. See + * https://jibe.google.com/business-messaging. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder getRbmTextOrBuilder();
+
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
+ *
+ */
+ boolean hasRbmStandaloneRichCard();
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard getRbmStandaloneRichCard();
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder
+ getRbmStandaloneRichCardOrBuilder();
+
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) carousel rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
+ *
+ */
+ boolean hasRbmCarouselRichCard();
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) carousel rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard getRbmCarouselRichCard();
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) carousel rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder
+ getRbmCarouselRichCardOrBuilder();
+
/**
*
*
@@ -6386,6 +6499,74 @@ private Message(
messageCase_ = 15;
break;
}
+ case 146:
+ {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder subBuilder =
+ null;
+ if (messageCase_ == 18) {
+ subBuilder =
+ ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_)
+ .toBuilder();
+ }
+ message_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_);
+ message_ = subBuilder.buildPartial();
+ }
+ messageCase_ = 18;
+ break;
+ }
+ case 154:
+ {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder
+ subBuilder = null;
+ if (messageCase_ == 19) {
+ subBuilder =
+ ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
+ message_)
+ .toBuilder();
+ }
+ message_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
+ message_);
+ message_ = subBuilder.buildPartial();
+ }
+ messageCase_ = 19;
+ break;
+ }
+ case 162:
+ {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder
+ subBuilder = null;
+ if (messageCase_ == 20) {
+ subBuilder =
+ ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
+ message_)
+ .toBuilder();
+ }
+ message_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
+ message_);
+ message_ = subBuilder.buildPartial();
+ }
+ messageCase_ = 20;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -28686,840 +28867,14641 @@ public com.google.protobuf.Parser+ * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ java.lang.String getText();
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ com.google.protobuf.ByteString getTextBytes();
- private MessageCase(int value) {
- this.value = value;
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ java.util.List+ * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getRbmSuggestion(int index);
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ int getRbmSuggestionCount();
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getRbmSuggestionOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
+ getRbmSuggestionOrBuilder(int index);
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response with suggestions. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmText} + */ + public static final class RbmText extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) + RbmTextOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmText.newBuilder() to construct. + private RbmText(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static MessageCase valueOf(int value) { - return forNumber(value); + + private RbmText() { + text_ = ""; + rbmSuggestion_ = java.util.Collections.emptyList(); } - public static MessageCase forNumber(int value) { - switch (value) { - case 1: - return TEXT; - case 2: - return IMAGE; - case 3: - return QUICK_REPLIES; - case 4: - return CARD; - case 5: - return PAYLOAD; - case 7: - return SIMPLE_RESPONSES; - case 8: - return BASIC_CARD; - case 9: - return SUGGESTIONS; - case 10: - return LINK_OUT_SUGGESTION; - case 11: - return LIST_SELECT; - case 12: - return CAROUSEL_SELECT; - case 13: - return TELEPHONY_PLAY_AUDIO; - case 14: - return TELEPHONY_SYNTHESIZE_SPEECH; - case 15: - return TELEPHONY_TRANSFER_CALL; - case 0: - return MESSAGE_NOT_SET; - default: - return null; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmText( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + rbmSuggestion_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>(); + mutable_bitField0_ |= 0x00000002; + } + rbmSuggestion_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.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_ & 0x00000002) != 0)) { + rbmSuggestion_ = java.util.Collections.unmodifiableList(rbmSuggestion_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } } - public int getNumber() { - return this.value; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor; } - }; - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder.class); + } - public static final int TEXT_FIELD_NUMBER = 1; - /** - * - * - *
- * Returns a text response. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
- */
- public boolean hasText() {
- return messageCase_ == 1;
- }
- /**
- *
- *
- * - * Returns a text response. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() {
- if (messageCase_ == 1) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ private int bitField0_;
+ public static final int TEXT_FIELD_NUMBER = 1;
+ private volatile java.lang.Object text_;
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ 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();
+ text_ = s;
+ return s;
+ }
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
- }
- /**
- *
- *
- * - * Returns a text response. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() {
- if (messageCase_ == 1) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
- }
- public static final int IMAGE_FIELD_NUMBER = 2;
- /**
- *
- *
- * - * Displays an image. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
- */
- public boolean hasImage() {
- return messageCase_ == 2;
- }
- /**
- *
- *
- * - * Displays an image. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
- if (messageCase_ == 2) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
+ public static final int RBM_SUGGESTION_FIELD_NUMBER = 2;
+ private java.util.List+ * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public java.util.List- * Displays an image. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
- if (messageCase_ == 2) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getRbmSuggestionOrBuilderList() {
+ return rbmSuggestion_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
- }
-
- public static final int QUICK_REPLIES_FIELD_NUMBER = 3;
- /**
- *
- *
- * - * Displays quick replies. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
- */
- public boolean hasQuickReplies() {
- return messageCase_ == 3;
- }
- /**
- *
- *
- * - * Displays quick replies. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() {
- if (messageCase_ == 3) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public int getRbmSuggestionCount() {
+ return rbmSuggestion_.size();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays quick replies. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
- getQuickRepliesOrBuilder() {
- if (messageCase_ == 3) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getRbmSuggestion(
+ int index) {
+ return rbmSuggestion_.get(index);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance();
- }
-
- public static final int CARD_FIELD_NUMBER = 4;
- /**
- *
- *
- * - * Displays a card. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
- */
- public boolean hasCard() {
- return messageCase_ == 4;
- }
- /**
- *
- *
- * - * Displays a card. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() {
- if (messageCase_ == 4) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
+ getRbmSuggestionOrBuilder(int index) {
+ return rbmSuggestion_.get(index);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays a card. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() {
- if (messageCase_ == 4) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
+
+ 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;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
- }
- public static final int PAYLOAD_FIELD_NUMBER = 5;
- /**
- *
- *
- * - * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. - *- * - *
.google.protobuf.Struct payload = 5;
- */
- public boolean hasPayload() {
- return messageCase_ == 5;
- }
- /**
- *
- *
- * - * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. - *- * - *
.google.protobuf.Struct payload = 5;
- */
- public com.google.protobuf.Struct getPayload() {
- if (messageCase_ == 5) {
- return (com.google.protobuf.Struct) message_;
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getTextBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
+ }
+ for (int i = 0; i < rbmSuggestion_.size(); i++) {
+ output.writeMessage(2, rbmSuggestion_.get(i));
+ }
+ unknownFields.writeTo(output);
}
- return com.google.protobuf.Struct.getDefaultInstance();
- }
- /**
- *
- *
- * - * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. - *- * - *
.google.protobuf.Struct payload = 5;
- */
- public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
- if (messageCase_ == 5) {
- return (com.google.protobuf.Struct) message_;
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTextBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
+ }
+ for (int i = 0; i < rbmSuggestion_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, rbmSuggestion_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- return com.google.protobuf.Struct.getDefaultInstance();
- }
- public static final int SIMPLE_RESPONSES_FIELD_NUMBER = 7;
- /**
- *
- *
- * - * Returns a voice or text-only response for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
- *
- */
- public boolean hasSimpleResponses() {
- return messageCase_ == 7;
- }
- /**
- *
- *
- * - * Returns a voice or text-only response for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() {
- if (messageCase_ == 7) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) obj;
+
+ if (!getText().equals(other.getText())) return false;
+ if (!getRbmSuggestionList().equals(other.getRbmSuggestionList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
- .getDefaultInstance();
- }
- /**
- *
- *
- * - * Returns a voice or text-only response for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
- getSimpleResponsesOrBuilder() {
- if (messageCase_ == 7) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ if (getRbmSuggestionCount() > 0) {
+ hash = (37 * hash) + RBM_SUGGESTION_FIELD_NUMBER;
+ hash = (53 * hash) + getRbmSuggestionList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
- .getDefaultInstance();
- }
- public static final int BASIC_CARD_FIELD_NUMBER = 8;
- /**
- *
- *
- * - * Displays a basic card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
- */
- public boolean hasBasicCard() {
- return messageCase_ == 8;
- }
- /**
- *
- *
- * - * Displays a basic card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() {
- if (messageCase_ == 8) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays a basic card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder
- getBasicCardOrBuilder() {
- if (messageCase_ == 8) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
- }
- public static final int SUGGESTIONS_FIELD_NUMBER = 9;
- /**
- *
- *
- * - * Displays suggestion chips for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
- */
- public boolean hasSuggestions() {
- return messageCase_ == 9;
- }
- /**
- *
- *
- * - * Displays suggestion chips for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays suggestion chips for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
- getSuggestionsOrBuilder() {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
- }
- public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10;
- /**
- *
- *
- * - * Displays a link out suggestion chip for Actions on Google. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
- *
- */
- public boolean hasLinkOutSuggestion() {
- return messageCase_ == 10;
- }
- /**
- *
- *
- * - * Displays a link out suggestion chip for Actions on Google. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
- getLinkOutSuggestion() {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
- .getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays a link out suggestion chip for Actions on Google. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
- getLinkOutSuggestionOrBuilder() {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
- .getDefaultInstance();
- }
- public static final int LIST_SELECT_FIELD_NUMBER = 11;
- /**
- *
- *
- * - * Displays a list card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
- */
- public boolean hasListSelect() {
- return messageCase_ == 11;
- }
- /**
- *
- *
- * - * Displays a list card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays a list card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder
- getListSelectOrBuilder() {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
- }
- public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12;
- /**
- *
- *
- * - * Displays a carousel card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
- *
- */
- public boolean hasCarouselSelect() {
- return messageCase_ == 12;
- }
- /**
- *
- *
- * - * Displays a carousel card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance();
- }
- /**
- *
- *
- * - * Displays a carousel card for Actions on Google. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
- getCarouselSelectOrBuilder() {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance();
- }
- public static final int TELEPHONY_PLAY_AUDIO_FIELD_NUMBER = 13;
- /**
- *
- *
- * - * Plays audio from a file in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
- */
- public boolean hasTelephonyPlayAudio() {
- return messageCase_ == 13;
- }
- /**
- *
- *
- * - * Plays audio from a file in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- getTelephonyPlayAudio() {
- if (messageCase_ == 13) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- .getDefaultInstance();
- }
- /**
- *
- *
- * - * Plays audio from a file in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
- getTelephonyPlayAudioOrBuilder() {
- if (messageCase_ == 13) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- .getDefaultInstance();
- }
- public static final int TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER = 14;
- /**
- *
- *
- * - * Synthesizes speech in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
- *
- */
- public boolean hasTelephonySynthesizeSpeech() {
- return messageCase_ == 14;
- }
- /**
- *
- *
- * - * Synthesizes speech in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
- getTelephonySynthesizeSpeech() {
- if (messageCase_ == 14) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
- message_;
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
- .getDefaultInstance();
- }
- /**
- *
- *
- * - * Synthesizes speech in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
- getTelephonySynthesizeSpeechOrBuilder() {
- if (messageCase_ == 14) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
- message_;
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
- .getDefaultInstance();
- }
- public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 15;
- /**
- *
- *
- * - * Transfers the call in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
- *
- */
- public boolean hasTelephonyTransferCall() {
- return messageCase_ == 15;
- }
- /**
- *
- *
- * - * Transfers the call in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
- getTelephonyTransferCall() {
- if (messageCase_ == 15) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_;
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
- .getDefaultInstance();
- }
- /**
- *
- *
- * - * Transfers the call in Telephony Gateway. - *- * - *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
- *
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
- getTelephonyTransferCallOrBuilder() {
- if (messageCase_ == 15) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_;
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
- .getDefaultInstance();
- }
- public static final int PLATFORM_FIELD_NUMBER = 6;
- private int platform_;
- /**
- *
- *
- * - * Optional. The platform that this message is intended for. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
- */
- public int getPlatformValue() {
- return platform_;
- }
- /**
- *
- *
- * - * Optional. The platform that this message is intended for. - *- * - *
.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
- */
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform() {
- @SuppressWarnings("deprecation")
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.valueOf(platform_);
- return result == null
- ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED
- : result;
- }
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response with suggestions. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmText} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public Builder clearText() {
+
+ text_ = getDefaultInstance().getText();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Text sent and displayed to the user. + *+ * + *
string text = 1;
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public java.util.List+ * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public int getRbmSuggestionCount() {
+ if (rbmSuggestionBuilder_ == null) {
+ return rbmSuggestion_.size();
+ } else {
+ return rbmSuggestionBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getRbmSuggestion(
+ int index) {
+ if (rbmSuggestionBuilder_ == null) {
+ return rbmSuggestion_.get(index);
+ } else {
+ return rbmSuggestionBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder setRbmSuggestion(
+ int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
+ if (rbmSuggestionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.set(index, value);
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder setRbmSuggestion(
+ int index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ builderForValue) {
+ if (rbmSuggestionBuilder_ == null) {
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder addRbmSuggestion(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
+ if (rbmSuggestionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.add(value);
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder addRbmSuggestion(
+ int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
+ if (rbmSuggestionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.add(index, value);
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder addRbmSuggestion(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ builderForValue) {
+ if (rbmSuggestionBuilder_ == null) {
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder addRbmSuggestion(
+ int index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ builderForValue) {
+ if (rbmSuggestionBuilder_ == null) {
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder addAllRbmSuggestion(
+ java.lang.Iterable<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
+ values) {
+ if (rbmSuggestionBuilder_ == null) {
+ ensureRbmSuggestionIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rbmSuggestion_);
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder clearRbmSuggestion() {
+ if (rbmSuggestionBuilder_ == null) {
+ rbmSuggestion_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public Builder removeRbmSuggestion(int index) {
+ if (rbmSuggestionBuilder_ == null) {
+ ensureRbmSuggestionIsMutable();
+ rbmSuggestion_.remove(index);
+ onChanged();
+ } else {
+ rbmSuggestionBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ getRbmSuggestionBuilder(int index) {
+ return getRbmSuggestionFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
+ getRbmSuggestionOrBuilder(int index) {
+ if (rbmSuggestionBuilder_ == null) {
+ return rbmSuggestion_.get(index);
+ } else {
+ return rbmSuggestionBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getRbmSuggestionOrBuilderList() {
+ if (rbmSuggestionBuilder_ != null) {
+ return rbmSuggestionBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rbmSuggestion_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ addRbmSuggestionBuilder() {
+ return getRbmSuggestionFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ addRbmSuggestionBuilder(int index) {
+ return getRbmSuggestionFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. One or more suggestions to show to the user. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder>
+ getRbmSuggestionBuilderList() {
+ return getRbmSuggestionFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getRbmSuggestionFieldBuilder() {
+ if (rbmSuggestionBuilder_ == null) {
+ rbmSuggestionBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>(
+ rbmSuggestion_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ rbmSuggestion_ = null;
+ }
+ return rbmSuggestionBuilder_;
+ }
+
+ @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.Intent.Message.RbmText)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ int getCardWidthValue();
+ /**
+ *
+ *
+ * + * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth getCardWidth();
+
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ java.util.List+ * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContents(int index);
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ int getCardContentsCount();
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
+ getCardContentsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
+ getCardContentsOrBuilder(int index);
+ }
+ /**
+ *
+ *
+ * + * Carousel Rich Business Messaging (RBM) rich card. + * Rich cards allow you to respond to users with more vivid content, e.g. + * with media and suggestions. + * For more details about RBM rich cards, please see: + * https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards. + * If you want to show a single card with more control over the layout, + * please use [RbmStandaloneCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard] instead. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard} + */ + public static final class RbmCarouselCard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) + RbmCarouselCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmCarouselCard.newBuilder() to construct. + private RbmCarouselCard(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmCarouselCard() { + cardWidth_ = 0; + cardContents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmCarouselCard( + 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 8: + { + int rawValue = input.readEnum(); + + cardWidth_ = rawValue; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + cardContents_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>(); + mutable_bitField0_ |= 0x00000002; + } + cardContents_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent + .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_ & 0x00000002) != 0)) { + cardContents_ = java.util.Collections.unmodifiableList(cardContents_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder.class); + } + + /** + * + * + *
+ * The width of the cards in the carousel. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth} + */ + public enum CardWidth implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Not specified. + *+ * + *
CARD_WIDTH_UNSPECIFIED = 0;
+ */
+ CARD_WIDTH_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * 120 DP. Note that tall media cannot be used. + *+ * + *
SMALL = 1;
+ */
+ SMALL(1),
+ /**
+ *
+ *
+ * + * 232 DP. + *+ * + *
MEDIUM = 2;
+ */
+ MEDIUM(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Not specified. + *+ * + *
CARD_WIDTH_UNSPECIFIED = 0;
+ */
+ public static final int CARD_WIDTH_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * 120 DP. Note that tall media cannot be used. + *+ * + *
SMALL = 1;
+ */
+ public static final int SMALL_VALUE = 1;
+ /**
+ *
+ *
+ * + * 232 DP. + *+ * + *
MEDIUM = 2;
+ */
+ public static final int MEDIUM_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static CardWidth valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static CardWidth forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CARD_WIDTH_UNSPECIFIED;
+ case 1:
+ return SMALL;
+ case 2:
+ return MEDIUM;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public int getCardWidthValue() {
+ return cardWidth_;
+ }
+ /**
+ *
+ *
+ * + * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
+ getCardWidth() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth.valueOf(
+ cardWidth_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int CARD_CONTENTS_FIELD_NUMBER = 2;
+ private java.util.List+ * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public java.util.List+ * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
+ getCardContentsOrBuilderList() {
+ return cardContents_;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public int getCardContentsCount() {
+ return cardContents_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContents(
+ int index) {
+ return cardContents_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
+ getCardContentsOrBuilder(int index) {
+ return cardContents_.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 {
+ if (cardWidth_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
+ .CARD_WIDTH_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, cardWidth_);
+ }
+ for (int i = 0; i < cardContents_.size(); i++) {
+ output.writeMessage(2, cardContents_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cardWidth_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
+ .CARD_WIDTH_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, cardWidth_);
+ }
+ for (int i = 0; i < cardContents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cardContents_.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.Intent.Message.RbmCarouselCard)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) obj;
+
+ if (cardWidth_ != other.cardWidth_) return false;
+ if (!getCardContentsList().equals(other.getCardContentsList())) 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();
+ hash = (37 * hash) + CARD_WIDTH_FIELD_NUMBER;
+ hash = (53 * hash) + cardWidth_;
+ if (getCardContentsCount() > 0) {
+ hash = (37 * hash) + CARD_CONTENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getCardContentsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard 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.Intent.Message.RbmCarouselCard parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard 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.Intent.Message.RbmCarouselCard parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard 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.Intent.Message.RbmCarouselCard parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard 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.Intent.Message.RbmCarouselCard
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ 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.Intent.Message.RbmCarouselCard 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.Intent.Message.RbmCarouselCard 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.Intent.Message.RbmCarouselCard 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;
+ }
+ /**
+ *
+ *
+ * + * Carousel Rich Business Messaging (RBM) rich card. + * Rich cards allow you to respond to users with more vivid content, e.g. + * with media and suggestions. + * For more details about RBM rich cards, please see: + * https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards. + * If you want to show a single card with more control over the layout, + * please use [RbmStandaloneCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard] instead. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public int getCardWidthValue() {
+ return cardWidth_;
+ }
+ /**
+ *
+ *
+ * + * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public Builder setCardWidthValue(int value) {
+ cardWidth_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
+ getCardWidth() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth.valueOf(
+ cardWidth_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public Builder setCardWidth(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ cardWidth_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The width of the cards in the carousel. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
+ *
+ */
+ public Builder clearCardWidth() {
+
+ cardWidth_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public java.util.List+ * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public int getCardContentsCount() {
+ if (cardContentsBuilder_ == null) {
+ return cardContents_.size();
+ } else {
+ return cardContentsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContents(
+ int index) {
+ if (cardContentsBuilder_ == null) {
+ return cardContents_.get(index);
+ } else {
+ return cardContentsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder setCardContents(
+ int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
+ if (cardContentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCardContentsIsMutable();
+ cardContents_.set(index, value);
+ onChanged();
+ } else {
+ cardContentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder setCardContents(
+ int index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ builderForValue) {
+ if (cardContentsBuilder_ == null) {
+ ensureCardContentsIsMutable();
+ cardContents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ cardContentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder addCardContents(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
+ if (cardContentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCardContentsIsMutable();
+ cardContents_.add(value);
+ onChanged();
+ } else {
+ cardContentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder addCardContents(
+ int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
+ if (cardContentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCardContentsIsMutable();
+ cardContents_.add(index, value);
+ onChanged();
+ } else {
+ cardContentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder addCardContents(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ builderForValue) {
+ if (cardContentsBuilder_ == null) {
+ ensureCardContentsIsMutable();
+ cardContents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ cardContentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder addCardContents(
+ int index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ builderForValue) {
+ if (cardContentsBuilder_ == null) {
+ ensureCardContentsIsMutable();
+ cardContents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ cardContentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder addAllCardContents(
+ java.lang.Iterable<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
+ values) {
+ if (cardContentsBuilder_ == null) {
+ ensureCardContentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cardContents_);
+ onChanged();
+ } else {
+ cardContentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder clearCardContents() {
+ if (cardContentsBuilder_ == null) {
+ cardContents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ cardContentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public Builder removeCardContents(int index) {
+ if (cardContentsBuilder_ == null) {
+ ensureCardContentsIsMutable();
+ cardContents_.remove(index);
+ onChanged();
+ } else {
+ cardContentsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ getCardContentsBuilder(int index) {
+ return getCardContentsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
+ getCardContentsOrBuilder(int index) {
+ if (cardContentsBuilder_ == null) {
+ return cardContents_.get(index);
+ } else {
+ return cardContentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
+ getCardContentsOrBuilderList() {
+ if (cardContentsBuilder_ != null) {
+ return cardContentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(cardContents_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ addCardContentsBuilder() {
+ return getCardContentsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ addCardContentsBuilder(int index) {
+ return getCardContentsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The cards in the carousel. A carousel must have at least + * 2 cards and at most 10. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder>
+ getCardContentsBuilderList() {
+ return getCardContentsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
+ getCardContentsFieldBuilder() {
+ if (cardContentsBuilder_ == null) {
+ cardContentsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>(
+ cardContents_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ cardContents_ = null;
+ }
+ return cardContentsBuilder_;
+ }
+
+ @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.Intent.Message.RbmCarouselCard)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ int getCardOrientationValue();
+ /**
+ *
+ *
+ * + * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ getCardOrientation();
+
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ int getThumbnailImageAlignmentValue();
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment
+ getThumbnailImageAlignment();
+
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ boolean hasCardContent();
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContent();
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
+ getCardContentOrBuilder();
+ }
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card. + * Rich cards allow you to respond to users with more vivid content, e.g. + * with media and suggestions. + * For more details about RBM rich cards, please see: + * https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards. + * You can group multiple rich cards into one using [RbmCarouselCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard] but + * carousel cards will give you less control over the card layout. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard} + */ + public static final class RbmStandaloneCard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) + RbmStandaloneCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmStandaloneCard.newBuilder() to construct. + private RbmStandaloneCard(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmStandaloneCard() { + cardOrientation_ = 0; + thumbnailImageAlignment_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmStandaloneCard( + 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 8: + { + int rawValue = input.readEnum(); + + cardOrientation_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + thumbnailImageAlignment_ = rawValue; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder + subBuilder = null; + if (cardContent_ != null) { + subBuilder = cardContent_.toBuilder(); + } + cardContent_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardContent_); + cardContent_ = subBuilder.buildPartial(); + } + + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder.class); + } + + /** + * + * + *
+ * Orientation of the card. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation} + */ + public enum CardOrientation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Not specified. + *+ * + *
CARD_ORIENTATION_UNSPECIFIED = 0;
+ */
+ CARD_ORIENTATION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Horizontal layout. + *+ * + *
HORIZONTAL = 1;
+ */
+ HORIZONTAL(1),
+ /**
+ *
+ *
+ * + * Vertical layout. + *+ * + *
VERTICAL = 2;
+ */
+ VERTICAL(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Not specified. + *+ * + *
CARD_ORIENTATION_UNSPECIFIED = 0;
+ */
+ public static final int CARD_ORIENTATION_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Horizontal layout. + *+ * + *
HORIZONTAL = 1;
+ */
+ public static final int HORIZONTAL_VALUE = 1;
+ /**
+ *
+ *
+ * + * Vertical layout. + *+ * + *
VERTICAL = 2;
+ */
+ public static final int VERTICAL_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static CardOrientation valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static CardOrientation forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CARD_ORIENTATION_UNSPECIFIED;
+ case 1:
+ return HORIZONTAL;
+ case 2:
+ return VERTICAL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Thumbnail preview alignment for standalone cards with horizontal + * layout. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment} + */ + public enum ThumbnailImageAlignment implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Not specified. + *+ * + *
THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED = 0;
+ */
+ THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Thumbnail preview is left-aligned. + *+ * + *
LEFT = 1;
+ */
+ LEFT(1),
+ /**
+ *
+ *
+ * + * Thumbnail preview is right-aligned. + *+ * + *
RIGHT = 2;
+ */
+ RIGHT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Not specified. + *+ * + *
THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED = 0;
+ */
+ public static final int THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Thumbnail preview is left-aligned. + *+ * + *
LEFT = 1;
+ */
+ public static final int LEFT_VALUE = 1;
+ /**
+ *
+ *
+ * + * Thumbnail preview is right-aligned. + *+ * + *
RIGHT = 2;
+ */
+ public static final int RIGHT_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static ThumbnailImageAlignment valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ThumbnailImageAlignment forNumber(int value) {
+ switch (value) {
+ case 0:
+ return THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED;
+ case 1:
+ return LEFT;
+ case 2:
+ return RIGHT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public int getCardOrientationValue() {
+ return cardOrientation_;
+ }
+ /**
+ *
+ *
+ * + * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ getCardOrientation() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ .valueOf(cardOrientation_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int THUMBNAIL_IMAGE_ALIGNMENT_FIELD_NUMBER = 2;
+ private int thumbnailImageAlignment_;
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public int getThumbnailImageAlignmentValue() {
+ return thumbnailImageAlignment_;
+ }
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment
+ getThumbnailImageAlignment() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment
+ result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment.valueOf(thumbnailImageAlignment_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int CARD_CONTENT_FIELD_NUMBER = 3;
+ private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent cardContent_;
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public boolean hasCardContent() {
+ return cardContent_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContent() {
+ return cardContent_ == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.getDefaultInstance()
+ : cardContent_;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
+ getCardContentOrBuilder() {
+ return getCardContent();
+ }
+
+ 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 (cardOrientation_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ .CARD_ORIENTATION_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, cardOrientation_);
+ }
+ if (thumbnailImageAlignment_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment.THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, thumbnailImageAlignment_);
+ }
+ if (cardContent_ != null) {
+ output.writeMessage(3, getCardContent());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cardOrientation_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ .CARD_ORIENTATION_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, cardOrientation_);
+ }
+ if (thumbnailImageAlignment_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment.THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED
+ .getNumber()) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(2, thumbnailImageAlignment_);
+ }
+ if (cardContent_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardContent());
+ }
+ 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.Intent.Message.RbmStandaloneCard)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) obj;
+
+ if (cardOrientation_ != other.cardOrientation_) return false;
+ if (thumbnailImageAlignment_ != other.thumbnailImageAlignment_) return false;
+ if (hasCardContent() != other.hasCardContent()) return false;
+ if (hasCardContent()) {
+ if (!getCardContent().equals(other.getCardContent())) 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();
+ hash = (37 * hash) + CARD_ORIENTATION_FIELD_NUMBER;
+ hash = (53 * hash) + cardOrientation_;
+ hash = (37 * hash) + THUMBNAIL_IMAGE_ALIGNMENT_FIELD_NUMBER;
+ hash = (53 * hash) + thumbnailImageAlignment_;
+ if (hasCardContent()) {
+ hash = (37 * hash) + CARD_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getCardContent().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard 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.Intent.Message.RbmStandaloneCard parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard 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.Intent.Message.RbmStandaloneCard parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard 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.Intent.Message.RbmStandaloneCard parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard 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.Intent.Message.RbmStandaloneCard
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ 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.Intent.Message.RbmStandaloneCard 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.Intent.Message.RbmStandaloneCard 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.Intent.Message.RbmStandaloneCard 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;
+ }
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card. + * Rich cards allow you to respond to users with more vivid content, e.g. + * with media and suggestions. + * For more details about RBM rich cards, please see: + * https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards. + * You can group multiple rich cards into one using [RbmCarouselCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard] but + * carousel cards will give you less control over the card layout. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public int getCardOrientationValue() {
+ return cardOrientation_;
+ }
+ /**
+ *
+ *
+ * + * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public Builder setCardOrientationValue(int value) {
+ cardOrientation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ getCardOrientation() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .CardOrientation.valueOf(cardOrientation_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public Builder setCardOrientation(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ cardOrientation_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Orientation of the card. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
+ *
+ */
+ public Builder clearCardOrientation() {
+
+ cardOrientation_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int thumbnailImageAlignment_ = 0;
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public int getThumbnailImageAlignmentValue() {
+ return thumbnailImageAlignment_;
+ }
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public Builder setThumbnailImageAlignmentValue(int value) {
+ thumbnailImageAlignment_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment
+ getThumbnailImageAlignment() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment
+ result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment.valueOf(thumbnailImageAlignment_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public Builder setThumbnailImageAlignment(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .ThumbnailImageAlignment
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ thumbnailImageAlignment_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required if orientation is horizontal. + * Image preview alignment for standalone cards with horizontal layout. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
+ *
+ */
+ public Builder clearThumbnailImageAlignment() {
+
+ thumbnailImageAlignment_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent cardContent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
+ cardContentBuilder_;
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public boolean hasCardContent() {
+ return cardContentBuilder_ != null || cardContent_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContent() {
+ if (cardContentBuilder_ == null) {
+ return cardContent_ == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ .getDefaultInstance()
+ : cardContent_;
+ } else {
+ return cardContentBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public Builder setCardContent(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
+ if (cardContentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cardContent_ = value;
+ onChanged();
+ } else {
+ cardContentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public Builder setCardContent(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ builderForValue) {
+ if (cardContentBuilder_ == null) {
+ cardContent_ = builderForValue.build();
+ onChanged();
+ } else {
+ cardContentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public Builder mergeCardContent(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
+ if (cardContentBuilder_ == null) {
+ if (cardContent_ != null) {
+ cardContent_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.newBuilder(
+ cardContent_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ cardContent_ = value;
+ }
+ onChanged();
+ } else {
+ cardContentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public Builder clearCardContent() {
+ if (cardContentBuilder_ == null) {
+ cardContent_ = null;
+ onChanged();
+ } else {
+ cardContent_ = null;
+ cardContentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
+ getCardContentBuilder() {
+
+ onChanged();
+ return getCardContentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
+ getCardContentOrBuilder() {
+ if (cardContentBuilder_ != null) {
+ return cardContentBuilder_.getMessageOrBuilder();
+ } else {
+ return cardContent_ == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ .getDefaultInstance()
+ : cardContent_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Card content. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
+ getCardContentFieldBuilder() {
+ if (cardContentBuilder_ == null) {
+ cardContentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>(
+ getCardContent(), getParentForChildren(), isClean());
+ cardContent_ = null;
+ }
+ return cardContentBuilder_;
+ }
+
+ @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.Intent.Message.RbmStandaloneCard)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ java.lang.String getTitle();
+ /**
+ *
+ *
+ * + * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ boolean hasMedia();
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia getMedia();
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder
+ getMediaOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ java.util.List+ * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getSuggestions(int index);
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ int getSuggestionsCount();
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getSuggestionsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
+ getSuggestionsOrBuilder(int index);
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) Card content + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent} + */ + public static final class RbmCardContent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent) + RbmCardContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmCardContent.newBuilder() to construct. + private RbmCardContent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmCardContent() { + title_ = ""; + description_ = ""; + suggestions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmCardContent( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder + subBuilder = null; + if (media_ != null) { + subBuilder = media_.toBuilder(); + } + media_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(media_); + media_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + suggestions_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>(); + mutable_bitField0_ |= 0x00000008; + } + suggestions_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.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_ & 0x00000008) != 0)) { + suggestions_ = java.util.Collections.unmodifiableList(suggestions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder.class); + } + + public interface RbmMediaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ java.lang.String getFileUri();
+ /**
+ *
+ *
+ * + * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ com.google.protobuf.ByteString getFileUriBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ java.lang.String getThumbnailUri();
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ com.google.protobuf.ByteString getThumbnailUriBytes();
+
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ int getHeightValue();
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ getHeight();
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) Media displayed in Cards + * The following media-types are currently supported: + * ## Image Types + * image/jpeg + * image/jpg' + * image/gif + * image/png + * ## Video Types + * video/h263 + * video/m4v + * video/mp4 + * video/mpeg + * video/mpeg4 + * video/webm + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia} + */ + public static final class RbmMedia extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia) + RbmMediaOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmMedia.newBuilder() to construct. + private RbmMedia(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmMedia() { + fileUri_ = ""; + thumbnailUri_ = ""; + height_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmMedia( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + fileUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + thumbnailUri_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + height_ = rawValue; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder + .class); + } + + /** + * + * + *
+ * Media height + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height} + */ + public enum Height implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Not specified. + *+ * + *
HEIGHT_UNSPECIFIED = 0;
+ */
+ HEIGHT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * 112 DP. + *+ * + *
SHORT = 1;
+ */
+ SHORT(1),
+ /**
+ *
+ *
+ * + * 168 DP. + *+ * + *
MEDIUM = 2;
+ */
+ MEDIUM(2),
+ /**
+ *
+ *
+ * + * 264 DP. Not available for rich card carousels when the card width + * is set to small. + *+ * + *
TALL = 3;
+ */
+ TALL(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Not specified. + *+ * + *
HEIGHT_UNSPECIFIED = 0;
+ */
+ public static final int HEIGHT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * 112 DP. + *+ * + *
SHORT = 1;
+ */
+ public static final int SHORT_VALUE = 1;
+ /**
+ *
+ *
+ * + * 168 DP. + *+ * + *
MEDIUM = 2;
+ */
+ public static final int MEDIUM_VALUE = 2;
+ /**
+ *
+ *
+ * + * 264 DP. Not available for rich card carousels when the card width + * is set to small. + *+ * + *
TALL = 3;
+ */
+ public static final int TALL_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static Height valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Height forNumber(int value) {
+ switch (value) {
+ case 0:
+ return HEIGHT_UNSPECIFIED;
+ case 1:
+ return SHORT;
+ case 2:
+ return MEDIUM;
+ case 3:
+ return TALL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public java.lang.String getFileUri() {
+ java.lang.Object ref = fileUri_;
+ 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();
+ fileUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public com.google.protobuf.ByteString getFileUriBytes() {
+ java.lang.Object ref = fileUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fileUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int THUMBNAIL_URI_FIELD_NUMBER = 2;
+ private volatile java.lang.Object thumbnailUri_;
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public java.lang.String getThumbnailUri() {
+ java.lang.Object ref = thumbnailUri_;
+ 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();
+ thumbnailUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public com.google.protobuf.ByteString getThumbnailUriBytes() {
+ java.lang.Object ref = thumbnailUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ thumbnailUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HEIGHT_FIELD_NUMBER = 3;
+ private int height_;
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public int getHeightValue() {
+ return height_;
+ }
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ getHeight() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ .valueOf(height_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ .UNRECOGNIZED
+ : result;
+ }
+
+ 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 (!getFileUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileUri_);
+ }
+ if (!getThumbnailUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, thumbnailUri_);
+ }
+ if (height_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ .HEIGHT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(3, height_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getFileUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileUri_);
+ }
+ if (!getThumbnailUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, thumbnailUri_);
+ }
+ if (height_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ .HEIGHT_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, height_);
+ }
+ 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.Intent.Message.RbmCardContent.RbmMedia)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia) obj;
+
+ if (!getFileUri().equals(other.getFileUri())) return false;
+ if (!getThumbnailUri().equals(other.getThumbnailUri())) return false;
+ if (height_ != other.height_) 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();
+ hash = (37 * hash) + FILE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getFileUri().hashCode();
+ hash = (37 * hash) + THUMBNAIL_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getThumbnailUri().hashCode();
+ hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + height_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia
+ 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.Intent.Message.RbmCardContent.RbmMedia 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;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) Media displayed in Cards + * The following media-types are currently supported: + * ## Image Types + * image/jpeg + * image/jpg' + * image/gif + * image/png + * ## Video Types + * video/h263 + * video/m4v + * video/mp4 + * video/mpeg + * video/mpeg4 + * video/webm + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public java.lang.String getFileUri() {
+ java.lang.Object ref = fileUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fileUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public com.google.protobuf.ByteString getFileUriBytes() {
+ java.lang.Object ref = fileUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fileUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public Builder setFileUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fileUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public Builder clearFileUri() {
+
+ fileUri_ = getDefaultInstance().getFileUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Publicly reachable URI of the file. The RBM platform + * determines the MIME type of the file from the content-type field in + * the HTTP headers when the platform fetches the file. The content-type + * field must be present and accurate in the HTTP response from the URL. + *+ * + *
string file_uri = 1;
+ */
+ public Builder setFileUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fileUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object thumbnailUri_ = "";
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public java.lang.String getThumbnailUri() {
+ java.lang.Object ref = thumbnailUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ thumbnailUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public com.google.protobuf.ByteString getThumbnailUriBytes() {
+ java.lang.Object ref = thumbnailUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ thumbnailUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public Builder setThumbnailUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ thumbnailUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public Builder clearThumbnailUri() {
+
+ thumbnailUri_ = getDefaultInstance().getThumbnailUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Publicly reachable URI of the thumbnail.If you don't + * provide a thumbnail URI, the RBM platform displays a blank + * placeholder thumbnail until the user's device downloads the file. + * Depending on the user's setting, the file may not download + * automatically and may require the user to tap a download button. + *+ * + *
string thumbnail_uri = 2;
+ */
+ public Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ thumbnailUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int height_ = 0;
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public int getHeightValue() {
+ return height_;
+ }
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public Builder setHeightValue(int value) {
+ height_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ getHeight() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ .Height.valueOf(height_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public Builder setHeight(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ height_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required for cards with vertical orientation. The height of the media + * within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + * For a standalone card with horizontal layout, height is not + * customizable, and this field is ignored. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
+ *
+ */
+ public Builder clearHeight() {
+
+ height_ = 0;
+ 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.Intent.Message.RbmCardContent.RbmMedia)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ .RbmMedia
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ 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();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ 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();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MEDIA_FIELD_NUMBER = 3;
+ private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media_;
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public boolean hasMedia() {
+ return media_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia getMedia() {
+ return media_ == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ .getDefaultInstance()
+ : media_;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder
+ getMediaOrBuilder() {
+ return getMedia();
+ }
+
+ public static final int SUGGESTIONS_FIELD_NUMBER = 4;
+ private java.util.List+ * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public java.util.List+ * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getSuggestionsOrBuilderList() {
+ return suggestions_;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public int getSuggestionsCount() {
+ return suggestions_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getSuggestions(
+ int index) {
+ return suggestions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
+ getSuggestionsOrBuilder(int index) {
+ return suggestions_.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 {
+ if (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (media_ != null) {
+ output.writeMessage(3, getMedia());
+ }
+ for (int i = 0; i < suggestions_.size(); i++) {
+ output.writeMessage(4, suggestions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (media_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMedia());
+ }
+ for (int i = 0; i < suggestions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, suggestions_.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.Intent.Message.RbmCardContent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent) obj;
+
+ if (!getTitle().equals(other.getTitle())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (hasMedia() != other.hasMedia()) return false;
+ if (hasMedia()) {
+ if (!getMedia().equals(other.getMedia())) return false;
+ }
+ if (!getSuggestionsList().equals(other.getSuggestionsList())) 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();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (hasMedia()) {
+ hash = (37 * hash) + MEDIA_FIELD_NUMBER;
+ hash = (53 * hash) + getMedia().hashCode();
+ }
+ if (getSuggestionsCount() > 0) {
+ hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getSuggestionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent 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.Intent.Message.RbmCardContent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent 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.Intent.Message.RbmCardContent parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent 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.Intent.Message.RbmCardContent parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent 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.Intent.Message.RbmCardContent
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ 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.Intent.Message.RbmCardContent 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.Intent.Message.RbmCardContent 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.Intent.Message.RbmCardContent 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;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) Card content + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Title of the card (at most 200 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string title = 1;
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the card (at most 2000 bytes). + * At least one of the title, description or media must be set. + *+ * + *
string description = 2;
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder>
+ mediaBuilder_;
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public boolean hasMedia() {
+ return mediaBuilder_ != null || media_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ getMedia() {
+ if (mediaBuilder_ == null) {
+ return media_ == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ .getDefaultInstance()
+ : media_;
+ } else {
+ return mediaBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public Builder setMedia(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia value) {
+ if (mediaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ media_ = value;
+ onChanged();
+ } else {
+ mediaBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public Builder setMedia(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder
+ builderForValue) {
+ if (mediaBuilder_ == null) {
+ media_ = builderForValue.build();
+ onChanged();
+ } else {
+ mediaBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public Builder mergeMedia(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia value) {
+ if (mediaBuilder_ == null) {
+ if (media_ != null) {
+ media_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ .newBuilder(media_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ media_ = value;
+ }
+ onChanged();
+ } else {
+ mediaBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public Builder clearMedia() {
+ if (mediaBuilder_ == null) {
+ media_ = null;
+ onChanged();
+ } else {
+ media_ = null;
+ mediaBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder
+ getMediaBuilder() {
+
+ onChanged();
+ return getMediaFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder
+ getMediaOrBuilder() {
+ if (mediaBuilder_ != null) {
+ return mediaBuilder_.getMessageOrBuilder();
+ } else {
+ return media_ == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ .getDefaultInstance()
+ : media_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. However at least one of the title, description or media must + * be set. Media (image, GIF or a video) to include in the card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder>
+ getMediaFieldBuilder() {
+ if (mediaBuilder_ == null) {
+ mediaBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
+ .Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ .RbmMediaOrBuilder>(getMedia(), getParentForChildren(), isClean());
+ media_ = null;
+ }
+ return mediaBuilder_;
+ }
+
+ private java.util.List+ * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public java.util.List+ * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public int getSuggestionsCount() {
+ if (suggestionsBuilder_ == null) {
+ return suggestions_.size();
+ } else {
+ return suggestionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getSuggestions(
+ int index) {
+ if (suggestionsBuilder_ == null) {
+ return suggestions_.get(index);
+ } else {
+ return suggestionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder setSuggestions(
+ int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
+ if (suggestionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSuggestionsIsMutable();
+ suggestions_.set(index, value);
+ onChanged();
+ } else {
+ suggestionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder setSuggestions(
+ int index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ builderForValue) {
+ if (suggestionsBuilder_ == null) {
+ ensureSuggestionsIsMutable();
+ suggestions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ suggestionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder addSuggestions(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
+ if (suggestionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSuggestionsIsMutable();
+ suggestions_.add(value);
+ onChanged();
+ } else {
+ suggestionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder addSuggestions(
+ int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
+ if (suggestionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSuggestionsIsMutable();
+ suggestions_.add(index, value);
+ onChanged();
+ } else {
+ suggestionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder addSuggestions(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ builderForValue) {
+ if (suggestionsBuilder_ == null) {
+ ensureSuggestionsIsMutable();
+ suggestions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ suggestionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder addSuggestions(
+ int index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ builderForValue) {
+ if (suggestionsBuilder_ == null) {
+ ensureSuggestionsIsMutable();
+ suggestions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ suggestionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder addAllSuggestions(
+ java.lang.Iterable<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
+ values) {
+ if (suggestionsBuilder_ == null) {
+ ensureSuggestionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestions_);
+ onChanged();
+ } else {
+ suggestionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder clearSuggestions() {
+ if (suggestionsBuilder_ == null) {
+ suggestions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ suggestionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public Builder removeSuggestions(int index) {
+ if (suggestionsBuilder_ == null) {
+ ensureSuggestionsIsMutable();
+ suggestions_.remove(index);
+ onChanged();
+ } else {
+ suggestionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ getSuggestionsBuilder(int index) {
+ return getSuggestionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
+ getSuggestionsOrBuilder(int index) {
+ if (suggestionsBuilder_ == null) {
+ return suggestions_.get(index);
+ } else {
+ return suggestionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getSuggestionsOrBuilderList() {
+ if (suggestionsBuilder_ != null) {
+ return suggestionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(suggestions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ addSuggestionsBuilder() {
+ return getSuggestionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
+ addSuggestionsBuilder(int index) {
+ return getSuggestionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of suggestions to include in the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder>
+ getSuggestionsBuilderList() {
+ return getSuggestionsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
+ getSuggestionsFieldBuilder() {
+ if (suggestionsBuilder_ == null) {
+ suggestionsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>(
+ suggestions_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ suggestions_ = null;
+ }
+ return suggestionsBuilder_;
+ }
+
+ @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.Intent.Message.RbmCardContent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ boolean hasReply();
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply getReply();
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder
+ getReplyOrBuilder();
+
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ */
+ boolean hasAction();
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction getAction();
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder
+ getActionOrBuilder();
+
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.SuggestionCase
+ getSuggestionCase();
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) suggestion. Suggestions allow user to + * easily select/click a predefined response or perform an action (like + * opening a web uri). + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion} + */ + public static final class RbmSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion) + RbmSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmSuggestion.newBuilder() to construct. + private RbmSuggestion(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmSuggestion() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmSuggestion( + 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: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder + subBuilder = null; + if (suggestionCase_ == 1) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) + suggestion_) + .toBuilder(); + } + suggestion_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) + suggestion_); + suggestion_ = subBuilder.buildPartial(); + } + suggestionCase_ = 1; + break; + } + case 18: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder + subBuilder = null; + if (suggestionCase_ == 2) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) + suggestion_) + .toBuilder(); + } + suggestion_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) + suggestion_); + suggestion_ = subBuilder.buildPartial(); + } + suggestionCase_ = 2; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder.class); + } + + private int suggestionCase_ = 0; + private java.lang.Object suggestion_; + + public enum SuggestionCase implements com.google.protobuf.Internal.EnumLite { + REPLY(1), + ACTION(2), + SUGGESTION_NOT_SET(0); + private final int value; + + private SuggestionCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SuggestionCase valueOf(int value) { + return forNumber(value); + } + + public static SuggestionCase forNumber(int value) { + switch (value) { + case 1: + return REPLY; + case 2: + return ACTION; + case 0: + return SUGGESTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SuggestionCase getSuggestionCase() { + return SuggestionCase.forNumber(suggestionCase_); + } + + public static final int REPLY_FIELD_NUMBER = 1; + /** + * + * + *
+ * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public boolean hasReply() {
+ return suggestionCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply getReply() {
+ if (suggestionCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder
+ getReplyOrBuilder() {
+ if (suggestionCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance();
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ */
+ public boolean hasAction() {
+ return suggestionCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction getAction() {
+ if (suggestionCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder
+ getActionOrBuilder() {
+ if (suggestionCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance();
+ }
+
+ 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 (suggestionCase_ == 1) {
+ output.writeMessage(
+ 1,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) suggestion_);
+ }
+ if (suggestionCase_ == 2) {
+ output.writeMessage(
+ 2,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) suggestion_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (suggestionCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
+ suggestion_);
+ }
+ if (suggestionCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_);
+ }
+ 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.Intent.Message.RbmSuggestion)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion) obj;
+
+ if (!getSuggestionCase().equals(other.getSuggestionCase())) return false;
+ switch (suggestionCase_) {
+ case 1:
+ if (!getReply().equals(other.getReply())) return false;
+ break;
+ case 2:
+ if (!getAction().equals(other.getAction())) 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();
+ switch (suggestionCase_) {
+ case 1:
+ hash = (37 * hash) + REPLY_FIELD_NUMBER;
+ hash = (53 * hash) + getReply().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getAction().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion 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.Intent.Message.RbmSuggestion parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion 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.Intent.Message.RbmSuggestion parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion 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.Intent.Message.RbmSuggestion parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion 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.Intent.Message.RbmSuggestion
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ 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.Intent.Message.RbmSuggestion 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.Intent.Message.RbmSuggestion 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.Intent.Message.RbmSuggestion 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;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) suggestion. Suggestions allow user to + * easily select/click a predefined response or perform an action (like + * opening a web uri). + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public boolean hasReply() {
+ return suggestionCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply getReply() {
+ if (replyBuilder_ == null) {
+ if (suggestionCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
+ suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance();
+ } else {
+ if (suggestionCase_ == 1) {
+ return replyBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public Builder setReply(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply value) {
+ if (replyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ suggestion_ = value;
+ onChanged();
+ } else {
+ replyBuilder_.setMessage(value);
+ }
+ suggestionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public Builder setReply(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder
+ builderForValue) {
+ if (replyBuilder_ == null) {
+ suggestion_ = builderForValue.build();
+ onChanged();
+ } else {
+ replyBuilder_.setMessage(builderForValue.build());
+ }
+ suggestionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public Builder mergeReply(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply value) {
+ if (replyBuilder_ == null) {
+ if (suggestionCase_ == 1
+ && suggestion_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance()) {
+ suggestion_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
+ suggestion_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ suggestion_ = value;
+ }
+ onChanged();
+ } else {
+ if (suggestionCase_ == 1) {
+ replyBuilder_.mergeFrom(value);
+ }
+ replyBuilder_.setMessage(value);
+ }
+ suggestionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public Builder clearReply() {
+ if (replyBuilder_ == null) {
+ if (suggestionCase_ == 1) {
+ suggestionCase_ = 0;
+ suggestion_ = null;
+ onChanged();
+ }
+ } else {
+ if (suggestionCase_ == 1) {
+ suggestionCase_ = 0;
+ suggestion_ = null;
+ }
+ replyBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder
+ getReplyBuilder() {
+ return getReplyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder
+ getReplyOrBuilder() {
+ if ((suggestionCase_ == 1) && (replyBuilder_ != null)) {
+ return replyBuilder_.getMessageOrBuilder();
+ } else {
+ if (suggestionCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
+ suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Predefined replies for user to select instead of typing + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder>
+ getReplyFieldBuilder() {
+ if (replyBuilder_ == null) {
+ if (!(suggestionCase_ == 1)) {
+ suggestion_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ .getDefaultInstance();
+ }
+ replyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
+ suggestion_,
+ getParentForChildren(),
+ isClean());
+ suggestion_ = null;
+ }
+ suggestionCase_ = 1;
+ onChanged();
+ ;
+ return replyBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder>
+ actionBuilder_;
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public boolean hasAction() {
+ return suggestionCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction getAction() {
+ if (actionBuilder_ == null) {
+ if (suggestionCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance();
+ } else {
+ if (suggestionCase_ == 2) {
+ return actionBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public Builder setAction(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction value) {
+ if (actionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ suggestion_ = value;
+ onChanged();
+ } else {
+ actionBuilder_.setMessage(value);
+ }
+ suggestionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public Builder setAction(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder
+ builderForValue) {
+ if (actionBuilder_ == null) {
+ suggestion_ = builderForValue.build();
+ onChanged();
+ } else {
+ actionBuilder_.setMessage(builderForValue.build());
+ }
+ suggestionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public Builder mergeAction(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction value) {
+ if (actionBuilder_ == null) {
+ if (suggestionCase_ == 2
+ && suggestion_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance()) {
+ suggestion_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ suggestion_ = value;
+ }
+ onChanged();
+ } else {
+ if (suggestionCase_ == 2) {
+ actionBuilder_.mergeFrom(value);
+ }
+ actionBuilder_.setMessage(value);
+ }
+ suggestionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public Builder clearAction() {
+ if (actionBuilder_ == null) {
+ if (suggestionCase_ == 2) {
+ suggestionCase_ = 0;
+ suggestion_ = null;
+ onChanged();
+ }
+ } else {
+ if (suggestionCase_ == 2) {
+ suggestionCase_ = 0;
+ suggestion_ = null;
+ }
+ actionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder
+ getActionBuilder() {
+ return getActionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder
+ getActionOrBuilder() {
+ if ((suggestionCase_ == 2) && (actionBuilder_ != null)) {
+ return actionBuilder_.getMessageOrBuilder();
+ } else {
+ if (suggestionCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Predefined client side actions that user can choose + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder>
+ getActionFieldBuilder() {
+ if (actionBuilder_ == null) {
+ if (!(suggestionCase_ == 2)) {
+ suggestion_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .getDefaultInstance();
+ }
+ actionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ suggestion_,
+ getParentForChildren(),
+ isClean());
+ suggestion_ = null;
+ }
+ suggestionCase_ = 2;
+ onChanged();
+ ;
+ return actionBuilder_;
+ }
+
+ @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.Intent.Message.RbmSuggestion)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ java.lang.String getText();
+ /**
+ *
+ *
+ * + * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ com.google.protobuf.ByteString getTextBytes();
+
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ java.lang.String getPostbackData();
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ com.google.protobuf.ByteString getPostbackDataBytes();
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) suggested reply that the user can click + * instead of typing in their own response. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply} + */ + public static final class RbmSuggestedReply extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) + RbmSuggestedReplyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmSuggestedReply.newBuilder() to construct. + private RbmSuggestedReply(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmSuggestedReply() { + text_ = ""; + postbackData_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmSuggestedReply( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + postbackData_ = s; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + private volatile java.lang.Object text_; + /** + * + * + *
+ * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ 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();
+ text_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int POSTBACK_DATA_FIELD_NUMBER = 2;
+ private volatile java.lang.Object postbackData_;
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public java.lang.String getPostbackData() {
+ java.lang.Object ref = postbackData_;
+ 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();
+ postbackData_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public com.google.protobuf.ByteString getPostbackDataBytes() {
+ java.lang.Object ref = postbackData_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ postbackData_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getTextBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
+ }
+ if (!getPostbackDataBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postbackData_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTextBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
+ }
+ if (!getPostbackDataBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postbackData_);
+ }
+ 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.Intent.Message.RbmSuggestedReply)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) obj;
+
+ if (!getText().equals(other.getText())) return false;
+ if (!getPostbackData().equals(other.getPostbackData())) 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();
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ hash = (37 * hash) + POSTBACK_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getPostbackData().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply 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.Intent.Message.RbmSuggestedReply parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply 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.Intent.Message.RbmSuggestedReply parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply 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.Intent.Message.RbmSuggestedReply parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply 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.Intent.Message.RbmSuggestedReply
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ 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.Intent.Message.RbmSuggestedReply 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.Intent.Message.RbmSuggestedReply 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.Intent.Message.RbmSuggestedReply 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;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) suggested reply that the user can click + * instead of typing in their own response. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public Builder clearText() {
+
+ text_ = getDefaultInstance().getText();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested reply text. + *+ * + *
string text = 1;
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object postbackData_ = "";
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public java.lang.String getPostbackData() {
+ java.lang.Object ref = postbackData_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ postbackData_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public com.google.protobuf.ByteString getPostbackDataBytes() {
+ java.lang.Object ref = postbackData_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ postbackData_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public Builder setPostbackData(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ postbackData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public Builder clearPostbackData() {
+
+ postbackData_ = getDefaultInstance().getPostbackData();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested reply. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public Builder setPostbackDataBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ postbackData_ = value;
+ 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.Intent.Message.RbmSuggestedReply)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ java.lang.String getText();
+ /**
+ *
+ *
+ * + * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ com.google.protobuf.ByteString getTextBytes();
+
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ java.lang.String getPostbackData();
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ com.google.protobuf.ByteString getPostbackDataBytes();
+
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ boolean hasDial();
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial
+ getDial();
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDialOrBuilder
+ getDialOrBuilder();
+
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ boolean hasOpenUrl();
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ getOpenUrl();
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUriOrBuilder
+ getOpenUrlOrBuilder();
+
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ boolean hasShareLocation();
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation
+ getShareLocation();
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocationOrBuilder
+ getShareLocationOrBuilder();
+
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.ActionCase
+ getActionCase();
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) suggested client-side action that the user + * can choose from the card. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction} + */ + public static final class RbmSuggestedAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) + RbmSuggestedActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmSuggestedAction.newBuilder() to construct. + private RbmSuggestedAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmSuggestedAction() { + text_ = ""; + postbackData_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmSuggestedAction( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + postbackData_ = s; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionDial.Builder + subBuilder = null; + if (actionCase_ == 3) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionDial) + action_) + .toBuilder(); + } + action_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionDial.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionDial) + action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 3; + break; + } + case 34: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionOpenUri.Builder + subBuilder = null; + if (actionCase_ == 4) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionOpenUri) + action_) + .toBuilder(); + } + action_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionOpenUri.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionOpenUri) + action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 4; + break; + } + case 42: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation.Builder + subBuilder = null; + if (actionCase_ == 5) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation) + action_) + .toBuilder(); + } + action_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation) + action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 5; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder + .class); + } + + public interface RbmSuggestedActionDialOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ java.lang.String getPhoneNumber();
+ /**
+ *
+ *
+ * + * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ com.google.protobuf.ByteString getPhoneNumberBytes();
+ }
+ /**
+ *
+ *
+ * + * Opens the user's default dialer app with the specified phone number + * but does not dial automatically (https://goo.gl/ergbB2). + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial} + */ + public static final class RbmSuggestedActionDial + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial) + RbmSuggestedActionDialOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmSuggestedActionDial.newBuilder() to construct. + private RbmSuggestedActionDial(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmSuggestedActionDial() { + phoneNumber_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmSuggestedActionDial( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + phoneNumber_ = s; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionDial.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionDial.Builder.class); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + private volatile java.lang.Object phoneNumber_; + /** + * + * + *
+ * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public java.lang.String getPhoneNumber() {
+ java.lang.Object ref = phoneNumber_;
+ 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();
+ phoneNumber_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public com.google.protobuf.ByteString getPhoneNumberBytes() {
+ java.lang.Object ref = phoneNumber_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ phoneNumber_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getPhoneNumberBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNumber_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getPhoneNumberBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNumber_);
+ }
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ obj;
+
+ if (!getPhoneNumber().equals(other.getPhoneNumber())) 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();
+ hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getPhoneNumber().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ 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;
+ }
+ /**
+ *
+ *
+ * + * Opens the user's default dialer app with the specified phone number + * but does not dial automatically (https://goo.gl/ergbB2). + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public java.lang.String getPhoneNumber() {
+ java.lang.Object ref = phoneNumber_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ phoneNumber_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public com.google.protobuf.ByteString getPhoneNumberBytes() {
+ java.lang.Object ref = phoneNumber_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ phoneNumber_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public Builder setPhoneNumber(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ phoneNumber_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public Builder clearPhoneNumber() {
+
+ phoneNumber_ = getDefaultInstance().getPhoneNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The phone number to fill in the default dialer app. + * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) + * format. An example of a correctly formatted phone number: + * +15556767888. + *+ * + *
string phone_number = 1;
+ */
+ public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ phoneNumber_ = value;
+ 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.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ com.google.protobuf.ByteString getUriBytes();
+ }
+ /**
+ *
+ *
+ * + * Opens the user's default web browser app to the specified uri + * (https://goo.gl/6GLJD2). If the user has an app installed that is + * registered as the default handler for the URL, then this app will be + * opened instead, and its icon will be used in the suggested action UI. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri} + */ + public static final class RbmSuggestedActionOpenUri + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri) + RbmSuggestedActionOpenUriOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmSuggestedActionOpenUri.newBuilder() to construct. + private RbmSuggestedActionOpenUri( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmSuggestedActionOpenUri() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmSuggestedActionOpenUri( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionOpenUri.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionOpenUri.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+ * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ obj;
+
+ if (!getUri().equals(other.getUri())) 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();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ 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;
+ }
+ /**
+ *
+ *
+ * + * Opens the user's default web browser app to the specified uri + * (https://goo.gl/6GLJD2). If the user has an app installed that is + * registered as the default handler for the URL, then this app will be + * opened instead, and its icon will be used in the suggested action UI. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ uri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public Builder clearUri() {
+
+ uri_ = getDefaultInstance().getUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The uri to open on the user device + *+ * + *
string uri = 1;
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ uri_ = value;
+ 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.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Opens the device's location chooser so the user can pick a location + * to send back to the agent (https://goo.gl/GXotJW). + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation} + */ + public static final class RbmSuggestedActionShareLocation + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation) + RbmSuggestedActionShareLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use RbmSuggestedActionShareLocation.newBuilder() to construct. + private RbmSuggestedActionShareLocation( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RbmSuggestedActionShareLocation() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RbmSuggestedActionShareLocation( + 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; + 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation) + obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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.Intent.Message.RbmSuggestedAction + .RbmSuggestedActionShareLocation + 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; + } + /** + * + * + *
+ * Opens the device's location chooser so the user can pick a location + * to send back to the agent (https://goo.gl/GXotJW). + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ 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();
+ text_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int POSTBACK_DATA_FIELD_NUMBER = 2;
+ private volatile java.lang.Object postbackData_;
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public java.lang.String getPostbackData() {
+ java.lang.Object ref = postbackData_;
+ 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();
+ postbackData_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public com.google.protobuf.ByteString getPostbackDataBytes() {
+ java.lang.Object ref = postbackData_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ postbackData_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DIAL_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public boolean hasDial() {
+ return actionCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ getDial() {
+ if (actionCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDialOrBuilder
+ getDialOrBuilder() {
+ if (actionCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance();
+ }
+
+ public static final int OPEN_URL_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public boolean hasOpenUrl() {
+ return actionCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ getOpenUrl() {
+ if (actionCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUriOrBuilder
+ getOpenUrlOrBuilder() {
+ if (actionCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance();
+ }
+
+ public static final int SHARE_LOCATION_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public boolean hasShareLocation() {
+ return actionCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation
+ getShareLocation() {
+ if (actionCase_ == 5) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocationOrBuilder
+ getShareLocationOrBuilder() {
+ if (actionCase_ == 5) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance();
+ }
+
+ 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 (!getTextBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
+ }
+ if (!getPostbackDataBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postbackData_);
+ }
+ if (actionCase_ == 3) {
+ output.writeMessage(
+ 3,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_);
+ }
+ if (actionCase_ == 4) {
+ output.writeMessage(
+ 4,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_);
+ }
+ if (actionCase_ == 5) {
+ output.writeMessage(
+ 5,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTextBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
+ }
+ if (!getPostbackDataBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postbackData_);
+ }
+ if (actionCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_);
+ }
+ if (actionCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_);
+ }
+ if (actionCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_);
+ }
+ 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.Intent.Message.RbmSuggestedAction)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) obj;
+
+ if (!getText().equals(other.getText())) return false;
+ if (!getPostbackData().equals(other.getPostbackData())) return false;
+ if (!getActionCase().equals(other.getActionCase())) return false;
+ switch (actionCase_) {
+ case 3:
+ if (!getDial().equals(other.getDial())) return false;
+ break;
+ case 4:
+ if (!getOpenUrl().equals(other.getOpenUrl())) return false;
+ break;
+ case 5:
+ if (!getShareLocation().equals(other.getShareLocation())) 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) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ hash = (37 * hash) + POSTBACK_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getPostbackData().hashCode();
+ switch (actionCase_) {
+ case 3:
+ hash = (37 * hash) + DIAL_FIELD_NUMBER;
+ hash = (53 * hash) + getDial().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + OPEN_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getOpenUrl().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + SHARE_LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getShareLocation().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction 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.Intent.Message.RbmSuggestedAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction 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.Intent.Message.RbmSuggestedAction parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction 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.Intent.Message.RbmSuggestedAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction 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.Intent.Message.RbmSuggestedAction
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ 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.Intent.Message.RbmSuggestedAction 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.Intent.Message.RbmSuggestedAction 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.Intent.Message.RbmSuggestedAction 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;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) suggested client-side action that the user + * can choose from the card. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public Builder clearText() {
+
+ text_ = getDefaultInstance().getText();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Text to display alongside the action. + *+ * + *
string text = 1;
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object postbackData_ = "";
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public java.lang.String getPostbackData() {
+ java.lang.Object ref = postbackData_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ postbackData_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public com.google.protobuf.ByteString getPostbackDataBytes() {
+ java.lang.Object ref = postbackData_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ postbackData_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public Builder setPostbackData(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ postbackData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public Builder clearPostbackData() {
+
+ postbackData_ = getDefaultInstance().getPostbackData();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Opaque payload that the Dialogflow receives in a user event + * when the user taps the suggested action. This data will be also + * forwarded to webhook to allow performing custom business logic. + *+ * + *
string postback_data = 2;
+ */
+ public Builder setPostbackDataBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ postbackData_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDialOrBuilder>
+ dialBuilder_;
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public boolean hasDial() {
+ return actionCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ getDial() {
+ if (dialBuilder_ == null) {
+ if (actionCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance();
+ } else {
+ if (actionCase_ == 3) {
+ return dialBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public Builder setDial(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ value) {
+ if (dialBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ dialBuilder_.setMessage(value);
+ }
+ actionCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public Builder setDial(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.Builder
+ builderForValue) {
+ if (dialBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ dialBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public Builder mergeDial(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial
+ value) {
+ if (dialBuilder_ == null) {
+ if (actionCase_ == 3
+ && action_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance()) {
+ action_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 3) {
+ dialBuilder_.mergeFrom(value);
+ }
+ dialBuilder_.setMessage(value);
+ }
+ actionCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public Builder clearDial() {
+ if (dialBuilder_ == null) {
+ if (actionCase_ == 3) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 3) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ dialBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.Builder
+ getDialBuilder() {
+ return getDialFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDialOrBuilder
+ getDialOrBuilder() {
+ if ((actionCase_ == 3) && (dialBuilder_ != null)) {
+ return dialBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Dial a phone number + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDialOrBuilder>
+ getDialFieldBuilder() {
+ if (dialBuilder_ == null) {
+ if (!(actionCase_ == 3)) {
+ action_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.getDefaultInstance();
+ }
+ dialBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDialOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionDial)
+ action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 3;
+ onChanged();
+ ;
+ return dialBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUriOrBuilder>
+ openUrlBuilder_;
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public boolean hasOpenUrl() {
+ return actionCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ getOpenUrl() {
+ if (openUrlBuilder_ == null) {
+ if (actionCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance();
+ } else {
+ if (actionCase_ == 4) {
+ return openUrlBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public Builder setOpenUrl(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ value) {
+ if (openUrlBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ openUrlBuilder_.setMessage(value);
+ }
+ actionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public Builder setOpenUrl(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.Builder
+ builderForValue) {
+ if (openUrlBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ openUrlBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public Builder mergeOpenUrl(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri
+ value) {
+ if (openUrlBuilder_ == null) {
+ if (actionCase_ == 4
+ && action_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance()) {
+ action_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 4) {
+ openUrlBuilder_.mergeFrom(value);
+ }
+ openUrlBuilder_.setMessage(value);
+ }
+ actionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public Builder clearOpenUrl() {
+ if (openUrlBuilder_ == null) {
+ if (actionCase_ == 4) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 4) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ openUrlBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.Builder
+ getOpenUrlBuilder() {
+ return getOpenUrlFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUriOrBuilder
+ getOpenUrlOrBuilder() {
+ if ((actionCase_ == 4) && (openUrlBuilder_ != null)) {
+ return openUrlBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Open a URI on device + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUriOrBuilder>
+ getOpenUrlFieldBuilder() {
+ if (openUrlBuilder_ == null) {
+ if (!(actionCase_ == 4)) {
+ action_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.getDefaultInstance();
+ }
+ openUrlBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUriOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionOpenUri)
+ action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 4;
+ onChanged();
+ ;
+ return openUrlBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocationOrBuilder>
+ shareLocationBuilder_;
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public boolean hasShareLocation() {
+ return actionCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation
+ getShareLocation() {
+ if (shareLocationBuilder_ == null) {
+ if (actionCase_ == 5) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance();
+ } else {
+ if (actionCase_ == 5) {
+ return shareLocationBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public Builder setShareLocation(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation
+ value) {
+ if (shareLocationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ shareLocationBuilder_.setMessage(value);
+ }
+ actionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public Builder setShareLocation(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.Builder
+ builderForValue) {
+ if (shareLocationBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ shareLocationBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public Builder mergeShareLocation(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation
+ value) {
+ if (shareLocationBuilder_ == null) {
+ if (actionCase_ == 5
+ && action_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance()) {
+ action_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 5) {
+ shareLocationBuilder_.mergeFrom(value);
+ }
+ shareLocationBuilder_.setMessage(value);
+ }
+ actionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public Builder clearShareLocation() {
+ if (shareLocationBuilder_ == null) {
+ if (actionCase_ == 5) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 5) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ shareLocationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.Builder
+ getShareLocationBuilder() {
+ return getShareLocationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocationOrBuilder
+ getShareLocationOrBuilder() {
+ if ((actionCase_ == 5) && (shareLocationBuilder_ != null)) {
+ return shareLocationBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 5) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Suggested client side action: Share user location + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocationOrBuilder>
+ getShareLocationFieldBuilder() {
+ if (shareLocationBuilder_ == null) {
+ if (!(actionCase_ == 5)) {
+ action_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.getDefaultInstance();
+ }
+ shareLocationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocationOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ .RbmSuggestedActionShareLocation)
+ action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 5;
+ onChanged();
+ ;
+ return shareLocationBuilder_;
+ }
+
+ @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.Intent.Message.RbmSuggestedAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
+ private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public boolean hasText() {
+ return messageCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() {
+ if (messageCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() {
+ if (messageCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ }
+
+ public static final int IMAGE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public boolean hasImage() {
+ return messageCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
+ if (messageCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ if (messageCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ }
+
+ public static final int QUICK_REPLIES_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public boolean hasQuickReplies() {
+ return messageCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() {
+ if (messageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
+ getQuickRepliesOrBuilder() {
+ if (messageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance();
+ }
+
+ public static final int CARD_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Displays a card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ */
+ public boolean hasCard() {
+ return messageCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Displays a card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() {
+ if (messageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays a card. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() {
+ if (messageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
+ }
+
+ public static final int PAYLOAD_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. + *+ * + *
.google.protobuf.Struct payload = 5;
+ */
+ public boolean hasPayload() {
+ return messageCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. + *+ * + *
.google.protobuf.Struct payload = 5;
+ */
+ public com.google.protobuf.Struct getPayload() {
+ if (messageCase_ == 5) {
+ return (com.google.protobuf.Struct) message_;
+ }
+ return com.google.protobuf.Struct.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. + *+ * + *
.google.protobuf.Struct payload = 5;
+ */
+ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
+ if (messageCase_ == 5) {
+ return (com.google.protobuf.Struct) message_;
+ }
+ return com.google.protobuf.Struct.getDefaultInstance();
+ }
+
+ public static final int SIMPLE_RESPONSES_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * Returns a voice or text-only response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ */
+ public boolean hasSimpleResponses() {
+ return messageCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Returns a voice or text-only response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() {
+ if (messageCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Returns a voice or text-only response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
+ getSimpleResponsesOrBuilder() {
+ if (messageCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ .getDefaultInstance();
+ }
+
+ public static final int BASIC_CARD_FIELD_NUMBER = 8;
+ /**
+ *
+ *
+ * + * Displays a basic card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ */
+ public boolean hasBasicCard() {
+ return messageCase_ == 8;
+ }
+ /**
+ *
+ *
+ * + * Displays a basic card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() {
+ if (messageCase_ == 8) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays a basic card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder
+ getBasicCardOrBuilder() {
+ if (messageCase_ == 8) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
+ }
+
+ public static final int SUGGESTIONS_FIELD_NUMBER = 9;
+ /**
+ *
+ *
+ * + * Displays suggestion chips for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */
+ public boolean hasSuggestions() {
+ return messageCase_ == 9;
+ }
+ /**
+ *
+ *
+ * + * Displays suggestion chips for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() {
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays suggestion chips for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
+ getSuggestionsOrBuilder() {
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
+ }
+
+ public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10;
+ /**
+ *
+ *
+ * + * Displays a link out suggestion chip for Actions on Google. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ */
+ public boolean hasLinkOutSuggestion() {
+ return messageCase_ == 10;
+ }
+ /**
+ *
+ *
+ * + * Displays a link out suggestion chip for Actions on Google. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ getLinkOutSuggestion() {
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays a link out suggestion chip for Actions on Google. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
+ getLinkOutSuggestionOrBuilder() {
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ .getDefaultInstance();
+ }
+
+ public static final int LIST_SELECT_FIELD_NUMBER = 11;
+ /**
+ *
+ *
+ * + * Displays a list card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ */
+ public boolean hasListSelect() {
+ return messageCase_ == 11;
+ }
+ /**
+ *
+ *
+ * + * Displays a list card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() {
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays a list card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder
+ getListSelectOrBuilder() {
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
+ }
+
+ public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12;
+ /**
+ *
+ *
+ * + * Displays a carousel card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ */
+ public boolean hasCarouselSelect() {
+ return messageCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * Displays a carousel card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() {
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Displays a carousel card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
+ getCarouselSelectOrBuilder() {
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance();
+ }
+
+ public static final int TELEPHONY_PLAY_AUDIO_FIELD_NUMBER = 13;
+ /**
+ *
+ *
+ * + * Plays audio from a file in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ *
+ */
+ public boolean hasTelephonyPlayAudio() {
+ return messageCase_ == 13;
+ }
+ /**
+ *
+ *
+ * + * Plays audio from a file in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
+ getTelephonyPlayAudio() {
+ if (messageCase_ == 13) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Plays audio from a file in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
+ getTelephonyPlayAudioOrBuilder() {
+ if (messageCase_ == 13) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
+ .getDefaultInstance();
+ }
+
+ public static final int TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER = 14;
+ /**
+ *
+ *
+ * + * Synthesizes speech in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
+ */
+ public boolean hasTelephonySynthesizeSpeech() {
+ return messageCase_ == 14;
+ }
+ /**
+ *
+ *
+ * + * Synthesizes speech in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ getTelephonySynthesizeSpeech() {
+ if (messageCase_ == 14) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
+ message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Synthesizes speech in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
+ getTelephonySynthesizeSpeechOrBuilder() {
+ if (messageCase_ == 14) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
+ message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .getDefaultInstance();
+ }
+
+ public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 15;
+ /**
+ *
+ *
+ * + * Transfers the call in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ *
+ */
+ public boolean hasTelephonyTransferCall() {
+ return messageCase_ == 15;
+ }
+ /**
+ *
+ *
+ * + * Transfers the call in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ getTelephonyTransferCall() {
+ if (messageCase_ == 15) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Transfers the call in Telephony Gateway. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
+ getTelephonyTransferCallOrBuilder() {
+ if (messageCase_ == 15) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ .getDefaultInstance();
+ }
+
+ public static final int RBM_TEXT_FIELD_NUMBER = 18;
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response. + * RBM allows businesses to send enriched and branded versions of SMS. See + * https://jibe.google.com/business-messaging. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
+ */
+ public boolean hasRbmText() {
+ return messageCase_ == 18;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response. + * RBM allows businesses to send enriched and branded versions of SMS. See + * https://jibe.google.com/business-messaging. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText getRbmText() {
+ if (messageCase_ == 18) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) text response. + * RBM allows businesses to send enriched and branded versions of SMS. See + * https://jibe.google.com/business-messaging. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder
+ getRbmTextOrBuilder() {
+ if (messageCase_ == 18) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
+ }
+
+ public static final int RBM_STANDALONE_RICH_CARD_FIELD_NUMBER = 19;
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
+ *
+ */
+ public boolean hasRbmStandaloneRichCard() {
+ return messageCase_ == 19;
+ }
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ getRbmStandaloneRichCard() {
+ if (messageCase_ == 19) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Standalone Rich Business Messaging (RBM) rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder
+ getRbmStandaloneRichCardOrBuilder() {
+ if (messageCase_ == 19) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ .getDefaultInstance();
+ }
+
+ public static final int RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER = 20;
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) carousel rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
+ *
+ */
+ public boolean hasRbmCarouselRichCard() {
+ return messageCase_ == 20;
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) carousel rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ getRbmCarouselRichCard() {
+ if (messageCase_ == 20) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Rich Business Messaging (RBM) carousel rich card response. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder
+ getRbmCarouselRichCardOrBuilder() {
+ if (messageCase_ == 20) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ .getDefaultInstance();
+ }
+
+ public static final int PLATFORM_FIELD_NUMBER = 6;
+ private int platform_;
+ /**
+ *
+ *
+ * + * Optional. The platform that this message is intended for. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
+ */
+ public int getPlatformValue() {
+ return platform_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The platform that this message is intended for. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.valueOf(platform_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED
+ : result;
+ }
+
+ 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 (messageCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_);
+ }
+ if (messageCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_);
+ }
+ if (messageCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_);
+ }
+ if (messageCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_);
+ }
+ if (messageCase_ == 5) {
+ output.writeMessage(5, (com.google.protobuf.Struct) message_);
+ }
+ if (platform_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(6, platform_);
+ }
+ if (messageCase_ == 7) {
+ output.writeMessage(
+ 7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_);
+ }
+ if (messageCase_ == 8) {
+ output.writeMessage(
+ 8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_);
+ }
+ if (messageCase_ == 9) {
+ output.writeMessage(
+ 9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_);
+ }
+ if (messageCase_ == 10) {
output.writeMessage(
10, (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_);
}
@@ -29546,785 +43528,1500 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
15,
(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_);
}
- unknownFields.writeTo(output);
+ if (messageCase_ == 18) {
+ output.writeMessage(
+ 18, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_);
+ }
+ if (messageCase_ == 19) {
+ output.writeMessage(
+ 19, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_);
+ }
+ if (messageCase_ == 20) {
+ output.writeMessage(
+ 20, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (messageCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_);
+ }
+ if (messageCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_);
+ }
+ if (messageCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_);
+ }
+ if (messageCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_);
+ }
+ if (messageCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.protobuf.Struct) message_);
+ }
+ if (platform_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, platform_);
+ }
+ if (messageCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_);
+ }
+ if (messageCase_ == 8) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_);
+ }
+ if (messageCase_ == 9) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_);
+ }
+ if (messageCase_ == 10) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 10,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_);
+ }
+ if (messageCase_ == 11) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_);
+ }
+ if (messageCase_ == 12) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_);
+ }
+ if (messageCase_ == 13) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 13,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_);
+ }
+ if (messageCase_ == 14) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 14,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
+ message_);
+ }
+ if (messageCase_ == 15) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 15,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
+ message_);
+ }
+ if (messageCase_ == 18) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 18, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_);
+ }
+ if (messageCase_ == 19) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 19,
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_);
+ }
+ if (messageCase_ == 20) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 20, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_);
+ }
+ 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.Intent.Message)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Intent.Message other =
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message) obj;
+
+ if (platform_ != other.platform_) return false;
+ if (!getMessageCase().equals(other.getMessageCase())) return false;
+ switch (messageCase_) {
+ case 1:
+ if (!getText().equals(other.getText())) return false;
+ break;
+ case 2:
+ if (!getImage().equals(other.getImage())) return false;
+ break;
+ case 3:
+ if (!getQuickReplies().equals(other.getQuickReplies())) return false;
+ break;
+ case 4:
+ if (!getCard().equals(other.getCard())) return false;
+ break;
+ case 5:
+ if (!getPayload().equals(other.getPayload())) return false;
+ break;
+ case 7:
+ if (!getSimpleResponses().equals(other.getSimpleResponses())) return false;
+ break;
+ case 8:
+ if (!getBasicCard().equals(other.getBasicCard())) return false;
+ break;
+ case 9:
+ if (!getSuggestions().equals(other.getSuggestions())) return false;
+ break;
+ case 10:
+ if (!getLinkOutSuggestion().equals(other.getLinkOutSuggestion())) return false;
+ break;
+ case 11:
+ if (!getListSelect().equals(other.getListSelect())) return false;
+ break;
+ case 12:
+ if (!getCarouselSelect().equals(other.getCarouselSelect())) return false;
+ break;
+ case 13:
+ if (!getTelephonyPlayAudio().equals(other.getTelephonyPlayAudio())) return false;
+ break;
+ case 14:
+ if (!getTelephonySynthesizeSpeech().equals(other.getTelephonySynthesizeSpeech()))
+ return false;
+ break;
+ case 15:
+ if (!getTelephonyTransferCall().equals(other.getTelephonyTransferCall())) return false;
+ break;
+ case 18:
+ if (!getRbmText().equals(other.getRbmText())) return false;
+ break;
+ case 19:
+ if (!getRbmStandaloneRichCard().equals(other.getRbmStandaloneRichCard())) return false;
+ break;
+ case 20:
+ if (!getRbmCarouselRichCard().equals(other.getRbmCarouselRichCard())) 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) + PLATFORM_FIELD_NUMBER;
+ hash = (53 * hash) + platform_;
+ switch (messageCase_) {
+ case 1:
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + IMAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getImage().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + QUICK_REPLIES_FIELD_NUMBER;
+ hash = (53 * hash) + getQuickReplies().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + CARD_FIELD_NUMBER;
+ hash = (53 * hash) + getCard().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
+ hash = (53 * hash) + getPayload().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + SIMPLE_RESPONSES_FIELD_NUMBER;
+ hash = (53 * hash) + getSimpleResponses().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + BASIC_CARD_FIELD_NUMBER;
+ hash = (53 * hash) + getBasicCard().hashCode();
+ break;
+ case 9:
+ hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getSuggestions().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + LINK_OUT_SUGGESTION_FIELD_NUMBER;
+ hash = (53 * hash) + getLinkOutSuggestion().hashCode();
+ break;
+ case 11:
+ hash = (37 * hash) + LIST_SELECT_FIELD_NUMBER;
+ hash = (53 * hash) + getListSelect().hashCode();
+ break;
+ case 12:
+ hash = (37 * hash) + CAROUSEL_SELECT_FIELD_NUMBER;
+ hash = (53 * hash) + getCarouselSelect().hashCode();
+ break;
+ case 13:
+ hash = (37 * hash) + TELEPHONY_PLAY_AUDIO_FIELD_NUMBER;
+ hash = (53 * hash) + getTelephonyPlayAudio().hashCode();
+ break;
+ case 14:
+ hash = (37 * hash) + TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER;
+ hash = (53 * hash) + getTelephonySynthesizeSpeech().hashCode();
+ break;
+ case 15:
+ hash = (37 * hash) + TELEPHONY_TRANSFER_CALL_FIELD_NUMBER;
+ hash = (53 * hash) + getTelephonyTransferCall().hashCode();
+ break;
+ case 18:
+ hash = (37 * hash) + RBM_TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getRbmText().hashCode();
+ break;
+ case 19:
+ hash = (37 * hash) + RBM_STANDALONE_RICH_CARD_FIELD_NUMBER;
+ hash = (53 * hash) + getRbmStandaloneRichCard().hashCode();
+ break;
+ case 20:
+ hash = (37 * hash) + RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER;
+ hash = (53 * hash) + getRbmCarouselRichCard().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message 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.Intent.Message parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message 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.Intent.Message parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message 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.Intent.Message parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message 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.Intent.Message parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Intent.Message 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.Intent.Message 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.Intent.Message 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 int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
- size = 0;
- if (messageCase_ == 1) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_);
- }
- if (messageCase_ == 2) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_);
- }
- if (messageCase_ == 3) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_);
- }
- if (messageCase_ == 4) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_);
- }
- if (messageCase_ == 5) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 5, (com.google.protobuf.Struct) message_);
- }
- if (platform_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, platform_);
- }
- if (messageCase_ == 7) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_);
- }
- if (messageCase_ == 8) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_);
- }
- if (messageCase_ == 9) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_);
- }
- if (messageCase_ == 10) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 10,
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_);
- }
- if (messageCase_ == 11) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message 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;
+ }
+ /**
+ *
+ *
+ * + * Corresponds to the `Response` field in the Dialogflow console. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
- * Corresponds to the `Response` field in the Dialogflow console. - *- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public boolean hasText() {
+ return messageCase_ == 1;
}
-
- @java.lang.Override
- public com.google.cloud.dialogflow.v2beta1.Intent.Message getDefaultInstanceForType() {
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance();
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() {
+ if (textBuilder_ == null) {
+ if (messageCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ } else {
+ if (messageCase_ == 1) {
+ return textBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ }
}
-
- @java.lang.Override
- public com.google.cloud.dialogflow.v2beta1.Intent.Message build() {
- com.google.cloud.dialogflow.v2beta1.Intent.Message result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public Builder setText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) {
+ if (textBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ message_ = value;
+ onChanged();
+ } else {
+ textBuilder_.setMessage(value);
}
- return result;
+ messageCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public Builder setText(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder builderForValue) {
+ if (textBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ textBuilder_.setMessage(builderForValue.build());
+ }
+ messageCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public Builder mergeText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) {
+ if (textBuilder_ == null) {
+ if (messageCase_ == 1
+ && message_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance()) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ message_ = value;
+ }
+ onChanged();
+ } else {
+ if (messageCase_ == 1) {
+ textBuilder_.mergeFrom(value);
+ }
+ textBuilder_.setMessage(value);
+ }
+ messageCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public Builder clearText() {
+ if (textBuilder_ == null) {
+ if (messageCase_ == 1) {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
+ }
+ } else {
+ if (messageCase_ == 1) {
+ messageCase_ = 0;
+ message_ = null;
+ }
+ textBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder getTextBuilder() {
+ return getTextFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() {
+ if ((messageCase_ == 1) && (textBuilder_ != null)) {
+ return textBuilder_.getMessageOrBuilder();
+ } else {
+ if (messageCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Returns a text response. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>
+ getTextFieldBuilder() {
+ if (textBuilder_ == null) {
+ if (!(messageCase_ == 1)) {
+ message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ }
+ textBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_,
+ getParentForChildren(),
+ isClean());
+ message_ = null;
+ }
+ messageCase_ = 1;
+ onChanged();
+ ;
+ return textBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
+ imageBuilder_;
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public boolean hasImage() {
+ return messageCase_ == 2;
}
-
- @java.lang.Override
- public com.google.cloud.dialogflow.v2beta1.Intent.Message buildPartial() {
- com.google.cloud.dialogflow.v2beta1.Intent.Message result =
- new com.google.cloud.dialogflow.v2beta1.Intent.Message(this);
- if (messageCase_ == 1) {
- if (textBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = textBuilder_.build();
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
+ if (imageBuilder_ == null) {
+ if (messageCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
}
- }
- if (messageCase_ == 2) {
- if (imageBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = imageBuilder_.build();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ } else {
+ if (messageCase_ == 2) {
+ return imageBuilder_.getMessage();
}
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
}
- if (messageCase_ == 3) {
- if (quickRepliesBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = quickRepliesBuilder_.build();
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ message_ = value;
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(value);
}
- if (messageCase_ == 4) {
- if (cardBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = cardBuilder_.build();
- }
+ messageCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public Builder setImage(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
+ if (imageBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(builderForValue.build());
}
- if (messageCase_ == 5) {
- if (payloadBuilder_ == null) {
- result.message_ = message_;
+ messageCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (messageCase_ == 2
+ && message_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
+ .getDefaultInstance()) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
- result.message_ = payloadBuilder_.build();
+ message_ = value;
}
- }
- if (messageCase_ == 7) {
- if (simpleResponsesBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = simpleResponsesBuilder_.build();
+ onChanged();
+ } else {
+ if (messageCase_ == 2) {
+ imageBuilder_.mergeFrom(value);
}
+ imageBuilder_.setMessage(value);
}
- if (messageCase_ == 8) {
- if (basicCardBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = basicCardBuilder_.build();
+ messageCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public Builder clearImage() {
+ if (imageBuilder_ == null) {
+ if (messageCase_ == 2) {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
+ }
+ } else {
+ if (messageCase_ == 2) {
+ messageCase_ = 0;
+ message_ = null;
}
+ imageBuilder_.clear();
}
- if (messageCase_ == 9) {
- if (suggestionsBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = suggestionsBuilder_.build();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() {
+ return getImageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ if ((messageCase_ == 2) && (imageBuilder_ != null)) {
+ return imageBuilder_.getMessageOrBuilder();
+ } else {
+ if (messageCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
}
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
}
- if (messageCase_ == 10) {
- if (linkOutSuggestionBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = linkOutSuggestionBuilder_.build();
+ }
+ /**
+ *
+ *
+ * + * Displays an image. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
+ getImageFieldBuilder() {
+ if (imageBuilder_ == null) {
+ if (!(messageCase_ == 2)) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
}
+ imageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_,
+ getParentForChildren(),
+ isClean());
+ message_ = null;
}
- if (messageCase_ == 11) {
- if (listSelectBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = listSelectBuilder_.build();
+ messageCase_ = 2;
+ onChanged();
+ ;
+ return imageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>
+ quickRepliesBuilder_;
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public boolean hasQuickReplies() {
+ return messageCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() {
+ if (quickRepliesBuilder_ == null) {
+ if (messageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
}
- }
- if (messageCase_ == 12) {
- if (carouselSelectBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = carouselSelectBuilder_.build();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ .getDefaultInstance();
+ } else {
+ if (messageCase_ == 3) {
+ return quickRepliesBuilder_.getMessage();
}
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ .getDefaultInstance();
}
- if (messageCase_ == 13) {
- if (telephonyPlayAudioBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = telephonyPlayAudioBuilder_.build();
+ }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public Builder setQuickReplies(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) {
+ if (quickRepliesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ message_ = value;
+ onChanged();
+ } else {
+ quickRepliesBuilder_.setMessage(value);
}
- if (messageCase_ == 14) {
- if (telephonySynthesizeSpeechBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = telephonySynthesizeSpeechBuilder_.build();
- }
+ messageCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public Builder setQuickReplies(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder builderForValue) {
+ if (quickRepliesBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ quickRepliesBuilder_.setMessage(builderForValue.build());
}
- if (messageCase_ == 15) {
- if (telephonyTransferCallBuilder_ == null) {
- result.message_ = message_;
+ messageCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public Builder mergeQuickReplies(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) {
+ if (quickRepliesBuilder_ == null) {
+ if (messageCase_ == 3
+ && message_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ .getDefaultInstance()) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
- result.message_ = telephonyTransferCallBuilder_.build();
+ message_ = value;
}
- }
- result.platform_ = platform_;
- result.messageCase_ = messageCase_;
- 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.Intent.Message) {
- return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message) other);
+ onChanged();
} else {
- super.mergeFrom(other);
- return this;
+ if (messageCase_ == 3) {
+ quickRepliesBuilder_.mergeFrom(value);
+ }
+ quickRepliesBuilder_.setMessage(value);
}
+ messageCase_ = 3;
+ return this;
}
-
- public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message other) {
- if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance())
- return this;
- if (other.platform_ != 0) {
- setPlatformValue(other.getPlatformValue());
- }
- switch (other.getMessageCase()) {
- case TEXT:
- {
- mergeText(other.getText());
- break;
- }
- case IMAGE:
- {
- mergeImage(other.getImage());
- break;
- }
- case QUICK_REPLIES:
- {
- mergeQuickReplies(other.getQuickReplies());
- break;
- }
- case CARD:
- {
- mergeCard(other.getCard());
- break;
- }
- case PAYLOAD:
- {
- mergePayload(other.getPayload());
- break;
- }
- case SIMPLE_RESPONSES:
- {
- mergeSimpleResponses(other.getSimpleResponses());
- break;
- }
- case BASIC_CARD:
- {
- mergeBasicCard(other.getBasicCard());
- break;
- }
- case SUGGESTIONS:
- {
- mergeSuggestions(other.getSuggestions());
- break;
- }
- case LINK_OUT_SUGGESTION:
- {
- mergeLinkOutSuggestion(other.getLinkOutSuggestion());
- break;
- }
- case LIST_SELECT:
- {
- mergeListSelect(other.getListSelect());
- break;
- }
- case CAROUSEL_SELECT:
- {
- mergeCarouselSelect(other.getCarouselSelect());
- break;
- }
- case TELEPHONY_PLAY_AUDIO:
- {
- mergeTelephonyPlayAudio(other.getTelephonyPlayAudio());
- break;
- }
- case TELEPHONY_SYNTHESIZE_SPEECH:
- {
- mergeTelephonySynthesizeSpeech(other.getTelephonySynthesizeSpeech());
- break;
- }
- case TELEPHONY_TRANSFER_CALL:
- {
- mergeTelephonyTransferCall(other.getTelephonyTransferCall());
- break;
- }
- case MESSAGE_NOT_SET:
- {
- break;
- }
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public Builder clearQuickReplies() {
+ if (quickRepliesBuilder_ == null) {
+ if (messageCase_ == 3) {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
+ }
+ } else {
+ if (messageCase_ == 3) {
+ messageCase_ = 0;
+ message_ = null;
+ }
+ quickRepliesBuilder_.clear();
}
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
return this;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder
+ getQuickRepliesBuilder() {
+ return getQuickRepliesFieldBuilder().getBuilder();
}
-
- @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.Intent.Message parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dialogflow.v2beta1.Intent.Message) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
+ getQuickRepliesOrBuilder() {
+ if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) {
+ return quickRepliesBuilder_.getMessageOrBuilder();
+ } else {
+ if (messageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
}
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ .getDefaultInstance();
}
- return this;
- }
-
- private int messageCase_ = 0;
- private java.lang.Object message_;
-
- public MessageCase getMessageCase() {
- return MessageCase.forNumber(messageCase_);
}
-
- public Builder clearMessage() {
- messageCase_ = 0;
- message_ = null;
+ /**
+ *
+ *
+ * + * Displays quick replies. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>
+ getQuickRepliesFieldBuilder() {
+ if (quickRepliesBuilder_ == null) {
+ if (!(messageCase_ == 3)) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ .getDefaultInstance();
+ }
+ quickRepliesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_,
+ getParentForChildren(),
+ isClean());
+ message_ = null;
+ }
+ messageCase_ = 3;
onChanged();
- return this;
+ ;
+ return quickRepliesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>
- textBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>
+ cardBuilder_;
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public boolean hasText() {
- return messageCase_ == 1;
+ public boolean hasCard() {
+ return messageCase_ == 4;
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() {
- if (textBuilder_ == null) {
- if (messageCase_ == 1) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() {
+ if (cardBuilder_ == null) {
+ if (messageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
} else {
- if (messageCase_ == 1) {
- return textBuilder_.getMessage();
+ if (messageCase_ == 4) {
+ return cardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
}
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public Builder setText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) {
- if (textBuilder_ == null) {
+ public Builder setCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) {
+ if (cardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- textBuilder_.setMessage(value);
+ cardBuilder_.setMessage(value);
}
- messageCase_ = 1;
+ messageCase_ = 4;
return this;
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public Builder setText(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder builderForValue) {
- if (textBuilder_ == null) {
+ public Builder setCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder builderForValue) {
+ if (cardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- textBuilder_.setMessage(builderForValue.build());
+ cardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 1;
+ messageCase_ = 4;
return this;
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public Builder mergeText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) {
- if (textBuilder_ == null) {
- if (messageCase_ == 1
+ public Builder mergeCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) {
+ if (cardBuilder_ == null) {
+ if (messageCase_ == 4
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance()) {
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -30332,36 +45029,36 @@ public Builder mergeText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text
}
onChanged();
} else {
- if (messageCase_ == 1) {
- textBuilder_.mergeFrom(value);
+ if (messageCase_ == 4) {
+ cardBuilder_.mergeFrom(value);
}
- textBuilder_.setMessage(value);
+ cardBuilder_.setMessage(value);
}
- messageCase_ = 1;
+ messageCase_ = 4;
return this;
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public Builder clearText() {
- if (textBuilder_ == null) {
- if (messageCase_ == 1) {
+ public Builder clearCard() {
+ if (cardBuilder_ == null) {
+ if (messageCase_ == 4) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 1) {
+ if (messageCase_ == 4) {
messageCase_ = 0;
message_ = null;
}
- textBuilder_.clear();
+ cardBuilder_.clear();
}
return this;
}
@@ -30369,166 +45066,171 @@ public Builder clearText() {
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder getTextBuilder() {
- return getTextFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder getCardBuilder() {
+ return getCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() {
- if ((messageCase_ == 1) && (textBuilder_ != null)) {
- return textBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() {
+ if ((messageCase_ == 4) && (cardBuilder_ != null)) {
+ return cardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 1) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
+ if (messageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
}
}
/**
*
*
*
- * Returns a text response.
+ * Displays a card.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>
- getTextFieldBuilder() {
- if (textBuilder_ == null) {
- if (!(messageCase_ == 1)) {
- message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>
+ getCardFieldBuilder() {
+ if (cardBuilder_ == null) {
+ if (!(messageCase_ == 4)) {
+ message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
}
- textBuilder_ =
+ cardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 1;
+ messageCase_ = 4;
onChanged();
;
- return textBuilder_;
+ return cardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
- imageBuilder_;
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ payloadBuilder_;
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public boolean hasImage() {
- return messageCase_ == 2;
+ public boolean hasPayload() {
+ return messageCase_ == 5;
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
- if (imageBuilder_ == null) {
- if (messageCase_ == 2) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
+ public com.google.protobuf.Struct getPayload() {
+ if (payloadBuilder_ == null) {
+ if (messageCase_ == 5) {
+ return (com.google.protobuf.Struct) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ return com.google.protobuf.Struct.getDefaultInstance();
} else {
- if (messageCase_ == 2) {
- return imageBuilder_.getMessage();
+ if (messageCase_ == 5) {
+ return payloadBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
- if (imageBuilder_ == null) {
+ public Builder setPayload(com.google.protobuf.Struct value) {
+ if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- imageBuilder_.setMessage(value);
+ payloadBuilder_.setMessage(value);
}
- messageCase_ = 2;
+ messageCase_ = 5;
return this;
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder setImage(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
- if (imageBuilder_ == null) {
+ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
+ if (payloadBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- imageBuilder_.setMessage(builderForValue.build());
+ payloadBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 2;
+ messageCase_ = 5;
return this;
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
- if (imageBuilder_ == null) {
- if (messageCase_ == 2
- && message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
- .getDefaultInstance()) {
+ public Builder mergePayload(com.google.protobuf.Struct value) {
+ if (payloadBuilder_ == null) {
+ if (messageCase_ == 5 && message_ != com.google.protobuf.Struct.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_)
+ com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -30536,36 +45238,38 @@ public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Ima
}
onChanged();
} else {
- if (messageCase_ == 2) {
- imageBuilder_.mergeFrom(value);
+ if (messageCase_ == 5) {
+ payloadBuilder_.mergeFrom(value);
}
- imageBuilder_.setMessage(value);
+ payloadBuilder_.setMessage(value);
}
- messageCase_ = 2;
+ messageCase_ = 5;
return this;
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder clearImage() {
- if (imageBuilder_ == null) {
- if (messageCase_ == 2) {
+ public Builder clearPayload() {
+ if (payloadBuilder_ == null) {
+ if (messageCase_ == 5) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 2) {
+ if (messageCase_ == 5) {
messageCase_ = 0;
message_ = null;
}
- imageBuilder_.clear();
+ payloadBuilder_.clear();
}
return this;
}
@@ -30573,108 +45277,112 @@ public Builder clearImage() {
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() {
- return getImageFieldBuilder().getBuilder();
+ public com.google.protobuf.Struct.Builder getPayloadBuilder() {
+ return getPayloadFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
- if ((messageCase_ == 2) && (imageBuilder_ != null)) {
- return imageBuilder_.getMessageOrBuilder();
+ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
+ if ((messageCase_ == 5) && (payloadBuilder_ != null)) {
+ return payloadBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 2) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
+ if (messageCase_ == 5) {
+ return (com.google.protobuf.Struct) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
*
*
*
- * Displays an image.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
- getImageFieldBuilder() {
- if (imageBuilder_ == null) {
- if (!(messageCase_ == 2)) {
- message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ getPayloadFieldBuilder() {
+ if (payloadBuilder_ == null) {
+ if (!(messageCase_ == 5)) {
+ message_ = com.google.protobuf.Struct.getDefaultInstance();
}
- imageBuilder_ =
+ payloadBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_,
- getParentForChildren(),
- isClean());
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>(
+ (com.google.protobuf.Struct) message_, getParentForChildren(), isClean());
message_ = null;
}
- messageCase_ = 2;
+ messageCase_ = 5;
onChanged();
;
- return imageBuilder_;
+ return payloadBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>
- quickRepliesBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>
+ simpleResponsesBuilder_;
/**
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public boolean hasQuickReplies() {
- return messageCase_ == 3;
+ public boolean hasSimpleResponses() {
+ return messageCase_ == 7;
}
/**
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() {
- if (quickRepliesBuilder_ == null) {
- if (messageCase_ == 3) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ getSimpleResponses() {
+ if (simpleResponsesBuilder_ == null) {
+ if (messageCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
.getDefaultInstance();
} else {
- if (messageCase_ == 3) {
- return quickRepliesBuilder_.getMessage();
+ if (messageCase_ == 7) {
+ return simpleResponsesBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
.getDefaultInstance();
}
}
@@ -30682,67 +45390,69 @@ public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickR
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public Builder setQuickReplies(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) {
- if (quickRepliesBuilder_ == null) {
+ public Builder setSimpleResponses(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) {
+ if (simpleResponsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- quickRepliesBuilder_.setMessage(value);
+ simpleResponsesBuilder_.setMessage(value);
}
- messageCase_ = 3;
+ messageCase_ = 7;
return this;
}
/**
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public Builder setQuickReplies(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder builderForValue) {
- if (quickRepliesBuilder_ == null) {
+ public Builder setSimpleResponses(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder
+ builderForValue) {
+ if (simpleResponsesBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- quickRepliesBuilder_.setMessage(builderForValue.build());
+ simpleResponsesBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 3;
+ messageCase_ = 7;
return this;
}
/**
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public Builder mergeQuickReplies(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) {
- if (quickRepliesBuilder_ == null) {
- if (messageCase_ == 3
+ public Builder mergeSimpleResponses(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) {
+ if (simpleResponsesBuilder_ == null) {
+ if (messageCase_ == 7
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
+ message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -30750,37 +45460,37 @@ public Builder mergeQuickReplies(
}
onChanged();
} else {
- if (messageCase_ == 3) {
- quickRepliesBuilder_.mergeFrom(value);
+ if (messageCase_ == 7) {
+ simpleResponsesBuilder_.mergeFrom(value);
}
- quickRepliesBuilder_.setMessage(value);
+ simpleResponsesBuilder_.setMessage(value);
}
- messageCase_ = 3;
+ messageCase_ = 7;
return this;
}
/**
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public Builder clearQuickReplies() {
- if (quickRepliesBuilder_ == null) {
- if (messageCase_ == 3) {
+ public Builder clearSimpleResponses() {
+ if (simpleResponsesBuilder_ == null) {
+ if (messageCase_ == 7) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 3) {
+ if (messageCase_ == 7) {
messageCase_ = 0;
message_ = null;
}
- quickRepliesBuilder_.clear();
+ simpleResponsesBuilder_.clear();
}
return this;
}
@@ -30788,35 +45498,35 @@ public Builder clearQuickReplies() {
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder
- getQuickRepliesBuilder() {
- return getQuickRepliesFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder
+ getSimpleResponsesBuilder() {
+ return getSimpleResponsesFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
- getQuickRepliesOrBuilder() {
- if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) {
- return quickRepliesBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
+ getSimpleResponsesOrBuilder() {
+ if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) {
+ return simpleResponsesBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 3) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
+ if (messageCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
.getDefaultInstance();
}
}
@@ -30824,137 +45534,140 @@ public Builder clearQuickReplies() {
*
*
*
- * Displays quick replies.
+ * Returns a voice or text-only response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>
- getQuickRepliesFieldBuilder() {
- if (quickRepliesBuilder_ == null) {
- if (!(messageCase_ == 3)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>
+ getSimpleResponsesFieldBuilder() {
+ if (simpleResponsesBuilder_ == null) {
+ if (!(messageCase_ == 7)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
.getDefaultInstance();
}
- quickRepliesBuilder_ =
+ simpleResponsesBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 3;
+ messageCase_ = 7;
onChanged();
;
- return quickRepliesBuilder_;
+ return simpleResponsesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>
- cardBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>
+ basicCardBuilder_;
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public boolean hasCard() {
- return messageCase_ == 4;
+ public boolean hasBasicCard() {
+ return messageCase_ == 8;
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() {
- if (cardBuilder_ == null) {
- if (messageCase_ == 4) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() {
+ if (basicCardBuilder_ == null) {
+ if (messageCase_ == 8) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
} else {
- if (messageCase_ == 4) {
- return cardBuilder_.getMessage();
+ if (messageCase_ == 8) {
+ return basicCardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
}
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder setCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) {
- if (cardBuilder_ == null) {
+ public Builder setBasicCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) {
+ if (basicCardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- cardBuilder_.setMessage(value);
+ basicCardBuilder_.setMessage(value);
}
- messageCase_ = 4;
+ messageCase_ = 8;
return this;
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder setCard(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder builderForValue) {
- if (cardBuilder_ == null) {
+ public Builder setBasicCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder builderForValue) {
+ if (basicCardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- cardBuilder_.setMessage(builderForValue.build());
+ basicCardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 4;
+ messageCase_ = 8;
return this;
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder mergeCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) {
- if (cardBuilder_ == null) {
- if (messageCase_ == 4
+ public Builder mergeBasicCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) {
+ if (basicCardBuilder_ == null) {
+ if (messageCase_ == 8
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance()) {
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
+ .getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -30962,36 +45675,36 @@ public Builder mergeCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card
}
onChanged();
} else {
- if (messageCase_ == 4) {
- cardBuilder_.mergeFrom(value);
+ if (messageCase_ == 8) {
+ basicCardBuilder_.mergeFrom(value);
}
- cardBuilder_.setMessage(value);
+ basicCardBuilder_.setMessage(value);
}
- messageCase_ = 4;
+ messageCase_ = 8;
return this;
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder clearCard() {
- if (cardBuilder_ == null) {
- if (messageCase_ == 4) {
+ public Builder clearBasicCard() {
+ if (basicCardBuilder_ == null) {
+ if (messageCase_ == 8) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 4) {
+ if (messageCase_ == 8) {
messageCase_ = 0;
message_ = null;
}
- cardBuilder_.clear();
+ basicCardBuilder_.clear();
}
return this;
}
@@ -30999,171 +45712,173 @@ public Builder clearCard() {
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder getCardBuilder() {
- return getCardFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder
+ getBasicCardBuilder() {
+ return getBasicCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() {
- if ((messageCase_ == 4) && (cardBuilder_ != null)) {
- return cardBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder
+ getBasicCardOrBuilder() {
+ if ((messageCase_ == 8) && (basicCardBuilder_ != null)) {
+ return basicCardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 4) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
+ if (messageCase_ == 8) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
}
}
/**
*
*
*
- * Displays a card.
+ * Displays a basic card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>
- getCardFieldBuilder() {
- if (cardBuilder_ == null) {
- if (!(messageCase_ == 4)) {
- message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>
+ getBasicCardFieldBuilder() {
+ if (basicCardBuilder_ == null) {
+ if (!(messageCase_ == 8)) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
}
- cardBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_,
+ basicCardBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 4;
+ messageCase_ = 8;
onChanged();
;
- return cardBuilder_;
+ return basicCardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Struct,
- com.google.protobuf.Struct.Builder,
- com.google.protobuf.StructOrBuilder>
- payloadBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>
+ suggestionsBuilder_;
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public boolean hasPayload() {
- return messageCase_ == 5;
+ public boolean hasSuggestions() {
+ return messageCase_ == 9;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public com.google.protobuf.Struct getPayload() {
- if (payloadBuilder_ == null) {
- if (messageCase_ == 5) {
- return (com.google.protobuf.Struct) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() {
+ if (suggestionsBuilder_ == null) {
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
}
- return com.google.protobuf.Struct.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ .getDefaultInstance();
} else {
- if (messageCase_ == 5) {
- return payloadBuilder_.getMessage();
+ if (messageCase_ == 9) {
+ return suggestionsBuilder_.getMessage();
}
- return com.google.protobuf.Struct.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ .getDefaultInstance();
}
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder setPayload(com.google.protobuf.Struct value) {
- if (payloadBuilder_ == null) {
+ public Builder setSuggestions(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) {
+ if (suggestionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- payloadBuilder_.setMessage(value);
+ suggestionsBuilder_.setMessage(value);
}
- messageCase_ = 5;
+ messageCase_ = 9;
return this;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
- if (payloadBuilder_ == null) {
+ public Builder setSuggestions(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder builderForValue) {
+ if (suggestionsBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- payloadBuilder_.setMessage(builderForValue.build());
+ suggestionsBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 5;
+ messageCase_ = 9;
return this;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder mergePayload(com.google.protobuf.Struct value) {
- if (payloadBuilder_ == null) {
- if (messageCase_ == 5 && message_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ public Builder mergeSuggestions(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) {
+ if (suggestionsBuilder_ == null) {
+ if (messageCase_ == 9
+ && message_
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ .getDefaultInstance()) {
message_ =
- com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -31171,38 +45886,36 @@ public Builder mergePayload(com.google.protobuf.Struct value) {
}
onChanged();
} else {
- if (messageCase_ == 5) {
- payloadBuilder_.mergeFrom(value);
+ if (messageCase_ == 9) {
+ suggestionsBuilder_.mergeFrom(value);
}
- payloadBuilder_.setMessage(value);
+ suggestionsBuilder_.setMessage(value);
}
- messageCase_ = 5;
+ messageCase_ = 9;
return this;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder clearPayload() {
- if (payloadBuilder_ == null) {
- if (messageCase_ == 5) {
+ public Builder clearSuggestions() {
+ if (suggestionsBuilder_ == null) {
+ if (messageCase_ == 9) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 5) {
+ if (messageCase_ == 9) {
messageCase_ = 0;
message_ = null;
}
- payloadBuilder_.clear();
+ suggestionsBuilder_.clear();
}
return this;
}
@@ -31210,112 +45923,114 @@ public Builder clearPayload() {
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public com.google.protobuf.Struct.Builder getPayloadBuilder() {
- return getPayloadFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder
+ getSuggestionsBuilder() {
+ return getSuggestionsFieldBuilder().getBuilder();
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
- public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
- if ((messageCase_ == 5) && (payloadBuilder_ != null)) {
- return payloadBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
+ getSuggestionsOrBuilder() {
+ if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) {
+ return suggestionsBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 5) {
- return (com.google.protobuf.Struct) message_;
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
}
- return com.google.protobuf.Struct.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ .getDefaultInstance();
}
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * Displays suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Struct,
- com.google.protobuf.Struct.Builder,
- com.google.protobuf.StructOrBuilder>
- getPayloadFieldBuilder() {
- if (payloadBuilder_ == null) {
- if (!(messageCase_ == 5)) {
- message_ = com.google.protobuf.Struct.getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>
+ getSuggestionsFieldBuilder() {
+ if (suggestionsBuilder_ == null) {
+ if (!(messageCase_ == 9)) {
+ message_ =
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
}
- payloadBuilder_ =
+ suggestionsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Struct,
- com.google.protobuf.Struct.Builder,
- com.google.protobuf.StructOrBuilder>(
- (com.google.protobuf.Struct) message_, getParentForChildren(), isClean());
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_,
+ getParentForChildren(),
+ isClean());
message_ = null;
}
- messageCase_ = 5;
+ messageCase_ = 9;
onChanged();
;
- return payloadBuilder_;
+ return suggestionsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>
- simpleResponsesBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>
+ linkOutSuggestionBuilder_;
/**
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public boolean hasSimpleResponses() {
- return messageCase_ == 7;
+ public boolean hasLinkOutSuggestion() {
+ return messageCase_ == 10;
}
/**
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
- getSimpleResponses() {
- if (simpleResponsesBuilder_ == null) {
- if (messageCase_ == 7) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ getLinkOutSuggestion() {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
.getDefaultInstance();
} else {
- if (messageCase_ == 7) {
- return simpleResponsesBuilder_.getMessage();
+ if (messageCase_ == 10) {
+ return linkOutSuggestionBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
.getDefaultInstance();
}
}
@@ -31323,68 +46038,71 @@ public boolean hasSimpleResponses() {
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder setSimpleResponses(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) {
- if (simpleResponsesBuilder_ == null) {
+ public Builder setLinkOutSuggestion(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) {
+ if (linkOutSuggestionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- simpleResponsesBuilder_.setMessage(value);
+ linkOutSuggestionBuilder_.setMessage(value);
}
- messageCase_ = 7;
+ messageCase_ = 10;
return this;
}
/**
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
- */
- public Builder setSimpleResponses(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder
+ */
+ public Builder setLinkOutSuggestion(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
builderForValue) {
- if (simpleResponsesBuilder_ == null) {
+ if (linkOutSuggestionBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- simpleResponsesBuilder_.setMessage(builderForValue.build());
+ linkOutSuggestionBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 7;
+ messageCase_ = 10;
return this;
}
/**
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder mergeSimpleResponses(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) {
- if (simpleResponsesBuilder_ == null) {
- if (messageCase_ == 7
+ public Builder mergeLinkOutSuggestion(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (messageCase_ == 10
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
message_)
.mergeFrom(value)
.buildPartial();
@@ -31393,37 +46111,38 @@ public Builder mergeSimpleResponses(
}
onChanged();
} else {
- if (messageCase_ == 7) {
- simpleResponsesBuilder_.mergeFrom(value);
+ if (messageCase_ == 10) {
+ linkOutSuggestionBuilder_.mergeFrom(value);
}
- simpleResponsesBuilder_.setMessage(value);
+ linkOutSuggestionBuilder_.setMessage(value);
}
- messageCase_ = 7;
+ messageCase_ = 10;
return this;
}
/**
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder clearSimpleResponses() {
- if (simpleResponsesBuilder_ == null) {
- if (messageCase_ == 7) {
+ public Builder clearLinkOutSuggestion() {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (messageCase_ == 10) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 7) {
+ if (messageCase_ == 10) {
messageCase_ = 0;
message_ = null;
}
- simpleResponsesBuilder_.clear();
+ linkOutSuggestionBuilder_.clear();
}
return this;
}
@@ -31431,35 +46150,37 @@ public Builder clearSimpleResponses() {
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder
- getSimpleResponsesBuilder() {
- return getSimpleResponsesFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
+ getLinkOutSuggestionBuilder() {
+ return getLinkOutSuggestionFieldBuilder().getBuilder();
}
/**
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
- getSimpleResponsesOrBuilder() {
- if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) {
- return simpleResponsesBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
+ getLinkOutSuggestionOrBuilder() {
+ if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) {
+ return linkOutSuggestionBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 7) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
.getDefaultInstance();
}
}
@@ -31467,140 +46188,141 @@ public Builder clearSimpleResponses() {
*
*
*
- * Returns a voice or text-only response for Actions on Google.
+ * Displays a link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>
- getSimpleResponsesFieldBuilder() {
- if (simpleResponsesBuilder_ == null) {
- if (!(messageCase_ == 7)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>
+ getLinkOutSuggestionFieldBuilder() {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (!(messageCase_ == 10)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
.getDefaultInstance();
}
- simpleResponsesBuilder_ =
+ linkOutSuggestionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 7;
+ messageCase_ = 10;
onChanged();
;
- return simpleResponsesBuilder_;
+ return linkOutSuggestionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>
- basicCardBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>
+ listSelectBuilder_;
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public boolean hasBasicCard() {
- return messageCase_ == 8;
+ public boolean hasListSelect() {
+ return messageCase_ == 11;
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() {
- if (basicCardBuilder_ == null) {
- if (messageCase_ == 8) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() {
+ if (listSelectBuilder_ == null) {
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
} else {
- if (messageCase_ == 8) {
- return basicCardBuilder_.getMessage();
+ if (messageCase_ == 11) {
+ return listSelectBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
}
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public Builder setBasicCard(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) {
- if (basicCardBuilder_ == null) {
+ public Builder setListSelect(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) {
+ if (listSelectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- basicCardBuilder_.setMessage(value);
+ listSelectBuilder_.setMessage(value);
}
- messageCase_ = 8;
+ messageCase_ = 11;
return this;
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public Builder setBasicCard(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder builderForValue) {
- if (basicCardBuilder_ == null) {
+ public Builder setListSelect(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder builderForValue) {
+ if (listSelectBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- basicCardBuilder_.setMessage(builderForValue.build());
+ listSelectBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 8;
+ messageCase_ = 11;
return this;
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public Builder mergeBasicCard(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) {
- if (basicCardBuilder_ == null) {
- if (messageCase_ == 8
+ public Builder mergeListSelect(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) {
+ if (listSelectBuilder_ == null) {
+ if (messageCase_ == 11
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -31608,36 +46330,36 @@ public Builder mergeBasicCard(
}
onChanged();
} else {
- if (messageCase_ == 8) {
- basicCardBuilder_.mergeFrom(value);
+ if (messageCase_ == 11) {
+ listSelectBuilder_.mergeFrom(value);
}
- basicCardBuilder_.setMessage(value);
+ listSelectBuilder_.setMessage(value);
}
- messageCase_ = 8;
+ messageCase_ = 11;
return this;
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public Builder clearBasicCard() {
- if (basicCardBuilder_ == null) {
- if (messageCase_ == 8) {
+ public Builder clearListSelect() {
+ if (listSelectBuilder_ == null) {
+ if (messageCase_ == 11) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 8) {
+ if (messageCase_ == 11) {
messageCase_ = 0;
message_ = null;
}
- basicCardBuilder_.clear();
+ listSelectBuilder_.clear();
}
return this;
}
@@ -31645,108 +46367,110 @@ public Builder clearBasicCard() {
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder
- getBasicCardBuilder() {
- return getBasicCardFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder
+ getListSelectBuilder() {
+ return getListSelectFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder
- getBasicCardOrBuilder() {
- if ((messageCase_ == 8) && (basicCardBuilder_ != null)) {
- return basicCardBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder
+ getListSelectOrBuilder() {
+ if ((messageCase_ == 11) && (listSelectBuilder_ != null)) {
+ return listSelectBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 8) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
}
}
/**
*
*
*
- * Displays a basic card for Actions on Google.
+ * Displays a list card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>
- getBasicCardFieldBuilder() {
- if (basicCardBuilder_ == null) {
- if (!(messageCase_ == 8)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>
+ getListSelectFieldBuilder() {
+ if (listSelectBuilder_ == null) {
+ if (!(messageCase_ == 11)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
}
- basicCardBuilder_ =
+ listSelectBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 8;
+ messageCase_ = 11;
onChanged();
;
- return basicCardBuilder_;
+ return listSelectBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>
- suggestionsBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>
+ carouselSelectBuilder_;
/**
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public boolean hasSuggestions() {
- return messageCase_ == 9;
+ public boolean hasCarouselSelect() {
+ return messageCase_ == 12;
}
/**
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() {
- if (suggestionsBuilder_ == null) {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() {
+ if (carouselSelectBuilder_ == null) {
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
.getDefaultInstance();
} else {
- if (messageCase_ == 9) {
- return suggestionsBuilder_.getMessage();
+ if (messageCase_ == 12) {
+ return carouselSelectBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
.getDefaultInstance();
}
}
@@ -31754,64 +46478,69 @@ public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggest
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder setSuggestions(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) {
- if (suggestionsBuilder_ == null) {
+ public Builder setCarouselSelect(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) {
+ if (carouselSelectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- suggestionsBuilder_.setMessage(value);
+ carouselSelectBuilder_.setMessage(value);
}
- messageCase_ = 9;
+ messageCase_ = 12;
return this;
}
/**
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder setSuggestions(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder builderForValue) {
- if (suggestionsBuilder_ == null) {
+ public Builder setCarouselSelect(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder
+ builderForValue) {
+ if (carouselSelectBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- suggestionsBuilder_.setMessage(builderForValue.build());
+ carouselSelectBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 9;
+ messageCase_ = 12;
return this;
}
/**
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder mergeSuggestions(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) {
- if (suggestionsBuilder_ == null) {
- if (messageCase_ == 9
+ public Builder mergeCarouselSelect(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) {
+ if (carouselSelectBuilder_ == null) {
+ if (messageCase_ == 12
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
+ message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -31819,36 +46548,37 @@ public Builder mergeSuggestions(
}
onChanged();
} else {
- if (messageCase_ == 9) {
- suggestionsBuilder_.mergeFrom(value);
+ if (messageCase_ == 12) {
+ carouselSelectBuilder_.mergeFrom(value);
}
- suggestionsBuilder_.setMessage(value);
+ carouselSelectBuilder_.setMessage(value);
}
- messageCase_ = 9;
+ messageCase_ = 12;
return this;
}
/**
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder clearSuggestions() {
- if (suggestionsBuilder_ == null) {
- if (messageCase_ == 9) {
+ public Builder clearCarouselSelect() {
+ if (carouselSelectBuilder_ == null) {
+ if (messageCase_ == 12) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 9) {
+ if (messageCase_ == 12) {
messageCase_ = 0;
message_ = null;
}
- suggestionsBuilder_.clear();
+ carouselSelectBuilder_.clear();
}
return this;
}
@@ -31856,33 +46586,35 @@ public Builder clearSuggestions() {
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder
- getSuggestionsBuilder() {
- return getSuggestionsFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder
+ getCarouselSelectBuilder() {
+ return getCarouselSelectFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
- getSuggestionsOrBuilder() {
- if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) {
- return suggestionsBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
+ getCarouselSelectOrBuilder() {
+ if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) {
+ return carouselSelectBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
.getDefaultInstance();
}
}
@@ -31890,80 +46622,82 @@ public Builder clearSuggestions() {
*
*
*
- * Displays suggestion chips for Actions on Google.
+ * Displays a carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>
- getSuggestionsFieldBuilder() {
- if (suggestionsBuilder_ == null) {
- if (!(messageCase_ == 9)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>
+ getCarouselSelectFieldBuilder() {
+ if (carouselSelectBuilder_ == null) {
+ if (!(messageCase_ == 12)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
+ .getDefaultInstance();
}
- suggestionsBuilder_ =
+ carouselSelectBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 9;
+ messageCase_ = 12;
onChanged();
;
- return suggestionsBuilder_;
+ return carouselSelectBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>
- linkOutSuggestionBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>
+ telephonyPlayAudioBuilder_;
/**
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public boolean hasLinkOutSuggestion() {
- return messageCase_ == 10;
+ public boolean hasTelephonyPlayAudio() {
+ return messageCase_ == 13;
}
/**
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
- getLinkOutSuggestion() {
- if (linkOutSuggestionBuilder_ == null) {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
+ getTelephonyPlayAudio() {
+ if (telephonyPlayAudioBuilder_ == null) {
+ if (messageCase_ == 13) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
.getDefaultInstance();
} else {
- if (messageCase_ == 10) {
- return linkOutSuggestionBuilder_.getMessage();
+ if (messageCase_ == 13) {
+ return telephonyPlayAudioBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
.getDefaultInstance();
}
}
@@ -31971,71 +46705,71 @@ public boolean hasLinkOutSuggestion() {
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public Builder setLinkOutSuggestion(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) {
- if (linkOutSuggestionBuilder_ == null) {
+ public Builder setTelephonyPlayAudio(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) {
+ if (telephonyPlayAudioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- linkOutSuggestionBuilder_.setMessage(value);
+ telephonyPlayAudioBuilder_.setMessage(value);
}
- messageCase_ = 10;
+ messageCase_ = 13;
return this;
}
/**
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public Builder setLinkOutSuggestion(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
+ public Builder setTelephonyPlayAudio(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
builderForValue) {
- if (linkOutSuggestionBuilder_ == null) {
+ if (telephonyPlayAudioBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- linkOutSuggestionBuilder_.setMessage(builderForValue.build());
+ telephonyPlayAudioBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 10;
+ messageCase_ = 13;
return this;
}
/**
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public Builder mergeLinkOutSuggestion(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) {
- if (linkOutSuggestionBuilder_ == null) {
- if (messageCase_ == 10
+ public Builder mergeTelephonyPlayAudio(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) {
+ if (telephonyPlayAudioBuilder_ == null) {
+ if (messageCase_ == 13
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
message_)
.mergeFrom(value)
.buildPartial();
@@ -32044,38 +46778,38 @@ public Builder mergeLinkOutSuggestion(
}
onChanged();
} else {
- if (messageCase_ == 10) {
- linkOutSuggestionBuilder_.mergeFrom(value);
+ if (messageCase_ == 13) {
+ telephonyPlayAudioBuilder_.mergeFrom(value);
}
- linkOutSuggestionBuilder_.setMessage(value);
+ telephonyPlayAudioBuilder_.setMessage(value);
}
- messageCase_ = 10;
+ messageCase_ = 13;
return this;
}
/**
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public Builder clearLinkOutSuggestion() {
- if (linkOutSuggestionBuilder_ == null) {
- if (messageCase_ == 10) {
+ public Builder clearTelephonyPlayAudio() {
+ if (telephonyPlayAudioBuilder_ == null) {
+ if (messageCase_ == 13) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 10) {
+ if (messageCase_ == 13) {
messageCase_ = 0;
message_ = null;
}
- linkOutSuggestionBuilder_.clear();
+ telephonyPlayAudioBuilder_.clear();
}
return this;
}
@@ -32083,37 +46817,37 @@ public Builder clearLinkOutSuggestion() {
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
- getLinkOutSuggestionBuilder() {
- return getLinkOutSuggestionFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
+ getTelephonyPlayAudioBuilder() {
+ return getTelephonyPlayAudioFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
- getLinkOutSuggestionOrBuilder() {
- if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) {
- return linkOutSuggestionBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
+ getTelephonyPlayAudioOrBuilder() {
+ if ((messageCase_ == 13) && (telephonyPlayAudioBuilder_ != null)) {
+ return telephonyPlayAudioBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
+ if (messageCase_ == 13) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
.getDefaultInstance();
}
}
@@ -32121,141 +46855,159 @@ public Builder clearLinkOutSuggestion() {
*
*
*
- * Displays a link out suggestion chip for Actions on Google.
+ * Plays audio from a file in Telephony Gateway.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>
- getLinkOutSuggestionFieldBuilder() {
- if (linkOutSuggestionBuilder_ == null) {
- if (!(messageCase_ == 10)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>
+ getTelephonyPlayAudioFieldBuilder() {
+ if (telephonyPlayAudioBuilder_ == null) {
+ if (!(messageCase_ == 13)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
.getDefaultInstance();
}
- linkOutSuggestionBuilder_ =
+ telephonyPlayAudioBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 10;
+ messageCase_ = 13;
onChanged();
;
- return linkOutSuggestionBuilder_;
+ return telephonyPlayAudioBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>
- listSelectBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>
+ telephonySynthesizeSpeechBuilder_;
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public boolean hasListSelect() {
- return messageCase_ == 11;
+ public boolean hasTelephonySynthesizeSpeech() {
+ return messageCase_ == 14;
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() {
- if (listSelectBuilder_ == null) {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ getTelephonySynthesizeSpeech() {
+ if (telephonySynthesizeSpeechBuilder_ == null) {
+ if (messageCase_ == 14) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
+ message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .getDefaultInstance();
} else {
- if (messageCase_ == 11) {
- return listSelectBuilder_.getMessage();
+ if (messageCase_ == 14) {
+ return telephonySynthesizeSpeechBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .getDefaultInstance();
}
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public Builder setListSelect(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) {
- if (listSelectBuilder_ == null) {
+ public Builder setTelephonySynthesizeSpeech(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) {
+ if (telephonySynthesizeSpeechBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- listSelectBuilder_.setMessage(value);
+ telephonySynthesizeSpeechBuilder_.setMessage(value);
}
- messageCase_ = 11;
+ messageCase_ = 14;
return this;
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public Builder setListSelect(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder builderForValue) {
- if (listSelectBuilder_ == null) {
+ public Builder setTelephonySynthesizeSpeech(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
+ builderForValue) {
+ if (telephonySynthesizeSpeechBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- listSelectBuilder_.setMessage(builderForValue.build());
+ telephonySynthesizeSpeechBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 11;
+ messageCase_ = 14;
return this;
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public Builder mergeListSelect(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) {
- if (listSelectBuilder_ == null) {
- if (messageCase_ == 11
+ public Builder mergeTelephonySynthesizeSpeech(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) {
+ if (telephonySynthesizeSpeechBuilder_ == null) {
+ if (messageCase_ == 14
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message
+ .TelephonySynthesizeSpeech)
+ message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -32263,36 +47015,38 @@ public Builder mergeListSelect(
}
onChanged();
} else {
- if (messageCase_ == 11) {
- listSelectBuilder_.mergeFrom(value);
+ if (messageCase_ == 14) {
+ telephonySynthesizeSpeechBuilder_.mergeFrom(value);
}
- listSelectBuilder_.setMessage(value);
+ telephonySynthesizeSpeechBuilder_.setMessage(value);
}
- messageCase_ = 11;
+ messageCase_ = 14;
return this;
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public Builder clearListSelect() {
- if (listSelectBuilder_ == null) {
- if (messageCase_ == 11) {
+ public Builder clearTelephonySynthesizeSpeech() {
+ if (telephonySynthesizeSpeechBuilder_ == null) {
+ if (messageCase_ == 14) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 11) {
+ if (messageCase_ == 14) {
messageCase_ = 0;
message_ = null;
}
- listSelectBuilder_.clear();
+ telephonySynthesizeSpeechBuilder_.clear();
}
return this;
}
@@ -32300,110 +47054,126 @@ public Builder clearListSelect() {
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder
- getListSelectBuilder() {
- return getListSelectFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
+ getTelephonySynthesizeSpeechBuilder() {
+ return getTelephonySynthesizeSpeechFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder
- getListSelectOrBuilder() {
- if ((messageCase_ == 11) && (listSelectBuilder_ != null)) {
- return listSelectBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
+ getTelephonySynthesizeSpeechOrBuilder() {
+ if ((messageCase_ == 14) && (telephonySynthesizeSpeechBuilder_ != null)) {
+ return telephonySynthesizeSpeechBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
+ if (messageCase_ == 14) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
+ message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .getDefaultInstance();
}
}
/**
*
*
*
- * Displays a list card for Actions on Google.
+ * Synthesizes speech in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>
- getListSelectFieldBuilder() {
- if (listSelectBuilder_ == null) {
- if (!(messageCase_ == 11)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>
+ getTelephonySynthesizeSpeechFieldBuilder() {
+ if (telephonySynthesizeSpeechBuilder_ == null) {
+ if (!(messageCase_ == 14)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .getDefaultInstance();
}
- listSelectBuilder_ =
+ telephonySynthesizeSpeechBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ .Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message
+ .TelephonySynthesizeSpeechOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
+ message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 11;
+ messageCase_ = 14;
onChanged();
;
- return listSelectBuilder_;
+ return telephonySynthesizeSpeechBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>
- carouselSelectBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>
+ telephonyTransferCallBuilder_;
/**
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public boolean hasCarouselSelect() {
- return messageCase_ == 12;
+ public boolean hasTelephonyTransferCall() {
+ return messageCase_ == 15;
}
/**
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() {
- if (carouselSelectBuilder_ == null) {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ getTelephonyTransferCall() {
+ if (telephonyTransferCallBuilder_ == null) {
+ if (messageCase_ == 15) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
+ message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
.getDefaultInstance();
} else {
- if (messageCase_ == 12) {
- return carouselSelectBuilder_.getMessage();
+ if (messageCase_ == 15) {
+ return telephonyTransferCallBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
.getDefaultInstance();
}
}
@@ -32411,68 +47181,71 @@ public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCaro
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public Builder setCarouselSelect(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) {
- if (carouselSelectBuilder_ == null) {
+ public Builder setTelephonyTransferCall(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) {
+ if (telephonyTransferCallBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- carouselSelectBuilder_.setMessage(value);
+ telephonyTransferCallBuilder_.setMessage(value);
}
- messageCase_ = 12;
+ messageCase_ = 15;
return this;
}
/**
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public Builder setCarouselSelect(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder
+ public Builder setTelephonyTransferCall(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
builderForValue) {
- if (carouselSelectBuilder_ == null) {
+ if (telephonyTransferCallBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- carouselSelectBuilder_.setMessage(builderForValue.build());
+ telephonyTransferCallBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 12;
+ messageCase_ = 15;
return this;
}
/**
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public Builder mergeCarouselSelect(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) {
- if (carouselSelectBuilder_ == null) {
- if (messageCase_ == 12
+ public Builder mergeTelephonyTransferCall(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) {
+ if (telephonyTransferCallBuilder_ == null) {
+ if (messageCase_ == 15
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
message_)
.mergeFrom(value)
.buildPartial();
@@ -32481,37 +47254,38 @@ public Builder mergeCarouselSelect(
}
onChanged();
} else {
- if (messageCase_ == 12) {
- carouselSelectBuilder_.mergeFrom(value);
+ if (messageCase_ == 15) {
+ telephonyTransferCallBuilder_.mergeFrom(value);
}
- carouselSelectBuilder_.setMessage(value);
+ telephonyTransferCallBuilder_.setMessage(value);
}
- messageCase_ = 12;
+ messageCase_ = 15;
return this;
}
/**
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public Builder clearCarouselSelect() {
- if (carouselSelectBuilder_ == null) {
- if (messageCase_ == 12) {
+ public Builder clearTelephonyTransferCall() {
+ if (telephonyTransferCallBuilder_ == null) {
+ if (messageCase_ == 15) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 12) {
+ if (messageCase_ == 15) {
messageCase_ = 0;
message_ = null;
}
- carouselSelectBuilder_.clear();
+ telephonyTransferCallBuilder_.clear();
}
return this;
}
@@ -32519,35 +47293,38 @@ public Builder clearCarouselSelect() {
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder
- getCarouselSelectBuilder() {
- return getCarouselSelectFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
+ getTelephonyTransferCallBuilder() {
+ return getTelephonyTransferCallFieldBuilder().getBuilder();
}
/**
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
- getCarouselSelectOrBuilder() {
- if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) {
- return carouselSelectBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
+ getTelephonyTransferCallOrBuilder() {
+ if ((messageCase_ == 15) && (telephonyTransferCallBuilder_ != null)) {
+ return telephonyTransferCallBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
+ if (messageCase_ == 15) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
+ message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
.getDefaultInstance();
}
}
@@ -32555,155 +47332,152 @@ public Builder clearCarouselSelect() {
*
*
*
- * Displays a carousel card for Actions on Google.
+ * Transfers the call in Telephony Gateway.
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>
- getCarouselSelectFieldBuilder() {
- if (carouselSelectBuilder_ == null) {
- if (!(messageCase_ == 12)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>
+ getTelephonyTransferCallFieldBuilder() {
+ if (telephonyTransferCallBuilder_ == null) {
+ if (!(messageCase_ == 15)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
.getDefaultInstance();
}
- carouselSelectBuilder_ =
+ telephonyTransferCallBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message
+ .TelephonyTransferCallOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
+ message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 12;
+ messageCase_ = 15;
onChanged();
;
- return carouselSelectBuilder_;
+ return telephonyTransferCallBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>
- telephonyPlayAudioBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder>
+ rbmTextBuilder_;
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public boolean hasTelephonyPlayAudio() {
- return messageCase_ == 13;
+ public boolean hasRbmText() {
+ return messageCase_ == 18;
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- getTelephonyPlayAudio() {
- if (telephonyPlayAudioBuilder_ == null) {
- if (messageCase_ == 13) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText getRbmText() {
+ if (rbmTextBuilder_ == null) {
+ if (messageCase_ == 18) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- .getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
} else {
- if (messageCase_ == 13) {
- return telephonyPlayAudioBuilder_.getMessage();
+ if (messageCase_ == 18) {
+ return rbmTextBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- .getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
}
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
- *
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public Builder setTelephonyPlayAudio(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) {
- if (telephonyPlayAudioBuilder_ == null) {
+ public Builder setRbmText(com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText value) {
+ if (rbmTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- telephonyPlayAudioBuilder_.setMessage(value);
+ rbmTextBuilder_.setMessage(value);
}
- messageCase_ = 13;
+ messageCase_ = 18;
return this;
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public Builder setTelephonyPlayAudio(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
- builderForValue) {
- if (telephonyPlayAudioBuilder_ == null) {
+ public Builder setRbmText(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder builderForValue) {
+ if (rbmTextBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- telephonyPlayAudioBuilder_.setMessage(builderForValue.build());
+ rbmTextBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 13;
+ messageCase_ = 18;
return this;
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public Builder mergeTelephonyPlayAudio(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) {
- if (telephonyPlayAudioBuilder_ == null) {
- if (messageCase_ == 13
+ public Builder mergeRbmText(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText value) {
+ if (rbmTextBuilder_ == null) {
+ if (messageCase_ == 18
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
- message_)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -32711,38 +47485,38 @@ public Builder mergeTelephonyPlayAudio(
}
onChanged();
} else {
- if (messageCase_ == 13) {
- telephonyPlayAudioBuilder_.mergeFrom(value);
+ if (messageCase_ == 18) {
+ rbmTextBuilder_.mergeFrom(value);
}
- telephonyPlayAudioBuilder_.setMessage(value);
+ rbmTextBuilder_.setMessage(value);
}
- messageCase_ = 13;
+ messageCase_ = 18;
return this;
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public Builder clearTelephonyPlayAudio() {
- if (telephonyPlayAudioBuilder_ == null) {
- if (messageCase_ == 13) {
+ public Builder clearRbmText() {
+ if (rbmTextBuilder_ == null) {
+ if (messageCase_ == 18) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 13) {
+ if (messageCase_ == 18) {
messageCase_ = 0;
message_ = null;
}
- telephonyPlayAudioBuilder_.clear();
+ rbmTextBuilder_.clear();
}
return this;
}
@@ -32750,122 +47524,119 @@ public Builder clearTelephonyPlayAudio() {
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
- getTelephonyPlayAudioBuilder() {
- return getTelephonyPlayAudioFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder
+ getRbmTextBuilder() {
+ return getRbmTextFieldBuilder().getBuilder();
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
- getTelephonyPlayAudioOrBuilder() {
- if ((messageCase_ == 13) && (telephonyPlayAudioBuilder_ != null)) {
- return telephonyPlayAudioBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder
+ getRbmTextOrBuilder() {
+ if ((messageCase_ == 18) && (rbmTextBuilder_ != null)) {
+ return rbmTextBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 13) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
+ if (messageCase_ == 18) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- .getDefaultInstance();
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
}
}
/**
*
*
*
- * Plays audio from a file in Telephony Gateway.
+ * Rich Business Messaging (RBM) text response.
+ * RBM allows businesses to send enriched and branded versions of SMS. See
+ * https://jibe.google.com/business-messaging.
*
*
- *
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
- *
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>
- getTelephonyPlayAudioFieldBuilder() {
- if (telephonyPlayAudioBuilder_ == null) {
- if (!(messageCase_ == 13)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder>
+ getRbmTextFieldBuilder() {
+ if (rbmTextBuilder_ == null) {
+ if (!(messageCase_ == 18)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
- .getDefaultInstance();
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
}
- telephonyPlayAudioBuilder_ =
+ rbmTextBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 13;
+ messageCase_ = 18;
onChanged();
;
- return telephonyPlayAudioBuilder_;
+ return rbmTextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>
- telephonySynthesizeSpeechBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder>
+ rbmStandaloneRichCardBuilder_;
/**
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public boolean hasTelephonySynthesizeSpeech() {
- return messageCase_ == 14;
+ public boolean hasRbmStandaloneRichCard() {
+ return messageCase_ == 19;
}
/**
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
- getTelephonySynthesizeSpeech() {
- if (telephonySynthesizeSpeechBuilder_ == null) {
- if (messageCase_ == 14) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
- message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
+ getRbmStandaloneRichCard() {
+ if (rbmStandaloneRichCardBuilder_ == null) {
+ if (messageCase_ == 19) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
.getDefaultInstance();
} else {
- if (messageCase_ == 14) {
- return telephonySynthesizeSpeechBuilder_.getMessage();
+ if (messageCase_ == 19) {
+ return rbmStandaloneRichCardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
.getDefaultInstance();
}
}
@@ -32873,73 +47644,71 @@ public boolean hasTelephonySynthesizeSpeech() {
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public Builder setTelephonySynthesizeSpeech(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) {
- if (telephonySynthesizeSpeechBuilder_ == null) {
+ public Builder setRbmStandaloneRichCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard value) {
+ if (rbmStandaloneRichCardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- telephonySynthesizeSpeechBuilder_.setMessage(value);
+ rbmStandaloneRichCardBuilder_.setMessage(value);
}
- messageCase_ = 14;
+ messageCase_ = 19;
return this;
}
/**
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public Builder setTelephonySynthesizeSpeech(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
+ public Builder setRbmStandaloneRichCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder
builderForValue) {
- if (telephonySynthesizeSpeechBuilder_ == null) {
+ if (rbmStandaloneRichCardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- telephonySynthesizeSpeechBuilder_.setMessage(builderForValue.build());
+ rbmStandaloneRichCardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 14;
+ messageCase_ = 19;
return this;
}
/**
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public Builder mergeTelephonySynthesizeSpeech(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) {
- if (telephonySynthesizeSpeechBuilder_ == null) {
- if (messageCase_ == 14
+ public Builder mergeRbmStandaloneRichCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard value) {
+ if (rbmStandaloneRichCardBuilder_ == null) {
+ if (messageCase_ == 19
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
- .newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message
- .TelephonySynthesizeSpeech)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
message_)
.mergeFrom(value)
.buildPartial();
@@ -32948,38 +47717,38 @@ public Builder mergeTelephonySynthesizeSpeech(
}
onChanged();
} else {
- if (messageCase_ == 14) {
- telephonySynthesizeSpeechBuilder_.mergeFrom(value);
+ if (messageCase_ == 19) {
+ rbmStandaloneRichCardBuilder_.mergeFrom(value);
}
- telephonySynthesizeSpeechBuilder_.setMessage(value);
+ rbmStandaloneRichCardBuilder_.setMessage(value);
}
- messageCase_ = 14;
+ messageCase_ = 19;
return this;
}
/**
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public Builder clearTelephonySynthesizeSpeech() {
- if (telephonySynthesizeSpeechBuilder_ == null) {
- if (messageCase_ == 14) {
+ public Builder clearRbmStandaloneRichCard() {
+ if (rbmStandaloneRichCardBuilder_ == null) {
+ if (messageCase_ == 19) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 14) {
+ if (messageCase_ == 19) {
messageCase_ = 0;
message_ = null;
}
- telephonySynthesizeSpeechBuilder_.clear();
+ rbmStandaloneRichCardBuilder_.clear();
}
return this;
}
@@ -32987,38 +47756,37 @@ public Builder clearTelephonySynthesizeSpeech() {
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
- getTelephonySynthesizeSpeechBuilder() {
- return getTelephonySynthesizeSpeechFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder
+ getRbmStandaloneRichCardBuilder() {
+ return getRbmStandaloneRichCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
- getTelephonySynthesizeSpeechOrBuilder() {
- if ((messageCase_ == 14) && (telephonySynthesizeSpeechBuilder_ != null)) {
- return telephonySynthesizeSpeechBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder
+ getRbmStandaloneRichCardOrBuilder() {
+ if ((messageCase_ == 19) && (rbmStandaloneRichCardBuilder_ != null)) {
+ return rbmStandaloneRichCardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 14) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
- message_;
+ if (messageCase_ == 19) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
.getDefaultInstance();
}
}
@@ -33026,87 +47794,83 @@ public Builder clearTelephonySynthesizeSpeech() {
*
*
*
- * Synthesizes speech in Telephony Gateway.
+ * Standalone Rich Business Messaging (RBM) rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>
- getTelephonySynthesizeSpeechFieldBuilder() {
- if (telephonySynthesizeSpeechBuilder_ == null) {
- if (!(messageCase_ == 14)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder>
+ getRbmStandaloneRichCardFieldBuilder() {
+ if (rbmStandaloneRichCardBuilder_ == null) {
+ if (!(messageCase_ == 19)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
.getDefaultInstance();
}
- telephonySynthesizeSpeechBuilder_ =
+ rbmStandaloneRichCardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
- .Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message
- .TelephonySynthesizeSpeechOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
- message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 14;
+ messageCase_ = 19;
onChanged();
;
- return telephonySynthesizeSpeechBuilder_;
+ return rbmStandaloneRichCardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>
- telephonyTransferCallBuilder_;
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder>
+ rbmCarouselRichCardBuilder_;
/**
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public boolean hasTelephonyTransferCall() {
- return messageCase_ == 15;
+ public boolean hasRbmCarouselRichCard() {
+ return messageCase_ == 20;
}
/**
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
- getTelephonyTransferCall() {
- if (telephonyTransferCallBuilder_ == null) {
- if (messageCase_ == 15) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
- message_;
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
+ getRbmCarouselRichCard() {
+ if (rbmCarouselRichCardBuilder_ == null) {
+ if (messageCase_ == 20) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
.getDefaultInstance();
} else {
- if (messageCase_ == 15) {
- return telephonyTransferCallBuilder_.getMessage();
+ if (messageCase_ == 20) {
+ return rbmCarouselRichCardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
.getDefaultInstance();
}
}
@@ -33114,71 +47878,71 @@ public boolean hasTelephonyTransferCall() {
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public Builder setTelephonyTransferCall(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) {
- if (telephonyTransferCallBuilder_ == null) {
+ public Builder setRbmCarouselRichCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard value) {
+ if (rbmCarouselRichCardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- telephonyTransferCallBuilder_.setMessage(value);
+ rbmCarouselRichCardBuilder_.setMessage(value);
}
- messageCase_ = 15;
+ messageCase_ = 20;
return this;
}
/**
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public Builder setTelephonyTransferCall(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
+ public Builder setRbmCarouselRichCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder
builderForValue) {
- if (telephonyTransferCallBuilder_ == null) {
+ if (rbmCarouselRichCardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- telephonyTransferCallBuilder_.setMessage(builderForValue.build());
+ rbmCarouselRichCardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 15;
+ messageCase_ = 20;
return this;
}
/**
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public Builder mergeTelephonyTransferCall(
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) {
- if (telephonyTransferCallBuilder_ == null) {
- if (messageCase_ == 15
+ public Builder mergeRbmCarouselRichCard(
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard value) {
+ if (rbmCarouselRichCardBuilder_ == null) {
+ if (messageCase_ == 20
&& message_
- != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.newBuilder(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
message_)
.mergeFrom(value)
.buildPartial();
@@ -33187,38 +47951,38 @@ public Builder mergeTelephonyTransferCall(
}
onChanged();
} else {
- if (messageCase_ == 15) {
- telephonyTransferCallBuilder_.mergeFrom(value);
+ if (messageCase_ == 20) {
+ rbmCarouselRichCardBuilder_.mergeFrom(value);
}
- telephonyTransferCallBuilder_.setMessage(value);
+ rbmCarouselRichCardBuilder_.setMessage(value);
}
- messageCase_ = 15;
+ messageCase_ = 20;
return this;
}
/**
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public Builder clearTelephonyTransferCall() {
- if (telephonyTransferCallBuilder_ == null) {
- if (messageCase_ == 15) {
+ public Builder clearRbmCarouselRichCard() {
+ if (rbmCarouselRichCardBuilder_ == null) {
+ if (messageCase_ == 20) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 15) {
+ if (messageCase_ == 20) {
messageCase_ = 0;
message_ = null;
}
- telephonyTransferCallBuilder_.clear();
+ rbmCarouselRichCardBuilder_.clear();
}
return this;
}
@@ -33226,38 +47990,37 @@ public Builder clearTelephonyTransferCall() {
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
- getTelephonyTransferCallBuilder() {
- return getTelephonyTransferCallFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder
+ getRbmCarouselRichCardBuilder() {
+ return getRbmCarouselRichCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
- public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
- getTelephonyTransferCallOrBuilder() {
- if ((messageCase_ == 15) && (telephonyTransferCallBuilder_ != null)) {
- return telephonyTransferCallBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder
+ getRbmCarouselRichCardOrBuilder() {
+ if ((messageCase_ == 20) && (rbmCarouselRichCardBuilder_ != null)) {
+ return rbmCarouselRichCardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 15) {
- return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
- message_;
+ if (messageCase_ == 20) {
+ return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
}
- return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
.getDefaultInstance();
}
}
@@ -33265,40 +48028,38 @@ public Builder clearTelephonyTransferCall() {
*
*
*
- * Transfers the call in Telephony Gateway.
+ * Rich Business Messaging (RBM) carousel rich card response.
*
*
*
- * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>
- getTelephonyTransferCallFieldBuilder() {
- if (telephonyTransferCallBuilder_ == null) {
- if (!(messageCase_ == 15)) {
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder>
+ getRbmCarouselRichCardFieldBuilder() {
+ if (rbmCarouselRichCardBuilder_ == null) {
+ if (!(messageCase_ == 20)) {
message_ =
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
.getDefaultInstance();
}
- telephonyTransferCallBuilder_ =
+ rbmCarouselRichCardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
- com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
- com.google.cloud.dialogflow.v2beta1.Intent.Message
- .TelephonyTransferCallOrBuilder>(
- (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
- message_,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder,
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 15;
+ messageCase_ = 20;
onChanged();
;
- return telephonyTransferCallBuilder_;
+ return rbmCarouselRichCardBuilder_;
}
private int platform_ = 0;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java
index 65bb1c2834f2..0694449dc3e1 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java
@@ -116,6 +116,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -178,7 +222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\032\036google/protobuf/duration.proto\032\033g"
+ "oogle/protobuf/empty.proto\032 google/proto"
+ "buf/field_mask.proto\032\034google/protobuf/st"
- + "ruct.proto\032\027google/api/client.proto\"\313&\n\006"
+ + "ruct.proto\032\027google/api/client.proto\"\2779\n\006"
+ "Intent\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001"
+ "(\t\022K\n\rwebhook_state\030\006 \001(\01624.google.cloud"
+ ".dialogflow.v2beta1.Intent.WebhookState\022"
@@ -213,7 +257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "display_name\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\025\n\rdef"
+ "ault_value\030\004 \001(\t\022 \n\030entity_type_display_"
+ "name\030\005 \001(\t\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007prompts"
- + "\030\007 \003(\t\022\017\n\007is_list\030\010 \001(\010\032\220\032\n\007Message\022D\n\004t"
+ + "\030\007 \003(\t\022\017\n\007is_list\030\010 \001(\010\032\204-\n\007Message\022D\n\004t"
+ "ext\030\001 \001(\01324.google.cloud.dialogflow.v2be"
+ "ta1.Intent.Message.TextH\000\022F\n\005image\030\002 \001(\013"
+ "25.google.cloud.dialogflow.v2beta1.Inten"
@@ -243,140 +287,201 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "Intent.Message.TelephonySynthesizeSpeech"
+ "H\000\022h\n\027telephony_transfer_call\030\017 \001(\0132E.go"
+ "ogle.cloud.dialogflow.v2beta1.Intent.Mes"
- + "sage.TelephonyTransferCallH\000\022J\n\010platform"
- + "\030\006 \001(\01628.google.cloud.dialogflow.v2beta1"
- + ".Intent.Message.Platform\032\024\n\004Text\022\014\n\004text"
- + "\030\001 \003(\t\0326\n\005Image\022\021\n\timage_uri\030\001 \001(\t\022\032\n\022ac"
- + "cessibility_text\030\002 \001(\t\0324\n\014QuickReplies\022\r"
- + "\n\005title\030\001 \001(\t\022\025\n\rquick_replies\030\002 \003(\t\032\262\001\n"
- + "\004Card\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\021"
- + "\n\timage_uri\030\003 \001(\t\022L\n\007buttons\030\004 \003(\0132;.goo"
- + "gle.cloud.dialogflow.v2beta1.Intent.Mess"
- + "age.Card.Button\032(\n\006Button\022\014\n\004text\030\001 \001(\t\022"
- + "\020\n\010postback\030\002 \001(\t\032L\n\016SimpleResponse\022\026\n\016t"
- + "ext_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014dis"
- + "play_text\030\003 \001(\t\032k\n\017SimpleResponses\022X\n\020si"
- + "mple_responses\030\001 \003(\0132>.google.cloud.dial"
- + "ogflow.v2beta1.Intent.Message.SimpleResp"
- + "onse\032\376\002\n\tBasicCard\022\r\n\005title\030\001 \001(\t\022\020\n\010sub"
- + "title\030\002 \001(\t\022\026\n\016formatted_text\030\003 \001(\t\022D\n\005i"
- + "mage\030\004 \001(\01325.google.cloud.dialogflow.v2b"
- + "eta1.Intent.Message.Image\022Q\n\007buttons\030\005 \003"
- + "(\0132@.google.cloud.dialogflow.v2beta1.Int"
- + "ent.Message.BasicCard.Button\032\236\001\n\006Button\022"
- + "\r\n\005title\030\001 \001(\t\022g\n\017open_uri_action\030\002 \001(\0132"
- + "N.google.cloud.dialogflow.v2beta1.Intent"
- + ".Message.BasicCard.Button.OpenUriAction\032"
- + "\034\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\nSuggest"
- + "ion\022\r\n\005title\030\001 \001(\t\032^\n\013Suggestions\022O\n\013sug"
- + "gestions\030\001 \003(\0132:.google.cloud.dialogflow"
- + ".v2beta1.Intent.Message.Suggestion\032:\n\021Li"
- + "nkOutSuggestion\022\030\n\020destination_name\030\001 \001("
- + "\t\022\013\n\003uri\030\002 \001(\t\032\254\002\n\nListSelect\022\r\n\005title\030\001"
- + " \001(\t\022N\n\005items\030\002 \003(\0132?.google.cloud.dialo"
- + "gflow.v2beta1.Intent.Message.ListSelect."
- + "Item\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132>.google.clo"
- + "ud.dialogflow.v2beta1.Intent.Message.Sel"
- + "ectItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013descriptio"
- + "n\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.google.cloud.di"
- + "alogflow.v2beta1.Intent.Message.Image\032\245\002"
- + "\n\016CarouselSelect\022R\n\005items\030\001 \003(\0132C.google"
- + ".cloud.dialogflow.v2beta1.Intent.Message"
- + ".CarouselSelect.Item\032\276\001\n\004Item\022L\n\004info\030\001 "
- + "\001(\0132>.google.cloud.dialogflow.v2beta1.In"
- + "tent.Message.SelectItemInfo\022\r\n\005title\030\002 \001"
- + "(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\01325"
+ + "sage.TelephonyTransferCallH\000\022K\n\010rbm_text"
+ + "\030\022 \001(\01327.google.cloud.dialogflow.v2beta1"
+ + ".Intent.Message.RbmTextH\000\022e\n\030rbm_standal"
+ + "one_rich_card\030\023 \001(\0132A.google.cloud.dialo"
+ + "gflow.v2beta1.Intent.Message.RbmStandalo"
+ + "neCardH\000\022a\n\026rbm_carousel_rich_card\030\024 \001(\013"
+ + "2?.google.cloud.dialogflow.v2beta1.Inten"
+ + "t.Message.RbmCarouselCardH\000\022J\n\010platform\030"
+ + "\006 \001(\01628.google.cloud.dialogflow.v2beta1."
+ + "Intent.Message.Platform\032\024\n\004Text\022\014\n\004text\030"
+ + "\001 \003(\t\0326\n\005Image\022\021\n\timage_uri\030\001 \001(\t\022\032\n\022acc"
+ + "essibility_text\030\002 \001(\t\0324\n\014QuickReplies\022\r\n"
+ + "\005title\030\001 \001(\t\022\025\n\rquick_replies\030\002 \003(\t\032\262\001\n\004"
+ + "Card\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\021\n"
+ + "\timage_uri\030\003 \001(\t\022L\n\007buttons\030\004 \003(\0132;.goog"
+ + "le.cloud.dialogflow.v2beta1.Intent.Messa"
+ + "ge.Card.Button\032(\n\006Button\022\014\n\004text\030\001 \001(\t\022\020"
+ + "\n\010postback\030\002 \001(\t\032L\n\016SimpleResponse\022\026\n\016te"
+ + "xt_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014disp"
+ + "lay_text\030\003 \001(\t\032k\n\017SimpleResponses\022X\n\020sim"
+ + "ple_responses\030\001 \003(\0132>.google.cloud.dialo"
+ + "gflow.v2beta1.Intent.Message.SimpleRespo"
+ + "nse\032\376\002\n\tBasicCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subt"
+ + "itle\030\002 \001(\t\022\026\n\016formatted_text\030\003 \001(\t\022D\n\005im"
+ + "age\030\004 \001(\01325.google.cloud.dialogflow.v2be"
+ + "ta1.Intent.Message.Image\022Q\n\007buttons\030\005 \003("
+ + "\0132@.google.cloud.dialogflow.v2beta1.Inte"
+ + "nt.Message.BasicCard.Button\032\236\001\n\006Button\022\r"
+ + "\n\005title\030\001 \001(\t\022g\n\017open_uri_action\030\002 \001(\0132N"
+ ".google.cloud.dialogflow.v2beta1.Intent."
- + "Message.Image\032/\n\016SelectItemInfo\022\013\n\003key\030\001"
- + " \001(\t\022\020\n\010synonyms\030\002 \003(\t\032\'\n\022TelephonyPlayA"
- + "udio\022\021\n\taudio_uri\030\001 \001(\t\032E\n\031TelephonySynt"
- + "hesizeSpeech\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001"
- + "(\tH\000B\010\n\006source\032-\n\025TelephonyTransferCall\022"
- + "\024\n\014phone_number\030\001 \001(\t\"\257\001\n\010Platform\022\030\n\024PL"
- + "ATFORM_UNSPECIFIED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SL"
- + "ACK\020\002\022\014\n\010TELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022"
- + "\010\n\004LINE\020\006\022\t\n\005VIBER\020\007\022\025\n\021ACTIONS_ON_GOOGL"
- + "E\020\010\022\r\n\tTELEPHONY\020\n\022\023\n\017GOOGLE_HANGOUTS\020\013B"
- + "\t\n\007message\032W\n\022FollowupIntentInfo\022\034\n\024foll"
- + "owup_intent_name\030\001 \001(\t\022#\n\033parent_followu"
- + "p_intent_name\030\002 \001(\t\"t\n\014WebhookState\022\035\n\031W"
- + "EBHOOK_STATE_UNSPECIFIED\020\000\022\031\n\025WEBHOOK_ST"
- + "ATE_ENABLED\020\001\022*\n&WEBHOOK_STATE_ENABLED_F"
- + "OR_SLOT_FILLING\020\002\"\244\001\n\022ListIntentsRequest"
- + "\022\016\n\006parent\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022"
- + "@\n\013intent_view\030\003 \001(\0162+.google.cloud.dial"
- + "ogflow.v2beta1.IntentView\022\021\n\tpage_size\030\004"
- + " \001(\005\022\022\n\npage_token\030\005 \001(\t\"h\n\023ListIntentsR"
- + "esponse\0228\n\007intents\030\001 \003(\0132\'.google.cloud."
- + "dialogflow.v2beta1.Intent\022\027\n\017next_page_t"
- + "oken\030\002 \001(\t\"y\n\020GetIntentRequest\022\014\n\004name\030\001"
- + " \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022@\n\013intent_vi"
- + "ew\030\003 \001(\0162+.google.cloud.dialogflow.v2bet"
- + "a1.IntentView\"\267\001\n\023CreateIntentRequest\022\016\n"
- + "\006parent\030\001 \001(\t\0227\n\006intent\030\002 \001(\0132\'.google.c"
- + "loud.dialogflow.v2beta1.Intent\022\025\n\rlangua"
- + "ge_code\030\003 \001(\t\022@\n\013intent_view\030\004 \001(\0162+.goo"
- + "gle.cloud.dialogflow.v2beta1.IntentView\""
- + "\330\001\n\023UpdateIntentRequest\0227\n\006intent\030\001 \001(\0132"
- + "\'.google.cloud.dialogflow.v2beta1.Intent"
- + "\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013update_mask\030\003"
- + " \001(\0132\032.google.protobuf.FieldMask\022@\n\013inte"
- + "nt_view\030\004 \001(\0162+.google.cloud.dialogflow."
- + "v2beta1.IntentView\"#\n\023DeleteIntentReques"
- + "t\022\014\n\004name\030\001 \001(\t\"\256\002\n\031BatchUpdateIntentsRe"
- + "quest\022\016\n\006parent\030\001 \001(\t\022\032\n\020intent_batch_ur"
- + "i\030\002 \001(\tH\000\022K\n\023intent_batch_inline\030\003 \001(\0132,"
- + ".google.cloud.dialogflow.v2beta1.IntentB"
- + "atchH\000\022\025\n\rlanguage_code\030\004 \001(\t\022/\n\013update_"
- + "mask\030\005 \001(\0132\032.google.protobuf.FieldMask\022@"
- + "\n\013intent_view\030\006 \001(\0162+.google.cloud.dialo"
- + "gflow.v2beta1.IntentViewB\016\n\014intent_batch"
- + "\"V\n\032BatchUpdateIntentsResponse\0228\n\007intent"
- + "s\030\001 \003(\0132\'.google.cloud.dialogflow.v2beta"
- + "1.Intent\"e\n\031BatchDeleteIntentsRequest\022\016\n"
- + "\006parent\030\001 \001(\t\0228\n\007intents\030\002 \003(\0132\'.google."
- + "cloud.dialogflow.v2beta1.Intent\"G\n\013Inten"
- + "tBatch\0228\n\007intents\030\001 \003(\0132\'.google.cloud.d"
- + "ialogflow.v2beta1.Intent*?\n\nIntentView\022\033"
- + "\n\027INTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_VI"
- + "EW_FULL\020\0012\254\n\n\007Intents\022\254\001\n\013ListIntents\0223."
- + "google.cloud.dialogflow.v2beta1.ListInte"
- + "ntsRequest\0324.google.cloud.dialogflow.v2b"
- + "eta1.ListIntentsResponse\"2\202\323\344\223\002,\022*/v2bet"
- + "a1/{parent=projects/*/agent}/intents\022\233\001\n"
- + "\tGetIntent\0221.google.cloud.dialogflow.v2b"
- + "eta1.GetIntentRequest\032\'.google.cloud.dia"
- + "logflow.v2beta1.Intent\"2\202\323\344\223\002,\022*/v2beta1"
- + "/{name=projects/*/agent/intents/*}\022\251\001\n\014C"
- + "reateIntent\0224.google.cloud.dialogflow.v2"
- + "beta1.CreateIntentRequest\032\'.google.cloud"
- + ".dialogflow.v2beta1.Intent\":\202\323\344\223\0024\"*/v2b"
- + "eta1/{parent=projects/*/agent}/intents:\006"
- + "intent\022\260\001\n\014UpdateIntent\0224.google.cloud.d"
- + "ialogflow.v2beta1.UpdateIntentRequest\032\'."
- + "google.cloud.dialogflow.v2beta1.Intent\"A"
- + "\202\323\344\223\002;21/v2beta1/{intent.name=projects/*"
- + "/agent/intents/*}:\006intent\022\220\001\n\014DeleteInte"
- + "nt\0224.google.cloud.dialogflow.v2beta1.Del"
- + "eteIntentRequest\032\026.google.protobuf.Empty"
- + "\"2\202\323\344\223\002,**/v2beta1/{name=projects/*/agen"
- + "t/intents/*}\022\262\001\n\022BatchUpdateIntents\022:.go"
- + "ogle.cloud.dialogflow.v2beta1.BatchUpdat"
- + "eIntentsRequest\032\035.google.longrunning.Ope"
- + "ration\"A\202\323\344\223\002;\"6/v2beta1/{parent=project"
- + "s/*/agent}/intents:batchUpdate:\001*\022\262\001\n\022Ba"
- + "tchDeleteIntents\022:.google.cloud.dialogfl"
- + "ow.v2beta1.BatchDeleteIntentsRequest\032\035.g"
- + "oogle.longrunning.Operation\"A\202\323\344\223\002;\"6/v2"
- + "beta1/{parent=projects/*/agent}/intents:"
- + "batchDelete:\001*\032x\312A\031dialogflow.googleapis"
- + ".com\322AYhttps://www.googleapis.com/auth/c"
- + "loud-platform,https://www.googleapis.com"
- + "/auth/dialogflowB\251\001\n#com.google.cloud.di"
- + "alogflow.v2beta1B\013IntentProtoP\001ZIgoogle."
- + "golang.org/genproto/googleapis/cloud/dia"
- + "logflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Goo"
- + "gle.Cloud.Dialogflow.V2beta1b\006proto3"
+ + "Message.BasicCard.Button.OpenUriAction\032\034"
+ + "\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\nSuggesti"
+ + "on\022\r\n\005title\030\001 \001(\t\032^\n\013Suggestions\022O\n\013sugg"
+ + "estions\030\001 \003(\0132:.google.cloud.dialogflow."
+ + "v2beta1.Intent.Message.Suggestion\032:\n\021Lin"
+ + "kOutSuggestion\022\030\n\020destination_name\030\001 \001(\t"
+ + "\022\013\n\003uri\030\002 \001(\t\032\254\002\n\nListSelect\022\r\n\005title\030\001 "
+ + "\001(\t\022N\n\005items\030\002 \003(\0132?.google.cloud.dialog"
+ + "flow.v2beta1.Intent.Message.ListSelect.I"
+ + "tem\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132>.google.clou"
+ + "d.dialogflow.v2beta1.Intent.Message.Sele"
+ + "ctItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013description"
+ + "\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.google.cloud.dia"
+ + "logflow.v2beta1.Intent.Message.Image\032\245\002\n"
+ + "\016CarouselSelect\022R\n\005items\030\001 \003(\0132C.google."
+ + "cloud.dialogflow.v2beta1.Intent.Message."
+ + "CarouselSelect.Item\032\276\001\n\004Item\022L\n\004info\030\001 \001"
+ + "(\0132>.google.cloud.dialogflow.v2beta1.Int"
+ + "ent.Message.SelectItemInfo\022\r\n\005title\030\002 \001("
+ + "\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\01325."
+ + "google.cloud.dialogflow.v2beta1.Intent.M"
+ + "essage.Image\032/\n\016SelectItemInfo\022\013\n\003key\030\001 "
+ + "\001(\t\022\020\n\010synonyms\030\002 \003(\t\032\'\n\022TelephonyPlayAu"
+ + "dio\022\021\n\taudio_uri\030\001 \001(\t\032E\n\031TelephonySynth"
+ + "esizeSpeech\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001("
+ + "\tH\000B\010\n\006source\032-\n\025TelephonyTransferCall\022\024"
+ + "\n\014phone_number\030\001 \001(\t\032n\n\007RbmText\022\014\n\004text\030"
+ + "\001 \001(\t\022U\n\016rbm_suggestion\030\002 \003(\0132=.google.c"
+ + "loud.dialogflow.v2beta1.Intent.Message.R"
+ + "bmSuggestion\032\207\002\n\017RbmCarouselCard\022]\n\ncard"
+ + "_width\030\001 \001(\0162I.google.cloud.dialogflow.v"
+ + "2beta1.Intent.Message.RbmCarouselCard.Ca"
+ + "rdWidth\022U\n\rcard_contents\030\002 \003(\0132>.google."
+ + "cloud.dialogflow.v2beta1.Intent.Message."
+ + "RbmCardContent\">\n\tCardWidth\022\032\n\026CARD_WIDT"
+ + "H_UNSPECIFIED\020\000\022\t\n\005SMALL\020\001\022\n\n\006MEDIUM\020\002\032\202"
+ + "\004\n\021RbmStandaloneCard\022k\n\020card_orientation"
+ + "\030\001 \001(\0162Q.google.cloud.dialogflow.v2beta1"
+ + ".Intent.Message.RbmStandaloneCard.CardOr"
+ + "ientation\022|\n\031thumbnail_image_alignment\030\002"
+ + " \001(\0162Y.google.cloud.dialogflow.v2beta1.I"
+ + "ntent.Message.RbmStandaloneCard.Thumbnai"
+ + "lImageAlignment\022T\n\014card_content\030\003 \001(\0132>."
+ + "google.cloud.dialogflow.v2beta1.Intent.M"
+ + "essage.RbmCardContent\"Q\n\017CardOrientation"
+ + "\022 \n\034CARD_ORIENTATION_UNSPECIFIED\020\000\022\016\n\nHO"
+ + "RIZONTAL\020\001\022\014\n\010VERTICAL\020\002\"Y\n\027ThumbnailIma"
+ + "geAlignment\022)\n%THUMBNAIL_IMAGE_ALIGNMENT"
+ + "_UNSPECIFIED\020\000\022\010\n\004LEFT\020\001\022\t\n\005RIGHT\020\002\032\271\003\n\016"
+ + "RbmCardContent\022\r\n\005title\030\001 \001(\t\022\023\n\013descrip"
+ + "tion\030\002 \001(\t\022V\n\005media\030\003 \001(\0132G.google.cloud"
+ + ".dialogflow.v2beta1.Intent.Message.RbmCa"
+ + "rdContent.RbmMedia\022R\n\013suggestions\030\004 \003(\0132"
+ + "=.google.cloud.dialogflow.v2beta1.Intent"
+ + ".Message.RbmSuggestion\032\326\001\n\010RbmMedia\022\020\n\010f"
+ + "ile_uri\030\001 \001(\t\022\025\n\rthumbnail_uri\030\002 \001(\t\022^\n\006"
+ + "height\030\003 \001(\0162N.google.cloud.dialogflow.v"
+ + "2beta1.Intent.Message.RbmCardContent.Rbm"
+ + "Media.Height\"A\n\006Height\022\026\n\022HEIGHT_UNSPECI"
+ + "FIED\020\000\022\t\n\005SHORT\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004TALL\020\003\032"
+ + "\307\001\n\rRbmSuggestion\022R\n\005reply\030\001 \001(\0132A.googl"
+ + "e.cloud.dialogflow.v2beta1.Intent.Messag"
+ + "e.RbmSuggestedReplyH\000\022T\n\006action\030\002 \001(\0132B."
+ + "google.cloud.dialogflow.v2beta1.Intent.M"
+ + "essage.RbmSuggestedActionH\000B\014\n\nsuggestio"
+ + "n\0328\n\021RbmSuggestedReply\022\014\n\004text\030\001 \001(\t\022\025\n\r"
+ + "postback_data\030\002 \001(\t\032\233\004\n\022RbmSuggestedActi"
+ + "on\022\014\n\004text\030\001 \001(\t\022\025\n\rpostback_data\030\002 \001(\t\022"
+ + "i\n\004dial\030\003 \001(\0132Y.google.cloud.dialogflow."
+ + "v2beta1.Intent.Message.RbmSuggestedActio"
+ + "n.RbmSuggestedActionDialH\000\022p\n\010open_url\030\004"
+ + " \001(\0132\\.google.cloud.dialogflow.v2beta1.I"
+ + "ntent.Message.RbmSuggestedAction.RbmSugg"
+ + "estedActionOpenUriH\000\022|\n\016share_location\030\005"
+ + " \001(\0132b.google.cloud.dialogflow.v2beta1.I"
+ + "ntent.Message.RbmSuggestedAction.RbmSugg"
+ + "estedActionShareLocationH\000\032.\n\026RbmSuggest"
+ + "edActionDial\022\024\n\014phone_number\030\001 \001(\t\032(\n\031Rb"
+ + "mSuggestedActionOpenUri\022\013\n\003uri\030\001 \001(\t\032!\n\037"
+ + "RbmSuggestedActionShareLocationB\010\n\006actio"
+ + "n\"\257\001\n\010Platform\022\030\n\024PLATFORM_UNSPECIFIED\020\000"
+ + "\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRAM\020\003\022"
+ + "\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIBER\020\007"
+ + "\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\r\n\tTELEPHONY\020\n\022\023"
+ + "\n\017GOOGLE_HANGOUTS\020\013B\t\n\007message\032W\n\022Follow"
+ + "upIntentInfo\022\034\n\024followup_intent_name\030\001 \001"
+ + "(\t\022#\n\033parent_followup_intent_name\030\002 \001(\t\""
+ + "t\n\014WebhookState\022\035\n\031WEBHOOK_STATE_UNSPECI"
+ + "FIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLED\020\001\022*\n&WEB"
+ + "HOOK_STATE_ENABLED_FOR_SLOT_FILLING\020\002\"\244\001"
+ + "\n\022ListIntentsRequest\022\016\n\006parent\030\001 \001(\t\022\025\n\r"
+ + "language_code\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\016"
+ + "2+.google.cloud.dialogflow.v2beta1.Inten"
+ + "tView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005"
+ + " \001(\t\"h\n\023ListIntentsResponse\0228\n\007intents\030\001"
+ + " \003(\0132\'.google.cloud.dialogflow.v2beta1.I"
+ + "ntent\022\027\n\017next_page_token\030\002 \001(\t\"y\n\020GetInt"
+ + "entRequest\022\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_cod"
+ + "e\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\0162+.google.cl"
+ + "oud.dialogflow.v2beta1.IntentView\"\267\001\n\023Cr"
+ + "eateIntentRequest\022\016\n\006parent\030\001 \001(\t\0227\n\006int"
+ + "ent\030\002 \001(\0132\'.google.cloud.dialogflow.v2be"
+ + "ta1.Intent\022\025\n\rlanguage_code\030\003 \001(\t\022@\n\013int"
+ + "ent_view\030\004 \001(\0162+.google.cloud.dialogflow"
+ + ".v2beta1.IntentView\"\330\001\n\023UpdateIntentRequ"
+ + "est\0227\n\006intent\030\001 \001(\0132\'.google.cloud.dialo"
+ + "gflow.v2beta1.Intent\022\025\n\rlanguage_code\030\002 "
+ + "\001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.protob"
+ + "uf.FieldMask\022@\n\013intent_view\030\004 \001(\0162+.goog"
+ + "le.cloud.dialogflow.v2beta1.IntentView\"#"
+ + "\n\023DeleteIntentRequest\022\014\n\004name\030\001 \001(\t\"\256\002\n\031"
+ + "BatchUpdateIntentsRequest\022\016\n\006parent\030\001 \001("
+ + "\t\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023intent_"
+ + "batch_inline\030\003 \001(\0132,.google.cloud.dialog"
+ + "flow.v2beta1.IntentBatchH\000\022\025\n\rlanguage_c"
+ + "ode\030\004 \001(\t\022/\n\013update_mask\030\005 \001(\0132\032.google."
+ + "protobuf.FieldMask\022@\n\013intent_view\030\006 \001(\0162"
+ + "+.google.cloud.dialogflow.v2beta1.Intent"
+ + "ViewB\016\n\014intent_batch\"V\n\032BatchUpdateInten"
+ + "tsResponse\0228\n\007intents\030\001 \003(\0132\'.google.clo"
+ + "ud.dialogflow.v2beta1.Intent\"e\n\031BatchDel"
+ + "eteIntentsRequest\022\016\n\006parent\030\001 \001(\t\0228\n\007int"
+ + "ents\030\002 \003(\0132\'.google.cloud.dialogflow.v2b"
+ + "eta1.Intent\"G\n\013IntentBatch\0228\n\007intents\030\001 "
+ + "\003(\0132\'.google.cloud.dialogflow.v2beta1.In"
+ + "tent*?\n\nIntentView\022\033\n\027INTENT_VIEW_UNSPEC"
+ + "IFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\0012\254\n\n\007Intent"
+ + "s\022\254\001\n\013ListIntents\0223.google.cloud.dialogf"
+ + "low.v2beta1.ListIntentsRequest\0324.google."
+ + "cloud.dialogflow.v2beta1.ListIntentsResp"
+ + "onse\"2\202\323\344\223\002,\022*/v2beta1/{parent=projects/"
+ + "*/agent}/intents\022\233\001\n\tGetIntent\0221.google."
+ + "cloud.dialogflow.v2beta1.GetIntentReques"
+ + "t\032\'.google.cloud.dialogflow.v2beta1.Inte"
+ + "nt\"2\202\323\344\223\002,\022*/v2beta1/{name=projects/*/ag"
+ + "ent/intents/*}\022\251\001\n\014CreateIntent\0224.google"
+ + ".cloud.dialogflow.v2beta1.CreateIntentRe"
+ + "quest\032\'.google.cloud.dialogflow.v2beta1."
+ + "Intent\":\202\323\344\223\0024\"*/v2beta1/{parent=project"
+ + "s/*/agent}/intents:\006intent\022\260\001\n\014UpdateInt"
+ + "ent\0224.google.cloud.dialogflow.v2beta1.Up"
+ + "dateIntentRequest\032\'.google.cloud.dialogf"
+ + "low.v2beta1.Intent\"A\202\323\344\223\002;21/v2beta1/{in"
+ + "tent.name=projects/*/agent/intents/*}:\006i"
+ + "ntent\022\220\001\n\014DeleteIntent\0224.google.cloud.di"
+ + "alogflow.v2beta1.DeleteIntentRequest\032\026.g"
+ + "oogle.protobuf.Empty\"2\202\323\344\223\002,**/v2beta1/{"
+ + "name=projects/*/agent/intents/*}\022\262\001\n\022Bat"
+ + "chUpdateIntents\022:.google.cloud.dialogflo"
+ + "w.v2beta1.BatchUpdateIntentsRequest\032\035.go"
+ + "ogle.longrunning.Operation\"A\202\323\344\223\002;\"6/v2b"
+ + "eta1/{parent=projects/*/agent}/intents:b"
+ + "atchUpdate:\001*\022\262\001\n\022BatchDeleteIntents\022:.g"
+ + "oogle.cloud.dialogflow.v2beta1.BatchDele"
+ + "teIntentsRequest\032\035.google.longrunning.Op"
+ + "eration\"A\202\323\344\223\002;\"6/v2beta1/{parent=projec"
+ + "ts/*/agent}/intents:batchDelete:\001*\032x\312A\031d"
+ + "ialogflow.googleapis.com\322AYhttps://www.g"
+ + "oogleapis.com/auth/cloud-platform,https:"
+ + "//www.googleapis.com/auth/dialogflowB\251\001\n"
+ + "#com.google.cloud.dialogflow.v2beta1B\013In"
+ + "tentProtoP\001ZIgoogle.golang.org/genproto/"
+ + "googleapis/cloud/dialogflow/v2beta1;dial"
+ + "ogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow"
+ + ".V2beta1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -480,6 +585,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"TelephonyPlayAudio",
"TelephonySynthesizeSpeech",
"TelephonyTransferCall",
+ "RbmText",
+ "RbmStandaloneRichCard",
+ "RbmCarouselRichCard",
"Platform",
"Message",
});
@@ -693,6 +801,114 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new java.lang.String[] {
"PhoneNumber",
});
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(16);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor,
+ new java.lang.String[] {
+ "Text", "RbmSuggestion",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(17);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor,
+ new java.lang.String[] {
+ "CardWidth", "CardContents",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(18);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor,
+ new java.lang.String[] {
+ "CardOrientation", "ThumbnailImageAlignment", "CardContent",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(19);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor,
+ new java.lang.String[] {
+ "Title", "Description", "Media", "Suggestions",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor,
+ new java.lang.String[] {
+ "FileUri", "ThumbnailUri", "Height",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(20);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor,
+ new java.lang.String[] {
+ "Reply", "Action", "Suggestion",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(21);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor,
+ new java.lang.String[] {
+ "Text", "PostbackData",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(22);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor,
+ new java.lang.String[] {
+ "Text", "PostbackData", "Dial", "OpenUrl", "ShareLocation", "Action",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor,
+ new java.lang.String[] {
+ "PhoneNumber",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor,
+ new java.lang.String[] {
+ "Uri",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor,
+ new java.lang.String[] {});
internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor =
internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor.getNestedTypes().get(3);
internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_fieldAccessorTable =
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java
index 60dc0894162c..6ecaff97ea12 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java
@@ -831,6 +831,10 @@ public com.google.cloud.dialogflow.v2beta1.IntentOrBuilder getIntentOrBuilder()
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
@@ -3709,6 +3713,10 @@ public com.google.cloud.dialogflow.v2beta1.IntentOrBuilder getIntentOrBuilder()
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
@@ -3724,6 +3732,10 @@ public float getIntentDetectionConfidence() {
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
@@ -3742,6 +3754,10 @@ public Builder setIntentDetectionConfidence(float value) {
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java
index 9fc9532929b6..89f61ed1de01 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java
@@ -398,6 +398,10 @@ com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getFulfillmentMessag
*
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * This value is for informational purpose only and is only used to
+ * help match the best intent within the classification threshold.
+ * This value may change for the same end-user expression at any time due to a
+ * model retraining or change in implementation.
* If there are `multiple knowledge_answers` messages, this value is set to
* the greatest `knowledgeAnswers.match_confidence` value in the list.
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java
index 1ba3d396ed7a..129baeaacbfa 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java
@@ -11,9 +11,9 @@
* `StreamingDetectIntent` method.
* Multiple request messages should be sent in order:
* 1. The first message must contain `session`, `query_input` plus optionally
- * `query_params` and/or `single_utterance`. If the client wants to receive
- * an audio response, it should also contain `output_audio_config`.
- * The message must not contain `input_audio`.
+ * `query_params`. If the client wants to receive an audio response, it
+ * should also contain `output_audio_config`. The message must not contain
+ * `input_audio`.
* 2. If `query_input` was set to a streaming input audio config,
* all subsequent messages must contain `input_audio`. Otherwise, finish the request stream.
*
@@ -173,7 +173,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -202,7 +202,7 @@ public java.lang.String getSession() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -321,6 +321,7 @@ public com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder getQueryInputOrBu
*
*
*
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
* Optional. If `false` (default), recognition does not cease until the
* client closes the stream.
* If `true`, the recognizer will detect a single spoken utterance in input
@@ -630,9 +631,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* `StreamingDetectIntent` method.
* Multiple request messages should be sent in order:
* 1. The first message must contain `session`, `query_input` plus optionally
- * `query_params` and/or `single_utterance`. If the client wants to receive
- * an audio response, it should also contain `output_audio_config`.
- * The message must not contain `input_audio`.
+ * `query_params`. If the client wants to receive an audio response, it
+ * should also contain `output_audio_config`. The message must not contain
+ * `input_audio`.
* 2. If `query_input` was set to a streaming input audio config,
* all subsequent messages must contain `input_audio`. Otherwise, finish the request stream.
*
@@ -859,7 +860,7 @@ public Builder mergeFrom(
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -888,7 +889,7 @@ public java.lang.String getSession() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -917,7 +918,7 @@ public com.google.protobuf.ByteString getSessionBytes() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -944,7 +945,7 @@ public Builder setSession(java.lang.String value) {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -968,7 +969,7 @@ public Builder clearSession() {
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -1391,6 +1392,7 @@ public com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder getQueryInputOrBu
*
*
*
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
* Optional. If `false` (default), recognition does not cease until the
* client closes the stream.
* If `true`, the recognizer will detect a single spoken utterance in input
@@ -1410,6 +1412,7 @@ public boolean getSingleUtterance() {
*
*
*
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
* Optional. If `false` (default), recognition does not cease until the
* client closes the stream.
* If `true`, the recognizer will detect a single spoken utterance in input
@@ -1432,6 +1435,7 @@ public Builder setSingleUtterance(boolean value) {
*
*
*
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
* Optional. If `false` (default), recognition does not cease until the
* client closes the stream.
* If `true`, the recognizer will detect a single spoken utterance in input
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java
index 0ddd077a357e..a8bd8eb86847 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java
@@ -19,7 +19,7 @@ public interface StreamingDetectIntentRequestOrBuilder
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -38,7 +38,7 @@ public interface StreamingDetectIntentRequestOrBuilder
* ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
* default 'draft' environment. If `User ID` is not specified, we are using
* "-". It's up to the API caller to choose an appropriate `Session ID` and
- * `User Id`. They can be a random numbers or some type of user and session
+ * `User Id`. They can be a random number or some type of user and session
* identifiers (preferably hashed). The length of the `Session ID` and
* `User ID` must not exceed 36 characters.
*
@@ -125,6 +125,7 @@ public interface StreamingDetectIntentRequestOrBuilder
*
*
*
+ * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
* Optional. If `false` (default), recognition does not cease until the
* client closes the stream.
* If `true`, the recognizer will detect a single spoken utterance in input
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java
index 1473d943ea3e..7bb684d8f7b7 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java
@@ -18,15 +18,15 @@
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
* `is_final: true`). Concatenating these generates the full transcript: "to be
* or not to be that is the question".
* In each response we populate:
- * * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
+ * * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
+ * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.StreamingRecognitionResult}
@@ -368,7 +368,7 @@ public int getMessageTypeValue() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -389,7 +389,7 @@ public java.lang.String getTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -415,7 +415,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -454,7 +454,7 @@ public float getConfidence() {
* not change its guess about this interim recognition result:
* * If the value is unspecified or 0.0, Dialogflow didn't compute the
* stability. In particular, Dialogflow will only provide stability for
- * `MESSAGE_TYPE_TRANSCRIPT` results with `is_final = false`.
+ * `TRANSCRIPT` results with `is_final = false`.
* * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
* unstable and 1.0 means completely stable.
*
@@ -472,8 +472,8 @@ public float getStability() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -487,8 +487,8 @@ public float getStability() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -502,8 +502,8 @@ public float getStability() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -516,8 +516,8 @@ public int getSpeechWordInfoCount() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -530,8 +530,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfo getSpeechWordInfo(int
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -548,8 +548,7 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfoOrBuilder getSpeechWord
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -562,8 +561,7 @@ public boolean hasSpeechEndOffset() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -578,8 +576,7 @@ public com.google.protobuf.Duration getSpeechEndOffset() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -832,15 +829,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
* `is_final: true`). Concatenating these generates the full transcript: "to be
* or not to be that is the question".
* In each response we populate:
- * * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
+ * * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
+ * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.StreamingRecognitionResult}
@@ -1182,7 +1179,7 @@ public Builder clearMessageType() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -1203,7 +1200,7 @@ public java.lang.String getTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -1224,7 +1221,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -1243,7 +1240,7 @@ public Builder setTranscript(java.lang.String value) {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -1259,7 +1256,7 @@ public Builder clearTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -1283,7 +1280,7 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1298,7 +1295,7 @@ public boolean getIsFinal() {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1316,7 +1313,7 @@ public Builder setIsFinal(boolean value) {
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1396,7 +1393,7 @@ public Builder clearConfidence() {
* not change its guess about this interim recognition result:
* * If the value is unspecified or 0.0, Dialogflow didn't compute the
* stability. In particular, Dialogflow will only provide stability for
- * `MESSAGE_TYPE_TRANSCRIPT` results with `is_final = false`.
+ * `TRANSCRIPT` results with `is_final = false`.
* * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
* unstable and 1.0 means completely stable.
*
@@ -1414,7 +1411,7 @@ public float getStability() {
* not change its guess about this interim recognition result:
* * If the value is unspecified or 0.0, Dialogflow didn't compute the
* stability. In particular, Dialogflow will only provide stability for
- * `MESSAGE_TYPE_TRANSCRIPT` results with `is_final = false`.
+ * `TRANSCRIPT` results with `is_final = false`.
* * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
* unstable and 1.0 means completely stable.
*
@@ -1435,7 +1432,7 @@ public Builder setStability(float value) {
* not change its guess about this interim recognition result:
* * If the value is unspecified or 0.0, Dialogflow didn't compute the
* stability. In particular, Dialogflow will only provide stability for
- * `MESSAGE_TYPE_TRANSCRIPT` results with `is_final = false`.
+ * `TRANSCRIPT` results with `is_final = false`.
* * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
* unstable and 1.0 means completely stable.
*
@@ -1472,8 +1469,8 @@ private void ensureSpeechWordInfoIsMutable() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1491,8 +1488,8 @@ private void ensureSpeechWordInfoIsMutable() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1509,8 +1506,8 @@ public int getSpeechWordInfoCount() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1527,8 +1524,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfo getSpeechWordInfo(int
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1552,8 +1549,8 @@ public Builder setSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1574,8 +1571,8 @@ public Builder setSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1598,8 +1595,8 @@ public Builder addSpeechWordInfo(com.google.cloud.dialogflow.v2beta1.SpeechWordI
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1623,8 +1620,8 @@ public Builder addSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1645,8 +1642,8 @@ public Builder addSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1667,8 +1664,8 @@ public Builder addSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1689,8 +1686,8 @@ public Builder addAllSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1710,8 +1707,8 @@ public Builder clearSpeechWordInfo() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1731,8 +1728,8 @@ public Builder removeSpeechWordInfo(int index) {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1746,8 +1743,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfo.Builder getSpeechWordI
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1765,8 +1762,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfoOrBuilder getSpeechWord
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1784,8 +1781,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfoOrBuilder getSpeechWord
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1799,8 +1796,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfo.Builder addSpeechWordI
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1816,8 +1813,8 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfo.Builder addSpeechWordI
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -1858,8 +1855,7 @@ public com.google.cloud.dialogflow.v2beta1.SpeechWordInfo.Builder addSpeechWordI
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -1872,8 +1868,7 @@ public boolean hasSpeechEndOffset() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -1892,8 +1887,7 @@ public com.google.protobuf.Duration getSpeechEndOffset() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -1916,8 +1910,7 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -1937,8 +1930,7 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderFo
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -1965,8 +1957,7 @@ public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -1987,8 +1978,7 @@ public Builder clearSpeechEndOffset() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -2003,8 +1993,7 @@ public com.google.protobuf.Duration.Builder getSpeechEndOffsetBuilder() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -2023,8 +2012,7 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndOffsetOrBuilder() {
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java
index 88d453845ed4..4d42c22bfda5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java
@@ -36,7 +36,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -47,7 +47,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -61,7 +61,7 @@ public interface StreamingRecognitionResultOrBuilder
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ * for `message_type` = `TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -92,7 +92,7 @@ public interface StreamingRecognitionResultOrBuilder
* not change its guess about this interim recognition result:
* * If the value is unspecified or 0.0, Dialogflow didn't compute the
* stability. In particular, Dialogflow will only provide stability for
- * `MESSAGE_TYPE_TRANSCRIPT` results with `is_final = false`.
+ * `TRANSCRIPT` results with `is_final = false`.
* * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
* unstable and 1.0 means completely stable.
*
@@ -106,8 +106,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -118,8 +118,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -130,8 +130,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -142,8 +142,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -155,8 +155,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ * [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [InputAudioConfig.enable_word_info] is set.
*
*
* repeated .google.cloud.dialogflow.v2beta1.SpeechWordInfo speech_word_info = 7;
@@ -168,8 +168,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -180,8 +179,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
@@ -192,8 +190,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Time offset of the end of this Speech recognition result relative to the
- * beginning of the audio. Only populated for `message_type` =
- * `MESSAGE_TYPE_TRANSCRIPT`.
+ * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
*
*
* .google.protobuf.Duration speech_end_offset = 8;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto
index 3df1b954f014..3de27b94161d 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto
@@ -193,6 +193,18 @@ message InputAudioConfig {
// Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
SpeechModelVariant model_variant = 10;
+
+ // Optional. If `false` (default), recognition does not cease until the
+ // client closes the stream.
+ // If `true`, the recognizer will detect a single spoken utterance in input
+ // audio. Recognition ceases when it detects the audio's voice has
+ // stopped or paused. In this case, once a detected intent is received, the
+ // client should close the stream and start a new request with a new stream as
+ // needed.
+ // Note: This setting is relevant only for streaming methods.
+ // Note: When specified, InputAudioConfig.single_utterance takes precedence
+ // over StreamingDetectIntentRequest.single_utterance.
+ bool single_utterance = 8;
}
// Description of which voice to use for speech synthesis.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto
index a5337406405c..5daf85593df3 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto
@@ -21,6 +21,7 @@ import "google/api/annotations.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
import "google/api/client.proto";
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto
index b9f2f801a47b..ddd1234b1849 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto
@@ -484,6 +484,241 @@ message Intent {
string phone_number = 1;
}
+ // Rich Business Messaging (RBM) text response with suggestions.
+ message RbmText {
+ // Required. Text sent and displayed to the user.
+ string text = 1;
+
+ // Optional. One or more suggestions to show to the user.
+ repeated RbmSuggestion rbm_suggestion = 2;
+ }
+
+ // Carousel Rich Business Messaging (RBM) rich card.
+ //
+ // Rich cards allow you to respond to users with more vivid content, e.g.
+ // with media and suggestions.
+ //
+ // For more details about RBM rich cards, please see:
+ // https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
+ // If you want to show a single card with more control over the layout,
+ // please use [RbmStandaloneCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard] instead.
+ message RbmCarouselCard {
+ // The width of the cards in the carousel.
+ enum CardWidth {
+ // Not specified.
+ CARD_WIDTH_UNSPECIFIED = 0;
+
+ // 120 DP. Note that tall media cannot be used.
+ SMALL = 1;
+
+ // 232 DP.
+ MEDIUM = 2;
+ }
+
+ // Required. The width of the cards in the carousel.
+ CardWidth card_width = 1;
+
+ // Required. The cards in the carousel. A carousel must have at least
+ // 2 cards and at most 10.
+ repeated RbmCardContent card_contents = 2;
+ }
+
+ // Standalone Rich Business Messaging (RBM) rich card.
+ //
+ // Rich cards allow you to respond to users with more vivid content, e.g.
+ // with media and suggestions.
+ //
+ // For more details about RBM rich cards, please see:
+ // https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
+ // You can group multiple rich cards into one using [RbmCarouselCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard] but
+ // carousel cards will give you less control over the card layout.
+ message RbmStandaloneCard {
+ // Orientation of the card.
+ enum CardOrientation {
+ // Not specified.
+ CARD_ORIENTATION_UNSPECIFIED = 0;
+
+ // Horizontal layout.
+ HORIZONTAL = 1;
+
+ // Vertical layout.
+ VERTICAL = 2;
+ }
+
+ // Thumbnail preview alignment for standalone cards with horizontal
+ // layout.
+ enum ThumbnailImageAlignment {
+ // Not specified.
+ THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED = 0;
+
+ // Thumbnail preview is left-aligned.
+ LEFT = 1;
+
+ // Thumbnail preview is right-aligned.
+ RIGHT = 2;
+ }
+
+ // Required. Orientation of the card.
+ CardOrientation card_orientation = 1;
+
+ // Required if orientation is horizontal.
+ // Image preview alignment for standalone cards with horizontal layout.
+ ThumbnailImageAlignment thumbnail_image_alignment = 2;
+
+ // Required. Card content.
+ RbmCardContent card_content = 3;
+ }
+
+ // Rich Business Messaging (RBM) Card content
+ message RbmCardContent {
+ // Rich Business Messaging (RBM) Media displayed in Cards
+ // The following media-types are currently supported:
+ //
+ // ## Image Types
+ //
+ // image/jpeg
+ // image/jpg'
+ // image/gif
+ // image/png
+ //
+ // ## Video Types
+ //
+ // video/h263
+ // video/m4v
+ // video/mp4
+ // video/mpeg
+ // video/mpeg4
+ // video/webm
+ message RbmMedia {
+ // Media height
+ enum Height {
+ // Not specified.
+ HEIGHT_UNSPECIFIED = 0;
+
+ // 112 DP.
+ SHORT = 1;
+
+ // 168 DP.
+ MEDIUM = 2;
+
+ // 264 DP. Not available for rich card carousels when the card width
+ // is set to small.
+ TALL = 3;
+ }
+
+ // Required. Publicly reachable URI of the file. The RBM platform
+ // determines the MIME type of the file from the content-type field in
+ // the HTTP headers when the platform fetches the file. The content-type
+ // field must be present and accurate in the HTTP response from the URL.
+ string file_uri = 1;
+
+ // Optional. Publicly reachable URI of the thumbnail.If you don't
+ // provide a thumbnail URI, the RBM platform displays a blank
+ // placeholder thumbnail until the user's device downloads the file.
+ // Depending on the user's setting, the file may not download
+ // automatically and may require the user to tap a download button.
+ string thumbnail_uri = 2;
+
+ // Required for cards with vertical orientation. The height of the media
+ // within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
+ // For a standalone card with horizontal layout, height is not
+ // customizable, and this field is ignored.
+ Height height = 3;
+ }
+
+ // Optional. Title of the card (at most 200 bytes).
+ //
+ // At least one of the title, description or media must be set.
+ string title = 1;
+
+ // Optional. Description of the card (at most 2000 bytes).
+ //
+ // At least one of the title, description or media must be set.
+ string description = 2;
+
+ // Optional. However at least one of the title, description or media must
+ // be set. Media (image, GIF or a video) to include in the card.
+ RbmMedia media = 3;
+
+ // Optional. List of suggestions to include in the card.
+ repeated RbmSuggestion suggestions = 4;
+ }
+
+ // Rich Business Messaging (RBM) suggestion. Suggestions allow user to
+ // easily select/click a predefined response or perform an action (like
+ // opening a web uri).
+ message RbmSuggestion {
+ // Predefined suggested response or action for user to choose
+ oneof suggestion {
+ // Predefined replies for user to select instead of typing
+ RbmSuggestedReply reply = 1;
+
+ // Predefined client side actions that user can choose
+ RbmSuggestedAction action = 2;
+ }
+ }
+
+ // Rich Business Messaging (RBM) suggested reply that the user can click
+ // instead of typing in their own response.
+ message RbmSuggestedReply {
+ // Suggested reply text.
+ string text = 1;
+
+ // Opaque payload that the Dialogflow receives in a user event
+ // when the user taps the suggested reply. This data will be also
+ // forwarded to webhook to allow performing custom business logic.
+ string postback_data = 2;
+ }
+
+ // Rich Business Messaging (RBM) suggested client-side action that the user
+ // can choose from the card.
+ message RbmSuggestedAction {
+ // Opens the user's default dialer app with the specified phone number
+ // but does not dial automatically (https://goo.gl/ergbB2).
+ message RbmSuggestedActionDial {
+ // Required. The phone number to fill in the default dialer app.
+ // This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
+ // format. An example of a correctly formatted phone number:
+ // +15556767888.
+ string phone_number = 1;
+ }
+
+ // Opens the user's default web browser app to the specified uri
+ // (https://goo.gl/6GLJD2). If the user has an app installed that is
+ // registered as the default handler for the URL, then this app will be
+ // opened instead, and its icon will be used in the suggested action UI.
+ message RbmSuggestedActionOpenUri {
+ // Required. The uri to open on the user device
+ string uri = 1;
+ }
+
+ // Opens the device's location chooser so the user can pick a location
+ // to send back to the agent (https://goo.gl/GXotJW).
+ message RbmSuggestedActionShareLocation {
+
+ }
+
+ // Text to display alongside the action.
+ string text = 1;
+
+ // Opaque payload that the Dialogflow receives in a user event
+ // when the user taps the suggested action. This data will be also
+ // forwarded to webhook to allow performing custom business logic.
+ string postback_data = 2;
+
+ // Action that needs to be triggered.
+ oneof action {
+ // Suggested client side action: Dial a phone number
+ RbmSuggestedActionDial dial = 3;
+
+ // Suggested client side action: Open a URI on device
+ RbmSuggestedActionOpenUri open_url = 4;
+
+ // Suggested client side action: Share user location
+ RbmSuggestedActionShareLocation share_location = 5;
+ }
+ }
+
// Represents different platforms that a rich message can be intended for.
enum Platform {
// Not specified.
@@ -625,6 +860,18 @@ message Intent {
// Transfers the call in Telephony Gateway.
TelephonyTransferCall telephony_transfer_call = 15;
+
+ // Rich Business Messaging (RBM) text response.
+ //
+ // RBM allows businesses to send enriched and branded versions of SMS. See
+ // https://jibe.google.com/business-messaging.
+ RbmText rbm_text = 18;
+
+ // Standalone Rich Business Messaging (RBM) rich card response.
+ RbmStandaloneCard rbm_standalone_rich_card = 19;
+
+ // Rich Business Messaging (RBM) carousel rich card response.
+ RbmCarouselCard rbm_carousel_rich_card = 20;
}
// Optional. The platform that this message is intended for.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto
index 7307e2c15906..8d0f91f4597a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto
@@ -77,7 +77,7 @@ message DetectIntentRequest {
// ID>/sessions/`. If `Environment ID` is not specified, we assume
// default 'draft' environment. If `User ID` is not specified, we are using
// "-". It's up to the API caller to choose an appropriate `Session ID` and
- // `User Id`. They can be a random numbers or some type of user and session
+ // `User Id`. They can be a random number or some type of user and session
// identifiers (preferably hashed). The length of the `Session ID` and
// `User ID` must not exceed 36 characters.
string session = 1;
@@ -275,6 +275,10 @@ message QueryResult {
// The intent detection confidence. Values range from 0.0
// (completely uncertain) to 1.0 (completely certain).
+ // This value is for informational purpose only and is only used to
+ // help match the best intent within the classification threshold.
+ // This value may change for the same end-user expression at any time due to a
+ // model retraining or change in implementation.
// If there are `multiple knowledge_answers` messages, this value is set to
// the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;
@@ -355,9 +359,9 @@ message KnowledgeAnswers {
// Multiple request messages should be sent in order:
//
// 1. The first message must contain `session`, `query_input` plus optionally
-// `query_params` and/or `single_utterance`. If the client wants to receive
-// an audio response, it should also contain `output_audio_config`.
-// The message must not contain `input_audio`.
+// `query_params`. If the client wants to receive an audio response, it
+// should also contain `output_audio_config`. The message must not contain
+// `input_audio`.
// 2. If `query_input` was set to a streaming input audio config,
// all subsequent messages must contain `input_audio`. Otherwise, finish the request stream.
message StreamingDetectIntentRequest {
@@ -368,7 +372,7 @@ message StreamingDetectIntentRequest {
// ID>/sessions/`. If `Environment ID` is not specified, we assume
// default 'draft' environment. If `User ID` is not specified, we are using
// "-". It's up to the API caller to choose an appropriate `Session ID` and
- // `User Id`. They can be a random numbers or some type of user and session
+ // `User Id`. They can be a random number or some type of user and session
// identifiers (preferably hashed). The length of the `Session ID` and
// `User ID` must not exceed 36 characters.
string session = 1;
@@ -386,6 +390,7 @@ message StreamingDetectIntentRequest {
// 3. an event that specifies which intent to trigger.
QueryInput query_input = 3;
+ // DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
// Optional. If `false` (default), recognition does not cease until the
// client closes the stream.
// If `true`, the recognizer will detect a single spoken utterance in input
@@ -480,7 +485,7 @@ message StreamingDetectIntentResponse {
//
// 6. transcript: " that is"
//
-// 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
+// 7. message_type: `END_OF_SINGLE_UTTERANCE`
//
// 8. transcript: " that is the question"
// is_final: true
@@ -491,9 +496,9 @@ message StreamingDetectIntentResponse {
//
// In each response we populate:
//
-// * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
+// * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
//
-// * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
+// * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
message StreamingRecognitionResult {
// Type of the response message.
enum MessageType {
@@ -517,13 +522,13 @@ message StreamingRecognitionResult {
MessageType message_type = 1;
// Transcript text representing the words that the user spoke.
- // Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ // Populated if and only if `message_type` = `TRANSCRIPT`.
string transcript = 2;
// If `false`, the `StreamingRecognitionResult` represents an
// interim result that may change. If `true`, the recognizer will not return
// any further hypotheses about this piece of the audio. May only be populated
- // for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
+ // for `message_type` = `TRANSCRIPT`.
bool is_final = 3;
// The Speech confidence between 0.0 and 1.0 for the current portion of audio.
@@ -539,19 +544,18 @@ message StreamingRecognitionResult {
// not change its guess about this interim recognition result:
// * If the value is unspecified or 0.0, Dialogflow didn't compute the
// stability. In particular, Dialogflow will only provide stability for
- // `MESSAGE_TYPE_TRANSCRIPT` results with `is_final = false`.
+ // `TRANSCRIPT` results with `is_final = false`.
// * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
// unstable and 1.0 means completely stable.
float stability = 6;
// Word-specific information for the words recognized by Speech in
- // [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` =
- // `MESSAGE_TYPE_TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set.
+ // [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ // [InputAudioConfig.enable_word_info] is set.
repeated SpeechWordInfo speech_word_info = 7;
// Time offset of the end of this Speech recognition result relative to the
- // beginning of the audio. Only populated for `message_type` =
- // `MESSAGE_TYPE_TRANSCRIPT`.
+ // beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
google.protobuf.Duration speech_end_offset = 8;
}
diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
index c73293f882cb..5bab3e03d982 100644
--- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
+++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
@@ -168,7 +168,7 @@ public SessionsStub getStub() {
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
* ID>`. If `Environment ID` is not specified, we assume default 'draft' environment. If
* `User ID` is not specified, we are using "-". It's up to the API caller to choose an
- * appropriate `Session ID` and `User Id`. They can be a random numbers or some type of user
+ * appropriate `Session ID` and `User Id`. They can be a random number or some type of user
* and session identifiers (preferably hashed). The length of the `Session ID` and `User ID`
* must not exceed 36 characters.
* @param queryInput Required. The input specification. It can be set to:
@@ -209,7 +209,7 @@ public final DetectIntentResponse detectIntent(SessionName session, QueryInput q
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
* ID>`. If `Environment ID` is not specified, we assume default 'draft' environment. If
* `User ID` is not specified, we are using "-". It's up to the API caller to choose an
- * appropriate `Session ID` and `User Id`. They can be a random numbers or some type of user
+ * appropriate `Session ID` and `User Id`. They can be a random number or some type of user
* and session identifiers (preferably hashed). The length of the `Session ID` and `User ID`
* must not exceed 36 characters.
* @param queryInput Required. The input specification. It can be set to:
diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.metadata b/google-cloud-clients/google-cloud-dialogflow/synth.metadata
index aeac2cfda323..e2773fb5c163 100644
--- a/google-cloud-clients/google-cloud-dialogflow/synth.metadata
+++ b/google-cloud-clients/google-cloud-dialogflow/synth.metadata
@@ -1,19 +1,19 @@
{
- "updateTime": "2019-07-03T17:13:09.486563Z",
+ "updateTime": "2019-07-12T07:42:12.957211Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.29.3",
- "dockerImage": "googleapis/artman@sha256:8900f94a81adaab0238965aa8a7b3648791f4f3a95ee65adc6a56cfcc3753101"
+ "version": "0.29.4",
+ "dockerImage": "googleapis/artman@sha256:63f21e83cb92680b7001dc381069e962c9e6dee314fd8365ac554c07c89221fb"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "91d9692c20e1c038df3214a4d2d7f5d931f86905",
- "internalRef": "256375941"
+ "sha": "47bd0c2ba33c28dd624a65dad382e02bb61d1618",
+ "internalRef": "257690259"
}
}
],