diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json index 7078612f4fb8..97c77e432a0e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json @@ -7253,6 +7253,132 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$EndInteraction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$EndInteraction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$LiveAgentHandoff", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$LiveAgentHandoff$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$MixedAudio", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$MixedAudio$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$MixedAudio$Segment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$MixedAudio$Segment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$TelephonyTransferCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$TelephonyTransferCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$Text", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.ResponseMessage$Text$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.RestoreAgentRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index 0e2923af1360..d9282ba2d829 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -102,7 +102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014start_offset\030\001 \001(\0132\031.google.protobuf.Duration\022-\n\n" + "end_offset\030\002 \001(\0132\031.google.protobuf.Duration\022\022\n" + "\n" - + "confidence\030\004 \001(\002\"\374\005\n" + + "confidence\030\004 \001(\002\"\330\006\n" + "\020InputAudioConfig\022G\n" + "\016audio_encoding\030\001" + " \001(\0162).google.cloud.dialogflow.v2.AudioEncodingB\004\342A\001\002\022\037\n" @@ -125,8 +125,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!opt_out_conformer_model_migration\030\032 \001(\010\022_\n" + "\021gemini_asr_config\030\036 \001(\0132>.google.cloud.dial" + "ogflow.v2.SpeechToTextConfig.GeminiAsrConfigB\004\342A\001\001\022!\n" - + "\016use_gemini_asr\030\037 \001(\010B\004\342A\001\001H\000\210\001\001B\021\n" - + "\017_use_gemini_asr\"r\n" + + "\016use_gemini_asr\030\037 \001(\010B\004\342A\001\001H\000\210\001\001\0224\n" + + "!disable_interim_input_transcripts\030 " + + " \001(\010B\004\342A\001\001H\001\210\001\001B\021\n" + + "\017_use_gemini_asrB$\n" + + "\"_disable_interim_input_transcripts\"r\n" + "\024VoiceSelectionParams\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\001\022F\n" + "\013ssml_gender\030\002" @@ -136,14 +139,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005pitch\030\002 \001(\001B\004\342A\001\001\022\034\n" + "\016volume_gain_db\030\003 \001(\001B\004\342A\001\001\022 \n" + "\022effects_profile_id\030\005 \003(\tB\004\342A\001\001\022E\n" - + "\005voice\030\004" - + " \001(\01320.google.cloud.dialogflow.v2.VoiceSelectionParamsB\004\342A\001\001\022S\n" - + "\016pronunciations\030\006 \003(\01325.google.cloud.dialogfl" - + "ow.v2.CustomPronunciationParamsB\004\342A\001\001\"\226\002\n" + + "\005voice\030\004 \001(\01320.google.cl" + + "oud.dialogflow.v2.VoiceSelectionParamsB\004\342A\001\001\022S\n" + + "\016pronunciations\030\006 \003(\01325.google.cl" + + "oud.dialogflow.v2.CustomPronunciationParamsB\004\342A\001\001\"\226\002\n" + "\031CustomPronunciationParams\022\016\n" + "\006phrase\030\001 \001(\t\022a\n" - + "\021phonetic_encoding\030\002 \001(\0162F.google." - + "cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding\022\025\n\r" + + "\021phonetic_encoding\030\002 \001" + + "(\0162F.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding\022\025\n\r" + "pronunciation\030\003 \001(\t\"o\n" + "\020PhoneticEncoding\022!\n" + "\035PHONETIC_ENCODING_UNSPECIFIED\020\000\022\031\n" @@ -153,14 +156,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016audio_encoding\030\001" + " \001(\0162/.google.cloud.dialogflow.v2.OutputAudioEncodingB\004\342A\001\002\022\031\n" + "\021sample_rate_hertz\030\002 \001(\005\022T\n" - + "\030synthesize_speech_config\030\003 \001(\013" - + "22.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n" + + "\030synthesize_speech_config\030\003" + + " \001(\01322.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n" + "\023TelephonyDtmfEvents\022>\n" + "\013dtmf_events\030\001" - + " \003(\0162).google.cloud.dialogflow.v2.TelephonyDtmf\"\231\010\n" + + " \003(\0162).google.cloud.dialogflow.v2.TelephonyDtmf\"\335\010\n" + "\022SpeechToTextConfig\022L\n" - + "\024speech_model_variant\030\001 \001(\0162..googl" - + "e.cloud.dialogflow.v2.SpeechModelVariant\022\r\n" + + "\024speech_model_variant\030\001" + + " \001(\0162..google.cloud.dialogflow.v2.SpeechModelVariant\022\r\n" + "\005model\030\002 \001(\t\0229\n" + "\013phrase_sets\030\004 \003(\tB$\372A!\n" + "\037speech.googleapis.com/PhraseSet\022A\n" @@ -170,17 +173,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "language_code\030\010 \001(\t\022\030\n" + "\020enable_word_info\030\t \001(\010\022%\n" + "\035use_timeout_based_endpointing\030\013 \001(\010\022_\n" - + "\021gemini_asr_config\030\017 " - + "\001(\0132>.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfigB\004\342A\001\001\022\034\n" - + "\016use_gemini_asr\030\020 \001(\010B\004\342A\001\001\032\265\004\n" - + "\017GeminiAsrConfig\022\026\n" - + "\010model_id\030\001 \001(\tB\004\342A\001\001\022!\n" + + "\021gemini_asr_config\030\017 \001(\0132>.google.cloud.dialogflo" + + "w.v2.SpeechToTextConfig.GeminiAsrConfigB\004\342A\001\001\022\034\n" + + "\016use_gemini_asr\030\020 \001(\010B\004\342A\001\001\0224\n" + + "!disable_interim_input_transcripts\030\021" + + " \001(\010B\004\342A\001\001H\000\210\001\001\032\235\004\n" + + "\017GeminiAsrConfig\022!\n" + "\023silence_duration_ms\030\002 \001(\005B\004\342A\001\001\022\037\n" + "\021prefix_padding_ms\030\003 \001(\005B\004\342A\001\001\022z\n" - + "\033start_of_speech_sensitivity\030\004 \001(\0162O.google.cloud.dialogflow.v" - + "2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivityB\004\342A\001\001\022v\n" - + "\031end_of_speech_sensitivity\030\005 \001(\0162M.google.cloud.dialogflow" - + ".v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivityB\004\342A\001\001\"l\n" + + "\033start_of_speech_sensitivity\030\004 \001(\0162O.google.cloud.dialogflow" + + ".v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivityB\004\342A\001\001\022v\n" + + "\031end_of_speech_sensitivity\030\005 \001(\0162M.google.cloud.dialogfl" + + "ow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivityB\004\342A\001\001\"l\n" + "\020StartSensitivity\022!\n" + "\035START_SENSITIVITY_UNSPECIFIED\020\000\022\032\n" + "\026START_SENSITIVITY_HIGH\020\001\022\031\n" @@ -188,7 +192,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016EndSensitivity\022\037\n" + "\033END_SENSITIVITY_UNSPECIFIED\020\000\022\030\n" + "\024END_SENSITIVITY_HIGH\020\001\022\027\n" - + "\023END_SENSITIVITY_LOW\020\002*\224\002\n\r" + + "\023END_SENSITIVITY_LOW\020\002B$\n" + + "\"_disable_interim_input_transcripts*\224\002\n\r" + "TelephonyDtmf\022\036\n" + "\032TELEPHONY_DTMF_UNSPECIFIED\020\000\022\014\n" + "\010DTMF_ONE\020\001\022\014\n" @@ -291,6 +296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptOutConformerModelMigration", "GeminiAsrConfig", "UseGeminiAsr", + "DisableInterimInputTranscripts", }); internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor = getDescriptor().getMessageType(3); @@ -353,6 +359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseTimeoutBasedEndpointing", "GeminiAsrConfig", "UseGeminiAsr", + "DisableInterimInputTranscripts", }); internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_GeminiAsrConfig_descriptor = internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_descriptor.getNestedType(0); @@ -360,7 +367,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_GeminiAsrConfig_descriptor, new java.lang.String[] { - "ModelId", "SilenceDurationMs", "PrefixPaddingMs", "StartOfSpeechSensitivity", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java index ae89c3576045..ddc0502b7380 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java @@ -52,8 +52,12 @@ private AutomatedAgentReply(com.google.protobuf.GeneratedMessage.Builder buil } private AutomatedAgentReply() { + responseMessages_ = java.util.Collections.emptyList(); + intent_ = ""; + event_ = ""; automatedAgentReplyType_ = 0; cxCurrentPage_ = ""; + callCompanionAuthCode_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -310,6 +314,270 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentRespon : detectIntentResponse_; } + public static final int RESPONSE_MESSAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List responseMessages_; + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + @java.lang.Override + public java.util.List getResponseMessagesList() { + return responseMessages_; + } + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + @java.lang.Override + public java.util.List + getResponseMessagesOrBuilderList() { + return responseMessages_; + } + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + @java.lang.Override + public int getResponseMessagesCount() { + return responseMessages_.size(); + } + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage getResponseMessages(int index) { + return responseMessages_.get(index); + } + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder getResponseMessagesOrBuilder( + int index) { + return responseMessages_.get(index); + } + + public static final int INTENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object intent_ = ""; + + /** + * + * + *
+   * Name of the intent if an intent is matched for the query.
+   * For a V2 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agent/intents/<Intent ID>`.
+   * For a V3 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+   * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return The intent. + */ + @java.lang.Override + public java.lang.String getIntent() { + java.lang.Object ref = intent_; + 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(); + intent_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the intent if an intent is matched for the query.
+   * For a V2 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agent/intents/<Intent ID>`.
+   * For a V3 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+   * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for intent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntentBytes() { + java.lang.Object ref = intent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + intent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; + + /** + * + * + *
+   * Event name if an event is triggered for the query.
+   * 
+ * + * string event = 5; + * + * @return The event. + */ + @java.lang.Override + public java.lang.String getEvent() { + java.lang.Object ref = event_; + 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(); + event_ = s; + return s; + } + } + + /** + * + * + *
+   * Event name if an event is triggered for the query.
+   * 
+ * + * string event = 5; + * + * @return The bytes for event. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCH_CONFIDENCE_FIELD_NUMBER = 9; + private float matchConfidence_ = 0F; + + /** + * + * + *
+   * The confidence of the match. 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.
+   * 
+ * + * float match_confidence = 9; + * + * @return The matchConfidence. + */ + @java.lang.Override + public float getMatchConfidence() { + return matchConfidence_; + } + + public static final int PARAMETERS_FIELD_NUMBER = 10; + private com.google.protobuf.Struct parameters_; + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return The parameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getParameters() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + public static final int AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER = 7; private int automatedAgentReplyType_ = 0; @@ -433,6 +701,26 @@ public com.google.protobuf.ByteString getCxCurrentPageBytes() { } } + public static final int CALL_COMPANION_AUTH_CODE_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString callCompanionAuthCode_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * The auth code for accessing Call Companion UI.
+   * 
+ * + * bytes call_companion_auth_code = 12; + * + * @return The callCompanionAuthCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallCompanionAuthCode() { + return callCompanionAuthCode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -450,6 +738,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDetectIntentResponse()); } + for (int i = 0; i < responseMessages_.size(); i++) { + output.writeMessage(3, responseMessages_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(intent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, intent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, event_); + } if (automatedAgentReplyType_ != com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType .AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED @@ -459,9 +756,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowCancellation_ != false) { output.writeBool(8, allowCancellation_); } + if (java.lang.Float.floatToRawIntBits(matchConfidence_) != 0) { + output.writeFloat(9, matchConfidence_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getParameters()); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cxCurrentPage_)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, cxCurrentPage_); } + if (!callCompanionAuthCode_.isEmpty()) { + output.writeBytes(12, callCompanionAuthCode_); + } getUnknownFields().writeTo(output); } @@ -475,6 +781,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDetectIntentResponse()); } + for (int i = 0; i < responseMessages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, responseMessages_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(intent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, intent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, event_); + } if (automatedAgentReplyType_ != com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType .AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED @@ -484,9 +799,18 @@ public int getSerializedSize() { if (allowCancellation_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, allowCancellation_); } + if (java.lang.Float.floatToRawIntBits(matchConfidence_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, matchConfidence_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getParameters()); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cxCurrentPage_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, cxCurrentPage_); } + if (!callCompanionAuthCode_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, callCompanionAuthCode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -507,9 +831,19 @@ public boolean equals(final java.lang.Object obj) { if (hasDetectIntentResponse()) { if (!getDetectIntentResponse().equals(other.getDetectIntentResponse())) return false; } + if (!getResponseMessagesList().equals(other.getResponseMessagesList())) return false; + if (!getIntent().equals(other.getIntent())) return false; + if (!getEvent().equals(other.getEvent())) return false; + if (java.lang.Float.floatToIntBits(getMatchConfidence()) + != java.lang.Float.floatToIntBits(other.getMatchConfidence())) return false; + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) return false; + } if (automatedAgentReplyType_ != other.automatedAgentReplyType_) return false; if (getAllowCancellation() != other.getAllowCancellation()) return false; if (!getCxCurrentPage().equals(other.getCxCurrentPage())) return false; + if (!getCallCompanionAuthCode().equals(other.getCallCompanionAuthCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -525,12 +859,28 @@ public int hashCode() { hash = (37 * hash) + DETECT_INTENT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getDetectIntentResponse().hashCode(); } + if (getResponseMessagesCount() > 0) { + hash = (37 * hash) + RESPONSE_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getResponseMessagesList().hashCode(); + } + hash = (37 * hash) + INTENT_FIELD_NUMBER; + hash = (53 * hash) + getIntent().hashCode(); + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + hash = (37 * hash) + MATCH_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMatchConfidence()); + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } hash = (37 * hash) + AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER; hash = (53 * hash) + automatedAgentReplyType_; hash = (37 * hash) + ALLOW_CANCELLATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCancellation()); hash = (37 * hash) + CX_CURRENT_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCxCurrentPage().hashCode(); + hash = (37 * hash) + CALL_COMPANION_AUTH_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCallCompanionAuthCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -673,6 +1023,8 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetDetectIntentResponseFieldBuilder(); + internalGetResponseMessagesFieldBuilder(); + internalGetParametersFieldBuilder(); } } @@ -685,9 +1037,25 @@ public Builder clear() { detectIntentResponseBuilder_.dispose(); detectIntentResponseBuilder_ = null; } + if (responseMessagesBuilder_ == null) { + responseMessages_ = java.util.Collections.emptyList(); + } else { + responseMessages_ = null; + responseMessagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + intent_ = ""; + event_ = ""; + matchConfidence_ = 0F; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } automatedAgentReplyType_ = 0; allowCancellation_ = false; cxCurrentPage_ = ""; + callCompanionAuthCode_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -715,6 +1083,7 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply build() { public com.google.cloud.dialogflow.v2.AutomatedAgentReply buildPartial() { com.google.cloud.dialogflow.v2.AutomatedAgentReply result = new com.google.cloud.dialogflow.v2.AutomatedAgentReply(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -722,6 +1091,19 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.AutomatedAgentReply result) { + if (responseMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + responseMessages_ = java.util.Collections.unmodifiableList(responseMessages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.responseMessages_ = responseMessages_; + } else { + result.responseMessages_ = responseMessagesBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2.AutomatedAgentReply result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -732,15 +1114,31 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.AutomatedAgentReply re : detectIntentResponseBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.intent_ = intent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.event_ = event_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.matchConfidence_ = matchConfidence_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.automatedAgentReplyType_ = automatedAgentReplyType_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.allowCancellation_ = allowCancellation_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.cxCurrentPage_ = cxCurrentPage_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.callCompanionAuthCode_ = callCompanionAuthCode_; + } result.bitField0_ |= to_bitField0_; } @@ -760,6 +1158,49 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentReply othe if (other.hasDetectIntentResponse()) { mergeDetectIntentResponse(other.getDetectIntentResponse()); } + if (responseMessagesBuilder_ == null) { + if (!other.responseMessages_.isEmpty()) { + if (responseMessages_.isEmpty()) { + responseMessages_ = other.responseMessages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResponseMessagesIsMutable(); + responseMessages_.addAll(other.responseMessages_); + } + onChanged(); + } + } else { + if (!other.responseMessages_.isEmpty()) { + if (responseMessagesBuilder_.isEmpty()) { + responseMessagesBuilder_.dispose(); + responseMessagesBuilder_ = null; + responseMessages_ = other.responseMessages_; + bitField0_ = (bitField0_ & ~0x00000002); + responseMessagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResponseMessagesFieldBuilder() + : null; + } else { + responseMessagesBuilder_.addAllMessages(other.responseMessages_); + } + } + } + if (!other.getIntent().isEmpty()) { + intent_ = other.intent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getMatchConfidence()) != 0) { + setMatchConfidence(other.getMatchConfidence()); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } if (other.automatedAgentReplyType_ != 0) { setAutomatedAgentReplyTypeValue(other.getAutomatedAgentReplyTypeValue()); } @@ -768,9 +1209,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentReply othe } if (!other.getCxCurrentPage().isEmpty()) { cxCurrentPage_ = other.cxCurrentPage_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; onChanged(); } + if (!other.getCallCompanionAuthCode().isEmpty()) { + setCallCompanionAuthCode(other.getCallCompanionAuthCode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -804,24 +1248,68 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 26: + { + com.google.cloud.dialogflow.v2.ResponseMessage m = + input.readMessage( + com.google.cloud.dialogflow.v2.ResponseMessage.parser(), extensionRegistry); + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.add(m); + } else { + responseMessagesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + intent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + event_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 case 56: { automatedAgentReplyType_ = input.readEnum(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; break; } // case 56 case 64: { allowCancellation_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000080; break; } // case 64 + case 77: + { + matchConfidence_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 77 + case 82: + { + input.readMessage( + internalGetParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 82 case 90: { cxCurrentPage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; break; } // case 90 + case 98: + { + callCompanionAuthCode_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1059,9 +1547,890 @@ public Builder clearDetectIntentResponse() { return detectIntentResponseBuilder_; } - private int automatedAgentReplyType_ = 0; + private java.util.List responseMessages_ = + java.util.Collections.emptyList(); - /** + private void ensureResponseMessagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + responseMessages_ = + new java.util.ArrayList( + responseMessages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder, + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder> + responseMessagesBuilder_; + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public java.util.List + getResponseMessagesList() { + if (responseMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responseMessages_); + } else { + return responseMessagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public int getResponseMessagesCount() { + if (responseMessagesBuilder_ == null) { + return responseMessages_.size(); + } else { + return responseMessagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage getResponseMessages(int index) { + if (responseMessagesBuilder_ == null) { + return responseMessages_.get(index); + } else { + return responseMessagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder setResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage value) { + if (responseMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseMessagesIsMutable(); + responseMessages_.set(index, value); + onChanged(); + } else { + responseMessagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder setResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage.Builder builderForValue) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + responseMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder addResponseMessages(com.google.cloud.dialogflow.v2.ResponseMessage value) { + if (responseMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseMessagesIsMutable(); + responseMessages_.add(value); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder addResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage value) { + if (responseMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseMessagesIsMutable(); + responseMessages_.add(index, value); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder addResponseMessages( + com.google.cloud.dialogflow.v2.ResponseMessage.Builder builderForValue) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.add(builderForValue.build()); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder addResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage.Builder builderForValue) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder addAllResponseMessages( + java.lang.Iterable values) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseMessages_); + onChanged(); + } else { + responseMessagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder clearResponseMessages() { + if (responseMessagesBuilder_ == null) { + responseMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + responseMessagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public Builder removeResponseMessages(int index) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.remove(index); + onChanged(); + } else { + responseMessagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Builder getResponseMessagesBuilder( + int index) { + return internalGetResponseMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder getResponseMessagesOrBuilder( + int index) { + if (responseMessagesBuilder_ == null) { + return responseMessages_.get(index); + } else { + return responseMessagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public java.util.List + getResponseMessagesOrBuilderList() { + if (responseMessagesBuilder_ != null) { + return responseMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responseMessages_); + } + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Builder addResponseMessagesBuilder() { + return internalGetResponseMessagesFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.ResponseMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Builder addResponseMessagesBuilder( + int index) { + return internalGetResponseMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.ResponseMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Response messages from the automated agent.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + public java.util.List + getResponseMessagesBuilderList() { + return internalGetResponseMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder, + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder> + internalGetResponseMessagesFieldBuilder() { + if (responseMessagesBuilder_ == null) { + responseMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder, + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder>( + responseMessages_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + responseMessages_ = null; + } + return responseMessagesBuilder_; + } + + private java.lang.Object intent_ = ""; + + /** + * + * + *
+     * Name of the intent if an intent is matched for the query.
+     * For a V2 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agent/intents/<Intent ID>`.
+     * For a V3 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return The intent. + */ + public java.lang.String getIntent() { + java.lang.Object ref = intent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + intent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the intent if an intent is matched for the query.
+     * For a V2 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agent/intents/<Intent ID>`.
+     * For a V3 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for intent. + */ + public com.google.protobuf.ByteString getIntentBytes() { + java.lang.Object ref = intent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + intent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the intent if an intent is matched for the query.
+     * For a V2 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agent/intents/<Intent ID>`.
+     * For a V3 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The intent to set. + * @return This builder for chaining. + */ + public Builder setIntent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + intent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the intent if an intent is matched for the query.
+     * For a V2 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agent/intents/<Intent ID>`.
+     * For a V3 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearIntent() { + intent_ = getDefaultInstance().getIntent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the intent if an intent is matched for the query.
+     * For a V2 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agent/intents/<Intent ID>`.
+     * For a V3 query, the value format is `projects/<Project ID>/locations/
+     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for intent to set. + * @return This builder for chaining. + */ + public Builder setIntentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + intent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object event_ = ""; + + /** + * + * + *
+     * Event name if an event is triggered for the query.
+     * 
+ * + * string event = 5; + * + * @return The event. + */ + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Event name if an event is triggered for the query.
+     * 
+ * + * string event = 5; + * + * @return The bytes for event. + */ + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Event name if an event is triggered for the query.
+     * 
+ * + * string event = 5; + * + * @param value The event to set. + * @return This builder for chaining. + */ + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Event name if an event is triggered for the query.
+     * 
+ * + * string event = 5; + * + * @return This builder for chaining. + */ + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Event name if an event is triggered for the query.
+     * 
+ * + * string event = 5; + * + * @param value The bytes for event to set. + * @return This builder for chaining. + */ + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + event_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private float matchConfidence_; + + /** + * + * + *
+     * The confidence of the match. 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.
+     * 
+ * + * float match_confidence = 9; + * + * @return The matchConfidence. + */ + @java.lang.Override + public float getMatchConfidence() { + return matchConfidence_; + } + + /** + * + * + *
+     * The confidence of the match. 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.
+     * 
+ * + * float match_confidence = 9; + * + * @param value The matchConfidence to set. + * @return This builder for chaining. + */ + public Builder setMatchConfidence(float value) { + + matchConfidence_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The confidence of the match. 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.
+     * 
+ * + * float match_confidence = 9; + * + * @return This builder for chaining. + */ + public Builder clearMatchConfidence() { + bitField0_ = (bitField0_ & ~0x00000010); + matchConfidence_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Struct parameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return The parameters. + */ + public com.google.protobuf.Struct getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder setParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder mergeParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + if (parameters_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000020); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public com.google.protobuf.Struct.Builder getParametersBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + } + + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private int automatedAgentReplyType_ = 0; + + /** * * *
@@ -1095,7 +2464,7 @@ public int getAutomatedAgentReplyTypeValue() {
      */
     public Builder setAutomatedAgentReplyTypeValue(int value) {
       automatedAgentReplyType_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1143,7 +2512,7 @@ public Builder setAutomatedAgentReplyType(
       if (value == null) {
         throw new NullPointerException();
       }
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000040;
       automatedAgentReplyType_ = value.getNumber();
       onChanged();
       return this;
@@ -1163,7 +2532,7 @@ public Builder setAutomatedAgentReplyType(
      * @return This builder for chaining.
      */
     public Builder clearAutomatedAgentReplyType() {
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000040);
       automatedAgentReplyType_ = 0;
       onChanged();
       return this;
@@ -1206,7 +2575,7 @@ public boolean getAllowCancellation() {
     public Builder setAllowCancellation(boolean value) {
 
       allowCancellation_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1225,7 +2594,7 @@ public Builder setAllowCancellation(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearAllowCancellation() {
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000080);
       allowCancellation_ = false;
       onChanged();
       return this;
@@ -1302,7 +2671,7 @@ public Builder setCxCurrentPage(java.lang.String value) {
         throw new NullPointerException();
       }
       cxCurrentPage_ = value;
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -1322,7 +2691,7 @@ public Builder setCxCurrentPage(java.lang.String value) {
      */
     public Builder clearCxCurrentPage() {
       cxCurrentPage_ = getDefaultInstance().getCxCurrentPage();
-      bitField0_ = (bitField0_ & ~0x00000008);
+      bitField0_ = (bitField0_ & ~0x00000100);
       onChanged();
       return this;
     }
@@ -1347,7 +2716,66 @@ public Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value) {
       }
       checkByteStringIsUtf8(value);
       cxCurrentPage_ = value;
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000100;
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.ByteString callCompanionAuthCode_ =
+        com.google.protobuf.ByteString.EMPTY;
+
+    /**
+     *
+     *
+     * 
+     * The auth code for accessing Call Companion UI.
+     * 
+ * + * bytes call_companion_auth_code = 12; + * + * @return The callCompanionAuthCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallCompanionAuthCode() { + return callCompanionAuthCode_; + } + + /** + * + * + *
+     * The auth code for accessing Call Companion UI.
+     * 
+ * + * bytes call_companion_auth_code = 12; + * + * @param value The callCompanionAuthCode to set. + * @return This builder for chaining. + */ + public Builder setCallCompanionAuthCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + callCompanionAuthCode_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * The auth code for accessing Call Companion UI.
+     * 
+ * + * bytes call_companion_auth_code = 12; + * + * @return This builder for chaining. + */ + public Builder clearCallCompanionAuthCode() { + bitField0_ = (bitField0_ & ~0x00000200); + callCompanionAuthCode_ = getDefaultInstance().getCallCompanionAuthCode(); onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java index dd33331ae118..4eccb31cfde6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java @@ -69,6 +69,177 @@ public interface AutomatedAgentReplyOrBuilder */ com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder(); + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + java.util.List getResponseMessagesList(); + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + com.google.cloud.dialogflow.v2.ResponseMessage getResponseMessages(int index); + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + int getResponseMessagesCount(); + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + java.util.List + getResponseMessagesOrBuilderList(); + + /** + * + * + *
+   * Response messages from the automated agent.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 3; + */ + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder getResponseMessagesOrBuilder(int index); + + /** + * + * + *
+   * Name of the intent if an intent is matched for the query.
+   * For a V2 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agent/intents/<Intent ID>`.
+   * For a V3 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+   * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return The intent. + */ + java.lang.String getIntent(); + + /** + * + * + *
+   * Name of the intent if an intent is matched for the query.
+   * For a V2 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agent/intents/<Intent ID>`.
+   * For a V3 query, the value format is `projects/<Project ID>/locations/
+   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
+   * 
+ * + * string intent = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for intent. + */ + com.google.protobuf.ByteString getIntentBytes(); + + /** + * + * + *
+   * Event name if an event is triggered for the query.
+   * 
+ * + * string event = 5; + * + * @return The event. + */ + java.lang.String getEvent(); + + /** + * + * + *
+   * Event name if an event is triggered for the query.
+   * 
+ * + * string event = 5; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); + + /** + * + * + *
+   * The confidence of the match. 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.
+   * 
+ * + * float match_confidence = 9; + * + * @return The matchConfidence. + */ + float getMatchConfidence(); + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return The parameters. + */ + com.google.protobuf.Struct getParameters(); + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + /** * * @@ -144,4 +315,17 @@ public interface AutomatedAgentReplyOrBuilder * @return The bytes for cxCurrentPage. */ com.google.protobuf.ByteString getCxCurrentPageBytes(); + + /** + * + * + *
+   * The auth code for accessing Call Companion UI.
+   * 
+ * + * bytes call_companion_auth_code = 12; + * + * @return The callCompanionAuthCode. + */ + com.google.protobuf.ByteString getCallCompanionAuthCode(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BidiStreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BidiStreamingAnalyzeContentRequest.java index b1b1450dfa26..4d750b1f11b1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BidiStreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BidiStreamingAnalyzeContentRequest.java @@ -497,6 +497,38 @@ public interface VoiceSessionConfigOrBuilder * @return The useGeminiAsr. */ boolean getUseGeminiAsr(); + + /** + * + * + *
+       * Optional. Disables emission of interim input transcriptions when set to
+       * `true`.
+       * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + boolean hasDisableInterimInputTranscripts(); + + /** + * + * + *
+       * Optional. Disables emission of interim input transcriptions when set to
+       * `true`.
+       * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + boolean getDisableInterimInputTranscripts(); } /** @@ -824,6 +856,47 @@ public boolean getUseGeminiAsr() { return useGeminiAsr_; } + public static final int DISABLE_INTERIM_INPUT_TRANSCRIPTS_FIELD_NUMBER = 26; + private boolean disableInterimInputTranscripts_ = false; + + /** + * + * + *
+       * Optional. Disables emission of interim input transcriptions when set to
+       * `true`.
+       * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + @java.lang.Override + public boolean hasDisableInterimInputTranscripts() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. Disables emission of interim input transcriptions when set to
+       * `true`.
+       * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + @java.lang.Override + public boolean getDisableInterimInputTranscripts() { + return disableInterimInputTranscripts_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -866,6 +939,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(25, useGeminiAsr_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(26, disableInterimInputTranscripts_); + } getUnknownFields().writeTo(output); } @@ -910,6 +986,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, useGeminiAsr_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 26, disableInterimInputTranscripts_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -947,6 +1028,12 @@ public boolean equals(final java.lang.Object obj) { if (hasUseGeminiAsr()) { if (getUseGeminiAsr() != other.getUseGeminiAsr()) return false; } + if (hasDisableInterimInputTranscripts() != other.hasDisableInterimInputTranscripts()) + return false; + if (hasDisableInterimInputTranscripts()) { + if (getDisableInterimInputTranscripts() != other.getDisableInterimInputTranscripts()) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -981,6 +1068,12 @@ public int hashCode() { hash = (37 * hash) + USE_GEMINI_ASR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseGeminiAsr()); } + if (hasDisableInterimInputTranscripts()) { + hash = (37 * hash) + DISABLE_INTERIM_INPUT_TRANSCRIPTS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableInterimInputTranscripts()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1172,6 +1265,7 @@ public Builder clear() { geminiAsrConfigBuilder_ = null; } useGeminiAsr_ = false; + disableInterimInputTranscripts_ = false; return this; } @@ -1253,6 +1347,10 @@ private void buildPartial0( result.useGeminiAsr_ = useGeminiAsr_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.disableInterimInputTranscripts_ = disableInterimInputTranscripts_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1303,6 +1401,9 @@ public Builder mergeFrom( if (other.hasUseGeminiAsr()) { setUseGeminiAsr(other.getUseGeminiAsr()); } + if (other.hasDisableInterimInputTranscripts()) { + setDisableInterimInputTranscripts(other.getDisableInterimInputTranscripts()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1378,6 +1479,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 200 + case 208: + { + disableInterimInputTranscripts_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 208 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2172,6 +2279,90 @@ public Builder clearUseGeminiAsr() { return this; } + private boolean disableInterimInputTranscripts_; + + /** + * + * + *
+         * Optional. Disables emission of interim input transcriptions when set to
+         * `true`.
+         * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + @java.lang.Override + public boolean hasDisableInterimInputTranscripts() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+         * Optional. Disables emission of interim input transcriptions when set to
+         * `true`.
+         * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + @java.lang.Override + public boolean getDisableInterimInputTranscripts() { + return disableInterimInputTranscripts_; + } + + /** + * + * + *
+         * Optional. Disables emission of interim input transcriptions when set to
+         * `true`.
+         * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableInterimInputTranscripts to set. + * @return This builder for chaining. + */ + public Builder setDisableInterimInputTranscripts(boolean value) { + + disableInterimInputTranscripts_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Disables emission of interim input transcriptions when set to
+         * `true`.
+         * 
+ * + * + * optional bool disable_interim_input_transcripts = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableInterimInputTranscripts() { + bitField0_ = (bitField0_ & ~0x00000100); + disableInterimInputTranscripts_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java index 7290988eb616..f4b90dd89a43 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java @@ -12188,9 +12188,10 @@ public enum SectionType implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * "Unsatisfied" or "Satisfied" depending on the customer's feelings at
-         * the end of the conversation.
-         * Section name: "customer_satisfaction".
+         * Customer satisfaction derived from the text transcript only (not
+         * audio). Categorized based on customer statements by the end of the
+         * conversation. `D` for dissatisfied and `N` for neutral or satisfied
+         * (default). Section name: `customer_satisfaction`.
          * 
* * CUSTOMER_SATISFACTION = 5; @@ -12286,9 +12287,10 @@ public enum SectionType implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * "Unsatisfied" or "Satisfied" depending on the customer's feelings at
-         * the end of the conversation.
-         * Section name: "customer_satisfaction".
+         * Customer satisfaction derived from the text transcript only (not
+         * audio). Categorized based on customer statements by the end of the
+         * conversation. `D` for dissatisfied and `N` for neutral or satisfied
+         * (default). Section name: `customer_satisfaction`.
          * 
* * CUSTOMER_SATISFACTION = 5; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java index 64764d517d0a..c91bae77e102 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java @@ -822,6 +822,47 @@ public boolean getUseGeminiAsr() { return useGeminiAsr_; } + public static final int DISABLE_INTERIM_INPUT_TRANSCRIPTS_FIELD_NUMBER = 32; + private boolean disableInterimInputTranscripts_ = false; + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + @java.lang.Override + public boolean hasDisableInterimInputTranscripts() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + @java.lang.Override + public boolean getDisableInterimInputTranscripts() { + return disableInterimInputTranscripts_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -887,6 +928,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(31, useGeminiAsr_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(32, disableInterimInputTranscripts_); + } getUnknownFields().writeTo(output); } @@ -961,6 +1005,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(31, useGeminiAsr_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 32, disableInterimInputTranscripts_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1001,6 +1050,12 @@ public boolean equals(final java.lang.Object obj) { if (hasUseGeminiAsr()) { if (getUseGeminiAsr() != other.getUseGeminiAsr()) return false; } + if (hasDisableInterimInputTranscripts() != other.hasDisableInterimInputTranscripts()) + return false; + if (hasDisableInterimInputTranscripts()) { + if (getDisableInterimInputTranscripts() != other.getDisableInterimInputTranscripts()) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1056,6 +1111,12 @@ public int hashCode() { hash = (37 * hash) + USE_GEMINI_ASR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseGeminiAsr()); } + if (hasDisableInterimInputTranscripts()) { + hash = (37 * hash) + DISABLE_INTERIM_INPUT_TRANSCRIPTS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableInterimInputTranscripts()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1232,6 +1293,7 @@ public Builder clear() { geminiAsrConfigBuilder_ = null; } useGeminiAsr_ = false; + disableInterimInputTranscripts_ = false; return this; } @@ -1333,6 +1395,10 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.InputAudioConfig resul result.useGeminiAsr_ = useGeminiAsr_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.disableInterimInputTranscripts_ = disableInterimInputTranscripts_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1439,6 +1505,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.InputAudioConfig other) if (other.hasUseGeminiAsr()) { setUseGeminiAsr(other.getUseGeminiAsr()); } + if (other.hasDisableInterimInputTranscripts()) { + setDisableInterimInputTranscripts(other.getDisableInterimInputTranscripts()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1571,6 +1640,12 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 248 + case 256: + { + disableInterimInputTranscripts_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 256 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3765,6 +3840,90 @@ public Builder clearUseGeminiAsr() { return this; } + private boolean disableInterimInputTranscripts_; + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + @java.lang.Override + public boolean hasDisableInterimInputTranscripts() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + @java.lang.Override + public boolean getDisableInterimInputTranscripts() { + return disableInterimInputTranscripts_; + } + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableInterimInputTranscripts to set. + * @return This builder for chaining. + */ + public Builder setDisableInterimInputTranscripts(boolean value) { + + disableInterimInputTranscripts_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableInterimInputTranscripts() { + bitField0_ = (bitField0_ & ~0x00010000); + disableInterimInputTranscripts_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.InputAudioConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java index 2f9801fc33ec..463f016e8344 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java @@ -578,4 +578,36 @@ public interface InputAudioConfigOrBuilder * @return The useGeminiAsr. */ boolean getUseGeminiAsr(); + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + boolean hasDisableInterimInputTranscripts(); + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + boolean getDisableInterimInputTranscripts(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Message.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Message.java index ce51e7994a21..09531552ce15 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Message.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Message.java @@ -54,6 +54,7 @@ private Message(com.google.protobuf.GeneratedMessage.Builder builder) { private Message() { name_ = ""; content_ = ""; + responseMessages_ = java.util.Collections.emptyList(); languageCode_ = ""; participant_ = ""; participantRole_ = 0; @@ -187,6 +188,93 @@ public com.google.protobuf.ByteString getContentBytes() { } } + public static final int RESPONSE_MESSAGES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List responseMessages_; + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getResponseMessagesList() { + return responseMessages_; + } + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getResponseMessagesOrBuilderList() { + return responseMessages_; + } + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getResponseMessagesCount() { + return responseMessages_.size(); + } + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage getResponseMessages(int index) { + return responseMessages_.get(index); + } + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder getResponseMessagesOrBuilder( + int index) { + return responseMessages_.get(index); + } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -606,6 +694,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getSendTime()); } + for (int i = 0; i < responseMessages_.size(); i++) { + output.writeMessage(11, responseMessages_.get(i)); + } getUnknownFields().writeTo(output); } @@ -643,6 +734,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSendTime()); } + for (int i = 0; i < responseMessages_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, responseMessages_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -660,6 +755,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getContent().equals(other.getContent())) return false; + if (!getResponseMessagesList().equals(other.getResponseMessagesList())) return false; if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!getParticipant().equals(other.getParticipant())) return false; if (participantRole_ != other.participantRole_) return false; @@ -694,6 +790,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); + if (getResponseMessagesCount() > 0) { + hash = (37 * hash) + RESPONSE_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getResponseMessagesList().hashCode(); + } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + PARTICIPANT_FIELD_NUMBER; @@ -857,6 +957,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResponseMessagesFieldBuilder(); internalGetCreateTimeFieldBuilder(); internalGetSendTimeFieldBuilder(); internalGetMessageAnnotationFieldBuilder(); @@ -870,6 +971,13 @@ public Builder clear() { bitField0_ = 0; name_ = ""; content_ = ""; + if (responseMessagesBuilder_ == null) { + responseMessages_ = java.util.Collections.emptyList(); + } else { + responseMessages_ = null; + responseMessagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); languageCode_ = ""; participant_ = ""; participantRole_ = 0; @@ -920,6 +1028,7 @@ public com.google.cloud.dialogflow.v2.Message build() { public com.google.cloud.dialogflow.v2.Message buildPartial() { com.google.cloud.dialogflow.v2.Message result = new com.google.cloud.dialogflow.v2.Message(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -927,6 +1036,18 @@ public com.google.cloud.dialogflow.v2.Message buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2.Message result) { + if (responseMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + responseMessages_ = java.util.Collections.unmodifiableList(responseMessages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.responseMessages_ = responseMessages_; + } else { + result.responseMessages_ = responseMessagesBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2.Message result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -935,32 +1056,32 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.Message result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.content_ = content_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.participant_ = participant_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.participantRole_ = participantRole_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.sendTime_ = sendTimeBuilder_ == null ? sendTime_ : sendTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.messageAnnotation_ = messageAnnotationBuilder_ == null ? messageAnnotation_ : messageAnnotationBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.sentimentAnalysis_ = sentimentAnalysisBuilder_ == null ? sentimentAnalysis_ @@ -992,14 +1113,41 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Message other) { bitField0_ |= 0x00000002; onChanged(); } + if (responseMessagesBuilder_ == null) { + if (!other.responseMessages_.isEmpty()) { + if (responseMessages_.isEmpty()) { + responseMessages_ = other.responseMessages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResponseMessagesIsMutable(); + responseMessages_.addAll(other.responseMessages_); + } + onChanged(); + } + } else { + if (!other.responseMessages_.isEmpty()) { + if (responseMessagesBuilder_.isEmpty()) { + responseMessagesBuilder_.dispose(); + responseMessagesBuilder_ = null; + responseMessages_ = other.responseMessages_; + bitField0_ = (bitField0_ & ~0x00000004); + responseMessagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResponseMessagesFieldBuilder() + : null; + } else { + responseMessagesBuilder_.addAllMessages(other.responseMessages_); + } + } + } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getParticipant().isEmpty()) { participant_ = other.participant_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.participantRole_ != 0) { @@ -1058,49 +1206,62 @@ public Builder mergeFrom( case 26: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { participant_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 40: { participantRole_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 case 50: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage( internalGetMessageAnnotationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 58 case 66: { input.readMessage( internalGetSentimentAnalysisFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 66 case 74: { input.readMessage( internalGetSendTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 74 + case 90: + { + com.google.cloud.dialogflow.v2.ResponseMessage m = + input.readMessage( + com.google.cloud.dialogflow.v2.ResponseMessage.parser(), extensionRegistry); + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.add(m); + } else { + responseMessagesBuilder_.addMessage(m); + } + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1357,6 +1518,420 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List responseMessages_ = + java.util.Collections.emptyList(); + + private void ensureResponseMessagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + responseMessages_ = + new java.util.ArrayList( + responseMessages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder, + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder> + responseMessagesBuilder_; + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getResponseMessagesList() { + if (responseMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responseMessages_); + } else { + return responseMessagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getResponseMessagesCount() { + if (responseMessagesBuilder_ == null) { + return responseMessages_.size(); + } else { + return responseMessagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage getResponseMessages(int index) { + if (responseMessagesBuilder_ == null) { + return responseMessages_.get(index); + } else { + return responseMessagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage value) { + if (responseMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseMessagesIsMutable(); + responseMessages_.set(index, value); + onChanged(); + } else { + responseMessagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage.Builder builderForValue) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + responseMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResponseMessages(com.google.cloud.dialogflow.v2.ResponseMessage value) { + if (responseMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseMessagesIsMutable(); + responseMessages_.add(value); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage value) { + if (responseMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseMessagesIsMutable(); + responseMessages_.add(index, value); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResponseMessages( + com.google.cloud.dialogflow.v2.ResponseMessage.Builder builderForValue) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.add(builderForValue.build()); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResponseMessages( + int index, com.google.cloud.dialogflow.v2.ResponseMessage.Builder builderForValue) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + responseMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllResponseMessages( + java.lang.Iterable values) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseMessages_); + onChanged(); + } else { + responseMessagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponseMessages() { + if (responseMessagesBuilder_ == null) { + responseMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + responseMessagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeResponseMessages(int index) { + if (responseMessagesBuilder_ == null) { + ensureResponseMessagesIsMutable(); + responseMessages_.remove(index); + onChanged(); + } else { + responseMessagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Builder getResponseMessagesBuilder( + int index) { + return internalGetResponseMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder getResponseMessagesOrBuilder( + int index) { + if (responseMessagesBuilder_ == null) { + return responseMessages_.get(index); + } else { + return responseMessagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getResponseMessagesOrBuilderList() { + if (responseMessagesBuilder_ != null) { + return responseMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responseMessages_); + } + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Builder addResponseMessagesBuilder() { + return internalGetResponseMessagesFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.ResponseMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Builder addResponseMessagesBuilder( + int index) { + return internalGetResponseMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.ResponseMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Automated agent responses.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getResponseMessagesBuilderList() { + return internalGetResponseMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder, + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder> + internalGetResponseMessagesFieldBuilder() { + if (responseMessagesBuilder_ == null) { + responseMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder, + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder>( + responseMessages_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + responseMessages_ = null; + } + return responseMessagesBuilder_; + } + private java.lang.Object languageCode_ = ""; /** @@ -1428,7 +2003,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1448,7 +2023,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1473,7 +2048,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1543,7 +2118,7 @@ public Builder setParticipant(java.lang.String value) { throw new NullPointerException(); } participant_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1561,7 +2136,7 @@ public Builder setParticipant(java.lang.String value) { */ public Builder clearParticipant() { participant_ = getDefaultInstance().getParticipant(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1584,7 +2159,7 @@ public Builder setParticipantBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); participant_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1625,7 +2200,7 @@ public int getParticipantRoleValue() { */ public Builder setParticipantRoleValue(int value) { participantRole_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1668,7 +2243,7 @@ public Builder setParticipantRole(com.google.cloud.dialogflow.v2.Participant.Rol if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; participantRole_ = value.getNumber(); onChanged(); return this; @@ -1688,7 +2263,7 @@ public Builder setParticipantRole(com.google.cloud.dialogflow.v2.Participant.Rol * @return This builder for chaining. */ public Builder clearParticipantRole() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); participantRole_ = 0; onChanged(); return this; @@ -1715,7 +2290,7 @@ public Builder clearParticipantRole() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1761,7 +2336,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1783,7 +2358,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1801,7 +2376,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -1812,7 +2387,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1830,7 +2405,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1852,7 +2427,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -1927,7 +2502,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the sendTime field is set. */ public boolean hasSendTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1971,7 +2546,7 @@ public Builder setSendTime(com.google.protobuf.Timestamp value) { } else { sendTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1993,7 +2568,7 @@ public Builder setSendTime(com.google.protobuf.Timestamp.Builder builderForValue } else { sendTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2011,7 +2586,7 @@ public Builder setSendTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeSendTime(com.google.protobuf.Timestamp value) { if (sendTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && sendTime_ != null && sendTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSendTimeBuilder().mergeFrom(value); @@ -2022,7 +2597,7 @@ public Builder mergeSendTime(com.google.protobuf.Timestamp value) { sendTimeBuilder_.mergeFrom(value); } if (sendTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2040,7 +2615,7 @@ public Builder mergeSendTime(com.google.protobuf.Timestamp value) { * */ public Builder clearSendTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); sendTime_ = null; if (sendTimeBuilder_ != null) { sendTimeBuilder_.dispose(); @@ -2062,7 +2637,7 @@ public Builder clearSendTime() { * */ public com.google.protobuf.Timestamp.Builder getSendTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetSendTimeFieldBuilder().getBuilder(); } @@ -2135,7 +2710,7 @@ public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder() { * @return Whether the messageAnnotation field is set. */ public boolean hasMessageAnnotation() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2181,7 +2756,7 @@ public Builder setMessageAnnotation(com.google.cloud.dialogflow.v2.MessageAnnota } else { messageAnnotationBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2204,7 +2779,7 @@ public Builder setMessageAnnotation( } else { messageAnnotationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2222,7 +2797,7 @@ public Builder setMessageAnnotation( */ public Builder mergeMessageAnnotation(com.google.cloud.dialogflow.v2.MessageAnnotation value) { if (messageAnnotationBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && messageAnnotation_ != null && messageAnnotation_ != com.google.cloud.dialogflow.v2.MessageAnnotation.getDefaultInstance()) { @@ -2234,7 +2809,7 @@ public Builder mergeMessageAnnotation(com.google.cloud.dialogflow.v2.MessageAnno messageAnnotationBuilder_.mergeFrom(value); } if (messageAnnotation_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2252,7 +2827,7 @@ public Builder mergeMessageAnnotation(com.google.cloud.dialogflow.v2.MessageAnno * */ public Builder clearMessageAnnotation() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); messageAnnotation_ = null; if (messageAnnotationBuilder_ != null) { messageAnnotationBuilder_.dispose(); @@ -2274,7 +2849,7 @@ public Builder clearMessageAnnotation() { * */ public com.google.cloud.dialogflow.v2.MessageAnnotation.Builder getMessageAnnotationBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetMessageAnnotationFieldBuilder().getBuilder(); } @@ -2350,7 +2925,7 @@ public com.google.cloud.dialogflow.v2.MessageAnnotation.Builder getMessageAnnota * @return Whether the sentimentAnalysis field is set. */ public boolean hasSentimentAnalysis() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2397,7 +2972,7 @@ public Builder setSentimentAnalysis( } else { sentimentAnalysisBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2420,7 +2995,7 @@ public Builder setSentimentAnalysis( } else { sentimentAnalysisBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2439,7 +3014,7 @@ public Builder setSentimentAnalysis( public Builder mergeSentimentAnalysis( com.google.cloud.dialogflow.v2.SentimentAnalysisResult value) { if (sentimentAnalysisBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && sentimentAnalysis_ != null && sentimentAnalysis_ != com.google.cloud.dialogflow.v2.SentimentAnalysisResult.getDefaultInstance()) { @@ -2451,7 +3026,7 @@ public Builder mergeSentimentAnalysis( sentimentAnalysisBuilder_.mergeFrom(value); } if (sentimentAnalysis_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2469,7 +3044,7 @@ public Builder mergeSentimentAnalysis( * */ public Builder clearSentimentAnalysis() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); sentimentAnalysis_ = null; if (sentimentAnalysisBuilder_ != null) { sentimentAnalysisBuilder_.dispose(); @@ -2492,7 +3067,7 @@ public Builder clearSentimentAnalysis() { */ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder getSentimentAnalysisBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetSentimentAnalysisFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageOrBuilder.java index ffa5d4c8def8..3ef5f72261e7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageOrBuilder.java @@ -84,6 +84,72 @@ public interface MessageOrBuilder */ com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getResponseMessagesList(); + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.ResponseMessage getResponseMessages(int index); + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getResponseMessagesCount(); + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getResponseMessagesOrBuilderList(); + + /** + * + * + *
+   * Optional. Automated agent responses.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.ResponseMessage response_messages = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder getResponseMessagesOrBuilder(int index); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index d34f4d4d677f..428dcf61ba9b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -216,6 +216,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -384,10 +412,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005OTHER\020\010:\330\001\352A\324\001\n" + "%dialogflow.googleapis.com/Participant\022Jprojects/{projec" + "t}/conversations/{conversation}/participants/{participant}\022_projects/{project}/l" - + "ocations/{location}/conversations/{conversation}/participants/{participant}\"\225\005\n" + + "ocations/{location}/conversations/{conversation}/participants/{participant}\"\343\005\n" + "\007Message\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\001\022\025\n" - + "\007content\030\002 \001(\tB\004\342A\001\001\022\033\n\r" + + "\007content\030\002 \001(\tB\004\342A\001\001\022L\n" + + "\021response_messages\030\013 \003(\0132+." + + "google.cloud.dialogflow.v2.ResponseMessageB\004\342A\001\001\022\033\n\r" + "language_code\030\003 \001(\tB\004\342A\001\001\022\031\n" + "\013participant\030\004 \001(\tB\004\342A\001\003\022L\n" + "\020participant_role\030\005" @@ -395,13 +425,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0223\n" + "\tsend_time\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022O\n" - + "\022message_annotation\030\007 \001(\013" - + "2-.google.cloud.dialogflow.v2.MessageAnnotationB\004\342A\001\003\022U\n" - + "\022sentiment_analysis\030\010 \001(" - + "\01323.google.cloud.dialogflow.v2.SentimentAnalysisResultB\004\342A\001\003:\304\001\352A\300\001\n" - + "!dialogflow.googleapis.com/Message\022Bprojects/{projec" - + "t}/conversations/{conversation}/messages/{message}\022Wprojects/{project}/locations" - + "/{location}/conversations/{conversation}/messages/{message}\"\236\001\n" + + "\022message_annotation\030\007 \001(\0132-" + + ".google.cloud.dialogflow.v2.MessageAnnotationB\004\342A\001\003\022U\n" + + "\022sentiment_analysis\030\010 \001(\0132" + + "3.google.cloud.dialogflow.v2.SentimentAnalysisResultB\004\342A\001\003:\304\001\352A\300\001\n" + + "!dialogflow.googleapis.com/Message\022Bprojects/{project}" + + "/conversations/{conversation}/messages/{message}\022Wprojects/{project}/locations/{" + + "location}/conversations/{conversation}/messages/{message}\"\236\001\n" + "\030CreateParticipantRequest\022>\n" + "\006parent\030\001 \001(" + "\tB.\342A\001\002\372A\'\022%dialogflow.googleapis.com/Participant\022B\n" @@ -411,8 +441,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\"\214\001\n" + "\027ListParticipantsRequest\022>\n" - + "\006parent\030\001 \001(\tB.\342A\001\002\372A\'" - + "\022%dialogflow.googleapis.com/Participant\022\027\n" + + "\006parent\030\001 \001(" + + "\tB.\342A\001\002\372A\'\022%dialogflow.googleapis.com/Participant\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"r\n" + "\030ListParticipantsResponse\022=\n" @@ -434,8 +464,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022reply_audio_config\030\005" + " \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\022A\n" + "\014query_params\030\t \001(\0132+.google.cloud.dialogflow.v2.QueryParameters\022N\n" - + "\023assist_query_params\030\016" - + " \001(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\022.\n\r" + + "\023assist_query_params\030\016 \001" + + "(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\022.\n\r" + "cx_parameters\030\022 \001(\0132\027.google.protobuf.Struct\022\022\n\n" + "request_id\030\013 \001(\tB\007\n" + "\005input\",\n" @@ -444,8 +474,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026AnalyzeContentResponse\022\022\n\n" + "reply_text\030\001 \001(\t\022<\n" + "\013reply_audio\030\002 \001(\0132\'.google.cloud.dialogflow.v2.OutputAudio\022N\n" - + "\025automated_agent_reply\030\003 \001(\0132/" - + ".google.cloud.dialogflow.v2.AutomatedAgentReply\0224\n" + + "\025automated_agent_reply\030\003 \001(\0132/.g" + + "oogle.cloud.dialogflow.v2.AutomatedAgentReply\0224\n" + "\007message\030\005 \001(\0132#.google.cloud.dialogflow.v2.Message\022T\n" + "\036human_agent_suggestion_results\030\006" + " \003(\0132,.google.cloud.dialogflow.v2.SuggestionResult\022Q\n" @@ -462,15 +492,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.dialogflow.v2.InputTextConfigH\000\022I\n" + "\022reply_audio_config\030\004" + " \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\022\025\n" - + "\013input_audio\030\005 \001(\014H\001\022\024\n\n" + + "\013input_audio\030\005 \001(\014H\001\022\024\n" + + "\n" + "input_text\030\006 \001(\tH\001\022E\n\n" - + "input_dtmf\030\t \001(" - + "\0132/.google.cloud.dialogflow.v2.TelephonyDtmfEventsH\001\022M\n" - + "\020suggestion_input\030\033 \001(\0132+" - + ".google.cloud.dialogflow.v2.SuggestionInputB\004\342A\001\001H\001\022A\n" + + "input_dtmf\030\t \001(\0132" + + "/.google.cloud.dialogflow.v2.TelephonyDtmfEventsH\001\022M\n" + + "\020suggestion_input\030\033 \001(\0132+.g" + + "oogle.cloud.dialogflow.v2.SuggestionInputB\004\342A\001\001H\001\022A\n" + "\014query_params\030\007 \001(\0132+.google.cloud.dialogflow.v2.QueryParameters\022N\n" - + "\023assist_query_params\030\010 \001(\01321.google.clo" - + "ud.dialogflow.v2.AssistQueryParameters\022.\n\r" + + "\023assist_query_params\030\010" + + " \001(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\022.\n\r" + "cx_parameters\030\r" + " \001(\0132\027.google.protobuf.Struct\022\'\n" + "\031enable_extended_streaming\030\013 \001(\010B\004\342A\001\001\0222\n" @@ -493,8 +524,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132,.google.cloud.dialogflow.v2.SuggestionResult\022C\n" + "\017dtmf_parameters\030\n" + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\022R\n" - + "\016debugging_info\030\013 \001(\0132:.google.c" - + "loud.dialogflow.v2.CloudConversationDebuggingInfo\022\024\n" + + "\016debugging_info\030\013 \001(\0132:.google.clo" + + "ud.dialogflow.v2.CloudConversationDebuggingInfo\022\024\n" + "\014speech_model\030\r" + " \001(\t\"\210\002\n" + "\026SuggestArticlesRequest\022>\n" @@ -523,39 +554,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\241\003\n" + "\033GenerateSuggestionsResponse\022w\n" - + "\034generator_suggestion_answers\030\001 \003(\0132Q.go" - + "ogle.cloud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + + "\034generator_suggestion_answers\030\001 \003(\0132Q.goog" + + "le.cloud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\032\310\001\n" + "\031GeneratorSuggestionAnswer\022M\n" - + "\024generator_suggestion\030\001 \001" - + "(\0132/.google.cloud.dialogflow.v2.GeneratorSuggestion\022\030\n" - + "\020source_generator\030\002 \001(\t\022B\n" - + "\r" + + "\024generator_suggestion\030\001 \001(\013" + + "2/.google.cloud.dialogflow.v2.GeneratorSuggestion\022\030\n" + + "\020source_generator\030\002 \001(\t\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\"\213\001\n" + "\022ToolCallSuggestion\022Z\n" - + "\016tool_call_info\030\001 \001(\0132<.googl" - + "e.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfoB\004\342A\001\001\022\031\n" + + "\016tool_call_info\030\001 \001(\0132<.google." + + "cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfoB\004\342A\001\001\022\031\n" + "\013text_update\030\002 \001(\tB\004\342A\001\001\"e\n" + "\016ToolCallEvents\022S\n" + "\025tool_call_suggestions\030\001" + " \003(\0132..google.cloud.dialogflow.v2.ToolCallSuggestionB\004\342A\001\001\"\362\005\n" + "\023CompanionSuggestion\022K\n" - + "\tguidances\030\001 \003(\01328.goog" - + "le.cloud.dialogflow.v2.CompanionSuggestion.Guidance\032\215\005\n" + + "\tguidances\030\001 \003(\01328.google" + + ".cloud.dialogflow.v2.CompanionSuggestion.Guidance\032\215\005\n" + "\010Guidance\022\027\n" + "\017suggested_reply\030\001 \001(\t\022\030\n" + "\020suggested_action\030\002 \001(\t\022K\n" + "\022instruction_source\030\003" + " \001(\0132/.google.cloud.dialogflow.v2.GuidanceInstruction\022c\n" - + "\021knowledge_sources\030\004 \003(\0132H.google.cloud.dialo" - + "gflow.v2.CompanionSuggestion.Guidance.KnowledgeSource\022\031\n" + + "\021knowledge_sources\030\004 \003(\0132H.google.cloud.dialogf" + + "low.v2.CompanionSuggestion.Guidance.KnowledgeSource\022\031\n" + "\013explanation\030\014 \001(\tB\004\342A\001\001\022T\n" - + "\022grounding_metadata\030\006 \001(\0132-.google.cl" - + "oud.dialogflow.v2.GroundingMetadataB\004\342A\001\001H\000\210\001\001\022H\n\n" - + "tool_calls\030\007 \003(\0132..google.clou" - + "d.dialogflow.v2.ToolCallSuggestionB\004\342A\001\001\022\\\n" + + "\022grounding_metadata\030\006 \001(\0132-.google.clou" + + "d.dialogflow.v2.GroundingMetadataB\004\342A\001\001H\000\210\001\001\022H\n\n" + + "tool_calls\030\007 \003(\0132..google.cloud." + + "dialogflow.v2.ToolCallSuggestionB\004\342A\001\001\022\\\n" + "#triggering_tool_call_answer_records\030\013 \003(\tB/\342A\001\001\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032l\n" + "\017KnowledgeSource\022\035\n" @@ -584,19 +614,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\"e\n\n" + "AudioInput\022B\n" - + "\006config\030\001 \001(\0132,.google.cl" - + "oud.dialogflow.v2.InputAudioConfigB\004\342A\001\002\022\023\n" + + "\006config\030\001 \001(\0132,.google.clou" + + "d.dialogflow.v2.InputAudioConfigB\004\342A\001\002\022\023\n" + "\005audio\030\002 \001(\014B\004\342A\001\002\"[\n" + "\013OutputAudio\022=\n" + "\006config\030\001 \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\022\r\n" - + "\005audio\030\002 \001(\014\"\350\002\n" + + "\005audio\030\002 \001(\014\"\337\004\n" + "\023AutomatedAgentReply\022P\n" + "\026detect_intent_response\030\001" - + " \001(\01320.google.cloud.dialogflow.v2.DetectIntentResponse\022k\n" - + "\032automated_agent_reply_type\030\007 \001(\0162G.google.cloud.dialogfl" - + "ow.v2.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + + " \001(\01320.google.cloud.dialogflow.v2.DetectIntentResponse\022F\n" + + "\021response_messages\030\003" + + " \003(\0132+.google.cloud.dialogflow.v2.ResponseMessage\0225\n" + + "\006intent\030\004 \001(\tB%\372A\"\n" + + " dialogflow.googleapis.com/Intent\022\r\n" + + "\005event\030\005 \001(\t\022\030\n" + + "\020match_confidence\030\t \001(\002\022+\n\n" + + "parameters\030\n" + + " \001(\0132\027.google.protobuf.Struct\022k\n" + + "\032automated_agent_reply_type\030\007 \001(\0162G.google.clo" + + "ud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + "\022allow_cancellation\030\010 \001(\010\022\027\n" - + "\017cx_current_page\030\013 \001(\t\"]\n" + + "\017cx_current_page\030\013 \001(\t\022 \n" + + "\030call_companion_auth_code\030\014 \001(\014\"]\n" + "\027AutomatedAgentReplyType\022*\n" + "&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PARTIAL\020\001\022\t\n" @@ -606,8 +645,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022\022\n\n" + "confidence\030\004 \001(\002\022I\n" - + "\010metadata\030\005" - + " \003(\01327.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\022\025\n\r" + + "\010metadata\030\005 \003(\01327.google.cloud." + + "dialogflow.v2.ArticleAnswer.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -634,27 +673,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\005 \001(\tB\010\n" + "\006intent\"\305\001\n" + "\026DialogflowAssistAnswer\022?\n" - + "\014query_result\030\001 \001(" - + "\0132\'.google.cloud.dialogflow.v2.QueryResultH\000\022I\n" - + "\021intent_suggestion\030\005 \001(\0132,.google" - + ".cloud.dialogflow.v2.IntentSuggestionH\000\022\025\n\r" + + "\014query_result\030\001" + + " \001(\0132\'.google.cloud.dialogflow.v2.QueryResultH\000\022I\n" + + "\021intent_suggestion\030\005 \001(\0132,.g" + + "oogle.cloud.dialogflow.v2.IntentSuggestionH\000\022\025\n\r" + "answer_record\030\002 \001(\tB\010\n" + "\006result\"\252\005\n" + "\020SuggestionResult\022#\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022X\n" + "\031suggest_articles_response\030\002" + " \001(\01323.google.cloud.dialogflow.v2.SuggestArticlesResponseH\000\022g\n" - + "!suggest_knowledge_assist_response\030\010 \001(\0132:.google.cloud.d" - + "ialogflow.v2.SuggestKnowledgeAssistResponseH\000\022]\n" - + "\034suggest_faq_answers_response\030\003 " - + "\001(\01325.google.cloud.dialogflow.v2.SuggestFaqAnswersResponseH\000\022a\n" - + "\036suggest_smart_replies_response\030\004 \001(\01327.google.cloud.dial" - + "ogflow.v2.SuggestSmartRepliesResponseH\000\022`\n" - + "\035generate_suggestions_response\030\t \001(\01327" - + ".google.cloud.dialogflow.v2.GenerateSuggestionsResponseH\000\022s\n" + + "!suggest_knowledge_assist_response\030\010 \001(\0132:.google.cl" + + "oud.dialogflow.v2.SuggestKnowledgeAssistResponseH\000\022]\n" + + "\034suggest_faq_answers_response\030\003" + + " \001(\01325.google.cloud.dialogflow.v2.SuggestFaqAnswersResponseH\000\022a\n" + + "\036suggest_smart_replies_response\030\004 \001(\01327.google.cloud" + + ".dialogflow.v2.SuggestSmartRepliesResponseH\000\022`\n" + + "\035generate_suggestions_response\030\t " + + "\001(\01327.google.cloud.dialogflow.v2.GenerateSuggestionsResponseH\000\022s\n" + "\'generate_companion_suggestions_response\030\n" - + " \001(\0132@.google.clou" - + "d.dialogflow.v2.GenerateCompanionSuggestionsResponseH\000B\025\n" + + " \001(\0132@.google" + + ".cloud.dialogflow.v2.GenerateCompanionSuggestionsResponseH\000B\025\n" + "\023suggestion_response\".\n" + "\017InputTextConfig\022\033\n\r" + "language_code\030\001 \001(\tB\004\342A\001\002\"j\n" @@ -663,14 +702,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013entity_type\030\002 \001(\t\022/\n" + "\017formatted_value\030\003 \001(\0132\026.google.protobuf.Value\"n\n" + "\021MessageAnnotation\022?\n" - + "\005parts\030\001 \003(\01320.google.c" - + "loud.dialogflow.v2.AnnotatedMessagePart\022\030\n" + + "\005parts\030\001 \003(\01320.goo" + + "gle.cloud.dialogflow.v2.AnnotatedMessagePart\022\030\n" + "\020contain_entities\030\002 \001(\010\"\247\002\n" + "\017SuggestionInput\022\033\n\r" + "answer_record\030\001 \001(\tB\004\342A\001\002\0221\n\n" + "parameters\030\004 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022H\n" - + "\006action\030\005 \001(\01622.google.cloud.dia" - + "logflow.v2.SuggestionInput.ActionB\004\342A\001\001\0223\n" + + "\006action\030\005 \001(\01622.google.clou" + + "d.dialogflow.v2.SuggestionInput.ActionB\004\342A\001\001\0223\n" + "\tsend_time\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"E\n" + "\006Action\022\026\n" + "\022ACTION_UNSPECIFIED\020\000\022\n\n" @@ -678,11 +717,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006REVISE\020\002\022\013\n" + "\007CONFIRM\020\003\"\315\001\n" + "\025AssistQueryParameters\022s\n" - + "\032documents_metadata_filters\030\001 \003(\0132O.google.cloud" - + ".dialogflow.v2.AssistQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + + "\032documents_metadata_filters\030\001 \003(\0132O.google." + + "cloud.dialogflow.v2.AssistQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + "\035DocumentsMetadataFiltersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\347\001\n" + + "\005value\030\002 \001(\t:\0028\001\"\345\006\n" + + "\017ResponseMessage\022@\n" + + "\004text\030\001" + + " \001(\01320.google.cloud.dialogflow.v2.ResponseMessage.TextH\000\022*\n" + + "\007payload\030\002 \001(\0132\027.google.protobuf.StructH\000\022Z\n" + + "\022live_agent_handoff\030\003 \001(\0132<.google.cloud.dialogflow" + + ".v2.ResponseMessage.LiveAgentHandoffH\000\022U\n" + + "\017end_interaction\030\004 \001(\0132:.google.cloud.d" + + "ialogflow.v2.ResponseMessage.EndInteractionH\000\022M\n" + + "\013mixed_audio\030\005 \001(\01326.google.clou" + + "d.dialogflow.v2.ResponseMessage.MixedAudioH\000\022d\n" + + "\027telephony_transfer_call\030\006 \001(\0132A." + + "google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + + "\004Text\022\014\n" + + "\004text\030\001 \003(\t\032=\n" + + "\020LiveAgentHandoff\022)\n" + + "\010metadata\030\001 \001(\0132\027.google.protobuf.Struct\032\020\n" + + "\016EndInteraction\032\271\001\n\n" + + "MixedAudio\022P\n" + + "\010segments\030\001 \003" + + "(\0132>.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment\032Y\n" + + "\007Segment\022\017\n" + + "\005audio\030\001 \001(\014H\000\022\r\n" + + "\003uri\030\002 \001(\tH\000\022#\n" + + "\033allow_playback_interruption\030\003 \001(\010B\t\n" + + "\007content\032N\n" + + "\025TelephonyTransferCall\022\026\n" + + "\014phone_number\030\001 \001(\tH\000\022\021\n" + + "\007sip_uri\030\002 \001(\tH\000B\n\n" + + "\010endpointB\t\n" + + "\007message\"\347\001\n" + "\035SuggestKnowledgeAssistRequest\022>\n" + "\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022B\n" @@ -691,22 +760,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014context_size\030\003 \001(\005B\004\342A\001\001\022&\n" + "\030previous_suggested_query\030\004 \001(\tB\004\342A\001\001\"\255\002\n" + "\036SuggestKnowledgeAssistResponse\022X\n" - + "\027knowledge_assist_answer\030\001 \001(\01321.goog" - + "le.cloud.dialogflow.v2.KnowledgeAssistAnswerB\004\342A\001\003\022\026\n" + + "\027knowledge_assist_answer\030\001 \001(\01321.google." + + "cloud.dialogflow.v2.KnowledgeAssistAnswerB\004\342A\001\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\022\202\001\n" - + "\"additional_suggested_query_results\030\004 \003(\0132P.google.cloud.dia" - + "logflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResultB\004\342A\001\001\"\271\005\n" + + "\"additional_suggested_query_results\030\004 \003(\0132P.google.cloud.dialog" + + "flow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResultB\004\342A\001\001\"\271\005\n" + "!IngestedContextReferenceDebugInfo\022\037\n" + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + "\033context_reference_retrieved\030\002 \001(\010\022\200\001\n" - + "\036ingested_parameters_debug_info\030\003 \003(\0132X.google.cloud.dialog" - + "flow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132X.google.cloud.dialogflo" + + "w.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + "\032IngestedParameterDebugInfo\022\021\n" + "\tparameter\030\001 \001(\t\022\202\001\n" - + "\020ingestion_status\030\002 \001(\0162h.google.cloud" - + ".dialogflow.v2.IngestedContextReferenceD" - + "ebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\020ingestion_status\030\002 \001(\0162h.google.cloud.di" + + "alogflow.v2.IngestedContextReferenceDebu" + + "gInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + "\017IngestionStatus\022 \n" + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" @@ -716,29 +785,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\227\002\n" + "\016ServiceLatency\022e\n" - + "\032internal_service_latencies\030\001 \003(\0132A.google.cloud." - + "dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\032internal_service_latencies\030\001 \003(\0132A.google.cloud.dia" + + "logflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + "\026InternalServiceLatency\022\014\n" + "\004step\030\001 \001(\t\022\022\n\n" + "latency_ms\030\002 \001(\002\022.\n\n" - + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n" + + "\r" + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\223\023\n" + "\030KnowledgeAssistDebugInfo\022z\n" - + "\037query_generation_failure_reason\030\001 \001(" - + "\0162Q.google.cloud.dialogflow.v2.Knowledge" - + "AssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" - + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud.dialogflow.v2." - + "KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" + + "\037query_generation_failure_reason\030\001 \001(\0162Q" + + ".google.cloud.dialogflow.v2.KnowledgeAss" + + "istDebugInfo.QueryGenerationFailureReason\022\202\001\n" + + "#query_categorization_failure_reason\030\002" + + " \001(\0162U.google.cloud.dialogflow.v2.Kno" + + "wledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" + "\031datastore_response_reason\030\003" + " \001(\01623.google.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" - + "\031knowledge_assist_behavior\030\004 \001(\0132L.google.cloud.dial" - + "ogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" - + "%ingested_context_reference_debug_info\030\005 \001(\0132=.google.cloud" - + ".dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132L.google.cloud.dialogf" + + "low.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\005 \001(\0132=.google.cloud.di" + + "alogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + "\017service_latency\030\006" + " \001(\0132*.google.cloud.dialogflow.v2.ServiceLatency\022r\n" - + "\033query_generation_debug_info\030\007 \001(\0132M.goo" - + "gle.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo\022/\n" + + "\033query_generation_debug_info\030\007 \001(\0132M.google" + + ".cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo\022/\n" + "\016ces_debug_info\030\010 \001(\0132\027.google.protobuf.Struct\032\271\005\n" + "\027KnowledgeAssistBehavior\022%\n" + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" @@ -772,7 +843,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" + "\027QUERY_GENERATION_FAILED\020\002\022\'\n" - + "#QUERY_GENERATION_NO_QUERY_GENERATED\020\003\022\037\n" + + "#QUERY_GENERATION_NO_Q", + "UERY_GENERATED\020\003\022\037\n" + "\033QUERY_GENERATION_RAI_FAILED\020\004\022\024\n" + "\020NOT_IN_ALLOWLIST\020\005\022#\n" + "\037QUERY_GENERATION_QUERY_REDACTED\020\006\022.\n" @@ -788,41 +860,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\306\014\n" + "\025KnowledgeAssistAnswer\022Y\n" - + "\017suggested_query\030\001 \001(\0132@.g" - + "oogle.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" - + "\026suggested_query_answer\030\002 \001(\0132A.google.cloud.dialogflow" - + ".v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132@.goog" + + "le.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" + + "\026suggested_query_answer\030\002 \001(\0132A.google.cloud.dialogflow.v2" + + ".KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\022Y\n" + "\033knowledge_assist_debug_info\030\007" + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032\314\001\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\022m\n" - + "\017search_contexts\030\004 \003(\0132N.google.cloud.dialo" - + "gflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContextB\004\342A\001\001\0327\n\r" + + "\017search_contexts\030\004 \003(\0132N.google.cloud.dialogfl" + + "ow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContextB\004\342A\001\001\0327\n\r" + "SearchContext\022\021\n" + "\003key\030\001 \001(\tB\004\342A\001\001\022\023\n" + "\005value\030\002 \001(\tB\004\342A\001\001\032\311\001\n" + "\036AdditionalSuggestedQueryResult\022_\n" - + "\017suggested_query\030\001 \001(\0132@.google.cloud.di" - + "alogflow.v2.KnowledgeAssistAnswer.SuggestedQueryB\004\342A\001\003\022F\n\r" - + "answer_record\030\005 \001(\tB/\342", - "A\001\003\372A(\n" + + "\017suggested_query\030\001 \001(\0132@.google.cloud.dialo" + + "gflow.v2.KnowledgeAssistAnswer.SuggestedQueryB\004\342A\001\003\022F\n\r" + + "answer_record\030\005 \001(\tB/\342A\001\003\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032\341\006\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022a\n\n" - + "faq_source\030\003 \001(\0132K.google.clo" - + "ud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" - + "\021generative_source\030\004 \001(\0132R.google.cloud.dialogflow." - + "v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022m\n" - + "\017playbook_source\030\007 \001(\0132R.google.cloud.dialogflow.v2.Knowle" - + "dgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022e\n" - + "\014event_source\030\010 \001(\0132M.googl" - + "e.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132K.google.cloud." + + "dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" + + "\021generative_source\030\004 \001(\0132R.google.cloud.dialogflow.v2." + + "KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022m\n" + + "\017playbook_source\030\007 \001(\0132R.google.cloud.dialogflow.v2.Knowledge" + + "AssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022e\n" + + "\014event_source\030\010 \001(\0132M.google.c" + + "loud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\340\001\n" + "\020GenerativeSource\022l\n" - + "\010snippets\030\001 \003(\0132Z.google.cloud.d" - + "ialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132Z.google.cloud.dial" + + "ogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" @@ -830,29 +901,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\032\202\001\n" + "\013EventSource\022\r\n" + "\005event\030\001 \001(\t\022d\n" - + "\010snippets\030\002 \001(\0132R.google.cloud.dial" - + "ogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceB\010\n" + + "\010snippets\030\002 \001(\0132R.google.cloud.dialogf" + + "low.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceB\010\n" + "\006source\"\245\002\n" + ",StreamingReactiveCompanionSuggestionsRequest\022C\n" + "\013participant\030\001 \001(\tB.\342A\001\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022\024\n\n" + "text_input\030\002 \001(\tH\000\022H\n" - + "\025cancel_reactive_query\030\003" - + " \001(\0132\'.google.cloud.dialogflow.v2.CancelQueryH\000\022G\n" - + "\020suggestion_input\030\005 \001(\0132+.goo" - + "gle.cloud.dialogflow.v2.SuggestionInputH\000B\007\n" + + "\025cancel_reactive_query\030\003 \001" + + "(\0132\'.google.cloud.dialogflow.v2.CancelQueryH\000\022G\n" + + "\020suggestion_input\030\005 \001(\0132+.google" + + ".cloud.dialogflow.v2.SuggestionInputH\000B\007\n" + "\005input\"\r\n" + "\013CancelQuery\"\337\005\n" + "-StreamingReactiveCompanionSuggestionsResponse\022\030\n" + "\016response_chunk\030\001 \001(\tH\000\022$\n" + "\006status\030\003 \001(\0132\022.google.rpc.StatusH\000\022\214\001\n" - + "\034reactive_mode_final_response\030\006 \001(\0132^.google.cloud.dialog" - + "flow.v2.StreamingReactiveCompanionSugges" - + "tionsResponse.ReactiveModeResponseB\004\342A\001\003H\000\022Y\n" - + "\035intermediate_tool_call_events\030\007 \001(" - + "\0132*.google.cloud.dialogflow.v2.ToolCallEventsB\004\342A\001\003H\000\022\026\n" - + "\010is_final\030\004 \001(\010B\004\342A\001\003\022F\n" - + "\r" + + "\034reactive_mode_final_response\030\006 \001(\0132^.google.cloud.dialogflo" + + "w.v2.StreamingReactiveCompanionSuggestio" + + "nsResponse.ReactiveModeResponseB\004\342A\001\003H\000\022Y\n" + + "\035intermediate_tool_call_events\030\007 \001(\0132*" + + ".google.cloud.dialogflow.v2.ToolCallEventsB\004\342A\001\003H\000\022\026\n" + + "\010is_final\030\004 \001(\010B\004\342A\001\003\022F\n\r" + "answer_record\030\005 \001(\tB/\342A\001\003\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\022\035\n" + "\017text_message_id\030\010 \001(\tB\004\342A\001\002\022-\n" @@ -860,38 +930,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ReactiveModeResponse\022\026\n" + "\010response\030\001 \001(\tB\004\342A\001\001\022O\n" + "\022grounding_metadata\030\002" - + " \001(\0132-.google.cloud.dialogflow.v2.GroundingMetadataB\004\342A\001\001\022H\n" - + "\n" + + " \001(\0132-.google.cloud.dialogflow.v2.GroundingMetadataB\004\342A\001\001\022H\n\n" + "tool_calls\030\003" + " \003(\0132..google.cloud.dialogflow.v2.ToolCallSuggestionB\004\342A\001\001B\n\n" - + "\010response\"\251\014\n" + + "\010response\"\205\r\n" + "\"BidiStreamingAnalyzeContentRequest\022W\n" - + "\006config\030\001 \001(\0132E.google.cloud.dialog" - + "flow.v2.BidiStreamingAnalyzeContentRequest.ConfigH\000\022U\n" - + "\005input\030\002 \001(\0132D.google.clou" - + "d.dialogflow.v2.BidiStreamingAnalyzeContentRequest.InputH\000\032\200\007\n" + + "\006config\030\001 \001(\0132E.google.cloud.dialogflo" + + "w.v2.BidiStreamingAnalyzeContentRequest.ConfigH\000\022U\n" + + "\005input\030\002 \001(\0132D.google.cloud.d" + + "ialogflow.v2.BidiStreamingAnalyzeContentRequest.InputH\000\032\334\007\n" + "\006Config\022C\n" + "\013participant\030\001 \001(\tB.\342A\001\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022x\n" - + "\024voice_session_config\030\002 \001(\0132X.google.cloud.dialogflow.v2.Bi" - + "diStreamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022G\n" + + "\024voice_session_config\030\002 \001(\0132X.google.cloud.dialogflow.v2.BidiS" + + "treamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022G\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022]\n" + "\"initial_virtual_agent_query_params\030\004" - + " \001(\0132+.google.cloud.dialogflow.v2.QueryParametersB\004\342A\001\001\032\204\004\n" + + " \001(\0132+.google.cloud.dialogflow.v2.QueryParametersB\004\342A\001\001\032\340\004\n" + "\022VoiceSessionConfig\022M\n" - + "\024input_audio_encoding\030\001 \001(" - + "\0162).google.cloud.dialogflow.v2.AudioEncodingB\004\342A\001\002\022+\n" + + "\024input_audio_encoding\030\001 \001(\0162)" + + ".google.cloud.dialogflow.v2.AudioEncodingB\004\342A\001\002\022+\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\004\342A\001\002\022T\n" - + "\025output_audio_encoding\030\003" - + " \001(\0162/.google.cloud.dialogflow.v2.OutputAudioEncodingB\004\342A\001\002\022,\n" + + "\025output_audio_encoding\030\003 " + + "\001(\0162/.google.cloud.dialogflow.v2.OutputAudioEncodingB\004\342A\001\002\022,\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\004\342A\001\002\022,\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\004\342A\001\001\022)\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\004\342A\001\001\022_\n" - + "\021gemini_asr_config\030\030 \001(\0132>.google.cloud.d" - + "ialogflow.v2.SpeechToTextConfig.GeminiAsrConfigB\004\342A\001\001\022!\n" - + "\016use_gemini_asr\030\031 \001(\010B\004\342A\001\001H\000\210\001\001B\021\n" - + "\017_use_gemini_asrB\010\n" + + "\021gemini_asr_config\030\030 \001(\0132>.google.cloud.dial" + + "ogflow.v2.SpeechToTextConfig.GeminiAsrConfigB\004\342A\001\001\022!\n" + + "\016use_gemini_asr\030\031 \001(\010B\004\342A\001\001H\000\210\001\001\0224\n" + + "!disable_interim_input_transcripts\030\032" + + " \001(\010B\004\342A\001\001H\001\210\001\001B\021\n" + + "\017_use_gemini_asrB$\n" + + "\"_disable_interim_input_transcriptsB\010\n" + "\006config\032\205\002\n" + "\tTurnInput\022\016\n" + "\004text\030\001 \001(\tH\000\0227\n" @@ -905,21 +977,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014main_content\032\274\001\n" + "\005Input\022\017\n" + "\005audio\030\001 \001(\014H\000\022?\n" - + "\004dtmf\030\002" - + " \001(\0132/.google.cloud.dialogflow.v2.TelephonyDtmfEventsH\000\022X\n" - + "\004turn\030\003 \001(\0132H.google.cloud.dialogflow.v2.Bid" - + "iStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + + "\004dtmf\030\002 \001(\0132/.google" + + ".cloud.dialogflow.v2.TelephonyDtmfEventsH\000\022X\n" + + "\004turn\030\003 \001(\0132H.google.cloud.dialogfl" + + "ow.v2.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + "\005inputB\t\n" + "\007request\"\321\003\n" + "#BidiStreamingAnalyzeContentResponse\022T\n" - + "\022recognition_result\030\001" - + " \001(\01326.google.cloud.dialogflow.v2.StreamingRecognitionResultH\000\022h\n" - + "\017barge_in_signal\030\002 \001(\0132M.google.cloud.dialogflow" - + ".v2.BidiStreamingAnalyzeContentResponse.BargeInSignalH\000\022V\n" + + "\022recognition_result\030\001 \001(\01326.google.cloud.dial" + + "ogflow.v2.StreamingRecognitionResultH\000\022h\n" + + "\017barge_in_signal\030\002 \001(\0132M.google.cloud.d" + + "ialogflow.v2.BidiStreamingAnalyzeContentResponse.BargeInSignalH\000\022V\n" + "\030analyze_content_response\030\003" + " \001(\01322.google.cloud.dialogflow.v2.AnalyzeContentResponseH\000\022e\n\r" - + "turn_complete\030\004 \001(\0132L.google.cloud.dialogflow.v2.Bidi" - + "StreamingAnalyzeContentResponse.TurnCompleteH\000\032\017\n\r" + + "turn_complete\030\004 \001(\0132L.google.cloud.dialogflo" + + "w.v2.BidiStreamingAnalyzeContentResponse.TurnCompleteH\000\032\017\n\r" + "BargeInSignal\032\016\n" + "\014TurnCompleteB\n\n" + "\010response*\326\002\n" @@ -935,76 +1007,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\346\033\n" + "\014Participants\022\245\002\n" - + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.CreateParticipa" - + "ntRequest\032\'.google.cloud.dialogflow.v2.P" - + "articipant\"\260\001\332A\022parent,participant\202\323\344\223\002\224" - + "\001\"4/v2/{parent=projects/*/conversations/" - + "*}/participants:\013participantZO\"@/v2/{par" - + "ent=projects/*/locations/*/conversations/*}/participants:\013participant\022\366\001\n" - + "\016GetParticipant\0221.google.cloud.dialogflow.v2.Ge" - + "tParticipantRequest\032\'.google.cloud.dialo" - + "gflow.v2.Participant\"\207\001\332A\004name\202\323\344\223\002z\0224/v" - + "2/{name=projects/*/conversations/*/participants/*}ZB\022@/v2/{name=projects/*/locat" - + "ions/*/conversations/*/participants/*}\022\211\002\n" - + "\020ListParticipants\0223.google.cloud.dialo" - + "gflow.v2.ListParticipantsRequest\0324.google.cloud.dialogflow.v2.ListParticipantsRe" - + "sponse\"\211\001\332A\006parent\202\323\344\223\002z\0224/v2/{parent=pr" - + "ojects/*/conversations/*}/participantsZB" - + "\022@/v2/{parent=projects/*/locations/*/conversations/*}/participants\022\302\002\n" - + "\021UpdateParticipant\0224.google.cloud.dialogflow.v2.Up" - + "dateParticipantRequest\032\'.google.cloud.di" - + "alogflow.v2.Participant\"\315\001\332A\027participant" - + ",update_mask\202\323\344\223\002\254\0012@/v2/{participant.na" - + "me=projects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{participant.n" - + "ame=projects/*/locations/*/conversations/*/participants/*}:\013participant\022\372\002\n" - + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2." - + "AnalyzeContentRequest\0322.google.cloud.dia" - + "logflow.v2.AnalyzeContentResponse\"\200\002\332A\026p" - + "articipant,text_input\332A\027participant,even" - + "t_input\332A\027participant,audio_input\202\323\344\223\002\254\001" - + "\"J/v2/{participant=projects/*/conversations/*/participants/*}:analyzeContent:\001*Z" - + "[\"V/v2/{participant=projects/*/locations" - + "/*/conversations/*/participants/*}:analyzeContent:\001*\022\230\001\n" - + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2.StreamingA" - + "nalyzeContentRequest\032;.google.cloud.dial" - + "ogflow.v2.StreamingAnalyzeContentResponse\"\000(\0010\001\022\244\001\n" - + "\033BidiStreamingAnalyzeContent\022>.google.cloud.dialogflow.v2.BidiStreami" - + "ngAnalyzeContentRequest\032?.google.cloud.d" - + "ialogflow.v2.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\302\001\n" - + "%StreamingReactiveCompanionSuggestions\022H.google.cloud.dialogfl" - + "ow.v2.StreamingReactiveCompanionSuggestionsRequest\032I.google.cloud.dialogflow.v2." - + "StreamingReactiveCompanionSuggestionsResponse\"\000(\0010\001\022\311\002\n" - + "\017SuggestArticles\0222.google.cloud.dialogflow.v2.SuggestArticlesRequ" - + "est\0323.google.cloud.dialogflow.v2.Suggest" - + "ArticlesResponse\"\314\001\332A\006parent\202\323\344\223\002\274\001\"R/v2" - + "/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles:" - + "\001*Zc\"^/v2/{parent=projects/*/locations/*" - + "/conversations/*/participants/*}/suggestions:suggestArticles:\001*\022\323\002\n" - + "\021SuggestFaqAnswers\0224.google.cloud.dialogflow.v2.Sugge" - + "stFaqAnswersRequest\0325.google.cloud.dialo" - + "gflow.v2.SuggestFaqAnswersResponse\"\320\001\332A\006" - + "parent\202\323\344\223\002\300\001\"T/v2/{parent=projects/*/co" - + "nversations/*/participants/*}/suggestions:suggestFaqAnswers:\001*Ze\"`/v2/{parent=pr" - + "ojects/*/locations/*/conversations/*/par" - + "ticipants/*}/suggestions:suggestFaqAnswers:\001*\022\335\002\n" - + "\023SuggestSmartReplies\0226.google.cloud.dialogflow.v2.SuggestSmartRepliesRe" - + "quest\0327.google.cloud.dialogflow.v2.Sugge" - + "stSmartRepliesResponse\"\324\001\332A\006parent\202\323\344\223\002\304" - + "\001\"V/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestSma" - + "rtReplies:\001*Zg\"b/v2/{parent=projects/*/locations/*/conversations/*/participants/" - + "*}/suggestions:suggestSmartReplies:\001*\022\343\002\n" - + "\026SuggestKnowledgeAssist\0229.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequ" - + "est\032:.google.cloud.dialogflow.v2.Suggest" - + "KnowledgeAssistResponse\"\321\001\202\323\344\223\002\312\001\"Y/v2/{" - + "parent=projects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAs" - + "sist:\001*Zj\"e/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/su" - + "ggestions:suggestKnowledgeAssist:\001*\032x\312A\031" - + "dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https" - + "://www.googleapis.com/auth/dialogflowB\226\001\n" - + "\036com.google.cloud.dialogflow.v2B\020Partic" - + "ipantProtoP\001Z>cloud.google.com/go/dialog" - + "flow/apiv2/dialogflowpb;dialogflowpb\242\002\002D" - + "F\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" + + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.Create" + + "ParticipantRequest\032\'.google.cloud.dialog" + + "flow.v2.Participant\"\260\001\332A\022parent,particip" + + "ant\202\323\344\223\002\224\001\"4/v2/{parent=projects/*/conve" + + "rsations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locations/*/conv" + + "ersations/*}/participants:\013participant\022\366\001\n" + + "\016GetParticipant\0221.google.cloud.dialogf" + + "low.v2.GetParticipantRequest\032\'.google.cl" + + "oud.dialogflow.v2.Participant\"\207\001\332A\004name\202" + + "\323\344\223\002z\0224/v2/{name=projects/*/conversation" + + "s/*/participants/*}ZB\022@/v2/{name=project" + + "s/*/locations/*/conversations/*/participants/*}\022\211\002\n" + + "\020ListParticipants\0223.google.cloud.dialogflow.v2.ListParticipantsReques" + + "t\0324.google.cloud.dialogflow.v2.ListParti" + + "cipantsResponse\"\211\001\332A\006parent\202\323\344\223\002z\0224/v2/{" + + "parent=projects/*/conversations/*}/parti" + + "cipantsZB\022@/v2/{parent=projects/*/locations/*/conversations/*}/participants\022\302\002\n" + + "\021UpdateParticipant\0224.google.cloud.dialogf" + + "low.v2.UpdateParticipantRequest\032\'.google" + + ".cloud.dialogflow.v2.Participant\"\315\001\332A\027pa" + + "rticipant,update_mask\202\323\344\223\002\254\0012@/v2/{parti" + + "cipant.name=projects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{part" + + "icipant.name=projects/*/locations/*/conv" + + "ersations/*/participants/*}:\013participant\022\372\002\n" + + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.AnalyzeContentRequest\0322.google." + + "cloud.dialogflow.v2.AnalyzeContentRespon" + + "se\"\200\002\332A\026participant,text_input\332A\027partici" + + "pant,event_input\332A\027participant,audio_inp" + + "ut\202\323\344\223\002\254\001\"J/v2/{participant=projects/*/c" + + "onversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/{participant=projects/*/" + + "locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\230\001\n" + + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2.S" + + "treamingAnalyzeContentRequest\032;.google.c" + + "loud.dialogflow.v2.StreamingAnalyzeContentResponse\"\000(\0010\001\022\244\001\n" + + "\033BidiStreamingAnalyzeContent\022>.google.cloud.dialogflow.v2.Bi" + + "diStreamingAnalyzeContentRequest\032?.googl" + + "e.cloud.dialogflow.v2.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\302\001\n" + + "%StreamingReactiveCompanionSuggestions\022H.google.cloud" + + ".dialogflow.v2.StreamingReactiveCompanionSuggestionsRequest\032I.google.cloud.dialo" + + "gflow.v2.StreamingReactiveCompanionSuggestionsResponse\"\000(\0010\001\022\311\002\n" + + "\017SuggestArticles\0222.google.cloud.dialogflow.v2.SuggestArt" + + "iclesRequest\0323.google.cloud.dialogflow.v" + + "2.SuggestArticlesResponse\"\314\001\332A\006parent\202\323\344" + + "\223\002\274\001\"R/v2/{parent=projects/*/conversatio" + + "ns/*/participants/*}/suggestions:suggestArticles:\001*Zc\"^/v2/{parent=projects/*/lo" + + "cations/*/conversations/*/participants/*}/suggestions:suggestArticles:\001*\022\323\002\n" + + "\021SuggestFaqAnswers\0224.google.cloud.dialogflow" + + ".v2.SuggestFaqAnswersRequest\0325.google.cloud.dialogflow.v2.SuggestFaqAnswersRespo" + + "nse\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent=proj" + + "ects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\001*Ze\"`/v2/{" + + "parent=projects/*/locations/*/conversati" + + "ons/*/participants/*}/suggestions:suggestFaqAnswers:\001*\022\335\002\n" + + "\023SuggestSmartReplies\0226.google.cloud.dialogflow.v2.SuggestSmart" + + "RepliesRequest\0327.google.cloud.dialogflow" + + ".v2.SuggestSmartRepliesResponse\"\324\001\332A\006par" + + "ent\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/conve" + + "rsations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zg\"b/v2/{parent=pro" + + "jects/*/locations/*/conversations/*/part" + + "icipants/*}/suggestions:suggestSmartReplies:\001*\022\343\002\n" + + "\026SuggestKnowledgeAssist\0229.google.cloud.dialogflow.v2.SuggestKnowledgeA" + + "ssistRequest\032:.google.cloud.dialogflow.v" + + "2.SuggestKnowledgeAssistResponse\"\321\001\202\323\344\223\002" + + "\312\001\"Y/v2/{parent=projects/*/conversations" + + "/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zj\"e/v2/{parent=projects" + + "/*/locations/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssis" + + "t:\001*\032x\312A\031dialogflow.googleapis.com\322AYhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/dialogflowB\226\001\n" + + "\036com.google.cloud.dialogflow.v2B\020ParticipantProtoP\001Z>cloud.google.com/" + + "go/dialogflow/apiv2/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1053,6 +1126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Content", + "ResponseMessages", "LanguageCode", "Participant", "ParticipantRole", @@ -1326,9 +1400,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor, new java.lang.String[] { "DetectIntentResponse", + "ResponseMessages", + "Intent", + "Event", + "MatchConfidence", + "Parameters", "AutomatedAgentReplyType", "AllowCancellation", "CxCurrentPage", + "CallCompanionAuthCode", }); internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor = getDescriptor().getMessageType(26); @@ -1450,8 +1530,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistRequest_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor = getDescriptor().getMessageType(37); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor, + new java.lang.String[] { + "Text", + "Payload", + "LiveAgentHandoff", + "EndInteraction", + "MixedAudio", + "TelephonyTransferCall", + "Message", + }); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_descriptor, + new java.lang.String[] { + "Text", + }); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor.getNestedType(1); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_descriptor, + new java.lang.String[] { + "Metadata", + }); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor.getNestedType(2); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor.getNestedType(3); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor, + new java.lang.String[] { + "Segments", + }); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_descriptor, + new java.lang.String[] { + "Audio", "Uri", "AllowPlaybackInterruption", "Content", + }); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_descriptor = + internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor.getNestedType(4); + internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_descriptor, + new java.lang.String[] { + "PhoneNumber", "SipUri", "Endpoint", + }); + internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistRequest_descriptor = + getDescriptor().getMessageType(38); internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistRequest_descriptor, @@ -1459,7 +1600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LatestMessage", "ContextSize", "PreviousSuggestedQuery", }); internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_descriptor, @@ -1470,7 +1611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdditionalSuggestedQueryResults", }); internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(40); internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor, @@ -1487,7 +1628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parameter", "IngestionStatus", }); internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(41); internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor, @@ -1503,7 +1644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Step", "LatencyMs", "StartTime", "CompleteTime", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(42); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor, @@ -1558,7 +1699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SimilarityToLastQueryThreshold", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(43); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor, @@ -1643,7 +1784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Event", "Snippets", }); internal_static_google_cloud_dialogflow_v2_StreamingReactiveCompanionSuggestionsRequest_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(44); internal_static_google_cloud_dialogflow_v2_StreamingReactiveCompanionSuggestionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_StreamingReactiveCompanionSuggestionsRequest_descriptor, @@ -1651,13 +1792,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Participant", "TextInput", "CancelReactiveQuery", "SuggestionInput", "Input", }); internal_static_google_cloud_dialogflow_v2_CancelQuery_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(45); internal_static_google_cloud_dialogflow_v2_CancelQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_CancelQuery_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dialogflow_v2_StreamingReactiveCompanionSuggestionsResponse_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(46); internal_static_google_cloud_dialogflow_v2_StreamingReactiveCompanionSuggestionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_StreamingReactiveCompanionSuggestionsResponse_descriptor, @@ -1682,7 +1823,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Response", "GroundingMetadata", "ToolCalls", }); internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(47); internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentRequest_descriptor, @@ -1717,6 +1858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableStreamingSynthesize", "GeminiAsrConfig", "UseGeminiAsr", + "DisableInterimInputTranscripts", }); internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor = internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentRequest_descriptor @@ -1737,7 +1879,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audio", "Dtmf", "Turn", "Input", }); internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentResponse_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(48); internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_BidiStreamingAnalyzeContentResponse_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ResponseMessage.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ResponseMessage.java new file mode 100644 index 000000000000..1210b8e10a23 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ResponseMessage.java @@ -0,0 +1,7520 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
+ * Response messages from an automated agent.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage} + */ +@com.google.protobuf.Generated +public final class ResponseMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage) + ResponseMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ResponseMessage"); + } + + // Use ResponseMessage.newBuilder() to construct. + private ResponseMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ResponseMessage() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.class, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder.class); + } + + public interface TextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage.Text) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @return A list containing the text. + */ + java.util.List getTextList(); + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @return The count of text. + */ + int getTextCount(); + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @param index The index of the element to return. + * @return The text at the given index. + */ + java.lang.String getText(int index); + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @param index The index of the value to return. + * @return The bytes of the text at the given index. + */ + com.google.protobuf.ByteString getTextBytes(int index); + } + + /** + * + * + *
+   * The text response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.Text} + */ + public static final class Text extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage.Text) + TextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Text"); + } + + // Use Text.newBuilder() to construct. + private Text(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Text() { + text_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.Text.class, + com.google.cloud.dialogflow.v2.ResponseMessage.Text.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @return A list containing the text. + */ + public com.google.protobuf.ProtocolStringList getTextList() { + return text_; + } + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @return The count of text. + */ + public int getTextCount() { + return text_.size(); + } + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @param index The index of the element to return. + * @return The text at the given index. + */ + public java.lang.String getText(int index) { + return text_.get(index); + } + + /** + * + * + *
+     * A collection of text response variants. If multiple variants are
+     * defined, only one text response variant is returned at runtime.
+     * 
+ * + * repeated string text = 1; + * + * @param index The index of the value to return. + * @return The bytes of the text at the given index. + */ + public com.google.protobuf.ByteString getTextBytes(int index) { + return text_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < text_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, text_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < text_.size(); i++) { + dataSize += computeStringSizeNoTag(text_.getRaw(i)); + } + size += dataSize; + size += 1 * getTextList().size(); + } + size += getUnknownFields().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.v2.ResponseMessage.Text)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage.Text other = + (com.google.cloud.dialogflow.v2.ResponseMessage.Text) obj; + + if (!getTextList().equals(other.getTextList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTextCount() > 0) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getTextList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text 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.v2.ResponseMessage.Text parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text 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.v2.ResponseMessage.Text parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage.Text 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The text response message.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.Text} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage.Text) + com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.Text.class, + com.google.cloud.dialogflow.v2.ResponseMessage.Text.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ResponseMessage.Text.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_Text_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.Text getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.Text build() { + com.google.cloud.dialogflow.v2.ResponseMessage.Text result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.Text buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage.Text result = + new com.google.cloud.dialogflow.v2.ResponseMessage.Text(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ResponseMessage.Text result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + text_.makeImmutable(); + result.text_ = text_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage.Text) { + return mergeFrom((com.google.cloud.dialogflow.v2.ResponseMessage.Text) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ResponseMessage.Text other) { + if (other == com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance()) + return this; + if (!other.text_.isEmpty()) { + if (text_.isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + } else { + ensureTextIsMutable(); + text_.addAll(other.text_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureTextIsMutable(); + text_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTextIsMutable() { + if (!text_.isModifiable()) { + text_ = new com.google.protobuf.LazyStringArrayList(text_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @return A list containing the text. + */ + public com.google.protobuf.ProtocolStringList getTextList() { + text_.makeImmutable(); + return text_; + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @return The count of text. + */ + public int getTextCount() { + return text_.size(); + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @param index The index of the element to return. + * @return The text at the given index. + */ + public java.lang.String getText(int index) { + return text_.get(index); + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @param index The index of the value to return. + * @return The bytes of the text at the given index. + */ + public com.google.protobuf.ByteString getTextBytes(int index) { + return text_.getByteString(index); + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @param index The index to set the value at. + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextIsMutable(); + text_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @param value The text to add. + * @return This builder for chaining. + */ + public Builder addText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextIsMutable(); + text_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @param values The text to add. + * @return This builder for chaining. + */ + public Builder addAllText(java.lang.Iterable values) { + ensureTextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, text_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * A collection of text response variants. If multiple variants are
+       * defined, only one text response variant is returned at runtime.
+       * 
+ * + * repeated string text = 1; + * + * @param value The bytes of the text to add. + * @return This builder for chaining. + */ + public Builder addTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTextIsMutable(); + text_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage.Text) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage.Text) + private static final com.google.cloud.dialogflow.v2.ResponseMessage.Text DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage.Text(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.Text getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Text parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.Text getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LiveAgentHandoffOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+     * any structure on this.
+     * 
+ * + * .google.protobuf.Struct metadata = 1; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+     * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+     * any structure on this.
+     * 
+ * + * .google.protobuf.Struct metadata = 1; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
+     * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+     * any structure on this.
+     * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + } + + /** + * + * + *
+   * Indicates that the conversation should be handed off to a human agent.
+   *
+   * Dialogflow only uses this to determine which conversations were handed off
+   * to a human agent for measurement purposes. What else to do with this signal
+   * is up to you and your handoff procedures.
+   *
+   * You may set this, for example:
+   *
+   * * In the entry fulfillment of a CX Page if entering the page indicates
+   * something went extremely wrong in the conversation.
+   * * In a webhook response when you determine that the customer issue can only
+   * be handled by a human.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff} + */ + public static final class LiveAgentHandoff extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) + LiveAgentHandoffOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LiveAgentHandoff"); + } + + // Use LiveAgentHandoff.newBuilder() to construct. + private LiveAgentHandoff(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LiveAgentHandoff() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.class, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
+     * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+     * any structure on this.
+     * 
+ * + * .google.protobuf.Struct metadata = 1; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+     * any structure on this.
+     * 
+ * + * .google.protobuf.Struct metadata = 1; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
+     * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+     * any structure on this.
+     * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); + } + size += getUnknownFields().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.v2.ResponseMessage.LiveAgentHandoff)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff other = + (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff 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.v2.ResponseMessage.LiveAgentHandoff parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff 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.v2.ResponseMessage.LiveAgentHandoff parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage.LiveAgentHandoff 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Indicates that the conversation should be handed off to a human agent.
+     *
+     * Dialogflow only uses this to determine which conversations were handed off
+     * to a human agent for measurement purposes. What else to do with this signal
+     * is up to you and your handoff procedures.
+     *
+     * You may set this, for example:
+     *
+     * * In the entry fulfillment of a CX Page if entering the page indicates
+     * something went extremely wrong in the conversation.
+     * * In a webhook response when you determine that the customer issue can only
+     * be handled by a human.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.class, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_LiveAgentHandoff_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff build() { + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff result = + new com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) { + return mergeFrom((com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff other) { + if (other + == com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance()) + return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + + /** + * + * + *
+       * Custom metadata for your handoff procedure. Dialogflow doesn't impose
+       * any structure on this.
+       * 
+ * + * .google.protobuf.Struct metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) + private static final com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiveAgentHandoff parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndInteractionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+   * Indicates that interaction with the Dialogflow agent has ended.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.EndInteraction} + */ + public static final class EndInteraction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) + EndInteractionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "EndInteraction"); + } + + // Use EndInteraction.newBuilder() to construct. + private EndInteraction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndInteraction() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.class, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.v2.ResponseMessage.EndInteraction)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction other = + (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction 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.v2.ResponseMessage.EndInteraction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction 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.v2.ResponseMessage.EndInteraction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage.EndInteraction 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Indicates that interaction with the Dialogflow agent has ended.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.EndInteraction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.class, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_EndInteraction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction build() { + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction result = + new com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) { + return mergeFrom((com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction other) { + if (other + == com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) + private static final com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndInteraction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MixedAudioOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + java.util.List + getSegmentsList(); + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment getSegments(int index); + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + int getSegmentsCount(); + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder> + getSegmentsOrBuilderList(); + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder getSegmentsOrBuilder( + int index); + } + + /** + * + * + *
+   * Represents an audio message that is composed of both segments
+   * synthesized from the Dialogflow agent prompts and ones hosted externally
+   * at the specified URIs.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.MixedAudio} + */ + public static final class MixedAudio extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) + MixedAudioOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MixedAudio"); + } + + // Use MixedAudio.newBuilder() to construct. + private MixedAudio(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MixedAudio() { + segments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.class, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder.class); + } + + public interface SegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Raw audio synthesized from the Dialogflow agent's response using
+       * the output config specified in the request.
+       * 
+ * + * bytes audio = 1; + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + + /** + * + * + *
+       * Raw audio synthesized from the Dialogflow agent's response using
+       * the output config specified in the request.
+       * 
+ * + * bytes audio = 1; + * + * @return The audio. + */ + com.google.protobuf.ByteString getAudio(); + + /** + * + * + *
+       * Client-specific URI that points to an audio clip accessible to the
+       * client.
+       * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + + /** + * + * + *
+       * Client-specific URI that points to an audio clip accessible to the
+       * client.
+       * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+       * Client-specific URI that points to an audio clip accessible to the
+       * client.
+       * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+       * Whether the playback of this segment can be interrupted by the end
+       * user's speech and the client should then start the next Dialogflow
+       * request.
+       * 
+ * + * bool allow_playback_interruption = 3; + * + * @return The allowPlaybackInterruption. + */ + boolean getAllowPlaybackInterruption(); + + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.ContentCase + getContentCase(); + } + + /** + * + * + *
+     * Represents one segment of audio.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment} + */ + public static final class Segment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) + SegmentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Segment"); + } + + // Use Segment.newBuilder() to construct. + private Segment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Segment() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.class, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder.class); + } + + private int contentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object content_; + + public enum ContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUDIO(1), + URI(2), + CONTENT_NOT_SET(0); + private final int value; + + private ContentCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 1: + return AUDIO; + case 2: + return URI; + case 0: + return CONTENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public static final int AUDIO_FIELD_NUMBER = 1; + + /** + * + * + *
+       * Raw audio synthesized from the Dialogflow agent's response using
+       * the output config specified in the request.
+       * 
+ * + * bytes audio = 1; + * + * @return Whether the audio field is set. + */ + @java.lang.Override + public boolean hasAudio() { + return contentCase_ == 1; + } + + /** + * + * + *
+       * Raw audio synthesized from the Dialogflow agent's response using
+       * the output config specified in the request.
+       * 
+ * + * bytes audio = 1; + * + * @return The audio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAudio() { + if (contentCase_ == 1) { + return (com.google.protobuf.ByteString) content_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int URI_FIELD_NUMBER = 2; + + /** + * + * + *
+       * Client-specific URI that points to an audio clip accessible to the
+       * client.
+       * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return contentCase_ == 2; + } + + /** + * + * + *
+       * Client-specific URI that points to an audio clip accessible to the
+       * client.
+       * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 2) { + content_ = s; + } + return s; + } + } + + /** + * + * + *
+       * Client-specific URI that points to an audio clip accessible to the
+       * client.
+       * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (contentCase_ == 2) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3; + private boolean allowPlaybackInterruption_ = false; + + /** + * + * + *
+       * Whether the playback of this segment can be interrupted by the end
+       * user's speech and the client should then start the next Dialogflow
+       * request.
+       * 
+ * + * bool allow_playback_interruption = 3; + * + * @return The allowPlaybackInterruption. + */ + @java.lang.Override + public boolean getAllowPlaybackInterruption() { + return allowPlaybackInterruption_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contentCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) content_); + } + if (contentCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + if (allowPlaybackInterruption_ != false) { + output.writeBool(3, allowPlaybackInterruption_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contentCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) content_); + } + if (contentCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + if (allowPlaybackInterruption_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowPlaybackInterruption_); + } + size += getUnknownFields().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.v2.ResponseMessage.MixedAudio.Segment)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment other = + (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) obj; + + if (getAllowPlaybackInterruption() != other.getAllowPlaybackInterruption()) return false; + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 1: + if (!getAudio().equals(other.getAudio())) return false; + break; + case 2: + if (!getUri().equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPlaybackInterruption()); + switch (contentCase_) { + case 1: + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); + break; + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage.MixedAudio.Segment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Represents one segment of audio.
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.class, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowPlaybackInterruption_ = false; + contentCase_ = 0; + content_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_Segment_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment build() { + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment result = + new com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment other) { + if (other + == com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + .getDefaultInstance()) return this; + if (other.getAllowPlaybackInterruption() != false) { + setAllowPlaybackInterruption(other.getAllowPlaybackInterruption()); + } + switch (other.getContentCase()) { + case AUDIO: + { + setAudio(other.getAudio()); + break; + } + case URI: + { + contentCase_ = 2; + content_ = other.content_; + onChanged(); + break; + } + case CONTENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + content_ = input.readBytes(); + contentCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 2; + content_ = s; + break; + } // case 18 + case 24: + { + allowPlaybackInterruption_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int contentCase_ = 0; + private java.lang.Object content_; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+         * Raw audio synthesized from the Dialogflow agent's response using
+         * the output config specified in the request.
+         * 
+ * + * bytes audio = 1; + * + * @return Whether the audio field is set. + */ + public boolean hasAudio() { + return contentCase_ == 1; + } + + /** + * + * + *
+         * Raw audio synthesized from the Dialogflow agent's response using
+         * the output config specified in the request.
+         * 
+ * + * bytes audio = 1; + * + * @return The audio. + */ + public com.google.protobuf.ByteString getAudio() { + if (contentCase_ == 1) { + return (com.google.protobuf.ByteString) content_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+         * Raw audio synthesized from the Dialogflow agent's response using
+         * the output config specified in the request.
+         * 
+ * + * bytes audio = 1; + * + * @param value The audio to set. + * @return This builder for chaining. + */ + public Builder setAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + contentCase_ = 1; + content_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+         * Raw audio synthesized from the Dialogflow agent's response using
+         * the output config specified in the request.
+         * 
+ * + * bytes audio = 1; + * + * @return This builder for chaining. + */ + public Builder clearAudio() { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Client-specific URI that points to an audio clip accessible to the
+         * client.
+         * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return contentCase_ == 2; + } + + /** + * + * + *
+         * Client-specific URI that points to an audio clip accessible to the
+         * client.
+         * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 2) { + content_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Client-specific URI that points to an audio clip accessible to the
+         * client.
+         * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (contentCase_ == 2) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Client-specific URI that points to an audio clip accessible to the
+         * client.
+         * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentCase_ = 2; + content_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+         * Client-specific URI that points to an audio clip accessible to the
+         * client.
+         * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Client-specific URI that points to an audio clip accessible to the
+         * client.
+         * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentCase_ = 2; + content_ = value; + onChanged(); + return this; + } + + private boolean allowPlaybackInterruption_; + + /** + * + * + *
+         * Whether the playback of this segment can be interrupted by the end
+         * user's speech and the client should then start the next Dialogflow
+         * request.
+         * 
+ * + * bool allow_playback_interruption = 3; + * + * @return The allowPlaybackInterruption. + */ + @java.lang.Override + public boolean getAllowPlaybackInterruption() { + return allowPlaybackInterruption_; + } + + /** + * + * + *
+         * Whether the playback of this segment can be interrupted by the end
+         * user's speech and the client should then start the next Dialogflow
+         * request.
+         * 
+ * + * bool allow_playback_interruption = 3; + * + * @param value The allowPlaybackInterruption to set. + * @return This builder for chaining. + */ + public Builder setAllowPlaybackInterruption(boolean value) { + + allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Whether the playback of this segment can be interrupted by the end
+         * user's speech and the client should then start the next Dialogflow
+         * request.
+         * 
+ * + * bool allow_playback_interruption = 3; + * + * @return This builder for chaining. + */ + public Builder clearAllowPlaybackInterruption() { + bitField0_ = (bitField0_ & ~0x00000004); + allowPlaybackInterruption_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment) + private static final com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Segment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SEGMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + segments_; + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + @java.lang.Override + public java.util.List + getSegmentsList() { + return segments_; + } + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder> + getSegmentsOrBuilderList() { + return segments_; + } + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + @java.lang.Override + public int getSegmentsCount() { + return segments_.size(); + } + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment getSegments( + int index) { + return segments_.get(index); + } + + /** + * + * + *
+     * Segments this audio response is composed of.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder + getSegmentsOrBuilder(int index) { + return segments_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(1, segments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, segments_.get(i)); + } + size += getUnknownFields().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.v2.ResponseMessage.MixedAudio)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio other = + (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) obj; + + if (!getSegmentsList().equals(other.getSegmentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage.MixedAudio prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents an audio message that is composed of both segments
+     * synthesized from the Dialogflow agent prompts and ones hosted externally
+     * at the specified URIs.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.MixedAudio} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.class, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + } else { + segments_ = null; + segmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_MixedAudio_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio build() { + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio result = + new com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio result) { + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) { + return mergeFrom((com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio other) { + if (other == com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance()) + return this; + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment m = + input.readMessage( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + .parser(), + extensionRegistry); + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(m); + } else { + segmentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + segments_ = java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment>(segments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public java.util.List + getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment getSegments( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder setSegments( + int index, com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder setSegments( + int index, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder addSegments( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder addSegments( + int index, com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder addSegments( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder addSegments( + int index, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder addAllSegments( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment> + values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder + getSegmentsBuilder(int index) { + return internalGetSegmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder + getSegmentsOrBuilder(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder> + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder + addSegmentsBuilder() { + return internalGetSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + .getDefaultInstance()); + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder + addSegmentsBuilder(int index) { + return internalGetSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment + .getDefaultInstance()); + } + + /** + * + * + *
+       * Segments this audio response is composed of.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment segments = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder> + getSegmentsBuilderList() { + return internalGetSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder> + internalGetSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.SegmentOrBuilder>( + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) + private static final com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MixedAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TelephonyTransferCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + boolean hasPhoneNumber(); + + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); + + /** + * + * + *
+     * Transfer the call to a SIP endpoint.
+     * 
+ * + * string sip_uri = 2; + * + * @return Whether the sipUri field is set. + */ + boolean hasSipUri(); + + /** + * + * + *
+     * Transfer the call to a SIP endpoint.
+     * 
+ * + * string sip_uri = 2; + * + * @return The sipUri. + */ + java.lang.String getSipUri(); + + /** + * + * + *
+     * Transfer the call to a SIP endpoint.
+     * 
+ * + * string sip_uri = 2; + * + * @return The bytes for sipUri. + */ + com.google.protobuf.ByteString getSipUriBytes(); + + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.EndpointCase + getEndpointCase(); + } + + /** + * + * + *
+   * Represents the signal that telles the client to transfer the phone call
+   * connected to the agent to a third-party endpoint.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall} + */ + public static final class TelephonyTransferCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) + TelephonyTransferCallOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TelephonyTransferCall"); + } + + // Use TelephonyTransferCall.newBuilder() to construct. + private TelephonyTransferCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TelephonyTransferCall() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.class, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder.class); + } + + private int endpointCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object endpoint_; + + public enum EndpointCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PHONE_NUMBER(1), + SIP_URI(2), + ENDPOINT_NOT_SET(0); + private final int value; + + private EndpointCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EndpointCase valueOf(int value) { + return forNumber(value); + } + + public static EndpointCase forNumber(int value) { + switch (value) { + case 1: + return PHONE_NUMBER; + case 2: + return SIP_URI; + case 0: + return ENDPOINT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + public boolean hasPhoneNumber() { + return endpointCase_ == 1; + } + + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (endpointCase_ == 1) { + endpoint_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 1) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIP_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Transfer the call to a SIP endpoint.
+     * 
+ * + * string sip_uri = 2; + * + * @return Whether the sipUri field is set. + */ + public boolean hasSipUri() { + return endpointCase_ == 2; + } + + /** + * + * + *
+     * Transfer the call to a SIP endpoint.
+     * 
+ * + * string sip_uri = 2; + * + * @return The sipUri. + */ + public java.lang.String getSipUri() { + java.lang.Object ref = ""; + if (endpointCase_ == 2) { + ref = endpoint_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (endpointCase_ == 2) { + endpoint_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Transfer the call to a SIP endpoint.
+     * 
+ * + * string sip_uri = 2; + * + * @return The bytes for sipUri. + */ + public com.google.protobuf.ByteString getSipUriBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 2) { + ref = endpoint_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 2) { + endpoint_ = 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 (endpointCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, endpoint_); + } + if (endpointCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, endpoint_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (endpointCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, endpoint_); + } + if (endpointCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, endpoint_); + } + size += getUnknownFields().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.v2.ResponseMessage.TelephonyTransferCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall other = + (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) obj; + + if (!getEndpointCase().equals(other.getEndpointCase())) return false; + switch (endpointCase_) { + case 1: + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + break; + case 2: + if (!getSipUri().equals(other.getSipUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (endpointCase_) { + case 1: + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + break; + case 2: + hash = (37 * hash) + SIP_URI_FIELD_NUMBER; + hash = (53 * hash) + getSipUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall 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.v2.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall 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.v2.ResponseMessage.TelephonyTransferCall parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage.TelephonyTransferCall 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents the signal that telles the client to transfer the phone call
+     * connected to the agent to a third-party endpoint.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.class, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpointCase_ = 0; + endpoint_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall build() { + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall result = + new com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall result) { + result.endpointCase_ = endpointCase_; + result.endpoint_ = this.endpoint_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall other) { + if (other + == com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance()) return this; + switch (other.getEndpointCase()) { + case PHONE_NUMBER: + { + endpointCase_ = 1; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case SIP_URI: + { + endpointCase_ = 2; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case ENDPOINT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + endpointCase_ = 1; + endpoint_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 2; + endpoint_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int endpointCase_ = 0; + private java.lang.Object endpoint_; + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); + } + + public Builder clearEndpoint() { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + @java.lang.Override + public boolean hasPhoneNumber() { + return endpointCase_ == 1; + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (endpointCase_ == 1) { + endpoint_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 1) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpointCase_ = 1; + endpoint_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + if (endpointCase_ == 1) { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpointCase_ = 1; + endpoint_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Transfer the call to a SIP endpoint.
+       * 
+ * + * string sip_uri = 2; + * + * @return Whether the sipUri field is set. + */ + @java.lang.Override + public boolean hasSipUri() { + return endpointCase_ == 2; + } + + /** + * + * + *
+       * Transfer the call to a SIP endpoint.
+       * 
+ * + * string sip_uri = 2; + * + * @return The sipUri. + */ + @java.lang.Override + public java.lang.String getSipUri() { + java.lang.Object ref = ""; + if (endpointCase_ == 2) { + ref = endpoint_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (endpointCase_ == 2) { + endpoint_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Transfer the call to a SIP endpoint.
+       * 
+ * + * string sip_uri = 2; + * + * @return The bytes for sipUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSipUriBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 2) { + ref = endpoint_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 2) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Transfer the call to a SIP endpoint.
+       * 
+ * + * string sip_uri = 2; + * + * @param value The sipUri to set. + * @return This builder for chaining. + */ + public Builder setSipUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpointCase_ = 2; + endpoint_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Transfer the call to a SIP endpoint.
+       * 
+ * + * string sip_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearSipUri() { + if (endpointCase_ == 2) { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Transfer the call to a SIP endpoint.
+       * 
+ * + * string sip_uri = 2; + * + * @param value The bytes for sipUri to set. + * @return This builder for chaining. + */ + public Builder setSipUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpointCase_ = 2; + endpoint_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) + private static final com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TelephonyTransferCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int messageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object message_; + + public enum MessageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + PAYLOAD(2), + LIVE_AGENT_HANDOFF(3), + END_INTERACTION(4), + MIXED_AUDIO(5), + TELEPHONY_TRANSFER_CALL(6), + MESSAGE_NOT_SET(0); + private final int value; + + private MessageCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return PAYLOAD; + case 3: + return LIVE_AGENT_HANDOFF; + case 4: + return END_INTERACTION; + case 5: + return MIXED_AUDIO; + case 6: + return TELEPHONY_TRANSFER_CALL; + case 0: + return MESSAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageCase getMessageCase() { + return MessageCase.forNumber(messageCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return messageCase_ == 1; + } + + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + * + * @return The text. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.Text getText() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } + + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder getTextOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } + + public static final int PAYLOAD_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return messageCase_ == 2; + } + + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Hands off conversation to a live agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + * + * @return Whether the liveAgentHandoff field is set. + */ + @java.lang.Override + public boolean hasLiveAgentHandoff() { + return messageCase_ == 3; + } + + /** + * + * + *
+   * Hands off conversation to a live agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + * + * @return The liveAgentHandoff. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff getLiveAgentHandoff() { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } + + /** + * + * + *
+   * Hands off conversation to a live agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder + getLiveAgentHandoffOrBuilder() { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } + + public static final int END_INTERACTION_FIELD_NUMBER = 4; + + /** + * + * + *
+   * A signal that indicates the interaction with the Dialogflow agent has
+   * ended.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + * + * @return Whether the endInteraction field is set. + */ + @java.lang.Override + public boolean hasEndInteraction() { + return messageCase_ == 4; + } + + /** + * + * + *
+   * A signal that indicates the interaction with the Dialogflow agent has
+   * ended.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + * + * @return The endInteraction. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction getEndInteraction() { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } + + /** + * + * + *
+   * A signal that indicates the interaction with the Dialogflow agent has
+   * ended.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder + getEndInteractionOrBuilder() { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } + + public static final int MIXED_AUDIO_FIELD_NUMBER = 5; + + /** + * + * + *
+   * An audio response message composed of both the synthesized Dialogflow
+   * agent responses and the audios hosted in places known to the client.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + * + * @return Whether the mixedAudio field is set. + */ + @java.lang.Override + public boolean hasMixedAudio() { + return messageCase_ == 5; + } + + /** + * + * + *
+   * An audio response message composed of both the synthesized Dialogflow
+   * agent responses and the audios hosted in places known to the client.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + * + * @return The mixedAudio. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio getMixedAudio() { + if (messageCase_ == 5) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } + + /** + * + * + *
+   * An audio response message composed of both the synthesized Dialogflow
+   * agent responses and the audios hosted in places known to the client.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder + getMixedAudioOrBuilder() { + if (messageCase_ == 5) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } + + public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 6; + + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + @java.lang.Override + public boolean hasTelephonyTransferCall() { + return messageCase_ == 6; + } + + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + * + * @return The telephonyTransferCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall() { + if (messageCase_ == 6) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder() { + if (messageCase_ == 6) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .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 (messageCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_); + } + if (messageCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Struct) message_); + } + if (messageCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_); + } + if (messageCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_); + } + if (messageCase_ == 5) { + output.writeMessage(5, (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_); + } + if (messageCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_); + } + getUnknownFields().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.v2.ResponseMessage.Text) message_); + } + if (messageCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Struct) message_); + } + if (messageCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_); + } + if (messageCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_); + } + if (messageCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_); + } + if (messageCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_); + } + size += getUnknownFields().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.v2.ResponseMessage)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ResponseMessage other = + (com.google.cloud.dialogflow.v2.ResponseMessage) obj; + + if (!getMessageCase().equals(other.getMessageCase())) return false; + switch (messageCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getPayload().equals(other.getPayload())) return false; + break; + case 3: + if (!getLiveAgentHandoff().equals(other.getLiveAgentHandoff())) return false; + break; + case 4: + if (!getEndInteraction().equals(other.getEndInteraction())) return false; + break; + case 5: + if (!getMixedAudio().equals(other.getMixedAudio())) return false; + break; + case 6: + if (!getTelephonyTransferCall().equals(other.getTelephonyTransferCall())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (messageCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + break; + case 3: + hash = (37 * hash) + LIVE_AGENT_HANDOFF_FIELD_NUMBER; + hash = (53 * hash) + getLiveAgentHandoff().hashCode(); + break; + case 4: + hash = (37 * hash) + END_INTERACTION_FIELD_NUMBER; + hash = (53 * hash) + getEndInteraction().hashCode(); + break; + case 5: + hash = (37 * hash) + MIXED_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getMixedAudio().hashCode(); + break; + case 6: + hash = (37 * hash) + TELEPHONY_TRANSFER_CALL_FIELD_NUMBER; + hash = (53 * hash) + getTelephonyTransferCall().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage 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.v2.ResponseMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage 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.v2.ResponseMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v2.ResponseMessage 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response messages from an automated agent.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.ResponseMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ResponseMessage) + com.google.cloud.dialogflow.v2.ResponseMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ResponseMessage.class, + com.google.cloud.dialogflow.v2.ResponseMessage.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ResponseMessage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (textBuilder_ != null) { + textBuilder_.clear(); + } + if (payloadBuilder_ != null) { + payloadBuilder_.clear(); + } + if (liveAgentHandoffBuilder_ != null) { + liveAgentHandoffBuilder_.clear(); + } + if (endInteractionBuilder_ != null) { + endInteractionBuilder_.clear(); + } + if (mixedAudioBuilder_ != null) { + mixedAudioBuilder_.clear(); + } + if (telephonyTransferCallBuilder_ != null) { + telephonyTransferCallBuilder_.clear(); + } + messageCase_ = 0; + message_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ResponseMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ResponseMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage build() { + com.google.cloud.dialogflow.v2.ResponseMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage buildPartial() { + com.google.cloud.dialogflow.v2.ResponseMessage result = + new com.google.cloud.dialogflow.v2.ResponseMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ResponseMessage result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2.ResponseMessage result) { + result.messageCase_ = messageCase_; + result.message_ = this.message_; + if (messageCase_ == 1 && textBuilder_ != null) { + result.message_ = textBuilder_.build(); + } + if (messageCase_ == 2 && payloadBuilder_ != null) { + result.message_ = payloadBuilder_.build(); + } + if (messageCase_ == 3 && liveAgentHandoffBuilder_ != null) { + result.message_ = liveAgentHandoffBuilder_.build(); + } + if (messageCase_ == 4 && endInteractionBuilder_ != null) { + result.message_ = endInteractionBuilder_.build(); + } + if (messageCase_ == 5 && mixedAudioBuilder_ != null) { + result.message_ = mixedAudioBuilder_.build(); + } + if (messageCase_ == 6 && telephonyTransferCallBuilder_ != null) { + result.message_ = telephonyTransferCallBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ResponseMessage) { + return mergeFrom((com.google.cloud.dialogflow.v2.ResponseMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ResponseMessage other) { + if (other == com.google.cloud.dialogflow.v2.ResponseMessage.getDefaultInstance()) return this; + switch (other.getMessageCase()) { + case TEXT: + { + mergeText(other.getText()); + break; + } + case PAYLOAD: + { + mergePayload(other.getPayload()); + break; + } + case LIVE_AGENT_HANDOFF: + { + mergeLiveAgentHandoff(other.getLiveAgentHandoff()); + break; + } + case END_INTERACTION: + { + mergeEndInteraction(other.getEndInteraction()); + break; + } + case MIXED_AUDIO: + { + mergeMixedAudio(other.getMixedAudio()); + break; + } + case TELEPHONY_TRANSFER_CALL: + { + mergeTelephonyTransferCall(other.getTelephonyTransferCall()); + break; + } + case MESSAGE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetTextFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetPayloadFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetLiveAgentHandoffFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetEndInteractionFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMixedAudioFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetTelephonyTransferCallFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.Text, + com.google.cloud.dialogflow.v2.ResponseMessage.Text.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder> + textBuilder_; + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return messageCase_ == 1; + } + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + * + * @return The text. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.Text getText() { + if (textBuilder_ == null) { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } else { + if (messageCase_ == 1) { + return textBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + */ + public Builder setText(com.google.cloud.dialogflow.v2.ResponseMessage.Text value) { + if (textBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + textBuilder_.setMessage(value); + } + messageCase_ = 1; + return this; + } + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + */ + public Builder setText( + com.google.cloud.dialogflow.v2.ResponseMessage.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.v2.ResponseMessage.Text text = 1; + */ + public Builder mergeText(com.google.cloud.dialogflow.v2.ResponseMessage.Text value) { + if (textBuilder_ == null) { + if (messageCase_ == 1 + && message_ + != com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.Text.newBuilder( + (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 1) { + textBuilder_.mergeFrom(value); + } else { + textBuilder_.setMessage(value); + } + } + messageCase_ = 1; + return this; + } + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.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.v2.ResponseMessage.Text text = 1; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.Text.Builder getTextBuilder() { + return internalGetTextFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder getTextOrBuilder() { + if ((messageCase_ == 1) && (textBuilder_ != null)) { + return textBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.Text, + com.google.cloud.dialogflow.v2.ResponseMessage.Text.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder> + internalGetTextFieldBuilder() { + if (textBuilder_ == null) { + if (!(messageCase_ == 1)) { + message_ = com.google.cloud.dialogflow.v2.ResponseMessage.Text.getDefaultInstance(); + } + textBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.Text, + com.google.cloud.dialogflow.v2.ResponseMessage.Text.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder>( + (com.google.cloud.dialogflow.v2.ResponseMessage.Text) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 1; + onChanged(); + return textBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + payloadBuilder_; + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return messageCase_ == 2; + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (messageCase_ == 2) { + return payloadBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + messageCase_ = 2; + return this; + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 2; + return this; + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (messageCase_ == 2 && message_ != com.google.protobuf.Struct.getDefaultInstance()) { + message_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 2) { + payloadBuilder_.mergeFrom(value); + } else { + payloadBuilder_.setMessage(value); + } + } + messageCase_ = 2; + return this; + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + if (messageCase_ == 2) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 2) { + messageCase_ = 0; + message_ = null; + } + payloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + return internalGetPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if ((messageCase_ == 2) && (payloadBuilder_ != null)) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * 
+ * + * .google.protobuf.Struct payload = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + if (!(messageCase_ == 2)) { + message_ = com.google.protobuf.Struct.getDefaultInstance(); + } + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) message_, getParentForChildren(), isClean()); + message_ = null; + } + messageCase_ = 2; + onChanged(); + return payloadBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder> + liveAgentHandoffBuilder_; + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + * + * @return Whether the liveAgentHandoff field is set. + */ + @java.lang.Override + public boolean hasLiveAgentHandoff() { + return messageCase_ == 3; + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + * + * @return The liveAgentHandoff. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff getLiveAgentHandoff() { + if (liveAgentHandoffBuilder_ == null) { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } else { + if (messageCase_ == 3) { + return liveAgentHandoffBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + public Builder setLiveAgentHandoff( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff value) { + if (liveAgentHandoffBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + liveAgentHandoffBuilder_.setMessage(value); + } + messageCase_ = 3; + return this; + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + public Builder setLiveAgentHandoff( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder builderForValue) { + if (liveAgentHandoffBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + liveAgentHandoffBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 3; + return this; + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + public Builder mergeLiveAgentHandoff( + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff value) { + if (liveAgentHandoffBuilder_ == null) { + if (messageCase_ == 3 + && message_ + != com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.newBuilder( + (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 3) { + liveAgentHandoffBuilder_.mergeFrom(value); + } else { + liveAgentHandoffBuilder_.setMessage(value); + } + } + messageCase_ = 3; + return this; + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + public Builder clearLiveAgentHandoff() { + if (liveAgentHandoffBuilder_ == null) { + if (messageCase_ == 3) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 3) { + messageCase_ = 0; + message_ = null; + } + liveAgentHandoffBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder + getLiveAgentHandoffBuilder() { + return internalGetLiveAgentHandoffFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder + getLiveAgentHandoffOrBuilder() { + if ((messageCase_ == 3) && (liveAgentHandoffBuilder_ != null)) { + return liveAgentHandoffBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Hands off conversation to a live agent.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder> + internalGetLiveAgentHandoffFieldBuilder() { + if (liveAgentHandoffBuilder_ == null) { + if (!(messageCase_ == 3)) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.getDefaultInstance(); + } + liveAgentHandoffBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder>( + (com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 3; + onChanged(); + return liveAgentHandoffBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder> + endInteractionBuilder_; + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + * + * @return Whether the endInteraction field is set. + */ + @java.lang.Override + public boolean hasEndInteraction() { + return messageCase_ == 4; + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + * + * @return The endInteraction. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction getEndInteraction() { + if (endInteractionBuilder_ == null) { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } else { + if (messageCase_ == 4) { + return endInteractionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + public Builder setEndInteraction( + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction value) { + if (endInteractionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + endInteractionBuilder_.setMessage(value); + } + messageCase_ = 4; + return this; + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + public Builder setEndInteraction( + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.Builder builderForValue) { + if (endInteractionBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + endInteractionBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 4; + return this; + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + public Builder mergeEndInteraction( + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction value) { + if (endInteractionBuilder_ == null) { + if (messageCase_ == 4 + && message_ + != com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.newBuilder( + (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 4) { + endInteractionBuilder_.mergeFrom(value); + } else { + endInteractionBuilder_.setMessage(value); + } + } + messageCase_ = 4; + return this; + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + public Builder clearEndInteraction() { + if (endInteractionBuilder_ == null) { + if (messageCase_ == 4) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 4) { + messageCase_ = 0; + message_ = null; + } + endInteractionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.Builder + getEndInteractionBuilder() { + return internalGetEndInteractionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder + getEndInteractionOrBuilder() { + if ((messageCase_ == 4) && (endInteractionBuilder_ != null)) { + return endInteractionBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A signal that indicates the interaction with the Dialogflow agent has
+     * ended.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder> + internalGetEndInteractionFieldBuilder() { + if (endInteractionBuilder_ == null) { + if (!(messageCase_ == 4)) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.getDefaultInstance(); + } + endInteractionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder>( + (com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 4; + onChanged(); + return endInteractionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder> + mixedAudioBuilder_; + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + * + * @return Whether the mixedAudio field is set. + */ + @java.lang.Override + public boolean hasMixedAudio() { + return messageCase_ == 5; + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + * + * @return The mixedAudio. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio getMixedAudio() { + if (mixedAudioBuilder_ == null) { + if (messageCase_ == 5) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } else { + if (messageCase_ == 5) { + return mixedAudioBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + public Builder setMixedAudio(com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio value) { + if (mixedAudioBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + mixedAudioBuilder_.setMessage(value); + } + messageCase_ = 5; + return this; + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + public Builder setMixedAudio( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder builderForValue) { + if (mixedAudioBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + mixedAudioBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 5; + return this; + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + public Builder mergeMixedAudio( + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio value) { + if (mixedAudioBuilder_ == null) { + if (messageCase_ == 5 + && message_ + != com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.newBuilder( + (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 5) { + mixedAudioBuilder_.mergeFrom(value); + } else { + mixedAudioBuilder_.setMessage(value); + } + } + messageCase_ = 5; + return this; + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + public Builder clearMixedAudio() { + if (mixedAudioBuilder_ == null) { + if (messageCase_ == 5) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 5) { + messageCase_ = 0; + message_ = null; + } + mixedAudioBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder + getMixedAudioBuilder() { + return internalGetMixedAudioFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder + getMixedAudioOrBuilder() { + if ((messageCase_ == 5) && (mixedAudioBuilder_ != null)) { + return mixedAudioBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 5) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } + } + + /** + * + * + *
+     * An audio response message composed of both the synthesized Dialogflow
+     * agent responses and the audios hosted in places known to the client.
+     * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder> + internalGetMixedAudioFieldBuilder() { + if (mixedAudioBuilder_ == null) { + if (!(messageCase_ == 5)) { + message_ = com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.getDefaultInstance(); + } + mixedAudioBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder>( + (com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 5; + onChanged(); + return mixedAudioBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder> + telephonyTransferCallBuilder_; + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + @java.lang.Override + public boolean hasTelephonyTransferCall() { + return messageCase_ == 6; + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + * + * @return The telephonyTransferCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 6) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } else { + if (messageCase_ == 6) { + return telephonyTransferCallBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + telephonyTransferCallBuilder_.setMessage(value); + } + messageCase_ = 6; + return this; + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder + builderForValue) { + if (telephonyTransferCallBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + telephonyTransferCallBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 6; + return this; + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + public Builder mergeTelephonyTransferCall( + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 6 + && message_ + != com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.newBuilder( + (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) + message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 6) { + telephonyTransferCallBuilder_.mergeFrom(value); + } else { + telephonyTransferCallBuilder_.setMessage(value); + } + } + messageCase_ = 6; + return this; + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + public Builder clearTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 6) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 6) { + messageCase_ = 0; + message_ = null; + } + telephonyTransferCallBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder + getTelephonyTransferCallBuilder() { + return internalGetTelephonyTransferCallFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder() { + if ((messageCase_ == 6) && (telephonyTransferCallBuilder_ != null)) { + return telephonyTransferCallBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 6) { + return (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder> + internalGetTelephonyTransferCallFieldBuilder() { + if (telephonyTransferCallBuilder_ == null) { + if (!(messageCase_ == 6)) { + message_ = + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + telephonyTransferCallBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder>( + (com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 6; + onChanged(); + return telephonyTransferCallBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ResponseMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ResponseMessage) + private static final com.google.cloud.dialogflow.v2.ResponseMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ResponseMessage(); + } + + public static com.google.cloud.dialogflow.v2.ResponseMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ResponseMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ResponseMessageOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ResponseMessageOrBuilder.java new file mode 100644 index 000000000000..9876272b802b --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ResponseMessageOrBuilder.java @@ -0,0 +1,273 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface ResponseMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ResponseMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + * + * @return The text. + */ + com.google.cloud.dialogflow.v2.ResponseMessage.Text getText(); + + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.Text text = 1; + */ + com.google.cloud.dialogflow.v2.ResponseMessage.TextOrBuilder getTextOrBuilder(); + + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return Whether the payload field is set. + */ + boolean hasPayload(); + + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return The payload. + */ + com.google.protobuf.Struct getPayload(); + + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + */ + com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); + + /** + * + * + *
+   * Hands off conversation to a live agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + * + * @return Whether the liveAgentHandoff field is set. + */ + boolean hasLiveAgentHandoff(); + + /** + * + * + *
+   * Hands off conversation to a live agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + * + * @return The liveAgentHandoff. + */ + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff getLiveAgentHandoff(); + + /** + * + * + *
+   * Hands off conversation to a live agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; + * + */ + com.google.cloud.dialogflow.v2.ResponseMessage.LiveAgentHandoffOrBuilder + getLiveAgentHandoffOrBuilder(); + + /** + * + * + *
+   * A signal that indicates the interaction with the Dialogflow agent has
+   * ended.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + * + * @return Whether the endInteraction field is set. + */ + boolean hasEndInteraction(); + + /** + * + * + *
+   * A signal that indicates the interaction with the Dialogflow agent has
+   * ended.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + * + * @return The endInteraction. + */ + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteraction getEndInteraction(); + + /** + * + * + *
+   * A signal that indicates the interaction with the Dialogflow agent has
+   * ended.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.EndInteraction end_interaction = 4; + */ + com.google.cloud.dialogflow.v2.ResponseMessage.EndInteractionOrBuilder + getEndInteractionOrBuilder(); + + /** + * + * + *
+   * An audio response message composed of both the synthesized Dialogflow
+   * agent responses and the audios hosted in places known to the client.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + * + * @return Whether the mixedAudio field is set. + */ + boolean hasMixedAudio(); + + /** + * + * + *
+   * An audio response message composed of both the synthesized Dialogflow
+   * agent responses and the audios hosted in places known to the client.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + * + * @return The mixedAudio. + */ + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudio getMixedAudio(); + + /** + * + * + *
+   * An audio response message composed of both the synthesized Dialogflow
+   * agent responses and the audios hosted in places known to the client.
+   * 
+ * + * .google.cloud.dialogflow.v2.ResponseMessage.MixedAudio mixed_audio = 5; + */ + com.google.cloud.dialogflow.v2.ResponseMessage.MixedAudioOrBuilder getMixedAudioOrBuilder(); + + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + boolean hasTelephonyTransferCall(); + + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + * + * @return The telephonyTransferCall. + */ + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall getTelephonyTransferCall(); + + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; + * + */ + com.google.cloud.dialogflow.v2.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder(); + + com.google.cloud.dialogflow.v2.ResponseMessage.MessageCase getMessageCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java index 50d509ebbcd0..0c0544a09b05 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java @@ -134,6 +134,61 @@ public com.google.cloud.dialogflow.v2.SentimentOrBuilder getQueryTextSentimentOr : queryTextSentiment_; } + public static final int STATUS_FIELD_NUMBER = 3; + private com.google.rpc.Status status_; + + /** + * + * + *
+   * Output only. The status of the sentiment analysis operation.
+   * If the operation failed, this field will contain the error details.
+   * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+   * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The status of the sentiment analysis operation.
+   * If the operation failed, this field will contain the error details.
+   * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+   * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + /** + * + * + *
+   * Output only. The status of the sentiment analysis operation.
+   * If the operation failed, this field will contain the error details.
+   * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+   * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -151,6 +206,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getQueryTextSentiment()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getStatus()); + } getUnknownFields().writeTo(output); } @@ -163,6 +221,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQueryTextSentiment()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -183,6 +244,10 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryTextSentiment()) { if (!getQueryTextSentiment().equals(other.getQueryTextSentiment())) return false; } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,6 +263,10 @@ public int hashCode() { hash = (37 * hash) + QUERY_TEXT_SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + getQueryTextSentiment().hashCode(); } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -353,6 +422,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetQueryTextSentimentFieldBuilder(); + internalGetStatusFieldBuilder(); } } @@ -365,6 +435,11 @@ public Builder clear() { queryTextSentimentBuilder_.dispose(); queryTextSentimentBuilder_ = null; } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } return this; } @@ -409,6 +484,10 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.SentimentAnalysisResul : queryTextSentimentBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -428,6 +507,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SentimentAnalysisResult if (other.hasQueryTextSentiment()) { mergeQueryTextSentiment(other.getQueryTextSentiment()); } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -461,6 +543,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 26: + { + input.readMessage(internalGetStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -676,6 +764,209 @@ public com.google.cloud.dialogflow.v2.SentimentOrBuilder getQueryTextSentimentOr return queryTextSentimentBuilder_; } + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + + /** + * + * + *
+     * Output only. The status of the sentiment analysis operation.
+     * If the operation failed, this field will contain the error details.
+     * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+     * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SentimentAnalysisResult) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java index 3be930634f39..e58278c36cb8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java @@ -62,4 +62,47 @@ public interface SentimentAnalysisResultOrBuilder * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1; */ com.google.cloud.dialogflow.v2.SentimentOrBuilder getQueryTextSentimentOrBuilder(); + + /** + * + * + *
+   * Output only. The status of the sentiment analysis operation.
+   * If the operation failed, this field will contain the error details.
+   * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+   * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of the sentiment analysis operation.
+   * If the operation failed, this field will contain the error details.
+   * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+   * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + com.google.rpc.Status getStatus(); + + /** + * + * + *
+   * Output only. The status of the sentiment analysis operation.
+   * If the operation failed, this field will contain the error details.
+   * For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
+   * 
+ * + * .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java index e4e55d9aeb5c..50d84e52aed1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java @@ -109,182 +109,171 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "(google/cloud/dialogflow/v2/session.pro" + "\n(google/cloud/dialogflow/v2/session.pro" + "to\022\032google.cloud.dialogflow.v2\032\034google/a" + "pi/annotations.proto\032\027google/api/client." + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032-google/cloud/dialogflow/v2/audio_config.proto\032(google" + + "google/api/resource.proto\032-google/cloud/" + + "dialogflow/v2/audio_config.proto\032(google" + "/cloud/dialogflow/v2/context.proto\032\'goog" - + "le/cloud/dialogflow/v2/intent.proto\0324google/cloud/dialogflow/v2/session_entity_t" - + "ype.proto\032\036google/protobuf/duration.proto\032" - + " google/protobuf/field_mask.proto\032\034goo" - + "gle/protobuf/struct.proto\032\027google/rpc/status.proto\032\030google/type/latlng.proto\"\367\002\n" - + "\023DetectIntentRequest\022;\n" - + "\007session\030\001 \001(\tB*\342A\001\002\372A#\n" - + "!dialogflow.googleapis.com/Session\022A\n" - + "\014query_params\030\002 \001(\0132+.google.cloud.dialogflow.v2.QueryParameters\022A\n" - + "\013query_input\030\003" - + " \001(\0132&.google.cloud.dialogflow.v2.QueryInputB\004\342A\001\002\022J\n" - + "\023output_audio_config\030\004" - + " \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\022<\n" - + "\030output_audio_config_mask\030\007" - + " \001(\0132\032.google.protobuf.FieldMask\022\023\n" - + "\013input_audio\030\005 \001(\014\"\370\001\n" - + "\024DetectIntentResponse\022\023\n" - + "\013response_id\030\001 \001(\t\022=\n" - + "\014query_result\030\002 \001(\0132\'.google.cloud.dialogflow.v2.QueryResult\022*\n" - + "\016webhook_status\030\003 \001(\0132\022.google.rpc.Status\022\024\n" - + "\014output_audio\030\004 \001(\014\022J\n" - + "\023output_audio_config\030\006" - + " \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\"\237\004\n" - + "\017QueryParameters\022\021\n" - + "\ttime_zone\030\001 \001(\t\022)\n" - + "\014geo_location\030\002 \001(\0132\023.google.type.LatLng\0225\n" - + "\010contexts\030\003 \003(\0132#.google.cloud.dialogflow.v2.Context\022\026\n" - + "\016reset_contexts\030\004 \001(\010\022K\n" - + "\024session_entity_types\030\005" - + " \003(\0132-.google.cloud.dialogflow.v2.SessionEntityType\022(\n" - + "\007payload\030\006 \001(\0132\027.google.protobuf.Struct\022e\n" - + "!sentiment_analysis_request_config\030\n" - + " \001(\0132:.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig\022X\n" - + "\017webhook_headers\030\016 \003(\0132?.goog" - + "le.cloud.dialogflow.v2.QueryParameters.WebhookHeadersEntry\022\020\n" - + "\010platform\030\022 \001(\t\0325\n" - + "\023WebhookHeadersEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\313\001\n\n" - + "QueryInput\022D\n" - + "\014audio_config\030\001" - + " \001(\0132,.google.cloud.dialogflow.v2.InputAudioConfigH\000\0225\n" - + "\004text\030\002 \001(\0132%.google.cloud.dialogflow.v2.TextInputH\000\0227\n" - + "\005event\030\003 \001(\0132&.google.cloud.dialogflow.v2.EventInputH\000B\007\n" - + "\005input\"\256\005\n" - + "\013QueryResult\022\022\n\n" - + "query_text\030\001 \001(\t\022\025\n\r" - + "language_code\030\017 \001(\t\022%\n" - + "\035speech_recognition_confidence\030\002 \001(\002\022\016\n" - + "\006action\030\003 \001(\t\022+\n\n" - + "parameters\030\004 \001(\0132\027.google.protobuf.Struct\022#\n" - + "\033all_required_params_present\030\005 \001(\010\022\034\n" - + "\024cancels_slot_filling\030\025 \001(\010\022\030\n" - + "\020fulfillment_text\030\006 \001(\t\022H\n" - + "\024fulfillment_messages\030\007" - + " \003(\0132*.google.cloud.dialogflow.v2.Intent.Message\022\026\n" - + "\016webhook_source\030\010 \001(\t\0220\n" - + "\017webhook_payload\030\t \001(\0132\027.google.protobuf.Struct\022<\n" - + "\017output_contexts\030\n" - + " \003(\0132#.google.cloud.dialogflow.v2.Context\0222\n" - + "\006intent\030\013 \001(\0132\".google.cloud.dialogflow.v2.Intent\022#\n" - + "\033intent_detection_confidence\030\014 \001(\002\0220\n" - + "\017diagnostic_info\030\016 \001(\0132\027.google.protobuf.Struct\022V\n" - + "\031sentiment_analysis_result\030\021" - + " \001(\01323.google.cloud.dialogflow.v2.SentimentAnalysisResult\"\275\003\n" - + "\034StreamingDetectIntentRequest\022;\n" - + "\007session\030\001 \001(\tB*\342A\001\002\372A#\n" - + "!dialogflow.googleapis.com/Session\022A\n" - + "\014query_params\030\002 \001(\0132+.google.cloud.dialogflow.v2.QueryParameters\022A\n" - + "\013query_input\030\003" - + " \001(\0132&.google.cloud.dialogflow.v2.QueryInputB\004\342A\001\002\022\034\n" - + "\020single_utterance\030\004 \001(\010B\002\030\001\022J\n" - + "\023output_audio_config\030\005 \001(\0132-.goog" - + "le.cloud.dialogflow.v2.OutputAudioConfig\022<\n" - + "\030output_audio_config_mask\030\007" - + " \001(\0132\032.google.protobuf.FieldMask\022\023\n" - + "\013input_audio\030\006 \001(\014\022\035\n" - + "\025enable_debugging_info\030\010 \001(\010\"\260\007\n" - + "\036CloudConversationDebuggingInfo\022\031\n" - + "\021audio_data_chunks\030\001 \001(\005\0229\n" - + "\026result_end_time_offset\030\002 \001(\0132\031.google.protobuf.Duration\0227\n" - + "\024first_audio_duration\030\003 \001(\0132\031.google.protobuf.Duration\022\030\n" - + "\020single_utterance\030\005 \001(\010\022C\n" - + " speech_partial_results_end_times\030\006" - + " \003(\0132\031.google.protobuf.Duration\022A\n" - + "\036speech_final_results_end_times\030\007" - + " \003(\0132\031.google.protobuf.Duration\022\031\n" - + "\021partial_responses\030\010 \001(\005\022,\n" - + "$speaker_id_passive_latency_ms_offset\030\t \001(\005\022\037\n" - + "\027bargein_event_triggered\030\n" - + " \001(\010\022\037\n" - + "\027speech_single_utterance\030\013 \001(\010\022=\n" - + "\032dtmf_partial_results_times\030\014 \003(\0132\031.google.protobuf.Duration\022;\n" - + "\030dtmf_final_results_times\030\r" - + " \003(\0132\031.google.protobuf.Duration\022C\n" - + " single_utterance_end_time_offset\030\016" - + " \001(\0132\031.google.protobuf.Duration\0224\n" - + "\021no_speech_timeout\030\017 \001(\0132\031.google.protobuf.Duration\0226\n" - + "\023endpointing_timeout\030\023 \001(\0132\031.google.protobuf.Duration\022\025\n\r" - + "is_input_text\030\020 \001(\010\022@\n" - + "\035client_half_close_time_offset\030\021" - + " \001(\0132\031.google.protobuf.Duration\022J\n" - + "\'client_half_close_streaming_time_offset\030\022" - + " \001(\0132\031.google.protobuf.Duration\"\251\003\n" - + "\035StreamingDetectIntentResponse\022\023\n" - + "\013response_id\030\001 \001(\t\022R\n" - + "\022recognition_result\030\002 \001(\01326.google.cloud." - + "dialogflow.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.cloud.dialogflow.v2.OutputAudioConfig\022R\n" - + "\016debugging_info\030\010 \001(\0132:.google.c" - + "loud.dialogflow.v2.CloudConversationDebuggingInfo\"\374\003\n" - + "\032StreamingRecognitionResult\022X\n" - + "\014message_type\030\001 \001(\0162B.google.cloud.di" - + "alogflow.v2.StreamingRecognitionResult.MessageType\022\022\n\n" - + "transcript\030\002 \001(\t\022\020\n" - + "\010is_final\030\003 \001(\010\022\022\n\n" - + "confidence\030\004 \001(\002\022D\n" - + "\020speech_word_info\030\007" - + " \003(\0132*.google.cloud.dialogflow.v2.SpeechWordInfo\0224\n" - + "\021speech_end_offset\030\010 \001(\0132\031.google.protobuf.Duration\022\025\n\r" - + "language_code\030\n" - + " \001(\t\"\266\001\n" - + "\013MessageType\022\034\n" - + "\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\n" - + "TRANSCRIPT\020\001\022\017\n" - + "\013DTMF_DIGITS\020\003\022\033\n" - + "\027END_OF_SINGLE_UTTERANCE\020\002\022\027\n" - + "\023PARTIAL_DTMF_DIGITS\020\004\022\031\n" - + "\025SPEECH_ACTIVITY_BEGIN\020\005\022\027\n" - + "\023SPEECH_ACTIVITY_END\020\006\"<\n" - + "\tTextInput\022\022\n" - + "\004text\030\001 \001(\tB\004\342A\001\001\022\033\n\r" - + "language_code\030\002 \001(\tB\004\342A\001\002\"j\n\n" - + "EventInput\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\002\022+\n\n" - + "parameters\030\002 \001(\0132\027.google.protobuf.Struct\022\033\n\r" - + "language_code\030\003 \001(\tB\004\342A\001\002\"F\n" - + "\036SentimentAnalysisRequestConfig\022$\n" - + "\034analyze_query_text_sentiment\030\001 \001(\010\"^\n" - + "\027SentimentAnalysisResult\022C\n" - + "\024query_text_sentiment\030\001 \001(\0132%.google.cloud.dialogflow.v2.Sentiment\"-\n" - + "\tSentiment\022\r\n" - + "\005score\030\001 \001(\002\022\021\n" - + "\tmagnitude\030\002 \001(\0022\345\005\n" - + "\010Sessions\022\311\003\n" - + "\014DetectIntent\022/.google.cloud.dialogflo" - + "w.v2.DetectIntentRequest\0320.google.cloud." - + "dialogflow.v2.DetectIntentResponse\"\325\002\332A\023" - + "session,query_input\202\323\344\223\002\270\002\"6/v2/{session" - + "=projects/*/agent/sessions/*}:detectIntent:\001*ZR\"M/v2/{session=projects/*/agent/e" - + "nvironments/*/users/*/sessions/*}:detectIntent:\001*ZG\"B/v2/{session=projects/*/loc" - + "ations/*/agent/sessions/*}:detectIntent:\001*Z^\"Y/v2/{session=projects/*/locations/" - + "*/agent/environments/*/users/*/sessions/*}:detectIntent:\001*\022\222\001\n" - + "\025StreamingDetectIntent\0228.google.cloud.dialogflow.v2.Stream" - + "ingDetectIntentRequest\0329.google.cloud.dialogflow.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/dialogflowB\347\003\n" - + "\036com.google.cloud.dialogflow.v2B\014SessionProtoP\001Z>cloud.google.com/g" - + "o/dialogflow/apiv2/dialogflowpb;dialogfl" - + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\321\002\n" - + "!dialogflow.googleapis.com/Session\022+projects/{project}/agent/sessions/{sessio" - + "n}\022Sprojects/{project}/agent/environments/{environment}/users/{user}/sessions/{s" - + "ession}\022@projects/{project}/locations/{location}/agent/sessions/{session}\022hproje" - + "cts/{project}/locations/{location}/agent/environments/{environment}/users/{user}" - + "/sessions/{session}b\006proto3" + + "le/cloud/dialogflow/v2/intent.proto\0324goo" + + "gle/cloud/dialogflow/v2/session_entity_t" + + "ype.proto\032\036google/protobuf/duration.prot" + + "o\032 google/protobuf/field_mask.proto\032\034goo" + + "gle/protobuf/struct.proto\032\027google/rpc/st" + + "atus.proto\032\030google/type/latlng.proto\"\367\002\n" + + "\023DetectIntentRequest\022;\n\007session\030\001 \001(\tB*\342" + + "A\001\002\372A#\n!dialogflow.googleapis.com/Sessio" + + "n\022A\n\014query_params\030\002 \001(\0132+.google.cloud.d" + + "ialogflow.v2.QueryParameters\022A\n\013query_in" + + "put\030\003 \001(\0132&.google.cloud.dialogflow.v2.Q" + + "ueryInputB\004\342A\001\002\022J\n\023output_audio_config\030\004" + + " \001(\0132-.google.cloud.dialogflow.v2.Output" + + "AudioConfig\022<\n\030output_audio_config_mask\030" + + "\007 \001(\0132\032.google.protobuf.FieldMask\022\023\n\013inp" + + "ut_audio\030\005 \001(\014\"\370\001\n\024DetectIntentResponse\022" + + "\023\n\013response_id\030\001 \001(\t\022=\n\014query_result\030\002 \001" + + "(\0132\'.google.cloud.dialogflow.v2.QueryRes" + + "ult\022*\n\016webhook_status\030\003 \001(\0132\022.google.rpc" + + ".Status\022\024\n\014output_audio\030\004 \001(\014\022J\n\023output_" + + "audio_config\030\006 \001(\0132-.google.cloud.dialog" + + "flow.v2.OutputAudioConfig\"\237\004\n\017QueryParam" + + "eters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location" + + "\030\002 \001(\0132\023.google.type.LatLng\0225\n\010contexts\030" + + "\003 \003(\0132#.google.cloud.dialogflow.v2.Conte" + + "xt\022\026\n\016reset_contexts\030\004 \001(\010\022K\n\024session_en" + + "tity_types\030\005 \003(\0132-.google.cloud.dialogfl" + + "ow.v2.SessionEntityType\022(\n\007payload\030\006 \001(\013" + + "2\027.google.protobuf.Struct\022e\n!sentiment_a" + + "nalysis_request_config\030\n \001(\0132:.google.cl" + + "oud.dialogflow.v2.SentimentAnalysisReque" + + "stConfig\022X\n\017webhook_headers\030\016 \003(\0132?.goog" + + "le.cloud.dialogflow.v2.QueryParameters.W" + + "ebhookHeadersEntry\022\020\n\010platform\030\022 \001(\t\0325\n\023" + + "WebhookHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\313\001\n\nQueryInput\022D\n\014audio_conf" + + "ig\030\001 \001(\0132,.google.cloud.dialogflow.v2.In" + + "putAudioConfigH\000\0225\n\004text\030\002 \001(\0132%.google." + + "cloud.dialogflow.v2.TextInputH\000\0227\n\005event" + + "\030\003 \001(\0132&.google.cloud.dialogflow.v2.Even" + + "tInputH\000B\007\n\005input\"\256\005\n\013QueryResult\022\022\n\nque" + + "ry_text\030\001 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\022%\n\035" + + "speech_recognition_confidence\030\002 \001(\002\022\016\n\006a" + + "ction\030\003 \001(\t\022+\n\nparameters\030\004 \001(\0132\027.google" + + ".protobuf.Struct\022#\n\033all_required_params_" + + "present\030\005 \001(\010\022\034\n\024cancels_slot_filling\030\025 " + + "\001(\010\022\030\n\020fulfillment_text\030\006 \001(\t\022H\n\024fulfill" + + "ment_messages\030\007 \003(\0132*.google.cloud.dialo" + + "gflow.v2.Intent.Message\022\026\n\016webhook_sourc" + + "e\030\010 \001(\t\0220\n\017webhook_payload\030\t \001(\0132\027.googl" + + "e.protobuf.Struct\022<\n\017output_contexts\030\n \003" + + "(\0132#.google.cloud.dialogflow.v2.Context\022" + + "2\n\006intent\030\013 \001(\0132\".google.cloud.dialogflo" + + "w.v2.Intent\022#\n\033intent_detection_confiden" + + "ce\030\014 \001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.goog" + + "le.protobuf.Struct\022V\n\031sentiment_analysis" + + "_result\030\021 \001(\01323.google.cloud.dialogflow." + + "v2.SentimentAnalysisResult\"\275\003\n\034Streaming" + + "DetectIntentRequest\022;\n\007session\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!dialogflow.googleapis.com/Session" + + "\022A\n\014query_params\030\002 \001(\0132+.google.cloud.di" + + "alogflow.v2.QueryParameters\022A\n\013query_inp" + + "ut\030\003 \001(\0132&.google.cloud.dialogflow.v2.Qu" + + "eryInputB\004\342A\001\002\022\034\n\020single_utterance\030\004 \001(\010" + + "B\002\030\001\022J\n\023output_audio_config\030\005 \001(\0132-.goog" + + "le.cloud.dialogflow.v2.OutputAudioConfig" + + "\022<\n\030output_audio_config_mask\030\007 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022\023\n\013input_audio\030\006 " + + "\001(\014\022\035\n\025enable_debugging_info\030\010 \001(\010\"\260\007\n\036C" + + "loudConversationDebuggingInfo\022\031\n\021audio_d" + + "ata_chunks\030\001 \001(\005\0229\n\026result_end_time_offs" + + "et\030\002 \001(\0132\031.google.protobuf.Duration\0227\n\024f" + + "irst_audio_duration\030\003 \001(\0132\031.google.proto" + + "buf.Duration\022\030\n\020single_utterance\030\005 \001(\010\022C" + + "\n speech_partial_results_end_times\030\006 \003(\013" + + "2\031.google.protobuf.Duration\022A\n\036speech_fi" + + "nal_results_end_times\030\007 \003(\0132\031.google.pro" + + "tobuf.Duration\022\031\n\021partial_responses\030\010 \001(" + + "\005\022,\n$speaker_id_passive_latency_ms_offse" + + "t\030\t \001(\005\022\037\n\027bargein_event_triggered\030\n \001(\010" + + "\022\037\n\027speech_single_utterance\030\013 \001(\010\022=\n\032dtm" + + "f_partial_results_times\030\014 \003(\0132\031.google.p" + + "rotobuf.Duration\022;\n\030dtmf_final_results_t" + + "imes\030\r \003(\0132\031.google.protobuf.Duration\022C\n" + + " single_utterance_end_time_offset\030\016 \001(\0132" + + "\031.google.protobuf.Duration\0224\n\021no_speech_" + + "timeout\030\017 \001(\0132\031.google.protobuf.Duration" + + "\0226\n\023endpointing_timeout\030\023 \001(\0132\031.google.p" + + "rotobuf.Duration\022\025\n\ris_input_text\030\020 \001(\010\022" + + "@\n\035client_half_close_time_offset\030\021 \001(\0132\031" + + ".google.protobuf.Duration\022J\n\'client_half" + + "_close_streaming_time_offset\030\022 \001(\0132\031.goo" + + "gle.protobuf.Duration\"\251\003\n\035StreamingDetec" + + "tIntentResponse\022\023\n\013response_id\030\001 \001(\t\022R\n\022" + + "recognition_result\030\002 \001(\01326.google.cloud." + + "dialogflow.v2.StreamingRecognitionResult" + + "\022=\n\014query_result\030\003 \001(\0132\'.google.cloud.di" + + "alogflow.v2.QueryResult\022*\n\016webhook_statu" + + "s\030\004 \001(\0132\022.google.rpc.Status\022\024\n\014output_au" + + "dio\030\005 \001(\014\022J\n\023output_audio_config\030\006 \001(\0132-" + + ".google.cloud.dialogflow.v2.OutputAudioC" + + "onfig\022R\n\016debugging_info\030\010 \001(\0132:.google.c" + + "loud.dialogflow.v2.CloudConversationDebu" + + "ggingInfo\"\374\003\n\032StreamingRecognitionResult" + + "\022X\n\014message_type\030\001 \001(\0162B.google.cloud.di" + + "alogflow.v2.StreamingRecognitionResult.M" + + "essageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_fin" + + "al\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\022D\n\020speech_w" + + "ord_info\030\007 \003(\0132*.google.cloud.dialogflow" + + ".v2.SpeechWordInfo\0224\n\021speech_end_offset\030" + + "\010 \001(\0132\031.google.protobuf.Duration\022\025\n\rlang" + + "uage_code\030\n \001(\t\"\266\001\n\013MessageType\022\034\n\030MESSA" + + "GE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\017\n" + + "\013DTMF_DIGITS\020\003\022\033\n\027END_OF_SINGLE_UTTERANC" + + "E\020\002\022\027\n\023PARTIAL_DTMF_DIGITS\020\004\022\031\n\025SPEECH_A" + + "CTIVITY_BEGIN\020\005\022\027\n\023SPEECH_ACTIVITY_END\020\006" + + "\"<\n\tTextInput\022\022\n\004text\030\001 \001(\tB\004\342A\001\001\022\033\n\rlan" + + "guage_code\030\002 \001(\tB\004\342A\001\002\"j\n\nEventInput\022\022\n\004" + + "name\030\001 \001(\tB\004\342A\001\002\022+\n\nparameters\030\002 \001(\0132\027.g" + + "oogle.protobuf.Struct\022\033\n\rlanguage_code\030\003" + + " \001(\tB\004\342A\001\002\"F\n\036SentimentAnalysisRequestCo" + + "nfig\022$\n\034analyze_query_text_sentiment\030\001 \001" + + "(\010\"\210\001\n\027SentimentAnalysisResult\022C\n\024query_" + + "text_sentiment\030\001 \001(\0132%.google.cloud.dial" + + "ogflow.v2.Sentiment\022(\n\006status\030\003 \001(\0132\022.go" + + "ogle.rpc.StatusB\004\342A\001\003\"-\n\tSentiment\022\r\n\005sc" + + "ore\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\345\005\n\010Session" + + "s\022\311\003\n\014DetectIntent\022/.google.cloud.dialog" + + "flow.v2.DetectIntentRequest\0320.google.clo" + + "ud.dialogflow.v2.DetectIntentResponse\"\325\002" + + "\332A\023session,query_input\202\323\344\223\002\270\002\"6/v2/{sess" + + "ion=projects/*/agent/sessions/*}:detectI" + + "ntent:\001*ZR\"M/v2/{session=projects/*/agen" + + "t/environments/*/users/*/sessions/*}:det" + + "ectIntent:\001*ZG\"B/v2/{session=projects/*/" + + "locations/*/agent/sessions/*}:detectInte" + + "nt:\001*Z^\"Y/v2/{session=projects/*/locatio" + + "ns/*/agent/environments/*/users/*/sessio" + + "ns/*}:detectIntent:\001*\022\222\001\n\025StreamingDetec" + + "tIntent\0228.google.cloud.dialogflow.v2.Str" + + "eamingDetectIntentRequest\0329.google.cloud" + + ".dialogflow.v2.StreamingDetectIntentResp" + + "onse\"\000(\0010\001\032x\312A\031dialogflow.googleapis.com" + + "\322AYhttps://www.googleapis.com/auth/cloud" + + "-platform,https://www.googleapis.com/aut" + + "h/dialogflowB\347\003\n\036com.google.cloud.dialog" + + "flow.v2B\014SessionProtoP\001Z>cloud.google.co" + + "m/go/dialogflow/apiv2/dialogflowpb;dialo" + + "gflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V" + + "2\352A\321\002\n!dialogflow.googleapis.com/Session" + + "\022+projects/{project}/agent/sessions/{ses" + + "sion}\022Sprojects/{project}/agent/environm" + + "ents/{environment}/users/{user}/sessions" + + "/{session}\022@projects/{project}/locations" + + "/{location}/agent/sessions/{session}\022hpr" + + "ojects/{project}/locations/{location}/ag" + + "ent/environments/{environment}/users/{us" + + "er}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -478,7 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor, new java.lang.String[] { - "QueryTextSentiment", + "QueryTextSentiment", "Status", }); internal_static_google_cloud_dialogflow_v2_Sentiment_descriptor = getDescriptor().getMessageType(13); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfig.java index 89f7f39ddd75..c3d69418ecdf 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfig.java @@ -80,36 +80,6 @@ public interface GeminiAsrConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig) com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-     * Optional. The Gemini ASR model ID used for transcription.
-     * This value overrides the default model ID configured on the server.
-     * Example: "gemini-3-flash-lite-asr-preview"
-     * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The modelId. - */ - java.lang.String getModelId(); - - /** - * - * - *
-     * Optional. The Gemini ASR model ID used for transcription.
-     * This value overrides the default model ID configured on the server.
-     * Example: "gemini-3-flash-lite-asr-preview"
-     * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for modelId. - */ - com.google.protobuf.ByteString getModelIdBytes(); - /** * * @@ -234,7 +204,6 @@ private GeminiAsrConfig(com.google.protobuf.GeneratedMessage.Builder builder) } private GeminiAsrConfig() { - modelId_ = ""; startOfSpeechSensitivity_ = 0; endOfSpeechSensitivity_ = 0; } @@ -603,63 +572,6 @@ private EndSensitivity(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity) } - public static final int MODEL_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object modelId_ = ""; - - /** - * - * - *
-     * Optional. The Gemini ASR model ID used for transcription.
-     * This value overrides the default model ID configured on the server.
-     * Example: "gemini-3-flash-lite-asr-preview"
-     * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The modelId. - */ - @java.lang.Override - public java.lang.String getModelId() { - java.lang.Object ref = modelId_; - 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(); - modelId_ = s; - return s; - } - } - - /** - * - * - *
-     * Optional. The Gemini ASR model ID used for transcription.
-     * This value overrides the default model ID configured on the server.
-     * Example: "gemini-3-flash-lite-asr-preview"
-     * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for modelId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getModelIdBytes() { - java.lang.Object ref = modelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - modelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int SILENCE_DURATION_MS_FIELD_NUMBER = 2; private int silenceDurationMs_ = 0; @@ -806,9 +718,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, modelId_); - } if (silenceDurationMs_ != 0) { output.writeInt32(2, silenceDurationMs_); } @@ -836,9 +745,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelId_); - } if (silenceDurationMs_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, silenceDurationMs_); } @@ -873,7 +779,6 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig other = (com.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig) obj; - if (!getModelId().equals(other.getModelId())) return false; if (getSilenceDurationMs() != other.getSilenceDurationMs()) return false; if (getPrefixPaddingMs() != other.getPrefixPaddingMs()) return false; if (startOfSpeechSensitivity_ != other.startOfSpeechSensitivity_) return false; @@ -889,8 +794,6 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getModelId().hashCode(); hash = (37 * hash) + SILENCE_DURATION_MS_FIELD_NUMBER; hash = (53 * hash) + getSilenceDurationMs(); hash = (37 * hash) + PREFIX_PADDING_MS_FIELD_NUMBER; @@ -1044,7 +947,6 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - modelId_ = ""; silenceDurationMs_ = 0; prefixPaddingMs_ = 0; startOfSpeechSensitivity_ = 0; @@ -1089,18 +991,15 @@ private void buildPartial0( com.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.modelId_ = modelId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.silenceDurationMs_ = silenceDurationMs_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.prefixPaddingMs_ = prefixPaddingMs_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.startOfSpeechSensitivity_ = startOfSpeechSensitivity_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.endOfSpeechSensitivity_ = endOfSpeechSensitivity_; } } @@ -1121,11 +1020,6 @@ public Builder mergeFrom( if (other == com.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig .getDefaultInstance()) return this; - if (!other.getModelId().isEmpty()) { - modelId_ = other.modelId_; - bitField0_ |= 0x00000001; - onChanged(); - } if (other.getSilenceDurationMs() != 0) { setSilenceDurationMs(other.getSilenceDurationMs()); } @@ -1164,34 +1058,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - modelId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 case 16: { silenceDurationMs_ = input.readInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; break; } // case 16 case 24: { prefixPaddingMs_ = input.readInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; break; } // case 24 case 32: { startOfSpeechSensitivity_ = input.readEnum(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; break; } // case 32 case 40: { endOfSpeechSensitivity_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -1213,127 +1101,6 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object modelId_ = ""; - - /** - * - * - *
-       * Optional. The Gemini ASR model ID used for transcription.
-       * This value overrides the default model ID configured on the server.
-       * Example: "gemini-3-flash-lite-asr-preview"
-       * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The modelId. - */ - public java.lang.String getModelId() { - java.lang.Object ref = modelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - modelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Optional. The Gemini ASR model ID used for transcription.
-       * This value overrides the default model ID configured on the server.
-       * Example: "gemini-3-flash-lite-asr-preview"
-       * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for modelId. - */ - public com.google.protobuf.ByteString getModelIdBytes() { - java.lang.Object ref = modelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - modelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Optional. The Gemini ASR model ID used for transcription.
-       * This value overrides the default model ID configured on the server.
-       * Example: "gemini-3-flash-lite-asr-preview"
-       * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The modelId to set. - * @return This builder for chaining. - */ - public Builder setModelId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - modelId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The Gemini ASR model ID used for transcription.
-       * This value overrides the default model ID configured on the server.
-       * Example: "gemini-3-flash-lite-asr-preview"
-       * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearModelId() { - modelId_ = getDefaultInstance().getModelId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The Gemini ASR model ID used for transcription.
-       * This value overrides the default model ID configured on the server.
-       * Example: "gemini-3-flash-lite-asr-preview"
-       * 
- * - * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for modelId to set. - * @return This builder for chaining. - */ - public Builder setModelIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - modelId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - private int silenceDurationMs_; /** @@ -1369,7 +1136,7 @@ public int getSilenceDurationMs() { public Builder setSilenceDurationMs(int value) { silenceDurationMs_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1387,7 +1154,7 @@ public Builder setSilenceDurationMs(int value) { * @return This builder for chaining. */ public Builder clearSilenceDurationMs() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); silenceDurationMs_ = 0; onChanged(); return this; @@ -1428,7 +1195,7 @@ public int getPrefixPaddingMs() { public Builder setPrefixPaddingMs(int value) { prefixPaddingMs_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1446,7 +1213,7 @@ public Builder setPrefixPaddingMs(int value) { * @return This builder for chaining. */ public Builder clearPrefixPaddingMs() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); prefixPaddingMs_ = 0; onChanged(); return this; @@ -1488,7 +1255,7 @@ public int getStartOfSpeechSensitivityValue() { */ public Builder setStartOfSpeechSensitivityValue(int value) { startOfSpeechSensitivity_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1538,7 +1305,7 @@ public Builder setStartOfSpeechSensitivity( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; startOfSpeechSensitivity_ = value.getNumber(); onChanged(); return this; @@ -1558,7 +1325,7 @@ public Builder setStartOfSpeechSensitivity( * @return This builder for chaining. */ public Builder clearStartOfSpeechSensitivity() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); startOfSpeechSensitivity_ = 0; onChanged(); return this; @@ -1600,7 +1367,7 @@ public int getEndOfSpeechSensitivityValue() { */ public Builder setEndOfSpeechSensitivityValue(int value) { endOfSpeechSensitivity_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1649,7 +1416,7 @@ public Builder setEndOfSpeechSensitivity( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; endOfSpeechSensitivity_ = value.getNumber(); onChanged(); return this; @@ -1669,7 +1436,7 @@ public Builder setEndOfSpeechSensitivity( * @return This builder for chaining. */ public Builder clearEndOfSpeechSensitivity() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); endOfSpeechSensitivity_ = 0; onChanged(); return this; @@ -2211,6 +1978,47 @@ public boolean getUseGeminiAsr() { return useGeminiAsr_; } + public static final int DISABLE_INTERIM_INPUT_TRANSCRIPTS_FIELD_NUMBER = 17; + private boolean disableInterimInputTranscripts_ = false; + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + @java.lang.Override + public boolean hasDisableInterimInputTranscripts() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + @java.lang.Override + public boolean getDisableInterimInputTranscripts() { + return disableInterimInputTranscripts_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2258,6 +2066,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (useGeminiAsr_ != false) { output.writeBool(16, useGeminiAsr_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(17, disableInterimInputTranscripts_); + } getUnknownFields().writeTo(output); } @@ -2306,6 +2117,11 @@ public int getSerializedSize() { if (useGeminiAsr_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, useGeminiAsr_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 17, disableInterimInputTranscripts_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2335,6 +2151,12 @@ public boolean equals(final java.lang.Object obj) { if (!getGeminiAsrConfig().equals(other.getGeminiAsrConfig())) return false; } if (getUseGeminiAsr() != other.getUseGeminiAsr()) return false; + if (hasDisableInterimInputTranscripts() != other.hasDisableInterimInputTranscripts()) + return false; + if (hasDisableInterimInputTranscripts()) { + if (getDisableInterimInputTranscripts() != other.getDisableInterimInputTranscripts()) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2370,6 +2192,12 @@ public int hashCode() { } hash = (37 * hash) + USE_GEMINI_ASR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseGeminiAsr()); + if (hasDisableInterimInputTranscripts()) { + hash = (37 * hash) + DISABLE_INTERIM_INPUT_TRANSCRIPTS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableInterimInputTranscripts()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2534,6 +2362,7 @@ public Builder clear() { geminiAsrConfigBuilder_ = null; } useGeminiAsr_ = false; + disableInterimInputTranscripts_ = false; return this; } @@ -2604,6 +2433,10 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.SpeechToTextConfig res if (((from_bitField0_ & 0x00000200) != 0)) { result.useGeminiAsr_ = useGeminiAsr_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.disableInterimInputTranscripts_ = disableInterimInputTranscripts_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -2661,6 +2494,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SpeechToTextConfig other if (other.getUseGeminiAsr() != false) { setUseGeminiAsr(other.getUseGeminiAsr()); } + if (other.hasDisableInterimInputTranscripts()) { + setDisableInterimInputTranscripts(other.getDisableInterimInputTranscripts()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2749,6 +2585,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 128 + case 136: + { + disableInterimInputTranscripts_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4054,6 +3896,90 @@ public Builder clearUseGeminiAsr() { return this; } + private boolean disableInterimInputTranscripts_; + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + @java.lang.Override + public boolean hasDisableInterimInputTranscripts() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + @java.lang.Override + public boolean getDisableInterimInputTranscripts() { + return disableInterimInputTranscripts_; + } + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableInterimInputTranscripts to set. + * @return This builder for chaining. + */ + public Builder setDisableInterimInputTranscripts(boolean value) { + + disableInterimInputTranscripts_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Disables emission of interim input transcriptions when set to
+     * `true`.
+     * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableInterimInputTranscripts() { + bitField0_ = (bitField0_ & ~0x00000400); + disableInterimInputTranscripts_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SpeechToTextConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfigOrBuilder.java index 4586df2baaab..d947c258283e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfigOrBuilder.java @@ -375,4 +375,36 @@ public interface SpeechToTextConfigOrBuilder * @return The useGeminiAsr. */ boolean getUseGeminiAsr(); + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disableInterimInputTranscripts field is set. + */ + boolean hasDisableInterimInputTranscripts(); + + /** + * + * + *
+   * Optional. Disables emission of interim input transcriptions when set to
+   * `true`.
+   * 
+ * + * + * optional bool disable_interim_input_transcripts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableInterimInputTranscripts. + */ + boolean getDisableInterimInputTranscripts(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SummarizationSection.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SummarizationSection.java index 3475ff57b8c4..62794a74c12c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SummarizationSection.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SummarizationSection.java @@ -142,9 +142,10 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * "Unsatisfied" or "Satisfied" depending on the customer's feelings at
-     * the end of the conversation.
-     * Section name: "customer_satisfaction".
+     * Customer satisfaction derived from the text transcript only (not audio).
+     * Categorized based on customer statements by the end of the conversation.
+     * `D` for dissatisfied and `N` for neutral or satisfied (default).
+     * Section name: `customer_satisfaction`.
      * 
* * CUSTOMER_SATISFACTION = 5; @@ -272,9 +273,10 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * "Unsatisfied" or "Satisfied" depending on the customer's feelings at
-     * the end of the conversation.
-     * Section name: "customer_satisfaction".
+     * Customer satisfaction derived from the text transcript only (not audio).
+     * Categorized based on customer statements by the end of the conversation.
+     * `D` for dissatisfied and `N` for neutral or satisfied (default).
+     * Section name: `customer_satisfaction`.
      * 
* * CUSTOMER_SATISFACTION = 5; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index 7aa9b83d779c..9dd0129c7942 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -195,6 +195,11 @@ message InputAudioConfig { // Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. // If unset, this setting is inherited from the ConversationProfile. optional bool use_gemini_asr = 31 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disables emission of interim input transcriptions when set to + // `true`. + optional bool disable_interim_input_transcripts = 32 + [(google.api.field_behavior) = OPTIONAL]; } // Description of which voice to use for speech synthesis. @@ -335,11 +340,6 @@ message SpeechToTextConfig { END_SENSITIVITY_LOW = 2; } - // Optional. The Gemini ASR model ID used for transcription. - // This value overrides the default model ID configured on the server. - // Example: "gemini-3-flash-lite-asr-preview" - string model_id = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The required duration of detected silence (or non-speech) // before end-of-speech is committed. int32 silence_duration_ms = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -439,6 +439,11 @@ message SpeechToTextConfig { // Optional. If true, Gemini ASR will be used for transcription instead of // Cloud Speech-to-Text. bool use_gemini_asr = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disables emission of interim input transcriptions when set to + // `true`. + optional bool disable_interim_input_transcripts = 17 + [(google.api.field_behavior) = OPTIONAL]; } // [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto index 281c0b052877..a31cc8ccfcc9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto @@ -689,9 +689,10 @@ message HumanAgentAssistantConfig { // Section name: "reason_for_cancellation". REASON_FOR_CANCELLATION = 4; - // "Unsatisfied" or "Satisfied" depending on the customer's feelings at - // the end of the conversation. - // Section name: "customer_satisfaction". + // Customer satisfaction derived from the text transcript only (not + // audio). Categorized based on customer statements by the end of the + // conversation. `D` for dissatisfied and `N` for neutral or satisfied + // (default). Section name: `customer_satisfaction`. CUSTOMER_SATISFACTION = 5; // Key entities extracted from the conversation, such as ticket number, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto index 6288ef8d1d13..a2088ecfc81b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto @@ -335,9 +335,10 @@ message SummarizationSection { // Section name: "reason_for_cancellation". REASON_FOR_CANCELLATION = 4; - // "Unsatisfied" or "Satisfied" depending on the customer's feelings at - // the end of the conversation. - // Section name: "customer_satisfaction". + // Customer satisfaction derived from the text transcript only (not audio). + // Categorized based on customer statements by the end of the conversation. + // `D` for dissatisfied and `N` for neutral or satisfied (default). + // Section name: `customer_satisfaction`. CUSTOMER_SATISFACTION = 5; // Key entities extracted from the conversation, such as ticket number, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index b94a62faaeb1..1f90d6cd0d7f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -353,6 +353,10 @@ message Message { // Only one of `content` and `companion_query` should be set - not both. string content = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Automated agent responses. + repeated ResponseMessage response_messages = 11 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The message language. // This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) // language tag. Example: "en-US". @@ -1150,6 +1154,32 @@ message AutomatedAgentReply { // call. DetectIntentResponse detect_intent_response = 1; + // Response messages from the automated agent. + repeated ResponseMessage response_messages = 3; + + // Name of the intent if an intent is matched for the query. + // For a V2 query, the value format is `projects//locations/ + // /agent/intents/`. + // For a V3 query, the value format is `projects//locations/ + // /agents//intents/`. + string intent = 4 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Event name if an event is triggered for the query. + string event = 5; + + // The confidence of the match. 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. + float match_confidence = 9; + + // The collection of current parameters at the time of this response. + google.protobuf.Struct parameters = 10; + // AutomatedAgentReply type. AutomatedAgentReplyType automated_agent_reply_type = 7; @@ -1162,6 +1192,9 @@ message AutomatedAgentReply { // Format: `projects//locations//agents//flows//pages/`. string cx_current_page = 11; + + // The auth code for accessing Call Companion UI. + bytes call_companion_auth_code = 12; } // Represents article answer. @@ -1417,6 +1450,102 @@ message AssistQueryParameters { map documents_metadata_filters = 1; } +// Response messages from an automated agent. +message ResponseMessage { + // The text response message. + message Text { + // A collection of text response variants. If multiple variants are + // defined, only one text response variant is returned at runtime. + repeated string text = 1; + } + + // Indicates that the conversation should be handed off to a human agent. + // + // Dialogflow only uses this to determine which conversations were handed off + // to a human agent for measurement purposes. What else to do with this signal + // is up to you and your handoff procedures. + // + // You may set this, for example: + // + // * In the entry fulfillment of a CX Page if entering the page indicates + // something went extremely wrong in the conversation. + // * In a webhook response when you determine that the customer issue can only + // be handled by a human. + message LiveAgentHandoff { + // Custom metadata for your handoff procedure. Dialogflow doesn't impose + // any structure on this. + google.protobuf.Struct metadata = 1; + } + + // Indicates that interaction with the Dialogflow agent has ended. + message EndInteraction {} + + // Represents an audio message that is composed of both segments + // synthesized from the Dialogflow agent prompts and ones hosted externally + // at the specified URIs. + message MixedAudio { + // Represents one segment of audio. + message Segment { + // Content of the segment. + oneof content { + // Raw audio synthesized from the Dialogflow agent's response using + // the output config specified in the request. + bytes audio = 1; + + // Client-specific URI that points to an audio clip accessible to the + // client. + string uri = 2; + } + + // Whether the playback of this segment can be interrupted by the end + // user's speech and the client should then start the next Dialogflow + // request. + bool allow_playback_interruption = 3; + } + + // Segments this audio response is composed of. + repeated Segment segments = 1; + } + + // Represents the signal that telles the client to transfer the phone call + // connected to the agent to a third-party endpoint. + message TelephonyTransferCall { + // Endpoint to transfer the call to. + oneof endpoint { + // Transfer the call to a phone number + // in [E.164 format](https://en.wikipedia.org/wiki/E.164). + string phone_number = 1; + + // Transfer the call to a SIP endpoint. + string sip_uri = 2; + } + } + + // Required. The rich response message. + oneof message { + // Returns a text response. + Text text = 1; + + // Returns a response containing a custom, platform-specific payload. + google.protobuf.Struct payload = 2; + + // Hands off conversation to a live agent. + LiveAgentHandoff live_agent_handoff = 3; + + // A signal that indicates the interaction with the Dialogflow agent has + // ended. + EndInteraction end_interaction = 4; + + // An audio response message composed of both the synthesized Dialogflow + // agent responses and the audios hosted in places known to the client. + MixedAudio mixed_audio = 5; + + // A signal that the client should transfer the phone call connected to + // this agent to a third-party endpoint. + TelephonyTransferCall telephony_transfer_call = 6; + } +} + // The request message for // [Participants.SuggestKnowledgeAssist][google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssist]. message SuggestKnowledgeAssistRequest { @@ -2028,6 +2157,11 @@ message BidiStreamingAnalyzeContentRequest { // If unset, this setting is inherited from the ConversationProfile. optional bool use_gemini_asr = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disables emission of interim input transcriptions when set to + // `true`. + optional bool disable_interim_input_transcripts = 26 + [(google.api.field_behavior) = OPTIONAL]; } // Required. The name of the participant to fetch response for. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index 025b28f6c153..8bb13132009f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -801,6 +801,11 @@ message SentimentAnalysisRequestConfig { message SentimentAnalysisResult { // The sentiment analysis result for `query_text`. Sentiment query_text_sentiment = 1; + + // Output only. The status of the sentiment analysis operation. + // If the operation failed, this field will contain the error details. + // For example, it might indicate a quota issue (RESOURCE_EXHAUSTED). + google.rpc.Status status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The sentiment, such as positive/negative feeling or association, for a unit diff --git a/java-spanner/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json b/java-spanner/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json index 5731e03c18d2..87b1fe2018a4 100644 --- a/java-spanner/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json +++ b/java-spanner/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json @@ -3383,6 +3383,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$AllowedProcessingUnits", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$AllowedProcessingUnits$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.InstanceConfig$Builder", "queryAllDeclaredConstructors": true, diff --git a/java-spanner/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json b/java-spanner/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json index ad4a5621c637..e685e0aaa5cd 100644 --- a/java-spanner/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json +++ b/java-spanner/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json @@ -2168,6 +2168,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$AllowedProcessingUnits", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$AllowedProcessingUnits$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.InstanceConfig$Builder", "queryAllDeclaredConstructors": true, diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java index adb7056c08a9..3c686aaa98e6 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java @@ -224,6 +224,7 @@ public void getInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockService.addResponse(expectedResponse); @@ -277,6 +278,7 @@ public void getInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockService.addResponse(expectedResponse); @@ -330,6 +332,7 @@ public void createInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = @@ -393,6 +396,7 @@ public void createInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = @@ -456,6 +460,7 @@ public void updateInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = @@ -477,6 +482,7 @@ public void updateInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -519,6 +525,7 @@ public void updateInstanceConfigExceptionTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java index 5181dbe256f0..92a0312c4e0d 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java @@ -236,6 +236,7 @@ public void getInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockInstanceAdmin.addResponse(expectedResponse); @@ -283,6 +284,7 @@ public void getInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockInstanceAdmin.addResponse(expectedResponse); @@ -330,6 +332,7 @@ public void createInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = @@ -393,6 +396,7 @@ public void createInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = @@ -456,6 +460,7 @@ public void updateInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList()) .setReconciling(true) + .addAllAllowedProcessingUnits(new ArrayList()) .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java index 2f5ddaef19dc..37c46d9ca9ec 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java @@ -63,6 +63,7 @@ private InstanceConfig() { leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); state_ = 0; freeInstanceAvailability_ = 0; + allowedProcessingUnits_ = java.util.Collections.emptyList(); quorumType_ = 0; } @@ -878,292 +879,1052 @@ private QuorumType(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.InstanceConfig.QuorumType) } - public static final int NAME_FIELD_NUMBER = 1; + public interface AllowedProcessingUnitsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * The minimum value of processing units applicable to this interval,
+     * inclusive.
+     * 
+ * + * int32 min_processing_units = 1; + * + * @return The minProcessingUnits. + */ + int getMinProcessingUnits(); - /** - * - * - *
-   * A unique identifier for the instance configuration.  Values
-   * are of the form
-   * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
-   *
-   * User instance configuration must start with `custom-`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } + /** + * + * + *
+     * The maximum value of processing units applicable to this interval,
+     * inclusive. If unset, there is no predefined limit to the supported
+     * number of processing units, although project quota limits still apply.
+     * 
+ * + * int32 max_processing_units = 2; + * + * @return The maxProcessingUnits. + */ + int getMaxProcessingUnits(); + + /** + * + * + *
+     * Allowed increments of processing units between “min” and “max”.
+     * 
+ * + * int32 processing_unit_increment = 3; + * + * @return The processingUnitIncrement. + */ + int getProcessingUnitIncrement(); } /** * * *
-   * A unique identifier for the instance configuration.  Values
-   * are of the form
-   * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
-   *
-   * User instance configuration must start with `custom-`.
+   * Defines a range of processing units supported by an instance configuration.
    * 
* - * string name = 1; - * - * @return The bytes for name. + * Protobuf type {@code google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits} */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class AllowedProcessingUnits extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) + AllowedProcessingUnitsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AllowedProcessingUnits"); } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + // Use AllowedProcessingUnits.newBuilder() to construct. + private AllowedProcessingUnits(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; + private AllowedProcessingUnits() {} - /** - * - * - *
-   * The name of this instance configuration as it appears in UIs.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - 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(); - displayName_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_descriptor; } - } - /** - * - * - *
-   * The name of this instance configuration as it appears in UIs.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.class, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + .class); } - } - public static final int CONFIG_TYPE_FIELD_NUMBER = 5; - private int configType_ = 0; + public static final int MIN_PROCESSING_UNITS_FIELD_NUMBER = 1; + private int minProcessingUnits_ = 0; - /** - * - * - *
-   * Output only. Whether this instance configuration is a Google-managed or
-   * user-managed configuration.
-   * 
- * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for configType. - */ - @java.lang.Override - public int getConfigTypeValue() { - return configType_; - } + /** + * + * + *
+     * The minimum value of processing units applicable to this interval,
+     * inclusive.
+     * 
+ * + * int32 min_processing_units = 1; + * + * @return The minProcessingUnits. + */ + @java.lang.Override + public int getMinProcessingUnits() { + return minProcessingUnits_; + } - /** - * - * - *
-   * Output only. Whether this instance configuration is a Google-managed or
-   * user-managed configuration.
-   * 
- * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The configType. - */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { - com.google.spanner.admin.instance.v1.InstanceConfig.Type result = - com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED - : result; - } + public static final int MAX_PROCESSING_UNITS_FIELD_NUMBER = 2; + private int maxProcessingUnits_ = 0; - public static final int REPLICAS_FIELD_NUMBER = 3; + /** + * + * + *
+     * The maximum value of processing units applicable to this interval,
+     * inclusive. If unset, there is no predefined limit to the supported
+     * number of processing units, although project quota limits still apply.
+     * 
+ * + * int32 max_processing_units = 2; + * + * @return The maxProcessingUnits. + */ + @java.lang.Override + public int getMaxProcessingUnits() { + return maxProcessingUnits_; + } - @SuppressWarnings("serial") - private java.util.List replicas_; + public static final int PROCESSING_UNIT_INCREMENT_FIELD_NUMBER = 3; + private int processingUnitIncrement_ = 0; - /** - * - * - *
-   * The geographic placement of nodes in this instance configuration and their
-   * replication properties.
-   *
-   * To create user-managed configurations, input
-   * `replicas` must include all replicas in `replicas` of the `base_config`
-   * and include one or more replicas in the `optional_replicas` of the
-   * `base_config`.
-   * 
- * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; - */ - @java.lang.Override - public java.util.List getReplicasList() { - return replicas_; - } + /** + * + * + *
+     * Allowed increments of processing units between “min” and “max”.
+     * 
+ * + * int32 processing_unit_increment = 3; + * + * @return The processingUnitIncrement. + */ + @java.lang.Override + public int getProcessingUnitIncrement() { + return processingUnitIncrement_; + } - /** - * - * - *
-   * The geographic placement of nodes in this instance configuration and their
-   * replication properties.
-   *
-   * To create user-managed configurations, input
-   * `replicas` must include all replicas in `replicas` of the `base_config`
-   * and include one or more replicas in the `optional_replicas` of the
-   * `base_config`.
-   * 
- * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; - */ - @java.lang.Override - public java.util.List - getReplicasOrBuilderList() { - return replicas_; - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
-   * The geographic placement of nodes in this instance configuration and their
-   * replication properties.
-   *
-   * To create user-managed configurations, input
-   * `replicas` must include all replicas in `replicas` of the `base_config`
-   * and include one or more replicas in the `optional_replicas` of the
-   * `base_config`.
-   * 
- * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; - */ - @java.lang.Override - public int getReplicasCount() { - return replicas_.size(); + @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 (minProcessingUnits_ != 0) { + output.writeInt32(1, minProcessingUnits_); + } + if (maxProcessingUnits_ != 0) { + output.writeInt32(2, maxProcessingUnits_); + } + if (processingUnitIncrement_ != 0) { + output.writeInt32(3, processingUnitIncrement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minProcessingUnits_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minProcessingUnits_); + } + if (maxProcessingUnits_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxProcessingUnits_); + } + if (processingUnitIncrement_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, processingUnitIncrement_); + } + size += getUnknownFields().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.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits)) { + return super.equals(obj); + } + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits other = + (com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) obj; + + if (getMinProcessingUnits() != other.getMinProcessingUnits()) return false; + if (getMaxProcessingUnits() != other.getMaxProcessingUnits()) return false; + if (getProcessingUnitIncrement() != other.getProcessingUnitIncrement()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MIN_PROCESSING_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getMinProcessingUnits(); + hash = (37 * hash) + MAX_PROCESSING_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getMaxProcessingUnits(); + hash = (37 * hash) + PROCESSING_UNIT_INCREMENT_FIELD_NUMBER; + hash = (53 * hash) + getProcessingUnitIncrement(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + 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.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Defines a range of processing units supported by an instance configuration.
+     * 
+ * + * Protobuf type {@code google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.class, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + .class); + } + + // Construct using + // com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + minProcessingUnits_ = 0; + maxProcessingUnits_ = 0; + processingUnitIncrement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_descriptor; + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + getDefaultInstanceForType() { + return com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits build() { + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + buildPartial() { + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits result = + new com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minProcessingUnits_ = minProcessingUnits_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxProcessingUnits_ = maxProcessingUnits_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.processingUnitIncrement_ = processingUnitIncrement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) { + return mergeFrom( + (com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits other) { + if (other + == com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + .getDefaultInstance()) return this; + if (other.getMinProcessingUnits() != 0) { + setMinProcessingUnits(other.getMinProcessingUnits()); + } + if (other.getMaxProcessingUnits() != 0) { + setMaxProcessingUnits(other.getMaxProcessingUnits()); + } + if (other.getProcessingUnitIncrement() != 0) { + setProcessingUnitIncrement(other.getProcessingUnitIncrement()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + minProcessingUnits_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxProcessingUnits_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + processingUnitIncrement_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int minProcessingUnits_; + + /** + * + * + *
+       * The minimum value of processing units applicable to this interval,
+       * inclusive.
+       * 
+ * + * int32 min_processing_units = 1; + * + * @return The minProcessingUnits. + */ + @java.lang.Override + public int getMinProcessingUnits() { + return minProcessingUnits_; + } + + /** + * + * + *
+       * The minimum value of processing units applicable to this interval,
+       * inclusive.
+       * 
+ * + * int32 min_processing_units = 1; + * + * @param value The minProcessingUnits to set. + * @return This builder for chaining. + */ + public Builder setMinProcessingUnits(int value) { + + minProcessingUnits_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The minimum value of processing units applicable to this interval,
+       * inclusive.
+       * 
+ * + * int32 min_processing_units = 1; + * + * @return This builder for chaining. + */ + public Builder clearMinProcessingUnits() { + bitField0_ = (bitField0_ & ~0x00000001); + minProcessingUnits_ = 0; + onChanged(); + return this; + } + + private int maxProcessingUnits_; + + /** + * + * + *
+       * The maximum value of processing units applicable to this interval,
+       * inclusive. If unset, there is no predefined limit to the supported
+       * number of processing units, although project quota limits still apply.
+       * 
+ * + * int32 max_processing_units = 2; + * + * @return The maxProcessingUnits. + */ + @java.lang.Override + public int getMaxProcessingUnits() { + return maxProcessingUnits_; + } + + /** + * + * + *
+       * The maximum value of processing units applicable to this interval,
+       * inclusive. If unset, there is no predefined limit to the supported
+       * number of processing units, although project quota limits still apply.
+       * 
+ * + * int32 max_processing_units = 2; + * + * @param value The maxProcessingUnits to set. + * @return This builder for chaining. + */ + public Builder setMaxProcessingUnits(int value) { + + maxProcessingUnits_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The maximum value of processing units applicable to this interval,
+       * inclusive. If unset, there is no predefined limit to the supported
+       * number of processing units, although project quota limits still apply.
+       * 
+ * + * int32 max_processing_units = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxProcessingUnits() { + bitField0_ = (bitField0_ & ~0x00000002); + maxProcessingUnits_ = 0; + onChanged(); + return this; + } + + private int processingUnitIncrement_; + + /** + * + * + *
+       * Allowed increments of processing units between “min” and “max”.
+       * 
+ * + * int32 processing_unit_increment = 3; + * + * @return The processingUnitIncrement. + */ + @java.lang.Override + public int getProcessingUnitIncrement() { + return processingUnitIncrement_; + } + + /** + * + * + *
+       * Allowed increments of processing units between “min” and “max”.
+       * 
+ * + * int32 processing_unit_increment = 3; + * + * @param value The processingUnitIncrement to set. + * @return This builder for chaining. + */ + public Builder setProcessingUnitIncrement(int value) { + + processingUnitIncrement_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Allowed increments of processing units between “min” and “max”.
+       * 
+ * + * int32 processing_unit_increment = 3; + * + * @return This builder for chaining. + */ + public Builder clearProcessingUnitIncrement() { + bitField0_ = (bitField0_ & ~0x00000004); + processingUnitIncrement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) + } + + // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits) + private static final com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits(); + } + + public static com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedProcessingUnits parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** * * *
-   * The geographic placement of nodes in this instance configuration and their
-   * replication properties.
+   * A unique identifier for the instance configuration.  Values
+   * are of the form
+   * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
    *
-   * To create user-managed configurations, input
-   * `replicas` must include all replicas in `replicas` of the `base_config`
-   * and include one or more replicas in the `optional_replicas` of the
-   * `base_config`.
+   * User instance configuration must start with `custom-`.
    * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * string name = 1; + * + * @return The name. */ @java.lang.Override - public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { - return replicas_.get(index); + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } } /** * * *
-   * The geographic placement of nodes in this instance configuration and their
-   * replication properties.
+   * A unique identifier for the instance configuration.  Values
+   * are of the form
+   * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
    *
-   * To create user-managed configurations, input
-   * `replicas` must include all replicas in `replicas` of the `base_config`
-   * and include one or more replicas in the `optional_replicas` of the
-   * `base_config`.
+   * User instance configuration must start with `custom-`.
    * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * string name = 1; + * + * @return The bytes for name. */ @java.lang.Override - public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index) { - return replicas_.get(index); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int OPTIONAL_REPLICAS_FIELD_NUMBER = 6; + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private java.util.List optionalReplicas_; + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Output only. The available optional replicas to choose from for
-   * user-managed configurations. Populated for Google-managed configurations.
+   * The name of this instance configuration as it appears in UIs.
    * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 2; + * + * @return The displayName. */ @java.lang.Override - public java.util.List - getOptionalReplicasList() { - return optionalReplicas_; + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of this instance configuration as it appears in UIs.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_TYPE_FIELD_NUMBER = 5; + private int configType_ = 0; + + /** + * + * + *
+   * Output only. Whether this instance configuration is a Google-managed or
+   * user-managed configuration.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for configType. + */ + @java.lang.Override + public int getConfigTypeValue() { + return configType_; + } + + /** + * + * + *
+   * Output only. Whether this instance configuration is a Google-managed or
+   * user-managed configuration.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { + com.google.spanner.admin.instance.v1.InstanceConfig.Type result = + com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED + : result; + } + + public static final int REPLICAS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List replicas_; + + /** + * + * + *
+   * The geographic placement of nodes in this instance configuration and their
+   * replication properties.
+   *
+   * To create user-managed configurations, input
+   * `replicas` must include all replicas in `replicas` of the `base_config`
+   * and include one or more replicas in the `optional_replicas` of the
+   * `base_config`.
+   * 
+ * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + */ + @java.lang.Override + public java.util.List getReplicasList() { + return replicas_; + } + + /** + * + * + *
+   * The geographic placement of nodes in this instance configuration and their
+   * replication properties.
+   *
+   * To create user-managed configurations, input
+   * `replicas` must include all replicas in `replicas` of the `base_config`
+   * and include one or more replicas in the `optional_replicas` of the
+   * `base_config`.
+   * 
+ * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + */ + @java.lang.Override + public java.util.List + getReplicasOrBuilderList() { + return replicas_; + } + + /** + * + * + *
+   * The geographic placement of nodes in this instance configuration and their
+   * replication properties.
+   *
+   * To create user-managed configurations, input
+   * `replicas` must include all replicas in `replicas` of the `base_config`
+   * and include one or more replicas in the `optional_replicas` of the
+   * `base_config`.
+   * 
+ * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + */ + @java.lang.Override + public int getReplicasCount() { + return replicas_.size(); + } + + /** + * + * + *
+   * The geographic placement of nodes in this instance configuration and their
+   * replication properties.
+   *
+   * To create user-managed configurations, input
+   * `replicas` must include all replicas in `replicas` of the `base_config`
+   * and include one or more replicas in the `optional_replicas` of the
+   * `base_config`.
+   * 
+ * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { + return replicas_.get(index); + } + + /** + * + * + *
+   * The geographic placement of nodes in this instance configuration and their
+   * replication properties.
+   *
+   * To create user-managed configurations, input
+   * `replicas` must include all replicas in `replicas` of the `base_config`
+   * and include one or more replicas in the `optional_replicas` of the
+   * `base_config`.
+   * 
+ * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index) { + return replicas_.get(index); + } + + public static final int OPTIONAL_REPLICAS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List optionalReplicas_; + + /** + * + * + *
+   * Output only. The available optional replicas to choose from for
+   * user-managed configurations. Populated for Google-managed configurations.
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getOptionalReplicasList() { + return optionalReplicas_; } /** @@ -1740,83 +2501,225 @@ public int getFreeInstanceAvailabilityValue() { : result; } - public static final int QUORUM_TYPE_FIELD_NUMBER = 18; - private int quorumType_ = 0; + public static final int ALLOWED_PROCESSING_UNITS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List + allowedProcessingUnits_; /** * * *
-   * Output only. The `QuorumType` of the instance configuration.
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
    * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for quorumType. */ @java.lang.Override - public int getQuorumTypeValue() { - return quorumType_; + public java.util.List + getAllowedProcessingUnitsList() { + return allowedProcessingUnits_; } /** * * *
-   * Output only. The `QuorumType` of the instance configuration.
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
    * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The quorumType. */ @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType getQuorumType() { - com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType result = - com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.forNumber(quorumType_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.UNRECOGNIZED - : result; + public java.util.List< + ? extends + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder> + getAllowedProcessingUnitsOrBuilderList() { + return allowedProcessingUnits_; } - public static final int STORAGE_LIMIT_PER_PROCESSING_UNIT_FIELD_NUMBER = 19; - private long storageLimitPerProcessingUnit_ = 0L; - /** * * *
-   * Output only. The storage limit in bytes per processing unit.
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
    * 
* * - * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The storageLimitPerProcessingUnit. */ @java.lang.Override - public long getStorageLimitPerProcessingUnit() { - return storageLimitPerProcessingUnit_; + public int getAllowedProcessingUnitsCount() { + return allowedProcessingUnits_.size(); } - private byte memoizedIsInitialized = -1; - + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + getAllowedProcessingUnits(int index) { + return allowedProcessingUnits_.get(index); } - @java.lang.Override + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder + getAllowedProcessingUnitsOrBuilder(int index) { + return allowedProcessingUnits_.get(index); + } + + public static final int QUORUM_TYPE_FIELD_NUMBER = 18; + private int quorumType_ = 0; + + /** + * + * + *
+   * Output only. The `QuorumType` of the instance configuration.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for quorumType. + */ + @java.lang.Override + public int getQuorumTypeValue() { + return quorumType_; + } + + /** + * + * + *
+   * Output only. The `QuorumType` of the instance configuration.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quorumType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType getQuorumType() { + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType result = + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.forNumber(quorumType_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.UNRECOGNIZED + : result; + } + + public static final int STORAGE_LIMIT_PER_PROCESSING_UNIT_FIELD_NUMBER = 19; + private long storageLimitPerProcessingUnit_ = 0L; + + /** + * + * + *
+   * Output only. The storage limit in bytes per processing unit.
+   * 
+ * + * + * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageLimitPerProcessingUnit. + */ + @java.lang.Override + public long getStorageLimitPerProcessingUnit() { + return storageLimitPerProcessingUnit_; + } + + 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); @@ -1859,6 +2762,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, freeInstanceAvailability_); } + for (int i = 0; i < allowedProcessingUnits_.size(); i++) { + output.writeMessage(13, allowedProcessingUnits_.get(i)); + } if (quorumType_ != com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.QUORUM_TYPE_UNSPECIFIED .getNumber()) { @@ -1930,6 +2836,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, freeInstanceAvailability_); } + for (int i = 0; i < allowedProcessingUnits_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, allowedProcessingUnits_.get(i)); + } if (quorumType_ != com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.QUORUM_TYPE_UNSPECIFIED .getNumber()) { @@ -1968,6 +2879,8 @@ public boolean equals(final java.lang.Object obj) { if (getReconciling() != other.getReconciling()) return false; if (state_ != other.state_) return false; if (freeInstanceAvailability_ != other.freeInstanceAvailability_) return false; + if (!getAllowedProcessingUnitsList().equals(other.getAllowedProcessingUnitsList())) + return false; if (quorumType_ != other.quorumType_) return false; if (getStorageLimitPerProcessingUnit() != other.getStorageLimitPerProcessingUnit()) return false; @@ -2014,6 +2927,10 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + FREE_INSTANCE_AVAILABILITY_FIELD_NUMBER; hash = (53 * hash) + freeInstanceAvailability_; + if (getAllowedProcessingUnitsCount() > 0) { + hash = (37 * hash) + ALLOWED_PROCESSING_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedProcessingUnitsList().hashCode(); + } hash = (37 * hash) + QUORUM_TYPE_FIELD_NUMBER; hash = (53 * hash) + quorumType_; hash = (37 * hash) + STORAGE_LIMIT_PER_PROCESSING_UNIT_FIELD_NUMBER; @@ -2205,6 +3122,13 @@ public Builder clear() { reconciling_ = false; state_ = 0; freeInstanceAvailability_ = 0; + if (allowedProcessingUnitsBuilder_ == null) { + allowedProcessingUnits_ = java.util.Collections.emptyList(); + } else { + allowedProcessingUnits_ = null; + allowedProcessingUnitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); quorumType_ = 0; storageLimitPerProcessingUnit_ = 0L; return this; @@ -2262,6 +3186,15 @@ private void buildPartialRepeatedFields( } else { result.optionalReplicas_ = optionalReplicasBuilder_.build(); } + if (allowedProcessingUnitsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + allowedProcessingUnits_ = java.util.Collections.unmodifiableList(allowedProcessingUnits_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.allowedProcessingUnits_ = allowedProcessingUnits_; + } else { + result.allowedProcessingUnits_ = allowedProcessingUnitsBuilder_.build(); + } } private void buildPartial0(com.google.spanner.admin.instance.v1.InstanceConfig result) { @@ -2298,10 +3231,10 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.InstanceConfig r if (((from_bitField0_ & 0x00000800) != 0)) { result.freeInstanceAvailability_ = freeInstanceAvailability_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.quorumType_ = quorumType_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.storageLimitPerProcessingUnit_ = storageLimitPerProcessingUnit_; } } @@ -2417,6 +3350,33 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.InstanceConfig oth if (other.freeInstanceAvailability_ != 0) { setFreeInstanceAvailabilityValue(other.getFreeInstanceAvailabilityValue()); } + if (allowedProcessingUnitsBuilder_ == null) { + if (!other.allowedProcessingUnits_.isEmpty()) { + if (allowedProcessingUnits_.isEmpty()) { + allowedProcessingUnits_ = other.allowedProcessingUnits_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.addAll(other.allowedProcessingUnits_); + } + onChanged(); + } + } else { + if (!other.allowedProcessingUnits_.isEmpty()) { + if (allowedProcessingUnitsBuilder_.isEmpty()) { + allowedProcessingUnitsBuilder_.dispose(); + allowedProcessingUnitsBuilder_ = null; + allowedProcessingUnits_ = other.allowedProcessingUnits_; + bitField0_ = (bitField0_ & ~0x00001000); + allowedProcessingUnitsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAllowedProcessingUnitsFieldBuilder() + : null; + } else { + allowedProcessingUnitsBuilder_.addAllMessages(other.allowedProcessingUnits_); + } + } + } if (other.quorumType_ != 0) { setQuorumTypeValue(other.getQuorumTypeValue()); } @@ -2544,16 +3504,31 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 96 + case 106: + { + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits m = + input.readMessage( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + .parser(), + extensionRegistry); + if (allowedProcessingUnitsBuilder_ == null) { + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.add(m); + } else { + allowedProcessingUnitsBuilder_.addMessage(m); + } + break; + } // case 106 case 144: { quorumType_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 144 case 152: { storageLimitPerProcessingUnit_ = input.readInt64(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 152 default: @@ -2573,161 +3548,445 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; - + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * A unique identifier for the instance configuration.  Values
+     * are of the form
+     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     *
+     * User instance configuration must start with `custom-`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A unique identifier for the instance configuration.  Values
+     * are of the form
+     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     *
+     * User instance configuration must start with `custom-`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A unique identifier for the instance configuration.  Values
+     * are of the form
+     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     *
+     * User instance configuration must start with `custom-`.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A unique identifier for the instance configuration.  Values
+     * are of the form
+     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     *
+     * User instance configuration must start with `custom-`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A unique identifier for the instance configuration.  Values
+     * are of the form
+     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     *
+     * User instance configuration must start with `custom-`.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The name of this instance configuration as it appears in UIs.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of this instance configuration as it appears in UIs.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of this instance configuration as it appears in UIs.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of this instance configuration as it appears in UIs.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of this instance configuration as it appears in UIs.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int configType_ = 0; + + /** + * + * + *
+     * Output only. Whether this instance configuration is a Google-managed or
+     * user-managed configuration.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for configType. + */ + @java.lang.Override + public int getConfigTypeValue() { + return configType_; + } + + /** + * + * + *
+     * Output only. Whether this instance configuration is a Google-managed or
+     * user-managed configuration.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for configType to set. + * @return This builder for chaining. + */ + public Builder setConfigTypeValue(int value) { + configType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** * * *
-     * A unique identifier for the instance configuration.  Values
-     * are of the form
-     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
-     *
-     * User instance configuration must start with `custom-`.
+     * Output only. Whether this instance configuration is a Google-managed or
+     * user-managed configuration.
      * 
* - * string name = 1; + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The name. + * @return The configType. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { + com.google.spanner.admin.instance.v1.InstanceConfig.Type result = + com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED + : result; } /** * * *
-     * A unique identifier for the instance configuration.  Values
-     * are of the form
-     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
-     *
-     * User instance configuration must start with `custom-`.
+     * Output only. Whether this instance configuration is a Google-managed or
+     * user-managed configuration.
      * 
* - * string name = 1; + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for name. + * @param value The configType to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder setConfigType(com.google.spanner.admin.instance.v1.InstanceConfig.Type value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000004; + configType_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * A unique identifier for the instance configuration.  Values
-     * are of the form
-     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
-     *
-     * User instance configuration must start with `custom-`.
+     * Output only. Whether this instance configuration is a Google-managed or
+     * user-managed configuration.
      * 
* - * string name = 1; + * + * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; + public Builder clearConfigType() { + bitField0_ = (bitField0_ & ~0x00000004); + configType_ = 0; onChanged(); return this; } + private java.util.List replicas_ = + java.util.Collections.emptyList(); + + private void ensureReplicasIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + replicas_ = + new java.util.ArrayList(replicas_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.ReplicaInfo, + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + replicasBuilder_; + /** * * *
-     * A unique identifier for the instance configuration.  Values
-     * are of the form
-     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     * The geographic placement of nodes in this instance configuration and their
+     * replication properties.
      *
-     * User instance configuration must start with `custom-`.
+     * To create user-managed configurations, input
+     * `replicas` must include all replicas in `replicas` of the `base_config`
+     * and include one or more replicas in the `optional_replicas` of the
+     * `base_config`.
      * 
* - * string name = 1; - * - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public java.util.List getReplicasList() { + if (replicasBuilder_ == null) { + return java.util.Collections.unmodifiableList(replicas_); + } else { + return replicasBuilder_.getMessageList(); + } } /** * * *
-     * A unique identifier for the instance configuration.  Values
-     * are of the form
-     * `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
+     * The geographic placement of nodes in this instance configuration and their
+     * replication properties.
      *
-     * User instance configuration must start with `custom-`.
+     * To create user-managed configurations, input
+     * `replicas` must include all replicas in `replicas` of the `base_config`
+     * and include one or more replicas in the `optional_replicas` of the
+     * `base_config`.
      * 
* - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public int getReplicasCount() { + if (replicasBuilder_ == null) { + return replicas_.size(); + } else { + return replicasBuilder_.getCount(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private java.lang.Object displayName_ = ""; - /** * * *
-     * The name of this instance configuration as it appears in UIs.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * string display_name = 2; + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + *
* - * @return The displayName. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; + public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { + if (replicasBuilder_ == null) { + return replicas_.get(index); } else { - return (java.lang.String) ref; + return replicasBuilder_.getMessage(index); } } @@ -2735,44 +3994,55 @@ public java.lang.String getDisplayName() { * * *
-     * The name of this instance configuration as it appears in UIs.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * string display_name = 2; + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @return The bytes for displayName. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; + public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + if (replicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicasIsMutable(); + replicas_.set(index, value); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + replicasBuilder_.setMessage(index, value); } + return this; } /** * * *
-     * The name of this instance configuration as it appears in UIs.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * string display_name = 2; + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @param value The displayName to set. - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + replicas_.set(index, builderForValue.build()); + onChanged(); + } else { + replicasBuilder_.setMessage(index, builderForValue.build()); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -2780,17 +4050,28 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * The name of this instance configuration as it appears in UIs.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * string display_name = 2; + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + */ + public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo value) { + if (replicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicasIsMutable(); + replicas_.add(value); + onChanged(); + } else { + replicasBuilder_.addMessage(value); + } return this; } @@ -2798,65 +4079,82 @@ public Builder clearDisplayName() { * * *
-     * The name of this instance configuration as it appears in UIs.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * string display_name = 2; + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + if (replicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicasIsMutable(); + replicas_.add(index, value); + onChanged(); + } else { + replicasBuilder_.addMessage(index, value); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); return this; } - private int configType_ = 0; - /** * * *
-     * Output only. Whether this instance configuration is a Google-managed or
-     * user-managed configuration.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @return The enum numeric value on the wire for configType. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - @java.lang.Override - public int getConfigTypeValue() { - return configType_; + public Builder addReplicas( + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + replicas_.add(builderForValue.build()); + onChanged(); + } else { + replicasBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Output only. Whether this instance configuration is a Google-managed or
-     * user-managed configuration.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @param value The enum numeric value on the wire for configType to set. - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder setConfigTypeValue(int value) { - configType_ = value; - bitField0_ |= 0x00000004; - onChanged(); + public Builder addReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + replicas_.add(index, builderForValue.build()); + onChanged(); + } else { + replicasBuilder_.addMessage(index, builderForValue.build()); + } return this; } @@ -2864,47 +4162,52 @@ public Builder setConfigTypeValue(int value) { * * *
-     * Output only. Whether this instance configuration is a Google-managed or
-     * user-managed configuration.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @return The configType. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { - com.google.spanner.admin.instance.v1.InstanceConfig.Type result = - com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED - : result; + public Builder addAllReplicas( + java.lang.Iterable values) { + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_); + onChanged(); + } else { + replicasBuilder_.addAllMessages(values); + } + return this; } /** * * *
-     * Output only. Whether this instance configuration is a Google-managed or
-     * user-managed configuration.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @param value The configType to set. - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder setConfigType(com.google.spanner.admin.instance.v1.InstanceConfig.Type value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearReplicas() { + if (replicasBuilder_ == null) { + replicas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + replicasBuilder_.clear(); } - bitField0_ |= 0x00000004; - configType_ = value.getNumber(); - onChanged(); return this; } @@ -2912,40 +4215,28 @@ public Builder setConfigType(com.google.spanner.admin.instance.v1.InstanceConfig * * *
-     * Output only. Whether this instance configuration is a Google-managed or
-     * user-managed configuration.
-     * 
+ * The geographic placement of nodes in this instance configuration and their + * replication properties. * - * - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * To create user-managed configurations, input + * `replicas` must include all replicas in `replicas` of the `base_config` + * and include one or more replicas in the `optional_replicas` of the + * `base_config`. + * * - * @return This builder for chaining. + * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder clearConfigType() { - bitField0_ = (bitField0_ & ~0x00000004); - configType_ = 0; - onChanged(); - return this; - } - - private java.util.List replicas_ = - java.util.Collections.emptyList(); - - private void ensureReplicasIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - replicas_ = - new java.util.ArrayList(replicas_); - bitField0_ |= 0x00000008; + public Builder removeReplicas(int index) { + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + replicas_.remove(index); + onChanged(); + } else { + replicasBuilder_.remove(index); } + return this; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - replicasBuilder_; - /** * * @@ -2961,12 +4252,8 @@ private void ensureReplicasIsMutable() { * * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public java.util.List getReplicasList() { - if (replicasBuilder_ == null) { - return java.util.Collections.unmodifiableList(replicas_); - } else { - return replicasBuilder_.getMessageList(); - } + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder(int index) { + return internalGetReplicasFieldBuilder().getBuilder(index); } /** @@ -2984,11 +4271,12 @@ public java.util.List getRepli * * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public int getReplicasCount() { + public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder( + int index) { if (replicasBuilder_ == null) { - return replicas_.size(); + return replicas_.get(index); } else { - return replicasBuilder_.getCount(); + return replicasBuilder_.getMessageOrBuilder(index); } } @@ -3007,11 +4295,12 @@ public int getReplicasCount() { * * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { - if (replicasBuilder_ == null) { - return replicas_.get(index); + public java.util.List + getReplicasOrBuilderList() { + if (replicasBuilder_ != null) { + return replicasBuilder_.getMessageOrBuilderList(); } else { - return replicasBuilder_.getMessage(index); + return java.util.Collections.unmodifiableList(replicas_); } } @@ -3030,18 +4319,9 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { * * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { - if (replicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReplicasIsMutable(); - replicas_.set(index, value); - onChanged(); - } else { - replicasBuilder_.setMessage(index, value); - } - return this; + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder() { + return internalGetReplicasFieldBuilder() + .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** @@ -3058,17 +4338,10 @@ public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.Repli * * * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; - */ - public Builder setReplicas( - int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - replicas_.set(index, builderForValue.build()); - onChanged(); - } else { - replicasBuilder_.setMessage(index, builderForValue.build()); - } - return this; + */ + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder(int index) { + return internalGetReplicasFieldBuilder() + .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** @@ -3086,99 +4359,130 @@ public Builder setReplicas( * * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; */ - public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo value) { + public java.util.List + getReplicasBuilderList() { + return internalGetReplicasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.ReplicaInfo, + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + internalGetReplicasFieldBuilder() { if (replicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReplicasIsMutable(); - replicas_.add(value); - onChanged(); - } else { - replicasBuilder_.addMessage(value); + replicasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.ReplicaInfo, + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( + replicas_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + replicas_ = null; } - return this; + return replicasBuilder_; } + private java.util.List optionalReplicas_ = + java.util.Collections.emptyList(); + + private void ensureOptionalReplicasIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + optionalReplicas_ = + new java.util.ArrayList( + optionalReplicas_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.ReplicaInfo, + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + optionalReplicasBuilder_; + /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { - if (replicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReplicasIsMutable(); - replicas_.add(index, value); - onChanged(); + public java.util.List + getOptionalReplicasList() { + if (optionalReplicasBuilder_ == null) { + return java.util.Collections.unmodifiableList(optionalReplicas_); } else { - replicasBuilder_.addMessage(index, value); + return optionalReplicasBuilder_.getMessageList(); } - return this; } /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addReplicas( - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - replicas_.add(builderForValue.build()); - onChanged(); + public int getOptionalReplicasCount() { + if (optionalReplicasBuilder_ == null) { + return optionalReplicas_.size(); } else { - replicasBuilder_.addMessage(builderForValue.build()); + return optionalReplicasBuilder_.getCount(); } - return this; } /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
+     * 
* - * To create user-managed configurations, input - * `replicas` must include all replicas in `replicas` of the `base_config` - * and include one or more replicas in the `optional_replicas` of the - * `base_config`. + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int index) { + if (optionalReplicasBuilder_ == null) { + return optionalReplicas_.get(index); + } else { + return optionalReplicasBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addReplicas( - int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - replicas_.add(index, builderForValue.build()); + public Builder setOptionalReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + if (optionalReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionalReplicasIsMutable(); + optionalReplicas_.set(index, value); onChanged(); } else { - replicasBuilder_.addMessage(index, builderForValue.build()); + optionalReplicasBuilder_.setMessage(index, value); } return this; } @@ -3187,25 +4491,22 @@ public Builder addReplicas( * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllReplicas( - java.lang.Iterable values) { - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_); + public Builder setOptionalReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + if (optionalReplicasBuilder_ == null) { + ensureOptionalReplicasIsMutable(); + optionalReplicas_.set(index, builderForValue.build()); onChanged(); } else { - replicasBuilder_.addAllMessages(values); + optionalReplicasBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -3214,24 +4515,24 @@ public Builder addAllReplicas( * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearReplicas() { - if (replicasBuilder_ == null) { - replicas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder addOptionalReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo value) { + if (optionalReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionalReplicasIsMutable(); + optionalReplicas_.add(value); onChanged(); } else { - replicasBuilder_.clear(); + optionalReplicasBuilder_.addMessage(value); } return this; } @@ -3240,24 +4541,25 @@ public Builder clearReplicas() { * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeReplicas(int index) { - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - replicas_.remove(index); + public Builder addOptionalReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + if (optionalReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionalReplicasIsMutable(); + optionalReplicas_.add(index, value); onChanged(); } else { - replicasBuilder_.remove(index); + optionalReplicasBuilder_.addMessage(index, value); } return this; } @@ -3266,164 +4568,137 @@ public Builder removeReplicas(int index) { * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder(int index) { - return internalGetReplicasFieldBuilder().getBuilder(index); + public Builder addOptionalReplicas( + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + if (optionalReplicasBuilder_ == null) { + ensureOptionalReplicasIsMutable(); + optionalReplicas_.add(builderForValue.build()); + onChanged(); + } else { + optionalReplicasBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * - *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * 
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder( - int index) { - if (replicasBuilder_ == null) { - return replicas_.get(index); + public Builder addOptionalReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + if (optionalReplicasBuilder_ == null) { + ensureOptionalReplicasIsMutable(); + optionalReplicas_.add(index, builderForValue.build()); + onChanged(); } else { - return replicasBuilder_.getMessageOrBuilder(index); + optionalReplicasBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getReplicasOrBuilderList() { - if (replicasBuilder_ != null) { - return replicasBuilder_.getMessageOrBuilderList(); + public Builder addAllOptionalReplicas( + java.lang.Iterable values) { + if (optionalReplicasBuilder_ == null) { + ensureOptionalReplicasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, optionalReplicas_); + onChanged(); } else { - return java.util.Collections.unmodifiableList(replicas_); + optionalReplicasBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder() { - return internalGetReplicasFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + public Builder clearOptionalReplicas() { + if (optionalReplicasBuilder_ == null) { + optionalReplicas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + optionalReplicasBuilder_.clear(); + } + return this; } /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder(int index) { - return internalGetReplicasFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + public Builder removeOptionalReplicas(int index) { + if (optionalReplicasBuilder_ == null) { + ensureOptionalReplicasIsMutable(); + optionalReplicas_.remove(index); + onChanged(); + } else { + optionalReplicasBuilder_.remove(index); + } + return this; } /** * * *
-     * The geographic placement of nodes in this instance configuration and their
-     * replication properties.
-     *
-     * To create user-managed configurations, input
-     * `replicas` must include all replicas in `replicas` of the `base_config`
-     * and include one or more replicas in the `optional_replicas` of the
-     * `base_config`.
+     * Output only. The available optional replicas to choose from for
+     * user-managed configurations. Populated for Google-managed configurations.
      * 
* - * repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; + * + * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getReplicasBuilderList() { - return internalGetReplicasFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - internalGetReplicasFieldBuilder() { - if (replicasBuilder_ == null) { - replicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( - replicas_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - replicas_ = null; - } - return replicasBuilder_; - } - - private java.util.List optionalReplicas_ = - java.util.Collections.emptyList(); - - private void ensureOptionalReplicasIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - optionalReplicas_ = - new java.util.ArrayList( - optionalReplicas_); - bitField0_ |= 0x00000010; - } + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getOptionalReplicasBuilder( + int index) { + return internalGetOptionalReplicasFieldBuilder().getBuilder(index); } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - optionalReplicasBuilder_; - /** * * @@ -3436,12 +4711,12 @@ private void ensureOptionalReplicasIsMutable() { * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getOptionalReplicasList() { + public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalReplicasOrBuilder( + int index) { if (optionalReplicasBuilder_ == null) { - return java.util.Collections.unmodifiableList(optionalReplicas_); + return optionalReplicas_.get(index); } else { - return optionalReplicasBuilder_.getMessageList(); + return optionalReplicasBuilder_.getMessageOrBuilder(index); } } @@ -3457,11 +4732,12 @@ private void ensureOptionalReplicasIsMutable() { * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getOptionalReplicasCount() { - if (optionalReplicasBuilder_ == null) { - return optionalReplicas_.size(); + public java.util.List + getOptionalReplicasOrBuilderList() { + if (optionalReplicasBuilder_ != null) { + return optionalReplicasBuilder_.getMessageOrBuilderList(); } else { - return optionalReplicasBuilder_.getCount(); + return java.util.Collections.unmodifiableList(optionalReplicas_); } } @@ -3477,12 +4753,9 @@ public int getOptionalReplicasCount() { * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int index) { - if (optionalReplicasBuilder_ == null) { - return optionalReplicas_.get(index); - } else { - return optionalReplicasBuilder_.getMessage(index); - } + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalReplicasBuilder() { + return internalGetOptionalReplicasFieldBuilder() + .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** @@ -3497,19 +4770,10 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setOptionalReplicas( - int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { - if (optionalReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalReplicasIsMutable(); - optionalReplicas_.set(index, value); - onChanged(); - } else { - optionalReplicasBuilder_.setMessage(index, value); - } - return this; + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalReplicasBuilder( + int index) { + return internalGetOptionalReplicasFieldBuilder() + .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** @@ -3524,68 +4788,107 @@ public Builder setOptionalReplicas( * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setOptionalReplicas( - int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { + public java.util.List + getOptionalReplicasBuilderList() { + return internalGetOptionalReplicasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.ReplicaInfo, + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + internalGetOptionalReplicasFieldBuilder() { if (optionalReplicasBuilder_ == null) { - ensureOptionalReplicasIsMutable(); - optionalReplicas_.set(index, builderForValue.build()); - onChanged(); + optionalReplicasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.ReplicaInfo, + com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( + optionalReplicas_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + optionalReplicas_ = null; + } + return optionalReplicasBuilder_; + } + + private java.lang.Object baseConfig_ = ""; + + /** + * + * + *
+     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
+     * based on which this configuration is created. Only set for user-managed
+     * configurations. `base_config` must refer to a configuration of type
+     * `GOOGLE_MANAGED` in the same project as this configuration.
+     * 
+ * + * string base_config = 7 [(.google.api.resource_reference) = { ... } + * + * @return The baseConfig. + */ + public java.lang.String getBaseConfig() { + java.lang.Object ref = baseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseConfig_ = s; + return s; } else { - optionalReplicasBuilder_.setMessage(index, builderForValue.build()); + return (java.lang.String) ref; } - return this; } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
+     * based on which this configuration is created. Only set for user-managed
+     * configurations. `base_config` must refer to a configuration of type
+     * `GOOGLE_MANAGED` in the same project as this configuration.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string base_config = 7 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for baseConfig. */ - public Builder addOptionalReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo value) { - if (optionalReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalReplicasIsMutable(); - optionalReplicas_.add(value); - onChanged(); + public com.google.protobuf.ByteString getBaseConfigBytes() { + java.lang.Object ref = baseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseConfig_ = b; + return b; } else { - optionalReplicasBuilder_.addMessage(value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
+     * based on which this configuration is created. Only set for user-managed
+     * configurations. `base_config` must refer to a configuration of type
+     * `GOOGLE_MANAGED` in the same project as this configuration.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string base_config = 7 [(.google.api.resource_reference) = { ... } + * + * @param value The baseConfig to set. + * @return This builder for chaining. */ - public Builder addOptionalReplicas( - int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { - if (optionalReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalReplicasIsMutable(); - optionalReplicas_.add(index, value); - onChanged(); - } else { - optionalReplicasBuilder_.addMessage(index, value); + public Builder setBaseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + baseConfig_ = value; + bitField0_ |= 0x00000020; + onChanged(); return this; } @@ -3593,23 +4896,20 @@ public Builder addOptionalReplicas( * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
+     * based on which this configuration is created. Only set for user-managed
+     * configurations. `base_config` must refer to a configuration of type
+     * `GOOGLE_MANAGED` in the same project as this configuration.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string base_config = 7 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. */ - public Builder addOptionalReplicas( - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { - if (optionalReplicasBuilder_ == null) { - ensureOptionalReplicasIsMutable(); - optionalReplicas_.add(builderForValue.build()); - onChanged(); - } else { - optionalReplicasBuilder_.addMessage(builderForValue.build()); - } + public Builder clearBaseConfig() { + baseConfig_ = getDefaultInstance().getBaseConfig(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); return this; } @@ -3617,249 +4917,369 @@ public Builder addOptionalReplicas( * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
+     * based on which this configuration is created. Only set for user-managed
+     * configurations. `base_config` must refer to a configuration of type
+     * `GOOGLE_MANAGED` in the same project as this configuration.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string base_config = 7 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for baseConfig to set. + * @return This builder for chaining. */ - public Builder addOptionalReplicas( - int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { - if (optionalReplicasBuilder_ == null) { - ensureOptionalReplicasIsMutable(); - optionalReplicas_.add(index, builderForValue.build()); - onChanged(); - } else { - optionalReplicasBuilder_.addMessage(index, builderForValue.build()); + public Builder setBaseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + baseConfig_ = value; + bitField0_ |= 0x00000020; + onChanged(); return this; } + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
+     * resources into groups that reflect a customer's organizational needs and
+     * deployment strategies. Cloud Labels can be used to filter collections of
+     * resources. They can be used to control how resource metrics are aggregated.
+     * And they can be used as arguments to policy management rules (e.g. route,
+     * firewall, load balancing, etc.).
+     *
+     * * Label keys must be between 1 and 63 characters long and must conform to
+     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
+     * * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression `[a-z0-9_-]{0,63}`.
+     * * No more than 64 labels can be associated with a given resource.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     *
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public Builder addAllOptionalReplicas( - java.lang.Iterable values) { - if (optionalReplicasBuilder_ == null) { - ensureOptionalReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, optionalReplicas_); - onChanged(); - } else { - optionalReplicasBuilder_.addAllMessages(values); + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return this; + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
+     * resources into groups that reflect a customer's organizational needs and
+     * deployment strategies. Cloud Labels can be used to filter collections of
+     * resources. They can be used to control how resource metrics are aggregated.
+     * And they can be used as arguments to policy management rules (e.g. route,
+     * firewall, load balancing, etc.).
+     *
+     * * Label keys must be between 1 and 63 characters long and must conform to
+     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
+     * * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression `[a-z0-9_-]{0,63}`.
+     * * No more than 64 labels can be associated with a given resource.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     *
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public Builder clearOptionalReplicas() { - if (optionalReplicasBuilder_ == null) { - optionalReplicas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - optionalReplicasBuilder_.clear(); - } - return this; + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
+     * resources into groups that reflect a customer's organizational needs and
+     * deployment strategies. Cloud Labels can be used to filter collections of
+     * resources. They can be used to control how resource metrics are aggregated.
+     * And they can be used as arguments to policy management rules (e.g. route,
+     * firewall, load balancing, etc.).
+     *
+     * * Label keys must be between 1 and 63 characters long and must conform to
+     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
+     * * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression `[a-z0-9_-]{0,63}`.
+     * * No more than 64 labels can be associated with a given resource.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     *
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public Builder removeOptionalReplicas(int index) { - if (optionalReplicasBuilder_ == null) { - ensureOptionalReplicasIsMutable(); - optionalReplicas_.remove(index); - onChanged(); - } else { - optionalReplicasBuilder_.remove(index); + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - return this; + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
-     * 
+ * Cloud Labels are a flexible and lightweight mechanism for organizing cloud + * resources into groups that reflect a customer's organizational needs and + * deployment strategies. Cloud Labels can be used to filter collections of + * resources. They can be used to control how resource metrics are aggregated. + * And they can be used as arguments to policy management rules (e.g. route, + * firewall, load balancing, etc.). * - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getOptionalReplicasBuilder( - int index) { - return internalGetOptionalReplicasFieldBuilder().getBuilder(index); - } - - /** + * * Label keys must be between 1 and 63 characters long and must conform to + * the following regular expression: `[a-z][a-z0-9_-]{0,62}`. + * * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `[a-z0-9_-]{0,63}`. + * * No more than 64 labels can be associated with a given resource. * + * See https://goo.gl/xmQnxf for more information on and examples of labels. * - *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalReplicasOrBuilder( - int index) { - if (optionalReplicasBuilder_ == null) { - return optionalReplicas_.get(index); - } else { - return optionalReplicasBuilder_.getMessageOrBuilder(index); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
+     * resources into groups that reflect a customer's organizational needs and
+     * deployment strategies. Cloud Labels can be used to filter collections of
+     * resources. They can be used to control how resource metrics are aggregated.
+     * And they can be used as arguments to policy management rules (e.g. route,
+     * firewall, load balancing, etc.).
+     *
+     * * Label keys must be between 1 and 63 characters long and must conform to
+     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
+     * * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression `[a-z0-9_-]{0,63}`.
+     * * No more than 64 labels can be associated with a given resource.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     *
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public java.util.List - getOptionalReplicasOrBuilderList() { - if (optionalReplicasBuilder_ != null) { - return optionalReplicasBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(optionalReplicas_); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
-     * 
+ * Cloud Labels are a flexible and lightweight mechanism for organizing cloud + * resources into groups that reflect a customer's organizational needs and + * deployment strategies. Cloud Labels can be used to filter collections of + * resources. They can be used to control how resource metrics are aggregated. + * And they can be used as arguments to policy management rules (e.g. route, + * firewall, load balancing, etc.). * - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalReplicasBuilder() { - return internalGetOptionalReplicasFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); - } - - /** + * * Label keys must be between 1 and 63 characters long and must conform to + * the following regular expression: `[a-z][a-z0-9_-]{0,62}`. + * * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `[a-z0-9_-]{0,63}`. + * * No more than 64 labels can be associated with a given resource. * + * See https://goo.gl/xmQnxf for more information on and examples of labels. * - *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalReplicasBuilder( - int index) { - return internalGetOptionalReplicasFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; } /** * * *
-     * Output only. The available optional replicas to choose from for
-     * user-managed configurations. Populated for Google-managed configurations.
+     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
+     * resources into groups that reflect a customer's organizational needs and
+     * deployment strategies. Cloud Labels can be used to filter collections of
+     * resources. They can be used to control how resource metrics are aggregated.
+     * And they can be used as arguments to policy management rules (e.g. route,
+     * firewall, load balancing, etc.).
+     *
+     * * Label keys must be between 1 and 63 characters long and must conform to
+     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
+     * * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression `[a-z0-9_-]{0,63}`.
+     * * No more than 64 labels can be associated with a given resource.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     *
+     * If you plan to use labels in your own code, please note that additional
+     * characters may be allowed in the future. Therefore, you are advised to use
+     * an internal label representation, such as JSON, which doesn't rely upon
+     * specific characters being disallowed.  For example, representing labels
+     * as the string:  name + "_" + value  would prove problematic if we were to
+     * allow "_" in a future release.
      * 
* - * - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 8; */ - public java.util.List - getOptionalReplicasBuilderList() { - return internalGetOptionalReplicasFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - internalGetOptionalReplicasFieldBuilder() { - if (optionalReplicasBuilder_ == null) { - optionalReplicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( - optionalReplicas_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - optionalReplicas_ = null; - } - return optionalReplicasBuilder_; + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; } - private java.lang.Object baseConfig_ = ""; + private java.lang.Object etag_ = ""; /** * * *
-     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
-     * based on which this configuration is created. Only set for user-managed
-     * configurations. `base_config` must refer to a configuration of type
-     * `GOOGLE_MANAGED` in the same project as this configuration.
+     * etag is used for optimistic concurrency control as a way
+     * to help prevent simultaneous updates of a instance configuration from
+     * overwriting each other. It is strongly suggested that systems make use of
+     * the etag in the read-modify-write cycle to perform instance configuration
+     * updates in order to avoid race conditions: An etag is returned in the
+     * response which contains instance configurations, and systems are expected
+     * to put that etag in the request to update instance configuration to ensure
+     * that their change is applied to the same version of the instance
+     * configuration. If no etag is provided in the call to update the instance
+     * configuration, then the existing instance configuration is overwritten
+     * blindly.
      * 
* - * string base_config = 7 [(.google.api.resource_reference) = { ... } + * string etag = 9; * - * @return The baseConfig. + * @return The etag. */ - public java.lang.String getBaseConfig() { - java.lang.Object ref = baseConfig_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - baseConfig_ = s; + etag_ = s; return s; } else { return (java.lang.String) ref; @@ -3870,22 +5290,29 @@ public java.lang.String getBaseConfig() { * * *
-     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
-     * based on which this configuration is created. Only set for user-managed
-     * configurations. `base_config` must refer to a configuration of type
-     * `GOOGLE_MANAGED` in the same project as this configuration.
+     * etag is used for optimistic concurrency control as a way
+     * to help prevent simultaneous updates of a instance configuration from
+     * overwriting each other. It is strongly suggested that systems make use of
+     * the etag in the read-modify-write cycle to perform instance configuration
+     * updates in order to avoid race conditions: An etag is returned in the
+     * response which contains instance configurations, and systems are expected
+     * to put that etag in the request to update instance configuration to ensure
+     * that their change is applied to the same version of the instance
+     * configuration. If no etag is provided in the call to update the instance
+     * configuration, then the existing instance configuration is overwritten
+     * blindly.
      * 
* - * string base_config = 7 [(.google.api.resource_reference) = { ... } + * string etag = 9; * - * @return The bytes for baseConfig. + * @return The bytes for etag. */ - public com.google.protobuf.ByteString getBaseConfigBytes() { - java.lang.Object ref = baseConfig_; + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - baseConfig_ = b; + etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3896,23 +5323,30 @@ public com.google.protobuf.ByteString getBaseConfigBytes() { * * *
-     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
-     * based on which this configuration is created. Only set for user-managed
-     * configurations. `base_config` must refer to a configuration of type
-     * `GOOGLE_MANAGED` in the same project as this configuration.
+     * etag is used for optimistic concurrency control as a way
+     * to help prevent simultaneous updates of a instance configuration from
+     * overwriting each other. It is strongly suggested that systems make use of
+     * the etag in the read-modify-write cycle to perform instance configuration
+     * updates in order to avoid race conditions: An etag is returned in the
+     * response which contains instance configurations, and systems are expected
+     * to put that etag in the request to update instance configuration to ensure
+     * that their change is applied to the same version of the instance
+     * configuration. If no etag is provided in the call to update the instance
+     * configuration, then the existing instance configuration is overwritten
+     * blindly.
      * 
* - * string base_config = 7 [(.google.api.resource_reference) = { ... } + * string etag = 9; * - * @param value The baseConfig to set. + * @param value The etag to set. * @return This builder for chaining. */ - public Builder setBaseConfig(java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseConfig_ = value; - bitField0_ |= 0x00000020; + etag_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3921,19 +5355,26 @@ public Builder setBaseConfig(java.lang.String value) { * * *
-     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
-     * based on which this configuration is created. Only set for user-managed
-     * configurations. `base_config` must refer to a configuration of type
-     * `GOOGLE_MANAGED` in the same project as this configuration.
+     * etag is used for optimistic concurrency control as a way
+     * to help prevent simultaneous updates of a instance configuration from
+     * overwriting each other. It is strongly suggested that systems make use of
+     * the etag in the read-modify-write cycle to perform instance configuration
+     * updates in order to avoid race conditions: An etag is returned in the
+     * response which contains instance configurations, and systems are expected
+     * to put that etag in the request to update instance configuration to ensure
+     * that their change is applied to the same version of the instance
+     * configuration. If no etag is provided in the call to update the instance
+     * configuration, then the existing instance configuration is overwritten
+     * blindly.
      * 
* - * string base_config = 7 [(.google.api.resource_reference) = { ... } + * string etag = 9; * * @return This builder for chaining. */ - public Builder clearBaseConfig() { - baseConfig_ = getDefaultInstance().getBaseConfig(); - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3942,217 +5383,158 @@ public Builder clearBaseConfig() { * * *
-     * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
-     * based on which this configuration is created. Only set for user-managed
-     * configurations. `base_config` must refer to a configuration of type
-     * `GOOGLE_MANAGED` in the same project as this configuration.
+     * etag is used for optimistic concurrency control as a way
+     * to help prevent simultaneous updates of a instance configuration from
+     * overwriting each other. It is strongly suggested that systems make use of
+     * the etag in the read-modify-write cycle to perform instance configuration
+     * updates in order to avoid race conditions: An etag is returned in the
+     * response which contains instance configurations, and systems are expected
+     * to put that etag in the request to update instance configuration to ensure
+     * that their change is applied to the same version of the instance
+     * configuration. If no etag is provided in the call to update the instance
+     * configuration, then the existing instance configuration is overwritten
+     * blindly.
      * 
* - * string base_config = 7 [(.google.api.resource_reference) = { ... } + * string etag = 9; * - * @param value The bytes for baseConfig to set. + * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setBaseConfigBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseConfig_ = value; - bitField0_ |= 0x00000020; + etag_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } + private com.google.protobuf.LazyStringArrayList leaderOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); + private void ensureLeaderOptionsIsMutable() { + if (!leaderOptions_.isModifiable()) { + leaderOptions_ = new com.google.protobuf.LazyStringArrayList(leaderOptions_); } - bitField0_ |= 0x00000040; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + bitField0_ |= 0x00000100; } /** * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
-     *
-     * * Label keys must be between 1 and 63 characters long and must conform to
-     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
-     * * Label values must be between 0 and 63 characters long and must conform
-     * to the regular expression `[a-z0-9_-]{0,63}`.
-     * * No more than 64 labels can be associated with a given resource.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     *
-     * If you plan to use labels in your own code, please note that additional
-     * characters may be allowed in the future. Therefore, you are advised to use
-     * an internal label representation, such as JSON, which doesn't rely upon
-     * specific characters being disallowed.  For example, representing labels
-     * as the string:  name + "_" + value  would prove problematic if we were to
-     * allow "_" in a future release.
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
      * 
* - * map<string, string> labels = 8; + * repeated string leader_options = 4; + * + * @return A list containing the leaderOptions. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public com.google.protobuf.ProtocolStringList getLeaderOptionsList() { + leaderOptions_.makeImmutable(); + return leaderOptions_; } /** * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
+     * 
* - * * Label keys must be between 1 and 63 characters long and must conform to - * the following regular expression: `[a-z][a-z0-9_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `[a-z0-9_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. + * repeated string leader_options = 4; * - * See https://goo.gl/xmQnxf for more information on and examples of labels. + * @return The count of leaderOptions. + */ + public int getLeaderOptionsCount() { + return leaderOptions_.size(); + } + + /** * - * If you plan to use labels in your own code, please note that additional - * characters may be allowed in the future. Therefore, you are advised to use - * an internal label representation, such as JSON, which doesn't rely upon - * specific characters being disallowed. For example, representing labels - * as the string: name + "_" + value would prove problematic if we were to - * allow "_" in a future release. + * + *
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
      * 
* - * map<string, string> labels = 8; + * repeated string leader_options = 4; + * + * @param index The index of the element to return. + * @return The leaderOptions at the given index. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public java.lang.String getLeaderOptions(int index) { + return leaderOptions_.get(index); } /** * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
+     * 
* - * * Label keys must be between 1 and 63 characters long and must conform to - * the following regular expression: `[a-z][a-z0-9_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `[a-z0-9_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. + * repeated string leader_options = 4; * - * See https://goo.gl/xmQnxf for more information on and examples of labels. + * @param index The index of the value to return. + * @return The bytes of the leaderOptions at the given index. + */ + public com.google.protobuf.ByteString getLeaderOptionsBytes(int index) { + return leaderOptions_.getByteString(index); + } + + /** * - * If you plan to use labels in your own code, please note that additional - * characters may be allowed in the future. Therefore, you are advised to use - * an internal label representation, such as JSON, which doesn't rely upon - * specific characters being disallowed. For example, representing labels - * as the string: name + "_" + value would prove problematic if we were to - * allow "_" in a future release. + * + *
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
      * 
* - * map<string, string> labels = 8; + * repeated string leader_options = 4; + * + * @param index The index to set the value at. + * @param value The leaderOptions to set. + * @return This builder for chaining. */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setLeaderOptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + ensureLeaderOptionsIsMutable(); + leaderOptions_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
-     *
-     * * Label keys must be between 1 and 63 characters long and must conform to
-     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
-     * * Label values must be between 0 and 63 characters long and must conform
-     * to the regular expression `[a-z0-9_-]{0,63}`.
-     * * No more than 64 labels can be associated with a given resource.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     *
-     * If you plan to use labels in your own code, please note that additional
-     * characters may be allowed in the future. Therefore, you are advised to use
-     * an internal label representation, such as JSON, which doesn't rely upon
-     * specific characters being disallowed.  For example, representing labels
-     * as the string:  name + "_" + value  would prove problematic if we were to
-     * allow "_" in a future release.
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
      * 
* - * map<string, string> labels = 8; + * repeated string leader_options = 4; + * + * @param value The leaderOptions to add. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder addLeaderOptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + ensureLeaderOptionsIsMutable(); + leaderOptions_.add(value); + bitField0_ |= 0x00000100; + onChanged(); return this; } @@ -4160,218 +5542,169 @@ public Builder clearLabels() { * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
-     *
-     * * Label keys must be between 1 and 63 characters long and must conform to
-     * the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
-     * * Label values must be between 0 and 63 characters long and must conform
-     * to the regular expression `[a-z0-9_-]{0,63}`.
-     * * No more than 64 labels can be associated with a given resource.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     *
-     * If you plan to use labels in your own code, please note that additional
-     * characters may be allowed in the future. Therefore, you are advised to use
-     * an internal label representation, such as JSON, which doesn't rely upon
-     * specific characters being disallowed.  For example, representing labels
-     * as the string:  name + "_" + value  would prove problematic if we were to
-     * allow "_" in a future release.
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
      * 
* - * map<string, string> labels = 8; + * repeated string leader_options = 4; + * + * @param values The leaderOptions to add. + * @return This builder for chaining. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder addAllLeaderOptions(java.lang.Iterable values) { + ensureLeaderOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, leaderOptions_); + bitField0_ |= 0x00000100; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; - return internalGetMutableLabels().getMutableMap(); - } - /** * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
+     * 
* - * * Label keys must be between 1 and 63 characters long and must conform to - * the following regular expression: `[a-z][a-z0-9_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `[a-z0-9_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. + * repeated string leader_options = 4; * - * See https://goo.gl/xmQnxf for more information on and examples of labels. + * @return This builder for chaining. + */ + public Builder clearLeaderOptions() { + leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** * - * If you plan to use labels in your own code, please note that additional - * characters may be allowed in the future. Therefore, you are advised to use - * an internal label representation, such as JSON, which doesn't rely upon - * specific characters being disallowed. For example, representing labels - * as the string: name + "_" + value would prove problematic if we were to - * allow "_" in a future release. + * + *
+     * Allowed values of the "default_leader" schema option for databases in
+     * instances that use this instance configuration.
      * 
* - * map<string, string> labels = 8; + * repeated string leader_options = 4; + * + * @param value The bytes of the leaderOptions to add. + * @return This builder for chaining. */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder addLeaderOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException("map value"); + throw new NullPointerException(); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + checkByteStringIsUtf8(value); + ensureLeaderOptionsIsMutable(); + leaderOptions_.add(value); + bitField0_ |= 0x00000100; + onChanged(); return this; } + private boolean reconciling_; + /** * * *
-     * Cloud Labels are a flexible and lightweight mechanism for organizing cloud
-     * resources into groups that reflect a customer's organizational needs and
-     * deployment strategies. Cloud Labels can be used to filter collections of
-     * resources. They can be used to control how resource metrics are aggregated.
-     * And they can be used as arguments to policy management rules (e.g. route,
-     * firewall, load balancing, etc.).
+     * Output only. If true, the instance configuration is being created or
+     * updated. If false, there are no ongoing operations for the instance
+     * configuration.
+     * 
* - * * Label keys must be between 1 and 63 characters long and must conform to - * the following regular expression: `[a-z][a-z0-9_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `[a-z0-9_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. + * bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * See https://goo.gl/xmQnxf for more information on and examples of labels. + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** * - * If you plan to use labels in your own code, please note that additional - * characters may be allowed in the future. Therefore, you are advised to use - * an internal label representation, such as JSON, which doesn't rely upon - * specific characters being disallowed. For example, representing labels - * as the string: name + "_" + value would prove problematic if we were to - * allow "_" in a future release. + * + *
+     * Output only. If true, the instance configuration is being created or
+     * updated. If false, there are no ongoing operations for the instance
+     * configuration.
      * 
* - * map<string, string> labels = 8; + * bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000200; + onChanged(); return this; } - private java.lang.Object etag_ = ""; - /** * * *
-     * etag is used for optimistic concurrency control as a way
-     * to help prevent simultaneous updates of a instance configuration from
-     * overwriting each other. It is strongly suggested that systems make use of
-     * the etag in the read-modify-write cycle to perform instance configuration
-     * updates in order to avoid race conditions: An etag is returned in the
-     * response which contains instance configurations, and systems are expected
-     * to put that etag in the request to update instance configuration to ensure
-     * that their change is applied to the same version of the instance
-     * configuration. If no etag is provided in the call to update the instance
-     * configuration, then the existing instance configuration is overwritten
-     * blindly.
+     * Output only. If true, the instance configuration is being created or
+     * updated. If false, there are no ongoing operations for the instance
+     * configuration.
      * 
* - * string etag = 9; + * bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The etag. + * @return This builder for chaining. */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000200); + reconciling_ = false; + onChanged(); + return this; } + private int state_ = 0; + /** * * *
-     * etag is used for optimistic concurrency control as a way
-     * to help prevent simultaneous updates of a instance configuration from
-     * overwriting each other. It is strongly suggested that systems make use of
-     * the etag in the read-modify-write cycle to perform instance configuration
-     * updates in order to avoid race conditions: An etag is returned in the
-     * response which contains instance configurations, and systems are expected
-     * to put that etag in the request to update instance configuration to ensure
-     * that their change is applied to the same version of the instance
-     * configuration. If no etag is provided in the call to update the instance
-     * configuration, then the existing instance configuration is overwritten
-     * blindly.
+     * Output only. The current instance configuration state. Applicable only for
+     * `USER_MANAGED` configurations.
      * 
* - * string etag = 9; + * + * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for etag. + * @return The enum numeric value on the wire for state. */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
-     * etag is used for optimistic concurrency control as a way
-     * to help prevent simultaneous updates of a instance configuration from
-     * overwriting each other. It is strongly suggested that systems make use of
-     * the etag in the read-modify-write cycle to perform instance configuration
-     * updates in order to avoid race conditions: An etag is returned in the
-     * response which contains instance configurations, and systems are expected
-     * to put that etag in the request to update instance configuration to ensure
-     * that their change is applied to the same version of the instance
-     * configuration. If no etag is provided in the call to update the instance
-     * configuration, then the existing instance configuration is overwritten
-     * blindly.
+     * Output only. The current instance configuration state. Applicable only for
+     * `USER_MANAGED` configurations.
      * 
* - * string etag = 9; + * + * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The etag to set. + * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00000080; + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4380,161 +5713,162 @@ public Builder setEtag(java.lang.String value) { * * *
-     * etag is used for optimistic concurrency control as a way
-     * to help prevent simultaneous updates of a instance configuration from
-     * overwriting each other. It is strongly suggested that systems make use of
-     * the etag in the read-modify-write cycle to perform instance configuration
-     * updates in order to avoid race conditions: An etag is returned in the
-     * response which contains instance configurations, and systems are expected
-     * to put that etag in the request to update instance configuration to ensure
-     * that their change is applied to the same version of the instance
-     * configuration. If no etag is provided in the call to update the instance
-     * configuration, then the existing instance configuration is overwritten
-     * blindly.
+     * Output only. The current instance configuration state. Applicable only for
+     * `USER_MANAGED` configurations.
      * 
* - * string etag = 9; + * + * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return This builder for chaining. + * @return The state. */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { + com.google.spanner.admin.instance.v1.InstanceConfig.State result = + com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED + : result; } /** * * *
-     * etag is used for optimistic concurrency control as a way
-     * to help prevent simultaneous updates of a instance configuration from
-     * overwriting each other. It is strongly suggested that systems make use of
-     * the etag in the read-modify-write cycle to perform instance configuration
-     * updates in order to avoid race conditions: An etag is returned in the
-     * response which contains instance configurations, and systems are expected
-     * to put that etag in the request to update instance configuration to ensure
-     * that their change is applied to the same version of the instance
-     * configuration. If no etag is provided in the call to update the instance
-     * configuration, then the existing instance configuration is overwritten
-     * blindly.
+     * Output only. The current instance configuration state. Applicable only for
+     * `USER_MANAGED` configurations.
      * 
* - * string etag = 9; + * + * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes for etag to set. + * @param value The state to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setState(com.google.spanner.admin.instance.v1.InstanceConfig.State value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; + state_ = value.getNumber(); onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList leaderOptions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLeaderOptionsIsMutable() { - if (!leaderOptions_.isModifiable()) { - leaderOptions_ = new com.google.protobuf.LazyStringArrayList(leaderOptions_); - } - bitField0_ |= 0x00000100; - } - /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. The current instance configuration state. Applicable only for
+     * `USER_MANAGED` configurations.
      * 
* - * repeated string leader_options = 4; + * + * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the leaderOptions. + * @return This builder for chaining. */ - public com.google.protobuf.ProtocolStringList getLeaderOptionsList() { - leaderOptions_.makeImmutable(); - return leaderOptions_; + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000400); + state_ = 0; + onChanged(); + return this; } + private int freeInstanceAvailability_ = 0; + /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Describes whether free instances are available to be created
+     * in this instance configuration.
      * 
* - * repeated string leader_options = 4; + * + * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of leaderOptions. + * @return The enum numeric value on the wire for freeInstanceAvailability. */ - public int getLeaderOptionsCount() { - return leaderOptions_.size(); + @java.lang.Override + public int getFreeInstanceAvailabilityValue() { + return freeInstanceAvailability_; } /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Describes whether free instances are available to be created
+     * in this instance configuration.
      * 
* - * repeated string leader_options = 4; + * + * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param index The index of the element to return. - * @return The leaderOptions at the given index. + * @param value The enum numeric value on the wire for freeInstanceAvailability to set. + * @return This builder for chaining. */ - public java.lang.String getLeaderOptions(int index) { - return leaderOptions_.get(index); + public Builder setFreeInstanceAvailabilityValue(int value) { + freeInstanceAvailability_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; } /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Describes whether free instances are available to be created
+     * in this instance configuration.
      * 
* - * repeated string leader_options = 4; + * + * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param index The index of the value to return. - * @return The bytes of the leaderOptions at the given index. + * @return The freeInstanceAvailability. */ - public com.google.protobuf.ByteString getLeaderOptionsBytes(int index) { - return leaderOptions_.getByteString(index); + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + getFreeInstanceAvailability() { + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability result = + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability.forNumber( + freeInstanceAvailability_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + .UNRECOGNIZED + : result; } /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Describes whether free instances are available to be created
+     * in this instance configuration.
      * 
* - * repeated string leader_options = 4; + * + * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param index The index to set the value at. - * @param value The leaderOptions to set. + * @param value The freeInstanceAvailability to set. * @return This builder for chaining. */ - public Builder setLeaderOptions(int index, java.lang.String value) { + public Builder setFreeInstanceAvailability( + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability value) { if (value == null) { throw new NullPointerException(); } - ensureLeaderOptionsIsMutable(); - leaderOptions_.set(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; + freeInstanceAvailability_ = value.getNumber(); onChanged(); return this; } @@ -4543,64 +5877,167 @@ public Builder setLeaderOptions(int index, java.lang.String value) { * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Describes whether free instances are available to be created
+     * in this instance configuration.
      * 
* - * repeated string leader_options = 4; + * + * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The leaderOptions to add. * @return This builder for chaining. */ - public Builder addLeaderOptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLeaderOptionsIsMutable(); - leaderOptions_.add(value); - bitField0_ |= 0x00000100; + public Builder clearFreeInstanceAvailability() { + bitField0_ = (bitField0_ & ~0x00000800); + freeInstanceAvailability_ = 0; onChanged(); return this; } + private java.util.List< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits> + allowedProcessingUnits_ = java.util.Collections.emptyList(); + + private void ensureAllowedProcessingUnitsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + allowedProcessingUnits_ = + new java.util.ArrayList< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits>( + allowedProcessingUnits_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder> + allowedProcessingUnitsBuilder_; + + /** + * + * + *
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+     * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits> + getAllowedProcessingUnitsList() { + if (allowedProcessingUnitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(allowedProcessingUnits_); + } else { + return allowedProcessingUnitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+     * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAllowedProcessingUnitsCount() { + if (allowedProcessingUnitsBuilder_ == null) { + return allowedProcessingUnits_.size(); + } else { + return allowedProcessingUnitsBuilder_.getCount(); + } + } + /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* - * repeated string leader_options = 4; - * - * @param values The leaderOptions to add. - * @return This builder for chaining. + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllLeaderOptions(java.lang.Iterable values) { - ensureLeaderOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, leaderOptions_); - bitField0_ |= 0x00000100; - onChanged(); - return this; + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + getAllowedProcessingUnits(int index) { + if (allowedProcessingUnitsBuilder_ == null) { + return allowedProcessingUnits_.get(index); + } else { + return allowedProcessingUnitsBuilder_.getMessage(index); + } } /** * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* - * repeated string leader_options = 4; - * - * @return This builder for chaining. + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearLeaderOptions() { - leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; - onChanged(); + public Builder setAllowedProcessingUnits( + int index, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits value) { + if (allowedProcessingUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.set(index, value); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.setMessage(index, value); + } return this; } @@ -4608,66 +6045,107 @@ public Builder clearLeaderOptions() { * * *
-     * Allowed values of the "default_leader" schema option for databases in
-     * instances that use this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* - * repeated string leader_options = 4; - * - * @param value The bytes of the leaderOptions to add. - * @return This builder for chaining. + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addLeaderOptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAllowedProcessingUnits( + int index, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + builderForValue) { + if (allowedProcessingUnitsBuilder_ == null) { + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.set(index, builderForValue.build()); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.setMessage(index, builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureLeaderOptionsIsMutable(); - leaderOptions_.add(value); - bitField0_ |= 0x00000100; - onChanged(); return this; } - private boolean reconciling_; - /** * * *
-     * Output only. If true, the instance configuration is being created or
-     * updated. If false, there are no ongoing operations for the instance
-     * configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* - * bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The reconciling. + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean getReconciling() { - return reconciling_; + public Builder addAllowedProcessingUnits( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits value) { + if (allowedProcessingUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.add(value); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.addMessage(value); + } + return this; } /** * * *
-     * Output only. If true, the instance configuration is being created or
-     * updated. If false, there are no ongoing operations for the instance
-     * configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* - * bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The reconciling to set. - * @return This builder for chaining. + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setReconciling(boolean value) { - - reconciling_ = value; - bitField0_ |= 0x00000200; - onChanged(); + public Builder addAllowedProcessingUnits( + int index, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits value) { + if (allowedProcessingUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.add(index, value); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.addMessage(index, value); + } return this; } @@ -4675,62 +6153,104 @@ public Builder setReconciling(boolean value) { * * *
-     * Output only. If true, the instance configuration is being created or
-     * updated. If false, there are no ongoing operations for the instance
-     * configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* - * bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00000200); - reconciling_ = false; - onChanged(); + public Builder addAllowedProcessingUnits( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + builderForValue) { + if (allowedProcessingUnitsBuilder_ == null) { + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.add(builderForValue.build()); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.addMessage(builderForValue.build()); + } return this; } - private int state_ = 0; - /** * * *
-     * Output only. The current instance configuration state. Applicable only for
-     * `USER_MANAGED` configurations.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder addAllowedProcessingUnits( + int index, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + builderForValue) { + if (allowedProcessingUnitsBuilder_ == null) { + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.add(index, builderForValue.build()); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Output only. The current instance configuration state. Applicable only for
-     * `USER_MANAGED` configurations.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000400; - onChanged(); + public Builder addAllAllowedProcessingUnits( + java.lang.Iterable< + ? extends + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits> + values) { + if (allowedProcessingUnitsBuilder_ == null) { + ensureAllowedProcessingUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProcessingUnits_); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.addAllMessages(values); + } return this; } @@ -4738,47 +6258,63 @@ public Builder setStateValue(int value) { * * *
-     * Output only. The current instance configuration state. Applicable only for
-     * `USER_MANAGED` configurations.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The state. */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { - com.google.spanner.admin.instance.v1.InstanceConfig.State result = - com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED - : result; + public Builder clearAllowedProcessingUnits() { + if (allowedProcessingUnitsBuilder_ == null) { + allowedProcessingUnits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.clear(); + } + return this; } /** * * *
-     * Output only. The current instance configuration state. Applicable only for
-     * `USER_MANAGED` configurations.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The state to set. - * @return This builder for chaining. */ - public Builder setState(com.google.spanner.admin.instance.v1.InstanceConfig.State value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeAllowedProcessingUnits(int index) { + if (allowedProcessingUnitsBuilder_ == null) { + ensureAllowedProcessingUnitsIsMutable(); + allowedProcessingUnits_.remove(index); + onChanged(); + } else { + allowedProcessingUnitsBuilder_.remove(index); } - bitField0_ |= 0x00000400; - state_ = value.getNumber(); - onChanged(); return this; } @@ -4786,137 +6322,195 @@ public Builder setState(com.google.spanner.admin.instance.v1.InstanceConfig.Stat * * *
-     * Output only. The current instance configuration state. Applicable only for
-     * `USER_MANAGED` configurations.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000400); - state_ = 0; - onChanged(); - return this; + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + getAllowedProcessingUnitsBuilder(int index) { + return internalGetAllowedProcessingUnitsFieldBuilder().getBuilder(index); } - private int freeInstanceAvailability_ = 0; - /** * * *
-     * Output only. Describes whether free instances are available to be created
-     * in this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for freeInstanceAvailability. */ - @java.lang.Override - public int getFreeInstanceAvailabilityValue() { - return freeInstanceAvailability_; + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder + getAllowedProcessingUnitsOrBuilder(int index) { + if (allowedProcessingUnitsBuilder_ == null) { + return allowedProcessingUnits_.get(index); + } else { + return allowedProcessingUnitsBuilder_.getMessageOrBuilder(index); + } } /** * * *
-     * Output only. Describes whether free instances are available to be created
-     * in this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for freeInstanceAvailability to set. - * @return This builder for chaining. */ - public Builder setFreeInstanceAvailabilityValue(int value) { - freeInstanceAvailability_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + public java.util.List< + ? extends + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder> + getAllowedProcessingUnitsOrBuilderList() { + if (allowedProcessingUnitsBuilder_ != null) { + return allowedProcessingUnitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(allowedProcessingUnits_); + } } /** * * *
-     * Output only. Describes whether free instances are available to be created
-     * in this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The freeInstanceAvailability. */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability - getFreeInstanceAvailability() { - com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability result = - com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability.forNumber( - freeInstanceAvailability_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability - .UNRECOGNIZED - : result; + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + addAllowedProcessingUnitsBuilder() { + return internalGetAllowedProcessingUnitsFieldBuilder() + .addBuilder( + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + .getDefaultInstance()); } /** * * *
-     * Output only. Describes whether free instances are available to be created
-     * in this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The freeInstanceAvailability to set. - * @return This builder for chaining. */ - public Builder setFreeInstanceAvailability( - com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - freeInstanceAvailability_ = value.getNumber(); - onChanged(); - return this; + public com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder + addAllowedProcessingUnitsBuilder(int index) { + return internalGetAllowedProcessingUnitsFieldBuilder() + .addBuilder( + index, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + .getDefaultInstance()); } /** * * *
-     * Output only. Describes whether free instances are available to be created
-     * in this instance configuration.
+     * Output only. Defines the ranges of allowed processing units supported by
+     * this instance configuration. If multiple ranges are specified, an instance
+     * using this configuration may use a valid increment in any of the given
+     * ranges. For example, an allowed_processing_units specification of
+     * `[{min_processing_units:100, max_processing_units:900,
+     * processing_unit_increment:100}, {min_processing_units:1000,
+     * processing_unit_increment:1000}]` specifies that the instance configuration
+     * supports instances with quantities of processing units in multiples of 100
+     * processing units (100, 200, 300 and so on) up to and including 900
+     * processing units and quantities that are at least 1000 processing units and
+     * multiples of 1000 processing units (1000, 2000, 3000 and so on).
      * 
* * - * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearFreeInstanceAvailability() { - bitField0_ = (bitField0_ & ~0x00000800); - freeInstanceAvailability_ = 0; - onChanged(); - return this; + public java.util.List< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder> + getAllowedProcessingUnitsBuilderList() { + return internalGetAllowedProcessingUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder> + internalGetAllowedProcessingUnitsFieldBuilder() { + if (allowedProcessingUnitsBuilder_ == null) { + allowedProcessingUnitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits, + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits.Builder, + com.google.spanner.admin.instance.v1.InstanceConfig + .AllowedProcessingUnitsOrBuilder>( + allowedProcessingUnits_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + allowedProcessingUnits_ = null; + } + return allowedProcessingUnitsBuilder_; } private int quorumType_ = 0; @@ -4955,7 +6549,7 @@ public int getQuorumTypeValue() { */ public Builder setQuorumTypeValue(int value) { quorumType_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5001,7 +6595,7 @@ public Builder setQuorumType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; quorumType_ = value.getNumber(); onChanged(); return this; @@ -5021,7 +6615,7 @@ public Builder setQuorumType( * @return This builder for chaining. */ public Builder clearQuorumType() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); quorumType_ = 0; onChanged(); return this; @@ -5064,7 +6658,7 @@ public long getStorageLimitPerProcessingUnit() { public Builder setStorageLimitPerProcessingUnit(long value) { storageLimitPerProcessingUnit_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5083,7 +6677,7 @@ public Builder setStorageLimitPerProcessingUnit(long value) { * @return This builder for chaining. */ public Builder clearStorageLimitPerProcessingUnit() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); storageLimitPerProcessingUnit_ = 0L; onChanged(); return this; diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java index d51e21862f29..6cf166986f64 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java @@ -654,6 +654,127 @@ java.lang.String getLabelsOrDefault( com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability getFreeInstanceAvailability(); + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAllowedProcessingUnitsList(); + + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits + getAllowedProcessingUnits(int index); + + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAllowedProcessingUnitsCount(); + + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder> + getAllowedProcessingUnitsOrBuilderList(); + + /** + * + * + *
+   * Output only. Defines the ranges of allowed processing units supported by
+   * this instance configuration. If multiple ranges are specified, an instance
+   * using this configuration may use a valid increment in any of the given
+   * ranges. For example, an allowed_processing_units specification of
+   * `[{min_processing_units:100, max_processing_units:900,
+   * processing_unit_increment:100}, {min_processing_units:1000,
+   * processing_unit_increment:1000}]` specifies that the instance configuration
+   * supports instances with quantities of processing units in multiples of 100
+   * processing units (100, 200, 300 and so on) up to and including 900
+   * processing units and quantities that are at least 1000 processing units and
+   * multiples of 1000 processing units (1000, 2000, 3000 and so on).
+   * 
+ * + * + * repeated .google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnits allowed_processing_units = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsOrBuilder + getAllowedProcessingUnitsOrBuilder(int index); + /** * * diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java index 36cc24cfff99..30bd4cc2b39f 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java @@ -909,7 +909,7 @@ public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return A list containing the referencingBackups. */ @java.lang.Deprecated @@ -933,7 +933,7 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return The count of referencingBackups. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public int getReferencingBackupsCount() { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index of the element to return. * @return The referencingBackups at the given index. */ @@ -982,7 +982,7 @@ public java.lang.String getReferencingBackups(int index) { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ @@ -3373,7 +3373,7 @@ private void ensureReferencingBackupsIsMutable() { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return A list containing the referencingBackups. */ @java.lang.Deprecated @@ -3398,7 +3398,7 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return The count of referencingBackups. */ @java.lang.Deprecated @@ -3422,7 +3422,7 @@ public int getReferencingBackupsCount() { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index of the element to return. * @return The referencingBackups at the given index. */ @@ -3447,7 +3447,7 @@ public java.lang.String getReferencingBackups(int index) { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ @@ -3472,7 +3472,7 @@ public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index to set the value at. * @param value The referencingBackups to set. * @return This builder for chaining. @@ -3505,7 +3505,7 @@ public Builder setReferencingBackups(int index, java.lang.String value) { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param value The referencingBackups to add. * @return This builder for chaining. */ @@ -3537,7 +3537,7 @@ public Builder addReferencingBackups(java.lang.String value) { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param values The referencingBackups to add. * @return This builder for chaining. */ @@ -3566,7 +3566,7 @@ public Builder addAllReferencingBackups(java.lang.Iterable val * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3594,7 +3594,7 @@ public Builder clearReferencingBackups() { * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param value The bytes of the referencingBackups to add. * @return This builder for chaining. */ diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java index 19d279f5cc2f..752c6c749229 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java @@ -453,7 +453,7 @@ public interface InstancePartitionOrBuilder * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return A list containing the referencingBackups. */ @java.lang.Deprecated @@ -475,7 +475,7 @@ public interface InstancePartitionOrBuilder * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @return The count of referencingBackups. */ @java.lang.Deprecated @@ -497,7 +497,7 @@ public interface InstancePartitionOrBuilder * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index of the element to return. * @return The referencingBackups at the given index. */ @@ -520,7 +520,7 @@ public interface InstancePartitionOrBuilder * * * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is - * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855 + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1884 * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java index 98e308eacb48..36b54654e06a 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -244,7 +248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020TYPE_UNSPECIFIED\020\000\022\016\n\n" + "READ_WRITE\020\001\022\r\n" + "\tREAD_ONLY\020\002\022\013\n" - + "\007WITNESS\020\003\"\307\n\n" + + "\007WITNESS\020\003\"\261\014\n" + "\016InstanceConfig\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022P\n" @@ -264,10 +268,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005state\030\013 \001(\01626.google.spanner.admi" + "n.instance.v1.InstanceConfig.StateB\004\342A\001\003\022s\n" + "\032free_instance_availability\030\014 \001(\0162I.g" - + "oogle.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailabilityB\004\342A\001\003\022V\n" - + "\013quorum_type\030\022 \001(\0162;.google.spanner.admi" - + "n.instance.v1.InstanceConfig.QuorumTypeB\004\342A\001\003\022/\n" - + "!storage_limit_per_processing_unit\030\023 \001(\003B\004\342A\001\003\032-\n" + + "oogle.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailabilityB\004\342A\001\003\022o\n" + + "\030allowed_processing_units\030\r" + + " \003(\0132G.google" + + ".spanner.admin.instance.v1.InstanceConfig.AllowedProcessingUnitsB\004\342A\001\003\022V\n" + + "\013quorum_type\030\022 \001(\0162;.google.spanner.admin.insta" + + "nce.v1.InstanceConfig.QuorumTypeB\004\342A\001\003\022/\n" + + "!storage_limit_per_processing_unit\030\023 \001(\003B\004\342A\001\003\032w\n" + + "\026AllowedProcessingUnits\022\034\n" + + "\024min_processing_units\030\001 \001(\005\022\034\n" + + "\024max_processing_units\030\002 \001(\005\022!\n" + + "\031processing_unit_increment\030\003 \001(\005\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"B\n" @@ -290,22 +301,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006REGION\020\001\022\017\n" + "\013DUAL_REGION\020\002\022\020\n" + "\014MULTI_REGION\020\003:\201\001\352A~\n" - + "%spanner.googleapis.com/InstanceConfig\0224projects/{project}" - + "/instanceConfigs/{instance_config}*\017instanceConfigs2\016instanceConfig\"\263\001\n" + + "%spanner.googleapis.com/InstanceConfig\0224projects/{project}/insta" + + "nceConfigs/{instance_config}*\017instanceConfigs2\016instanceConfig\"\263\001\n" + "\026ReplicaComputeCapacity\022S\n" - + "\021replica_selection\030\001 \001(" - + "\01322.google.spanner.admin.instance.v1.ReplicaSelectionB\004\342A\001\002\022\024\n\n" + + "\021replica_selection\030\001 \001(\01322.go" + + "ogle.spanner.admin.instance.v1.ReplicaSelectionB\004\342A\001\002\022\024\n\n" + "node_count\030\002 \001(\005H\000\022\032\n" + "\020processing_units\030\003 \001(\005H\000B\022\n" + "\020compute_capacity\"\221\n\n" + "\021AutoscalingConfig\022g\n" - + "\022autoscaling_limits\030\001 \001(\0132E.google.spanner.adm" - + "in.instance.v1.AutoscalingConfig.AutoscalingLimitsB\004\342A\001\002\022i\n" - + "\023autoscaling_targets\030\002 \001(\0132F.google.spanner.admin.instance.v1" - + ".AutoscalingConfig.AutoscalingTargetsB\004\342A\001\002\022}\n" - + "\036asymmetric_autoscaling_options\030\003 " - + "\003(\0132O.google.spanner.admin.instance.v1.A" - + "utoscalingConfig.AsymmetricAutoscalingOptionB\004\342A\001\001\032\227\001\n" + + "\022autoscaling_limits\030\001 \001(\0132E.google.spanner.admin.ins" + + "tance.v1.AutoscalingConfig.AutoscalingLimitsB\004\342A\001\002\022i\n" + + "\023autoscaling_targets\030\002 \001(\0132" + + "F.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsB\004\342A\001\002\022}\n" + + "\036asymmetric_autoscaling_options\030\003 \003(\0132O." + + "google.spanner.admin.instance.v1.Autosca" + + "lingConfig.AsymmetricAutoscalingOptionB\004\342A\001\001\032\227\001\n" + "\021AutoscalingLimits\022\023\n" + "\tmin_nodes\030\001 \001(\005H\000\022\036\n" + "\024min_processing_units\030\002 \001(\005H\000\022\023\n" @@ -318,13 +329,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035total_cpu_utilization_percent\030\004 \001(\005B\004\342A\001\001\022)\n" + "\033storage_utilization_percent\030\002 \001(\005B\004\342A\001\002\032\352\004\n" + "\033AsymmetricAutoscalingOption\022S\n" - + "\021replica_selection\030\001 \001(\01322.google.spa" - + "nner.admin.instance.v1.ReplicaSelectionB\004\342A\001\002\022\203\001\n" - + "\toverrides\030\002 \001(\0132j.google.spanner.admin.instance.v1.AutoscalingConfig.A" - + "symmetricAutoscalingOption.AutoscalingConfigOverridesB\004\342A\001\001\032\357\002\n" + + "\021replica_selection\030\001 \001(\01322.google.spanner.a" + + "dmin.instance.v1.ReplicaSelectionB\004\342A\001\002\022\203\001\n" + + "\toverrides\030\002 \001(\0132j.google.spanner.adm" + + "in.instance.v1.AutoscalingConfig.Asymmet" + + "ricAutoscalingOption.AutoscalingConfigOverridesB\004\342A\001\001\032\357\002\n" + "\032AutoscalingConfigOverrides\022g\n" - + "\022autoscaling_limits\030\001 \001(\0132E" - + ".google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsB\004\342A\001\001\022F\n" + + "\022autoscaling_limits\030\001 \001(\0132E.googl" + + "e.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsB\004\342A\001\001\022F\n" + "8autoscaling_target_high_priority_cpu_utilization_percent\030\002" + " \001(\005B\004\342A\001\001\022>\n" + "0autoscaling_target_total_cpu_utilization_percent\030\004" @@ -338,14 +350,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\003 \001(\tB\004\342A\001\002\022\022\n\n" + "node_count\030\005 \001(\005\022\030\n" + "\020processing_units\030\t \001(\005\022`\n" - + "\030replica_compute_capacity\030\023 \003(\01328.goo" - + "gle.spanner.admin.instance.v1.ReplicaComputeCapacityB\004\342A\001\003\022U\n" - + "\022autoscaling_config\030\021" - + " \001(\01323.google.spanner.admin.instance.v1.AutoscalingConfigB\004\342A\001\001\022E\n" - + "\005state\030\006 \001(\016" - + "20.google.spanner.admin.instance.v1.Instance.StateB\004\342A\001\003\022F\n" - + "\006labels\030\007 \003(\01326.googl" - + "e.spanner.admin.instance.v1.Instance.LabelsEntry\022N\n\r" + + "\030replica_compute_capacity\030\023 \003(\01328.google.sp" + + "anner.admin.instance.v1.ReplicaComputeCapacityB\004\342A\001\003\022U\n" + + "\022autoscaling_config\030\021 \001(\013" + + "23.google.spanner.admin.instance.v1.AutoscalingConfigB\004\342A\001\001\022E\n" + + "\005state\030\006 \001(\01620.goo" + + "gle.spanner.admin.instance.v1.Instance.StateB\004\342A\001\003\022F\n" + + "\006labels\030\007 \003(\01326.google.span" + + "ner.admin.instance.v1.Instance.LabelsEntry\022N\n\r" + "instance_type\030\n" + " \001(\01627.google.spanner.admin.instance.v1.Instance.InstanceType\022\025\n\r" + "endpoint_uris\030\010 \003(\t\0225\n" @@ -355,10 +367,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022V\n" + "\026free_instance_metadata\030\r" + " \001(\01326.google.spanner.admin.instance.v1.FreeInstanceMetadata\022I\n" - + "\007edition\030\024" - + " \001(\01622.google.spanner.admin.instance.v1.Instance.EditionB\004\342A\001\001\022p\n" - + "\034default_backup_schedule_type\030\027 \001(\0162D.google.spanner." - + "admin.instance.v1.Instance.DefaultBackupScheduleTypeB\004\342A\001\001\032-\n" + + "\007edition\030\024 \001(\016" + + "22.google.spanner.admin.instance.v1.Instance.EditionB\004\342A\001\001\022p\n" + + "\034default_backup_schedule_type\030\027 \001(\0162D.google.spanner.admin." + + "instance.v1.Instance.DefaultBackupScheduleTypeB\004\342A\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"7\n" @@ -401,8 +413,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01320.google.spanner.admin.instance.v1.InstanceConfigB\004\342A\001\002\022\025\n\r" + "validate_only\030\004 \001(\010\"\274\001\n" + "\033UpdateInstanceConfigRequest\022O\n" - + "\017instance_config\030\001 \001(\01320.googl" - + "e.spanner.admin.instance.v1.InstanceConfigB\004\342A\001\002\0225\n" + + "\017instance_config\030\001 \001(\01320.google.span" + + "ner.admin.instance.v1.InstanceConfigB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022\025\n\r" + "validate_only\030\003 \001(\010\"\200\001\n" @@ -428,8 +440,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB4\342A\001\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\031\n" + "\013instance_id\030\002 \001(\tB\004\342A\001\002\022B\n" - + "\010instance\030\003" - + " \001(\0132*.google.spanner.admin.instance.v1.InstanceB\004\342A\001\002\"\312\001\n" + + "\010instance\030\003 \001(\0132" + + "*.google.spanner.admin.instance.v1.InstanceB\004\342A\001\002\"\312\001\n" + "\024ListInstancesRequest\022D\n" + "\006parent\030\001 \001(\tB4\342A\001\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\021\n" @@ -442,8 +454,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\221\001\n" + "\025UpdateInstanceRequest\022B\n" - + "\010instance\030\001 \001(\0132" - + "*.google.spanner.admin.instance.v1.InstanceB\004\342A\001\002\0224\n\n" + + "\010instance\030\001 \001(\0132*.goog" + + "le.spanner.admin.instance.v1.InstanceB\004\342A\001\002\0224\n\n" + "field_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"O\n" + "\025DeleteInstanceRequest\0226\n" + "\004name\030\001 \001(\tB(\342A\001\002\372A!\n" @@ -467,8 +479,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0226\n" + "\014upgrade_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022^\n" - + "\017expire_behavior\030\003 \001(\0162E.google.s" - + "panner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior\"i\n" + + "\017expire_behavior\030\003 \001(\0162E.google.spanner" + + ".admin.instance.v1.FreeInstanceMetadata.ExpireBehavior\"i\n" + "\016ExpireBehavior\022\037\n" + "\033EXPIRE_BEHAVIOR_UNSPECIFIED\020\000\022\027\n" + "\023FREE_TO_PROVISIONED\020\001\022\035\n" @@ -482,22 +494,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034UpdateInstanceConfigMetadata\022I\n" + "\017instance_config\030\001" + " \001(\01320.google.spanner.admin.instance.v1.InstanceConfig\022E\n" - + "\010progress\030\002 \001(" - + "\01323.google.spanner.admin.instance.v1.OperationProgress\022/\n" + + "\010progress\030\002 \001(\01323.go" + + "ogle.spanner.admin.instance.v1.OperationProgress\022/\n" + "\013cancel_time\030\003 \001(\0132\032.google.protobuf.Timestamp\"\230\006\n" + "\021InstancePartition\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022>\n" + "\006config\030\002 \001(\tB.\342A\001\002\372A\'\n" + "%spanner.googleapis.com/InstanceConfig\022\032\n" - + "\014display_name\030\003 \001(\tB\004\342A\001\002\022\024\n" - + "\n" + + "\014display_name\030\003 \001(\tB\004\342A\001\002\022\024\n\n" + "node_count\030\005 \001(\005H\000\022\032\n" + "\020processing_units\030\006 \001(\005H\000\022U\n" + "\022autoscaling_config\030\r" - + " \001(\01323.go" - + "ogle.spanner.admin.instance.v1.AutoscalingConfigB\004\342A\001\001\022N\n" - + "\005state\030\007 \001(\01629.google.s" - + "panner.admin.instance.v1.InstancePartition.StateB\004\342A\001\003\0225\n" + + " \001(\01323.google.s" + + "panner.admin.instance.v1.AutoscalingConfigB\004\342A\001\001\022N\n" + + "\005state\030\007 \001(\01629.google.spanner" + + ".admin.instance.v1.InstancePartition.StateB\004\342A\001\003\0225\n" + "\013create_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\t" @@ -510,13 +521,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010CREATING\020\001\022\t\n" + "\005READY\020\002:\246\001\352A\242\001\n" - + "(spanner.googleapis.com/InstancePartition\022Oprojects/{project}/instances/{instance}/" - + "instancePartitions/{instance_partition}*" - + "\022instancePartitions2\021instancePartitionB\022\n" + + "(spanner.googleapis.com/InstancePartition\022Oprojec" + + "ts/{project}/instances/{instance}/instan" + + "cePartitions/{instance_partition}*\022instancePartitions2\021instancePartitionB\022\n" + "\020compute_capacity\"\201\002\n" + "\037CreateInstancePartitionMetadata\022O\n" - + "\022instance_partition\030\001 \001" - + "(\01323.google.spanner.admin.instance.v1.InstancePartition\022.\n\n" + + "\022instance_partition\030\001 \001(\01323.g" + + "oogle.spanner.admin.instance.v1.InstancePartition\022.\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013cancel_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\326\001\n" @@ -524,8 +535,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB(\342A\001\002\372A!\n" + "\037spanner.googleapis.com/Instance\022#\n" + "\025instance_partition_id\030\002 \001(\tB\004\342A\001\002\022U\n" - + "\022instance_partition\030\003 \001(\01323.g" - + "oogle.spanner.admin.instance.v1.InstancePartitionB\004\342A\001\002\"o\n" + + "\022instance_partition\030\003 \001(\01323.google." + + "spanner.admin.instance.v1.InstancePartitionB\004\342A\001\002\"o\n" + "\036DeleteInstancePartitionRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" + "(spanner.googleapis.com/InstancePartition\022\014\n" @@ -534,14 +545,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" + "(spanner.googleapis.com/InstancePartition\"\255\001\n" + "\036UpdateInstancePartitionRequest\022U\n" - + "\022instance_partition\030\001" - + " \001(\01323.google.spanner.admin.instance.v1.InstancePartitionB\004\342A\001\002\0224\n\n" + + "\022instance_partition\030\001 \001(" + + "\01323.google.spanner.admin.instance.v1.InstancePartitionB\004\342A\001\002\0224\n\n" + "field_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\201\002\n" + "\037UpdateInstancePartitionMetadata\022O\n" + "\022instance_partition\030\001" - + " \001(\01323.google.spanner.admin.instance.v1.InstancePartition\022.\n" - + "\n" + + " \001(\01323.google.spanner.admin.instance.v1.InstancePartition\022.\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013cancel_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\307\001\n" @@ -553,8 +563,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_partition_deadline\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"\240\001\n" + "\036ListInstancePartitionsResponse\022P\n" - + "\023instance_partitions\030\001" - + " \003(\01323.google.spanner.admin.instance.v1.InstancePartition\022\027\n" + + "\023instance_partitions\030\001 \003(\013" + + "23.google.spanner.admin.instance.v1.InstancePartition\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\362\001\n" + "&ListInstancePartitionOperationsRequest\0228\n" @@ -577,115 +587,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024MoveInstanceResponse\"\245\001\n" + "\024MoveInstanceMetadata\022\025\n\r" + "target_config\030\001 \001(\t\022E\n" - + "\010progress\030\002 \001(\01323.googl" - + "e.spanner.admin.instance.v1.OperationProgress\022/\n" + + "\010progress\030\002 \001(\01323.google.span" + + "ner.admin.instance.v1.OperationProgress\022/\n" + "\013cancel_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\332\'\n\r" + "InstanceAdmin\022\314\001\n" - + "\023ListInstanceConfigs\022<.google.spanner.admin." - + "instance.v1.ListInstanceConfigsRequest\032=.google.spanner.admin.instance.v1.ListIn" - + "stanceConfigsResponse\"8\332A\006parent\202\323\344\223\002)\022\'" - + "/v1/{parent=projects/*}/instanceConfigs\022\271\001\n" - + "\021GetInstanceConfig\022:.google.spanner.admin.instance.v1.GetInstanceConfigReques" - + "t\0320.google.spanner.admin.instance.v1.Ins" - + "tanceConfig\"6\332A\004name\202\323\344\223\002)\022\'/v1/{name=projects/*/instanceConfigs/*}\022\310\002\n" - + "\024CreateInstanceConfig\022=.google.spanner.admin.inst" - + "ance.v1.CreateInstanceConfigRequest\032\035.google.longrunning.Operation\"\321\001\312Ap\n" - + "/google.spanner.admin.instance.v1.InstanceConfi" - + "g\022=google.spanner.admin.instance.v1.CreateInstanceConfigMetadata\332A)parent,instan" - + "ce_config,instance_config_id\202\323\344\223\002,\"\'/v1/" - + "{parent=projects/*}/instanceConfigs:\001*\022\312\002\n" - + "\024UpdateInstanceConfig\022=.google.spanner.admin.instance.v1.UpdateInstanceConfigR" - + "equest\032\035.google.longrunning.Operation\"\323\001\312Ap\n" - + "/google.spanner.admin.instance.v1.InstanceConfig\022=google.spanner.admin.insta" - + "nce.v1.UpdateInstanceConfigMetadata\332A\033in" - + "stance_config,update_mask\202\323\344\223\002<27/v1/{in" - + "stance_config.name=projects/*/instanceConfigs/*}:\001*\022\245\001\n" - + "\024DeleteInstanceConfig\022=.google.spanner.admin.instance.v1.DeleteIn" - + "stanceConfigRequest\032\026.google.protobuf.Em" - + "pty\"6\332A\004name\202\323\344\223\002)*\'/v1/{name=projects/*/instanceConfigs/*}\022\360\001\n" - + "\034ListInstanceConfigOperations\022E.google.spanner.admin.inst" - + "ance.v1.ListInstanceConfigOperationsRequest\032F.google.spanner.admin.instance.v1.L" - + "istInstanceConfigOperationsResponse\"A\332A\006" - + "parent\202\323\344\223\0022\0220/v1/{parent=projects/*}/instanceConfigOperations\022\264\001\n\r" - + "ListInstances\0226.google.spanner.admin.instance.v1.List" - + "InstancesRequest\0327.google.spanner.admin." - + "instance.v1.ListInstancesResponse\"2\332A\006pa" - + "rent\202\323\344\223\002#\022!/v1/{parent=projects/*}/instances\022\344\001\n" - + "\026ListInstancePartitions\022?.google.spanner.admin.instance.v1.ListInstance" - + "PartitionsRequest\032@.google.spanner.admin.instance.v1.ListInstancePartitionsRespo" - + "nse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/*/instances/*}/instancePartitions\022\241\001\n" - + "\013GetInstance\0224.google.spanner.admin.inst" - + "ance.v1.GetInstanceRequest\032*.google.span" - + "ner.admin.instance.v1.Instance\"0\332A\004name\202" - + "\323\344\223\002#\022!/v1/{name=projects/*/instances/*}\022\234\002\n" - + "\016CreateInstance\0227.google.spanner.adm" - + "in.instance.v1.CreateInstanceRequest\032\035.google.longrunning.Operation\"\261\001\312Ad\n" - + ")google.spanner.admin.instance.v1.Instance\0227go" - + "ogle.spanner.admin.instance.v1.CreateInstanceMetadata\332A\033parent,instance_id,insta" - + "nce\202\323\344\223\002&\"!/v1/{parent=projects/*}/instances:\001*\022\235\002\n" - + "\016UpdateInstance\0227.google.spanner.admin.instance.v1.UpdateInstanceRequ" - + "est\032\035.google.longrunning.Operation\"\262\001\312Ad\n" - + ")google.spanner.admin.instance.v1.Instance\0227google.spanner.admin.instance.v1.Up" - + "dateInstanceMetadata\332A\023instance,field_ma" - + "sk\202\323\344\223\002/2*/v1/{instance.name=projects/*/instances/*}:\001*\022\223\001\n" - + "\016DeleteInstance\0227.google.spanner.admin.instance.v1.DeleteInst" - + "anceRequest\032\026.google.protobuf.Empty\"0\332A\004" - + "name\202\323\344\223\002#*!/v1/{name=projects/*/instances/*}\022\232\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.google.iam.v1.Polic" - + "y\"O\332A\017resource,policy\202\323\344\223\0027\"2/v1/{resour" - + "ce=projects/*/instances/*}:setIamPolicy:\001*\022\223\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetI" - + "amPolicyRequest\032\025.google.iam.v1.Policy\"H" - + "\332A\010resource\202\323\344\223\0027\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\001*\022\305\001\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamP" - + "ermissionsRequest\032).google.iam.v1.TestIa" - + "mPermissionsResponse\"Z\332A\024resource,permis" - + "sions\202\323\344\223\002=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\001*\022\321\001\n" - + "\024GetInstancePartition\022=.google.spanner.admin" - + ".instance.v1.GetInstancePartitionRequest\0323.google.spanner.admin.instance.v1.Inst" - + "ancePartition\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=" - + "projects/*/instances/*/instancePartitions/*}\022\351\002\n" - + "\027CreateInstancePartition\022@.google.spanner.admin.instance.v1.CreateInstan" - + "cePartitionRequest\032\035.google.longrunning.Operation\"\354\001\312Av\n" - + "2google.spanner.admin.instance.v1.InstancePartition\022@google.span" - + "ner.admin.instance.v1.CreateInstancePartitionMetadata\332A/parent,instance_partitio" - + "n,instance_partition_id\202\323\344\223\002;\"6/v1/{pare" - + "nt=projects/*/instances/*}/instancePartitions:\001*\022\272\001\n" - + "\027DeleteInstancePartition\022@.google.spanner.admin.instance.v1.DeleteIn" - + "stancePartitionRequest\032\026.google.protobuf" - + ".Empty\"E\332A\004name\202\323\344\223\0028*6/v1/{name=project" - + "s/*/instances/*/instancePartitions/*}\022\352\002\n" - + "\027UpdateInstancePartition\022@.google.spanner.admin.instance.v1.UpdateInstanceParti" - + "tionRequest\032\035.google.longrunning.Operation\"\355\001\312Av\n" - + "2google.spanner.admin.instance.v1.InstancePartition\022@google.spanner.adm" - + "in.instance.v1.UpdateInstancePartitionMe" - + "tadata\332A\035instance_partition,field_mask\202\323" - + "\344\223\002N2I/v1/{instance_partition.name=proje" - + "cts/*/instances/*/instancePartitions/*}:\001*\022\210\002\n" - + "\037ListInstancePartitionOperations\022H", - ".google.spanner.admin.instance.v1.ListIn" - + "stancePartitionOperationsRequest\032I.googl" + + "\023ListInstanceConfigs\022<.google.spanner.admin.instan" + + "ce.v1.ListInstanceConfigsRequest\032=.google.spanner.admin.instance.v1.ListInstance" + + "ConfigsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{parent=projects/*}/instanceConfigs\022\271\001\n" + + "\021GetInstanceConfig\022:.google.spanner.admin.i" + + "nstance.v1.GetInstanceConfigRequest\0320.google.spanner.admin.instance.v1.InstanceC" + + "onfig\"6\332A\004name\202\323\344\223\002)\022\'/v1/{name=projects/*/instanceConfigs/*}\022\310\002\n" + + "\024CreateInstanceConfig\022=.google.spanner.admin.instance.v" + + "1.CreateInstanceConfigRequest\032\035.google.longrunning.Operation\"\321\001\312Ap\n" + + "/google.spanner.admin.instance.v1.InstanceConfig\022=goo" + + "gle.spanner.admin.instance.v1.CreateInstanceConfigMetadata\332A)parent,instance_con" + + "fig,instance_config_id\202\323\344\223\002,\"\'/v1/{parent=projects/*}/instanceConfigs:\001*\022\312\002\n" + + "\024UpdateInstanceConfig\022=.google.spanner.admin" + + ".instance.v1.UpdateInstanceConfigRequest\032\035.google.longrunning.Operation\"\323\001\312Ap\n" + + "/google.spanner.admin.instance.v1.InstanceConfig\022=google.spanner.admin.instance.v1" + + ".UpdateInstanceConfigMetadata\332A\033instance" + + "_config,update_mask\202\323\344\223\002<27/v1/{instance" + + "_config.name=projects/*/instanceConfigs/*}:\001*\022\245\001\n" + + "\024DeleteInstanceConfig\022=.google.spanner.admin.instance.v1.DeleteInstance" + + "ConfigRequest\032\026.google.protobuf.Empty\"6\332" + + "A\004name\202\323\344\223\002)*\'/v1/{name=projects/*/instanceConfigs/*}\022\360\001\n" + + "\034ListInstanceConfigOperations\022E.google.spanner.admin.instance.v" + + "1.ListInstanceConfigOperationsRequest\032F.google.spanner.admin.instance.v1.ListIns" + + "tanceConfigOperationsResponse\"A\332A\006parent" + + "\202\323\344\223\0022\0220/v1/{parent=projects/*}/instanceConfigOperations\022\264\001\n\r" + + "ListInstances\0226.google.spanner.admin.instance.v1.ListInstan" + + "cesRequest\0327.google.spanner.admin.instan" + + "ce.v1.ListInstancesResponse\"2\332A\006parent\202\323" + + "\344\223\002#\022!/v1/{parent=projects/*}/instances\022\344\001\n" + + "\026ListInstancePartitions\022?.google.spanner.admin.instance.v1.ListInstancePartit" + + "ionsRequest\032@.google.spanner.admin.insta" + + "nce.v1.ListInstancePartitionsResponse\"G\332" + + "A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/*/instances/*}/instancePartitions\022\241\001\n" + + "\013GetInstance\0224.google.spanner.admin.instance.v" + + "1.GetInstanceRequest\032*.google.spanner.ad" + + "min.instance.v1.Instance\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=projects/*/instances/*}\022\234\002\n" + + "\016CreateInstance\0227.google.spanner.admin.ins" + + "tance.v1.CreateInstanceRequest\032\035.google.longrunning.Operation\"\261\001\312Ad\n" + + ")google.spanner.admin.instance.v1.Instance\0227google.s" + + "panner.admin.instance.v1.CreateInstanceM" + + "etadata\332A\033parent,instance_id,instance\202\323\344" + + "\223\002&\"!/v1/{parent=projects/*}/instances:\001*\022\235\002\n" + + "\016UpdateInstance\0227.google.spanner.ad" + + "min.instance.v1.UpdateInstanceRequest\032\035.google.longrunning.Operation\"\262\001\312Ad\n" + + ")google.spanner.admin.instance.v1.Instance\0227g" + + "oogle.spanner.admin.instance.v1.UpdateIn" + + "stanceMetadata\332A\023instance,field_mask\202\323\344\223" + + "\002/2*/v1/{instance.name=projects/*/instances/*}:\001*\022\223\001\n" + + "\016DeleteInstance\0227.google.spanner.admin.instance.v1.DeleteInstanceRe" + + "quest\032\026.google.protobuf.Empty\"0\332A\004name\202\323" + + "\344\223\002#*!/v1/{name=projects/*/instances/*}\022\232\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"O\332A\017" + + "resource,policy\202\323\344\223\0027\"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\001*\022\223\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"H\332A\010res" + + "ource\202\323\344\223\0027\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\001*\022\305\001\n" + + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermiss" + + "ionsRequest\032).google.iam.v1.TestIamPermi" + + "ssionsResponse\"Z\332A\024resource,permissions\202" + + "\323\344\223\002=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\001*\022\321\001\n" + + "\024GetInstancePartition\022=.google.spanner.admin.insta" + + "nce.v1.GetInstancePartitionRequest\0323.google.spanner.admin.instance.v1.InstancePa" + + "rtition\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projec" + + "ts/*/instances/*/instancePartitions/*}\022\351\002\n" + + "\027CreateInstancePartition\022@.google.spanner.admin.instance.v1.CreateInstancePart" + + "itionRequest\032\035.google.longrunning.Operation\"\354\001\312Av\n" + + "2google.spanner.admin.instance.v1.InstancePartition\022@google.spanner.ad" + + "min.instance.v1.CreateInstancePartitionMetadata\332A/parent,instance_partition,inst" + + "ance_partition_id\202\323\344\223\002;\"6/v1/{parent=pro" + + "jects/*/instances/*}/instancePartitions:\001*\022\272\001\n" + + "\027DeleteInstancePartition\022@.google.spanner.admin.instance.v1.DeleteInstance" + + "PartitionRequest\032\026.google.protobuf.Empty" + + "\"E\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/instances/*/instancePartitions/*}\022\352\002\n" + + "\027UpdateInstancePartition\022@.google.spanner.adm" + + "in.instance.v1.UpdateInstancePartitionRe" + + "quest\032\035.google.longrunning.Operation\"\355\001\312Av\n" + + "2google.spanner.admin.instance.v1.Ins", + "tancePartition\022@google.spanner.admin.ins" + + "tance.v1.UpdateInstancePartitionMetadata" + + "\332A\035instance_partition,field_mask\202\323\344\223\002N2I" + + "/v1/{instance_partition.name=projects/*/" + + "instances/*/instancePartitions/*}:\001*\022\210\002\n" + + "\037ListInstancePartitionOperations\022H.googl" + "e.spanner.admin.instance.v1.ListInstance" - + "PartitionOperationsResponse\"P\332A\006parent\202\323" - + "\344\223\002A\022?/v1/{parent=projects/*/instances/*" - + "}/instancePartitionOperations\022\211\002\n\014MoveIn" - + "stance\0225.google.spanner.admin.instance.v" - + "1.MoveInstanceRequest\032\035.google.longrunni" - + "ng.Operation\"\242\001\312An\n5google.spanner.admin" - + ".instance.v1.MoveInstanceResponse\0225googl" - + "e.spanner.admin.instance.v1.MoveInstance" - + "Metadata\202\323\344\223\002+\"&/v1/{name=projects/*/ins" - + "tances/*}:move:\001*\032x\312A\026spanner.googleapis" - + ".com\322A\\https://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com" - + "/auth/spanner.adminB\213\002\n$com.google.spann" - + "er.admin.instance.v1B\031SpannerInstanceAdm" - + "inProtoP\001ZFcloud.google.com/go/spanner/a" - + "dmin/instance/apiv1/instancepb;instancep" - + "b\252\002&Google.Cloud.Spanner.Admin.Instance." - + "V1\312\002&Google\\Cloud\\Spanner\\Admin\\Instance" - + "\\V1\352\002+Google::Cloud::Spanner::Admin::Ins" - + "tance::V1b\006proto3" + + "PartitionOperationsRequest\032I.google.span" + + "ner.admin.instance.v1.ListInstancePartit" + + "ionOperationsResponse\"P\332A\006parent\202\323\344\223\002A\022?" + + "/v1/{parent=projects/*/instances/*}/inst" + + "ancePartitionOperations\022\211\002\n\014MoveInstance" + + "\0225.google.spanner.admin.instance.v1.Move" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"\242\001\312An\n5google.spanner.admin.insta" + + "nce.v1.MoveInstanceResponse\0225google.span" + + "ner.admin.instance.v1.MoveInstanceMetada" + + "ta\202\323\344\223\002+\"&/v1/{name=projects/*/instances" + + "/*}:move:\001*\032x\312A\026spanner.googleapis.com\322A" + + "\\https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "spanner.adminB\213\002\n$com.google.spanner.adm" + + "in.instance.v1B\031SpannerInstanceAdminProt" + + "oP\001ZFcloud.google.com/go/spanner/admin/i" + + "nstance/apiv1/instancepb;instancepb\252\002&Go" + + "ogle.Cloud.Spanner.Admin.Instance.V1\312\002&G" + + "oogle\\Cloud\\Spanner\\Admin\\Instance\\V1\352\002+" + + "Google::Cloud::Spanner::Admin::Instance:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -729,11 +740,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reconciling", "State", "FreeInstanceAvailability", + "AllowedProcessingUnits", "QuorumType", "StorageLimitPerProcessingUnit", }); - internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor = + internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_descriptor = internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor.getNestedType(0); + internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_InstanceConfig_AllowedProcessingUnits_descriptor, + new java.lang.String[] { + "MinProcessingUnits", "MaxProcessingUnits", "ProcessingUnitIncrement", + }); + internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor = + internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor.getNestedType(1); internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor, diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto index d16ab2ca5835..1d57e2b0dc3c 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto @@ -748,6 +748,21 @@ message InstanceConfig { QUOTA_EXCEEDED = 4; } + // Defines a range of processing units supported by an instance configuration. + message AllowedProcessingUnits { + // The minimum value of processing units applicable to this interval, + // inclusive. + int32 min_processing_units = 1; + + // The maximum value of processing units applicable to this interval, + // inclusive. If unset, there is no predefined limit to the supported + // number of processing units, although project quota limits still apply. + int32 max_processing_units = 2; + + // Allowed increments of processing units between “min” and “max”. + int32 processing_unit_increment = 3; + } + // Indicates the quorum type of this instance configuration. enum QuorumType { // Quorum type not specified. @@ -861,6 +876,20 @@ message InstanceConfig { FreeInstanceAvailability free_instance_availability = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Defines the ranges of allowed processing units supported by + // this instance configuration. If multiple ranges are specified, an instance + // using this configuration may use a valid increment in any of the given + // ranges. For example, an allowed_processing_units specification of + // `[{min_processing_units:100, max_processing_units:900, + // processing_unit_increment:100}, {min_processing_units:1000, + // processing_unit_increment:1000}]` specifies that the instance configuration + // supports instances with quantities of processing units in multiples of 100 + // processing units (100, 200, 300 and so on) up to and including 900 + // processing units and quantities that are at least 1000 processing units and + // multiples of 1000 processing units (1000, 2000, 3000 and so on). + repeated AllowedProcessingUnits allowed_processing_units = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The `QuorumType` of the instance configuration. QuorumType quorum_type = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/librarian.yaml b/librarian.yaml index 0102e1667e6d..a454fb8324d4 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.49.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: e7513c828b8db536fa12fc5493d541f323aedf90 - sha256: 2ef69787d1b7c2a60fdc8dae745435d115b95e45cc3262c050f4eccfd1889c27 + commit: c48d13e0bfc44dba984d8accc002c05c9048b9e8 + sha256: c9410510f44ed7488c60efbfac10a1d849c8555a35dec51d07f3168823c57ece showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd