All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.cx.v3.ConversationTurn Maven / Gradle / Ivy

There is a newer version: 0.67.0
Show newest version
/*
 * Copyright 2020 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!
// source: google/cloud/dialogflow/cx/v3/test_case.proto

package com.google.cloud.dialogflow.cx.v3;

/**
 *
 *
 * 
 * One interaction between a human and virtual agent. The human provides some
 * input and the virtual agent provides a response.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ConversationTurn} */ public final class ConversationTurn extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ConversationTurn) ConversationTurnOrBuilder { private static final long serialVersionUID = 0L; // Use ConversationTurn.newBuilder() to construct. private ConversationTurn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConversationTurn() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConversationTurn(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConversationTurn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder subBuilder = null; if (userInput_ != null) { subBuilder = userInput_.toBuilder(); } userInput_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(userInput_); userInput_ = subBuilder.buildPartial(); } break; } case 18: { com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder subBuilder = null; if (virtualAgentOutput_ != null) { subBuilder = virtualAgentOutput_.toBuilder(); } virtualAgentOutput_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(virtualAgentOutput_); virtualAgentOutput_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.ConversationTurn.class, com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder.class); } public interface UserInputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) com.google.protobuf.MessageOrBuilder { /** * * *
     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
     * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; * * @return Whether the input field is set. */ boolean hasInput(); /** * * *
     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
     * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; * * @return The input. */ com.google.cloud.dialogflow.cx.v3.QueryInput getInput(); /** * * *
     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
     * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getInputOrBuilder(); /** * * *
     * Parameters that need to be injected into the conversation during intent
     * detection.
     * 
* * .google.protobuf.Struct injected_parameters = 2; * * @return Whether the injectedParameters field is set. */ boolean hasInjectedParameters(); /** * * *
     * Parameters that need to be injected into the conversation during intent
     * detection.
     * 
* * .google.protobuf.Struct injected_parameters = 2; * * @return The injectedParameters. */ com.google.protobuf.Struct getInjectedParameters(); /** * * *
     * Parameters that need to be injected into the conversation during intent
     * detection.
     * 
* * .google.protobuf.Struct injected_parameters = 2; */ com.google.protobuf.StructOrBuilder getInjectedParametersOrBuilder(); /** * * *
     * If webhooks should be allowed to trigger in response to the user
     * utterance. Often if parameters are injected, webhooks should not be
     * enabled.
     * 
* * bool is_webhook_enabled = 3; * * @return The isWebhookEnabled. */ boolean getIsWebhookEnabled(); /** * * *
     * Whether sentiment analysis is enabled.
     * 
* * bool enable_sentiment_analysis = 7; * * @return The enableSentimentAnalysis. */ boolean getEnableSentimentAnalysis(); } /** * * *
   * The input from the human user.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} */ public static final class UserInput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) UserInputOrBuilder { private static final long serialVersionUID = 0L; // Use UserInput.newBuilder() to construct. private UserInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UserInput() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserInput(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserInput( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { com.google.protobuf.Struct.Builder subBuilder = null; if (injectedParameters_ != null) { subBuilder = injectedParameters_.toBuilder(); } injectedParameters_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(injectedParameters_); injectedParameters_ = subBuilder.buildPartial(); } break; } case 24: { isWebhookEnabled_ = input.readBool(); break; } case 42: { com.google.cloud.dialogflow.cx.v3.QueryInput.Builder subBuilder = null; if (input_ != null) { subBuilder = input_.toBuilder(); } input_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.QueryInput.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(input_); input_ = subBuilder.buildPartial(); } break; } case 56: { enableSentimentAnalysis_ = input.readBool(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_UserInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_UserInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.class, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder.class); } public static final int INPUT_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.cx.v3.QueryInput input_; /** * * *
     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
     * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; * * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return input_ != null; } /** * * *
     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
     * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; * * @return The input. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryInput getInput() { return input_ == null ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance() : input_; } /** * * *
     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
     * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getInputOrBuilder() { return getInput(); } public static final int INJECTED_PARAMETERS_FIELD_NUMBER = 2; private com.google.protobuf.Struct injectedParameters_; /** * * *
     * Parameters that need to be injected into the conversation during intent
     * detection.
     * 
* * .google.protobuf.Struct injected_parameters = 2; * * @return Whether the injectedParameters field is set. */ @java.lang.Override public boolean hasInjectedParameters() { return injectedParameters_ != null; } /** * * *
     * Parameters that need to be injected into the conversation during intent
     * detection.
     * 
* * .google.protobuf.Struct injected_parameters = 2; * * @return The injectedParameters. */ @java.lang.Override public com.google.protobuf.Struct getInjectedParameters() { return injectedParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : injectedParameters_; } /** * * *
     * Parameters that need to be injected into the conversation during intent
     * detection.
     * 
* * .google.protobuf.Struct injected_parameters = 2; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getInjectedParametersOrBuilder() { return getInjectedParameters(); } public static final int IS_WEBHOOK_ENABLED_FIELD_NUMBER = 3; private boolean isWebhookEnabled_; /** * * *
     * If webhooks should be allowed to trigger in response to the user
     * utterance. Often if parameters are injected, webhooks should not be
     * enabled.
     * 
* * bool is_webhook_enabled = 3; * * @return The isWebhookEnabled. */ @java.lang.Override public boolean getIsWebhookEnabled() { return isWebhookEnabled_; } public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER = 7; private boolean enableSentimentAnalysis_; /** * * *
     * Whether sentiment analysis is enabled.
     * 
* * bool enable_sentiment_analysis = 7; * * @return The enableSentimentAnalysis. */ @java.lang.Override public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } 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 (injectedParameters_ != null) { output.writeMessage(2, getInjectedParameters()); } if (isWebhookEnabled_ != false) { output.writeBool(3, isWebhookEnabled_); } if (input_ != null) { output.writeMessage(5, getInput()); } if (enableSentimentAnalysis_ != false) { output.writeBool(7, enableSentimentAnalysis_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (injectedParameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInjectedParameters()); } if (isWebhookEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isWebhookEnabled_); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInput()); } if (enableSentimentAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableSentimentAnalysis_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput other = (com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput().equals(other.getInput())) return false; } if (hasInjectedParameters() != other.hasInjectedParameters()) return false; if (hasInjectedParameters()) { if (!getInjectedParameters().equals(other.getInjectedParameters())) return false; } if (getIsWebhookEnabled() != other.getIsWebhookEnabled()) return false; if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } if (hasInjectedParameters()) { hash = (37 * hash) + INJECTED_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getInjectedParameters().hashCode(); } hash = (37 * hash) + IS_WEBHOOK_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsWebhookEnabled()); hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput 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.cx.v3.ConversationTurn.UserInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput 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.cx.v3.ConversationTurn.UserInput parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * The input from the human user.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_UserInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_UserInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.class, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); if (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = null; } if (injectedParametersBuilder_ == null) { injectedParameters_ = null; } else { injectedParameters_ = null; injectedParametersBuilder_ = null; } isWebhookEnabled_ = false; enableSentimentAnalysis_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_UserInput_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput build() { com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput buildPartial() { com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput result = new com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(this); if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (injectedParametersBuilder_ == null) { result.injectedParameters_ = injectedParameters_; } else { result.injectedParameters_ = injectedParametersBuilder_.build(); } result.isWebhookEnabled_ = isWebhookEnabled_; result.enableSentimentAnalysis_ = enableSentimentAnalysis_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) { return mergeFrom((com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput other) { if (other == com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } if (other.hasInjectedParameters()) { mergeInjectedParameters(other.getInjectedParameters()); } if (other.getIsWebhookEnabled() != false) { setIsWebhookEnabled(other.getIsWebhookEnabled()); } if (other.getEnableSentimentAnalysis() != false) { setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.cloud.dialogflow.cx.v3.QueryInput input_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.QueryInput, com.google.cloud.dialogflow.cx.v3.QueryInput.Builder, com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder> inputBuilder_; /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; * * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; * * @return The input. */ public com.google.cloud.dialogflow.cx.v3.QueryInput getInput() { if (inputBuilder_ == null) { return input_ == null ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public Builder setInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public Builder setInput( com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public Builder mergeInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(input_) .mergeFrom(value) .buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance() : input_; } } /** * * *
       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
       * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.QueryInput, com.google.cloud.dialogflow.cx.v3.QueryInput.Builder, com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.QueryInput, com.google.cloud.dialogflow.cx.v3.QueryInput.Builder, com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private com.google.protobuf.Struct injectedParameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> injectedParametersBuilder_; /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; * * @return Whether the injectedParameters field is set. */ public boolean hasInjectedParameters() { return injectedParametersBuilder_ != null || injectedParameters_ != null; } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; * * @return The injectedParameters. */ public com.google.protobuf.Struct getInjectedParameters() { if (injectedParametersBuilder_ == null) { return injectedParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : injectedParameters_; } else { return injectedParametersBuilder_.getMessage(); } } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ public Builder setInjectedParameters(com.google.protobuf.Struct value) { if (injectedParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } injectedParameters_ = value; onChanged(); } else { injectedParametersBuilder_.setMessage(value); } return this; } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ public Builder setInjectedParameters(com.google.protobuf.Struct.Builder builderForValue) { if (injectedParametersBuilder_ == null) { injectedParameters_ = builderForValue.build(); onChanged(); } else { injectedParametersBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ public Builder mergeInjectedParameters(com.google.protobuf.Struct value) { if (injectedParametersBuilder_ == null) { if (injectedParameters_ != null) { injectedParameters_ = com.google.protobuf.Struct.newBuilder(injectedParameters_) .mergeFrom(value) .buildPartial(); } else { injectedParameters_ = value; } onChanged(); } else { injectedParametersBuilder_.mergeFrom(value); } return this; } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ public Builder clearInjectedParameters() { if (injectedParametersBuilder_ == null) { injectedParameters_ = null; onChanged(); } else { injectedParameters_ = null; injectedParametersBuilder_ = null; } return this; } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ public com.google.protobuf.Struct.Builder getInjectedParametersBuilder() { onChanged(); return getInjectedParametersFieldBuilder().getBuilder(); } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ public com.google.protobuf.StructOrBuilder getInjectedParametersOrBuilder() { if (injectedParametersBuilder_ != null) { return injectedParametersBuilder_.getMessageOrBuilder(); } else { return injectedParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : injectedParameters_; } } /** * * *
       * Parameters that need to be injected into the conversation during intent
       * detection.
       * 
* * .google.protobuf.Struct injected_parameters = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getInjectedParametersFieldBuilder() { if (injectedParametersBuilder_ == null) { injectedParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getInjectedParameters(), getParentForChildren(), isClean()); injectedParameters_ = null; } return injectedParametersBuilder_; } private boolean isWebhookEnabled_; /** * * *
       * If webhooks should be allowed to trigger in response to the user
       * utterance. Often if parameters are injected, webhooks should not be
       * enabled.
       * 
* * bool is_webhook_enabled = 3; * * @return The isWebhookEnabled. */ @java.lang.Override public boolean getIsWebhookEnabled() { return isWebhookEnabled_; } /** * * *
       * If webhooks should be allowed to trigger in response to the user
       * utterance. Often if parameters are injected, webhooks should not be
       * enabled.
       * 
* * bool is_webhook_enabled = 3; * * @param value The isWebhookEnabled to set. * @return This builder for chaining. */ public Builder setIsWebhookEnabled(boolean value) { isWebhookEnabled_ = value; onChanged(); return this; } /** * * *
       * If webhooks should be allowed to trigger in response to the user
       * utterance. Often if parameters are injected, webhooks should not be
       * enabled.
       * 
* * bool is_webhook_enabled = 3; * * @return This builder for chaining. */ public Builder clearIsWebhookEnabled() { isWebhookEnabled_ = false; onChanged(); return this; } private boolean enableSentimentAnalysis_; /** * * *
       * Whether sentiment analysis is enabled.
       * 
* * bool enable_sentiment_analysis = 7; * * @return The enableSentimentAnalysis. */ @java.lang.Override public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } /** * * *
       * Whether sentiment analysis is enabled.
       * 
* * bool enable_sentiment_analysis = 7; * * @param value The enableSentimentAnalysis to set. * @return This builder for chaining. */ public Builder setEnableSentimentAnalysis(boolean value) { enableSentimentAnalysis_ = value; onChanged(); return this; } /** * * *
       * Whether sentiment analysis is enabled.
       * 
* * bool enable_sentiment_analysis = 7; * * @return This builder for chaining. */ public Builder clearEnableSentimentAnalysis() { enableSentimentAnalysis_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) private static final com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UserInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserInput(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VirtualAgentOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) com.google.protobuf.MessageOrBuilder { /** * * *
     * The session parameters available to the bot at this point.
     * 
* * .google.protobuf.Struct session_parameters = 4; * * @return Whether the sessionParameters field is set. */ boolean hasSessionParameters(); /** * * *
     * The session parameters available to the bot at this point.
     * 
* * .google.protobuf.Struct session_parameters = 4; * * @return The sessionParameters. */ com.google.protobuf.Struct getSessionParameters(); /** * * *
     * The session parameters available to the bot at this point.
     * 
* * .google.protobuf.Struct session_parameters = 4; */ com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder(); /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List getDifferencesList(); /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.dialogflow.cx.v3.TestRunDifference getDifferences(int index); /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ int getDifferencesCount(); /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List getDifferencesOrBuilderList(); /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder getDifferencesOrBuilder(int index); /** * * *
     * Required. Input only. The diagnostic
     * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
     * output for the turn. Required to calculate the testing coverage.
     * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return Whether the diagnosticInfo field is set. */ boolean hasDiagnosticInfo(); /** * * *
     * Required. Input only. The diagnostic
     * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
     * output for the turn. Required to calculate the testing coverage.
     * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The diagnosticInfo. */ com.google.protobuf.Struct getDiagnosticInfo(); /** * * *
     * Required. Input only. The diagnostic
     * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
     * output for the turn. Required to calculate the testing coverage.
     * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder(); /** * * *
     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; * * @return Whether the triggeredIntent field is set. */ boolean hasTriggeredIntent(); /** * * *
     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; * * @return The triggeredIntent. */ com.google.cloud.dialogflow.cx.v3.Intent getTriggeredIntent(); /** * * *
     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBuilder(); /** * * *
     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; * * @return Whether the currentPage field is set. */ boolean hasCurrentPage(); /** * * *
     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; * * @return The currentPage. */ com.google.cloud.dialogflow.cx.v3.Page getCurrentPage(); /** * * *
     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder(); /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ java.util.List getTextResponsesList(); /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getTextResponses(int index); /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ int getTextResponsesCount(); /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ java.util.List getTextResponsesOrBuilderList(); /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextResponsesOrBuilder( int index); /** * * *
     * Response error from the agent in the test result. If set, other output
     * is empty.
     * 
* * .google.rpc.Status status = 10; * * @return Whether the status field is set. */ boolean hasStatus(); /** * * *
     * Response error from the agent in the test result. If set, other output
     * is empty.
     * 
* * .google.rpc.Status status = 10; * * @return The status. */ com.google.rpc.Status getStatus(); /** * * *
     * Response error from the agent in the test result. If set, other output
     * is empty.
     * 
* * .google.rpc.Status status = 10; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** * * *
   * The output from the virtual agent.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} */ public static final class VirtualAgentOutput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) VirtualAgentOutputOrBuilder { private static final long serialVersionUID = 0L; // Use VirtualAgentOutput.newBuilder() to construct. private VirtualAgentOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VirtualAgentOutput() { differences_ = java.util.Collections.emptyList(); textResponses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VirtualAgentOutput(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VirtualAgentOutput( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 34: { com.google.protobuf.Struct.Builder subBuilder = null; if (sessionParameters_ != null) { subBuilder = sessionParameters_.toBuilder(); } sessionParameters_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionParameters_); sessionParameters_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { differences_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.TestRunDifference>(); mutable_bitField0_ |= 0x00000001; } differences_.add( input.readMessage( com.google.cloud.dialogflow.cx.v3.TestRunDifference.parser(), extensionRegistry)); break; } case 50: { com.google.protobuf.Struct.Builder subBuilder = null; if (diagnosticInfo_ != null) { subBuilder = diagnosticInfo_.toBuilder(); } diagnosticInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(diagnosticInfo_); diagnosticInfo_ = subBuilder.buildPartial(); } break; } case 58: { com.google.cloud.dialogflow.cx.v3.Intent.Builder subBuilder = null; if (triggeredIntent_ != null) { subBuilder = triggeredIntent_.toBuilder(); } triggeredIntent_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.Intent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(triggeredIntent_); triggeredIntent_ = subBuilder.buildPartial(); } break; } case 66: { com.google.cloud.dialogflow.cx.v3.Page.Builder subBuilder = null; if (currentPage_ != null) { subBuilder = currentPage_.toBuilder(); } currentPage_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.Page.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(currentPage_); currentPage_ = subBuilder.buildPartial(); } break; } case 74: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { textResponses_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text>(); mutable_bitField0_ |= 0x00000002; } textResponses_.add( input.readMessage( com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.parser(), extensionRegistry)); break; } case 82: { com.google.rpc.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { differences_ = java.util.Collections.unmodifiableList(differences_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { textResponses_ = java.util.Collections.unmodifiableList(textResponses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_VirtualAgentOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_VirtualAgentOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.class, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder.class); } public static final int SESSION_PARAMETERS_FIELD_NUMBER = 4; private com.google.protobuf.Struct sessionParameters_; /** * * *
     * The session parameters available to the bot at this point.
     * 
* * .google.protobuf.Struct session_parameters = 4; * * @return Whether the sessionParameters field is set. */ @java.lang.Override public boolean hasSessionParameters() { return sessionParameters_ != null; } /** * * *
     * The session parameters available to the bot at this point.
     * 
* * .google.protobuf.Struct session_parameters = 4; * * @return The sessionParameters. */ @java.lang.Override public com.google.protobuf.Struct getSessionParameters() { return sessionParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : sessionParameters_; } /** * * *
     * The session parameters available to the bot at this point.
     * 
* * .google.protobuf.Struct session_parameters = 4; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder() { return getSessionParameters(); } public static final int DIFFERENCES_FIELD_NUMBER = 5; private java.util.List differences_; /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getDifferencesList() { return differences_; } /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getDifferencesOrBuilderList() { return differences_; } /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getDifferencesCount() { return differences_.size(); } /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestRunDifference getDifferences(int index) { return differences_.get(index); } /** * * *
     * Output only. If this is part of a [result conversation
     * turn][TestCaseResult.conversation_turns], the list of differences
     * between the original run and the replay for this output, if any.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder getDifferencesOrBuilder( int index) { return differences_.get(index); } public static final int DIAGNOSTIC_INFO_FIELD_NUMBER = 6; private com.google.protobuf.Struct diagnosticInfo_; /** * * *
     * Required. Input only. The diagnostic
     * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
     * output for the turn. Required to calculate the testing coverage.
     * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return Whether the diagnosticInfo field is set. */ @java.lang.Override public boolean hasDiagnosticInfo() { return diagnosticInfo_ != null; } /** * * *
     * Required. Input only. The diagnostic
     * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
     * output for the turn. Required to calculate the testing coverage.
     * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The diagnosticInfo. */ @java.lang.Override public com.google.protobuf.Struct getDiagnosticInfo() { return diagnosticInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : diagnosticInfo_; } /** * * *
     * Required. Input only. The diagnostic
     * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
     * output for the turn. Required to calculate the testing coverage.
     * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { return getDiagnosticInfo(); } public static final int TRIGGERED_INTENT_FIELD_NUMBER = 7; private com.google.cloud.dialogflow.cx.v3.Intent triggeredIntent_; /** * * *
     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; * * @return Whether the triggeredIntent field is set. */ @java.lang.Override public boolean hasTriggeredIntent() { return triggeredIntent_ != null; } /** * * *
     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; * * @return The triggeredIntent. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Intent getTriggeredIntent() { return triggeredIntent_ == null ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() : triggeredIntent_; } /** * * *
     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBuilder() { return getTriggeredIntent(); } public static final int CURRENT_PAGE_FIELD_NUMBER = 8; private com.google.cloud.dialogflow.cx.v3.Page currentPage_; /** * * *
     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; * * @return Whether the currentPage field is set. */ @java.lang.Override public boolean hasCurrentPage() { return currentPage_ != null; } /** * * *
     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; * * @return The currentPage. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { return currentPage_ == null ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() : currentPage_; } /** * * *
     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
     * will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() { return getCurrentPage(); } public static final int TEXT_RESPONSES_FIELD_NUMBER = 9; private java.util.List textResponses_; /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ @java.lang.Override public java.util.List getTextResponsesList() { return textResponses_; } /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ @java.lang.Override public java.util.List getTextResponsesOrBuilderList() { return textResponses_; } /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ @java.lang.Override public int getTextResponsesCount() { return textResponses_.size(); } /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getTextResponses(int index) { return textResponses_.get(index); } /** * * *
     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextResponsesOrBuilder(int index) { return textResponses_.get(index); } public static final int STATUS_FIELD_NUMBER = 10; private com.google.rpc.Status status_; /** * * *
     * Response error from the agent in the test result. If set, other output
     * is empty.
     * 
* * .google.rpc.Status status = 10; * * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** * * *
     * Response error from the agent in the test result. If set, other output
     * is empty.
     * 
* * .google.rpc.Status status = 10; * * @return The status. */ @java.lang.Override public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** * * *
     * Response error from the agent in the test result. If set, other output
     * is empty.
     * 
* * .google.rpc.Status status = 10; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } 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 (sessionParameters_ != null) { output.writeMessage(4, getSessionParameters()); } for (int i = 0; i < differences_.size(); i++) { output.writeMessage(5, differences_.get(i)); } if (diagnosticInfo_ != null) { output.writeMessage(6, getDiagnosticInfo()); } if (triggeredIntent_ != null) { output.writeMessage(7, getTriggeredIntent()); } if (currentPage_ != null) { output.writeMessage(8, getCurrentPage()); } for (int i = 0; i < textResponses_.size(); i++) { output.writeMessage(9, textResponses_.get(i)); } if (status_ != null) { output.writeMessage(10, getStatus()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sessionParameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSessionParameters()); } for (int i = 0; i < differences_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, differences_.get(i)); } if (diagnosticInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDiagnosticInfo()); } if (triggeredIntent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTriggeredIntent()); } if (currentPage_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCurrentPage()); } for (int i = 0; i < textResponses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, textResponses_.get(i)); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getStatus()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput other = (com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) obj; if (hasSessionParameters() != other.hasSessionParameters()) return false; if (hasSessionParameters()) { if (!getSessionParameters().equals(other.getSessionParameters())) return false; } if (!getDifferencesList().equals(other.getDifferencesList())) return false; if (hasDiagnosticInfo() != other.hasDiagnosticInfo()) return false; if (hasDiagnosticInfo()) { if (!getDiagnosticInfo().equals(other.getDiagnosticInfo())) return false; } if (hasTriggeredIntent() != other.hasTriggeredIntent()) return false; if (hasTriggeredIntent()) { if (!getTriggeredIntent().equals(other.getTriggeredIntent())) return false; } if (hasCurrentPage() != other.hasCurrentPage()) return false; if (hasCurrentPage()) { if (!getCurrentPage().equals(other.getCurrentPage())) return false; } if (!getTextResponsesList().equals(other.getTextResponsesList())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus().equals(other.getStatus())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSessionParameters()) { hash = (37 * hash) + SESSION_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getSessionParameters().hashCode(); } if (getDifferencesCount() > 0) { hash = (37 * hash) + DIFFERENCES_FIELD_NUMBER; hash = (53 * hash) + getDifferencesList().hashCode(); } if (hasDiagnosticInfo()) { hash = (37 * hash) + DIAGNOSTIC_INFO_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticInfo().hashCode(); } if (hasTriggeredIntent()) { hash = (37 * hash) + TRIGGERED_INTENT_FIELD_NUMBER; hash = (53 * hash) + getTriggeredIntent().hashCode(); } if (hasCurrentPage()) { hash = (37 * hash) + CURRENT_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCurrentPage().hashCode(); } if (getTextResponsesCount() > 0) { hash = (37 * hash) + TEXT_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getTextResponsesList().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput 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.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput 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.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * The output from the virtual agent.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_VirtualAgentOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_VirtualAgentOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.class, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder .class); } // Construct using // com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDifferencesFieldBuilder(); getTextResponsesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sessionParametersBuilder_ == null) { sessionParameters_ = null; } else { sessionParameters_ = null; sessionParametersBuilder_ = null; } if (differencesBuilder_ == null) { differences_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { differencesBuilder_.clear(); } if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = null; } else { diagnosticInfo_ = null; diagnosticInfoBuilder_ = null; } if (triggeredIntentBuilder_ == null) { triggeredIntent_ = null; } else { triggeredIntent_ = null; triggeredIntentBuilder_ = null; } if (currentPageBuilder_ == null) { currentPage_ = null; } else { currentPage_ = null; currentPageBuilder_ = null; } if (textResponsesBuilder_ == null) { textResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { textResponsesBuilder_.clear(); } if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_VirtualAgentOutput_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput build() { com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput buildPartial() { com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput result = new com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(this); int from_bitField0_ = bitField0_; if (sessionParametersBuilder_ == null) { result.sessionParameters_ = sessionParameters_; } else { result.sessionParameters_ = sessionParametersBuilder_.build(); } if (differencesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { differences_ = java.util.Collections.unmodifiableList(differences_); bitField0_ = (bitField0_ & ~0x00000001); } result.differences_ = differences_; } else { result.differences_ = differencesBuilder_.build(); } if (diagnosticInfoBuilder_ == null) { result.diagnosticInfo_ = diagnosticInfo_; } else { result.diagnosticInfo_ = diagnosticInfoBuilder_.build(); } if (triggeredIntentBuilder_ == null) { result.triggeredIntent_ = triggeredIntent_; } else { result.triggeredIntent_ = triggeredIntentBuilder_.build(); } if (currentPageBuilder_ == null) { result.currentPage_ = currentPage_; } else { result.currentPage_ = currentPageBuilder_.build(); } if (textResponsesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { textResponses_ = java.util.Collections.unmodifiableList(textResponses_); bitField0_ = (bitField0_ & ~0x00000002); } result.textResponses_ = textResponses_; } else { result.textResponses_ = textResponsesBuilder_.build(); } if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput other) { if (other == com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput .getDefaultInstance()) return this; if (other.hasSessionParameters()) { mergeSessionParameters(other.getSessionParameters()); } if (differencesBuilder_ == null) { if (!other.differences_.isEmpty()) { if (differences_.isEmpty()) { differences_ = other.differences_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDifferencesIsMutable(); differences_.addAll(other.differences_); } onChanged(); } } else { if (!other.differences_.isEmpty()) { if (differencesBuilder_.isEmpty()) { differencesBuilder_.dispose(); differencesBuilder_ = null; differences_ = other.differences_; bitField0_ = (bitField0_ & ~0x00000001); differencesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDifferencesFieldBuilder() : null; } else { differencesBuilder_.addAllMessages(other.differences_); } } } if (other.hasDiagnosticInfo()) { mergeDiagnosticInfo(other.getDiagnosticInfo()); } if (other.hasTriggeredIntent()) { mergeTriggeredIntent(other.getTriggeredIntent()); } if (other.hasCurrentPage()) { mergeCurrentPage(other.getCurrentPage()); } if (textResponsesBuilder_ == null) { if (!other.textResponses_.isEmpty()) { if (textResponses_.isEmpty()) { textResponses_ = other.textResponses_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTextResponsesIsMutable(); textResponses_.addAll(other.textResponses_); } onChanged(); } } else { if (!other.textResponses_.isEmpty()) { if (textResponsesBuilder_.isEmpty()) { textResponsesBuilder_.dispose(); textResponsesBuilder_ = null; textResponses_ = other.textResponses_; bitField0_ = (bitField0_ & ~0x00000002); textResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextResponsesFieldBuilder() : null; } else { textResponsesBuilder_.addAllMessages(other.textResponses_); } } } if (other.hasStatus()) { mergeStatus(other.getStatus()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Struct sessionParameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> sessionParametersBuilder_; /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; * * @return Whether the sessionParameters field is set. */ public boolean hasSessionParameters() { return sessionParametersBuilder_ != null || sessionParameters_ != null; } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; * * @return The sessionParameters. */ public com.google.protobuf.Struct getSessionParameters() { if (sessionParametersBuilder_ == null) { return sessionParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : sessionParameters_; } else { return sessionParametersBuilder_.getMessage(); } } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ public Builder setSessionParameters(com.google.protobuf.Struct value) { if (sessionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionParameters_ = value; onChanged(); } else { sessionParametersBuilder_.setMessage(value); } return this; } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ public Builder setSessionParameters(com.google.protobuf.Struct.Builder builderForValue) { if (sessionParametersBuilder_ == null) { sessionParameters_ = builderForValue.build(); onChanged(); } else { sessionParametersBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ public Builder mergeSessionParameters(com.google.protobuf.Struct value) { if (sessionParametersBuilder_ == null) { if (sessionParameters_ != null) { sessionParameters_ = com.google.protobuf.Struct.newBuilder(sessionParameters_) .mergeFrom(value) .buildPartial(); } else { sessionParameters_ = value; } onChanged(); } else { sessionParametersBuilder_.mergeFrom(value); } return this; } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ public Builder clearSessionParameters() { if (sessionParametersBuilder_ == null) { sessionParameters_ = null; onChanged(); } else { sessionParameters_ = null; sessionParametersBuilder_ = null; } return this; } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ public com.google.protobuf.Struct.Builder getSessionParametersBuilder() { onChanged(); return getSessionParametersFieldBuilder().getBuilder(); } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder() { if (sessionParametersBuilder_ != null) { return sessionParametersBuilder_.getMessageOrBuilder(); } else { return sessionParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : sessionParameters_; } } /** * * *
       * The session parameters available to the bot at this point.
       * 
* * .google.protobuf.Struct session_parameters = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getSessionParametersFieldBuilder() { if (sessionParametersBuilder_ == null) { sessionParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getSessionParameters(), getParentForChildren(), isClean()); sessionParameters_ = null; } return sessionParametersBuilder_; } private java.util.List differences_ = java.util.Collections.emptyList(); private void ensureDifferencesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { differences_ = new java.util.ArrayList( differences_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TestRunDifference, com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder, com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder> differencesBuilder_; /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getDifferencesList() { if (differencesBuilder_ == null) { return java.util.Collections.unmodifiableList(differences_); } else { return differencesBuilder_.getMessageList(); } } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getDifferencesCount() { if (differencesBuilder_ == null) { return differences_.size(); } else { return differencesBuilder_.getCount(); } } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3.TestRunDifference getDifferences(int index) { if (differencesBuilder_ == null) { return differences_.get(index); } else { return differencesBuilder_.getMessage(index); } } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setDifferences( int index, com.google.cloud.dialogflow.cx.v3.TestRunDifference value) { if (differencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDifferencesIsMutable(); differences_.set(index, value); onChanged(); } else { differencesBuilder_.setMessage(index, value); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setDifferences( int index, com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder builderForValue) { if (differencesBuilder_ == null) { ensureDifferencesIsMutable(); differences_.set(index, builderForValue.build()); onChanged(); } else { differencesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDifferences(com.google.cloud.dialogflow.cx.v3.TestRunDifference value) { if (differencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDifferencesIsMutable(); differences_.add(value); onChanged(); } else { differencesBuilder_.addMessage(value); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDifferences( int index, com.google.cloud.dialogflow.cx.v3.TestRunDifference value) { if (differencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDifferencesIsMutable(); differences_.add(index, value); onChanged(); } else { differencesBuilder_.addMessage(index, value); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDifferences( com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder builderForValue) { if (differencesBuilder_ == null) { ensureDifferencesIsMutable(); differences_.add(builderForValue.build()); onChanged(); } else { differencesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDifferences( int index, com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder builderForValue) { if (differencesBuilder_ == null) { ensureDifferencesIsMutable(); differences_.add(index, builderForValue.build()); onChanged(); } else { differencesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllDifferences( java.lang.Iterable values) { if (differencesBuilder_ == null) { ensureDifferencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, differences_); onChanged(); } else { differencesBuilder_.addAllMessages(values); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearDifferences() { if (differencesBuilder_ == null) { differences_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { differencesBuilder_.clear(); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeDifferences(int index) { if (differencesBuilder_ == null) { ensureDifferencesIsMutable(); differences_.remove(index); onChanged(); } else { differencesBuilder_.remove(index); } return this; } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder getDifferencesBuilder( int index) { return getDifferencesFieldBuilder().getBuilder(index); } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder getDifferencesOrBuilder( int index) { if (differencesBuilder_ == null) { return differences_.get(index); } else { return differencesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getDifferencesOrBuilderList() { if (differencesBuilder_ != null) { return differencesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(differences_); } } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder addDifferencesBuilder() { return getDifferencesFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3.TestRunDifference.getDefaultInstance()); } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder addDifferencesBuilder( int index) { return getDifferencesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3.TestRunDifference.getDefaultInstance()); } /** * * *
       * Output only. If this is part of a [result conversation
       * turn][TestCaseResult.conversation_turns], the list of differences
       * between the original run and the replay for this output, if any.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getDifferencesBuilderList() { return getDifferencesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TestRunDifference, com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder, com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder> getDifferencesFieldBuilder() { if (differencesBuilder_ == null) { differencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TestRunDifference, com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder, com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder>( differences_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); differences_ = null; } return differencesBuilder_; } private com.google.protobuf.Struct diagnosticInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> diagnosticInfoBuilder_; /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return Whether the diagnosticInfo field is set. */ public boolean hasDiagnosticInfo() { return diagnosticInfoBuilder_ != null || diagnosticInfo_ != null; } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The diagnosticInfo. */ public com.google.protobuf.Struct getDiagnosticInfo() { if (diagnosticInfoBuilder_ == null) { return diagnosticInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : diagnosticInfo_; } else { return diagnosticInfoBuilder_.getMessage(); } } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { if (diagnosticInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } diagnosticInfo_ = value; onChanged(); } else { diagnosticInfoBuilder_.setMessage(value); } return this; } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue) { if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = builderForValue.build(); onChanged(); } else { diagnosticInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { if (diagnosticInfoBuilder_ == null) { if (diagnosticInfo_ != null) { diagnosticInfo_ = com.google.protobuf.Struct.newBuilder(diagnosticInfo_) .mergeFrom(value) .buildPartial(); } else { diagnosticInfo_ = value; } onChanged(); } else { diagnosticInfoBuilder_.mergeFrom(value); } return this; } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ public Builder clearDiagnosticInfo() { if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = null; onChanged(); } else { diagnosticInfo_ = null; diagnosticInfoBuilder_ = null; } return this; } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() { onChanged(); return getDiagnosticInfoFieldBuilder().getBuilder(); } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { if (diagnosticInfoBuilder_ != null) { return diagnosticInfoBuilder_.getMessageOrBuilder(); } else { return diagnosticInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : diagnosticInfo_; } } /** * * *
       * Required. Input only. The diagnostic
       * [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       * output for the turn. Required to calculate the testing coverage.
       * 
* * * .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getDiagnosticInfoFieldBuilder() { if (diagnosticInfoBuilder_ == null) { diagnosticInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getDiagnosticInfo(), getParentForChildren(), isClean()); diagnosticInfo_ = null; } return diagnosticInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3.Intent triggeredIntent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Intent, com.google.cloud.dialogflow.cx.v3.Intent.Builder, com.google.cloud.dialogflow.cx.v3.IntentOrBuilder> triggeredIntentBuilder_; /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; * * @return Whether the triggeredIntent field is set. */ public boolean hasTriggeredIntent() { return triggeredIntentBuilder_ != null || triggeredIntent_ != null; } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; * * @return The triggeredIntent. */ public com.google.cloud.dialogflow.cx.v3.Intent getTriggeredIntent() { if (triggeredIntentBuilder_ == null) { return triggeredIntent_ == null ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() : triggeredIntent_; } else { return triggeredIntentBuilder_.getMessage(); } } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public Builder setTriggeredIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (triggeredIntentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } triggeredIntent_ = value; onChanged(); } else { triggeredIntentBuilder_.setMessage(value); } return this; } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public Builder setTriggeredIntent( com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) { if (triggeredIntentBuilder_ == null) { triggeredIntent_ = builderForValue.build(); onChanged(); } else { triggeredIntentBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public Builder mergeTriggeredIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (triggeredIntentBuilder_ == null) { if (triggeredIntent_ != null) { triggeredIntent_ = com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(triggeredIntent_) .mergeFrom(value) .buildPartial(); } else { triggeredIntent_ = value; } onChanged(); } else { triggeredIntentBuilder_.mergeFrom(value); } return this; } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public Builder clearTriggeredIntent() { if (triggeredIntentBuilder_ == null) { triggeredIntent_ = null; onChanged(); } else { triggeredIntent_ = null; triggeredIntentBuilder_ = null; } return this; } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getTriggeredIntentBuilder() { onChanged(); return getTriggeredIntentFieldBuilder().getBuilder(); } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBuilder() { if (triggeredIntentBuilder_ != null) { return triggeredIntentBuilder_.getMessageOrBuilder(); } else { return triggeredIntent_ == null ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() : triggeredIntent_; } } /** * * *
       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Intent, com.google.cloud.dialogflow.cx.v3.Intent.Builder, com.google.cloud.dialogflow.cx.v3.IntentOrBuilder> getTriggeredIntentFieldBuilder() { if (triggeredIntentBuilder_ == null) { triggeredIntentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Intent, com.google.cloud.dialogflow.cx.v3.Intent.Builder, com.google.cloud.dialogflow.cx.v3.IntentOrBuilder>( getTriggeredIntent(), getParentForChildren(), isClean()); triggeredIntent_ = null; } return triggeredIntentBuilder_; } private com.google.cloud.dialogflow.cx.v3.Page currentPage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Page, com.google.cloud.dialogflow.cx.v3.Page.Builder, com.google.cloud.dialogflow.cx.v3.PageOrBuilder> currentPageBuilder_; /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; * * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { return currentPageBuilder_ != null || currentPage_ != null; } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; * * @return The currentPage. */ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { if (currentPageBuilder_ == null) { return currentPage_ == null ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() : currentPage_; } else { return currentPageBuilder_.getMessage(); } } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { if (currentPageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentPage_ = value; onChanged(); } else { currentPageBuilder_.setMessage(value); } return this; } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public Builder setCurrentPage( com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { if (currentPageBuilder_ == null) { if (currentPage_ != null) { currentPage_ = com.google.cloud.dialogflow.cx.v3.Page.newBuilder(currentPage_) .mergeFrom(value) .buildPartial(); } else { currentPage_ = value; } onChanged(); } else { currentPageBuilder_.mergeFrom(value); } return this; } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public Builder clearCurrentPage() { if (currentPageBuilder_ == null) { currentPage_ = null; onChanged(); } else { currentPage_ = null; currentPageBuilder_ = null; } return this; } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() { if (currentPageBuilder_ != null) { return currentPageBuilder_.getMessageOrBuilder(); } else { return currentPage_ == null ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() : currentPage_; } } /** * * *
       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
       * will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Page, com.google.cloud.dialogflow.cx.v3.Page.Builder, com.google.cloud.dialogflow.cx.v3.PageOrBuilder> getCurrentPageFieldBuilder() { if (currentPageBuilder_ == null) { currentPageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Page, com.google.cloud.dialogflow.cx.v3.Page.Builder, com.google.cloud.dialogflow.cx.v3.PageOrBuilder>( getCurrentPage(), getParentForChildren(), isClean()); currentPage_ = null; } return currentPageBuilder_; } private java.util.List textResponses_ = java.util.Collections.emptyList(); private void ensureTextResponsesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { textResponses_ = new java.util.ArrayList( textResponses_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder> textResponsesBuilder_; /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public java.util.List getTextResponsesList() { if (textResponsesBuilder_ == null) { return java.util.Collections.unmodifiableList(textResponses_); } else { return textResponsesBuilder_.getMessageList(); } } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public int getTextResponsesCount() { if (textResponsesBuilder_ == null) { return textResponses_.size(); } else { return textResponsesBuilder_.getCount(); } } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getTextResponses(int index) { if (textResponsesBuilder_ == null) { return textResponses_.get(index); } else { return textResponsesBuilder_.getMessage(index); } } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder setTextResponses( int index, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text value) { if (textResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTextResponsesIsMutable(); textResponses_.set(index, value); onChanged(); } else { textResponsesBuilder_.setMessage(index, value); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder setTextResponses( int index, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder builderForValue) { if (textResponsesBuilder_ == null) { ensureTextResponsesIsMutable(); textResponses_.set(index, builderForValue.build()); onChanged(); } else { textResponsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder addTextResponses( com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text value) { if (textResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTextResponsesIsMutable(); textResponses_.add(value); onChanged(); } else { textResponsesBuilder_.addMessage(value); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder addTextResponses( int index, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text value) { if (textResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTextResponsesIsMutable(); textResponses_.add(index, value); onChanged(); } else { textResponsesBuilder_.addMessage(index, value); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder addTextResponses( com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder builderForValue) { if (textResponsesBuilder_ == null) { ensureTextResponsesIsMutable(); textResponses_.add(builderForValue.build()); onChanged(); } else { textResponsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder addTextResponses( int index, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder builderForValue) { if (textResponsesBuilder_ == null) { ensureTextResponsesIsMutable(); textResponses_.add(index, builderForValue.build()); onChanged(); } else { textResponsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder addAllTextResponses( java.lang.Iterable values) { if (textResponsesBuilder_ == null) { ensureTextResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textResponses_); onChanged(); } else { textResponsesBuilder_.addAllMessages(values); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder clearTextResponses() { if (textResponsesBuilder_ == null) { textResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { textResponsesBuilder_.clear(); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public Builder removeTextResponses(int index) { if (textResponsesBuilder_ == null) { ensureTextResponsesIsMutable(); textResponses_.remove(index); onChanged(); } else { textResponsesBuilder_.remove(index); } return this; } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder getTextResponsesBuilder( int index) { return getTextResponsesFieldBuilder().getBuilder(index); } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextResponsesOrBuilder(int index) { if (textResponsesBuilder_ == null) { return textResponses_.get(index); } else { return textResponsesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder> getTextResponsesOrBuilderList() { if (textResponsesBuilder_ != null) { return textResponsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(textResponses_); } } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder addTextResponsesBuilder() { return getTextResponsesFieldBuilder() .addBuilder( com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.getDefaultInstance()); } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder addTextResponsesBuilder( int index) { return getTextResponsesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.getDefaultInstance()); } /** * * *
       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
       * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; * */ public java.util.List getTextResponsesBuilderList() { return getTextResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder> getTextResponsesFieldBuilder() { if (textResponsesBuilder_ == null) { textResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder>( textResponses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); textResponses_ = null; } return textResponsesBuilder_; } private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; * * @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(); } } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ public com.google.rpc.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** * * *
       * Response error from the agent in the test result. If set, other output
       * is empty.
       * 
* * .google.rpc.Status status = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) private static final com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VirtualAgentOutput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VirtualAgentOutput(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int USER_INPUT_FIELD_NUMBER = 1; private com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput userInput_; /** * * *
   * The user input.
   * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; * * @return Whether the userInput field is set. */ @java.lang.Override public boolean hasUserInput() { return userInput_ != null; } /** * * *
   * The user input.
   * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; * * @return The userInput. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput getUserInput() { return userInput_ == null ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.getDefaultInstance() : userInput_; } /** * * *
   * The user input.
   * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder getUserInputOrBuilder() { return getUserInput(); } public static final int VIRTUAL_AGENT_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtualAgentOutput_; /** * * *
   * The virtual agent output.
   * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * * * @return Whether the virtualAgentOutput field is set. */ @java.lang.Override public boolean hasVirtualAgentOutput() { return virtualAgentOutput_ != null; } /** * * *
   * The virtual agent output.
   * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * * * @return The virtualAgentOutput. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput getVirtualAgentOutput() { return virtualAgentOutput_ == null ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.getDefaultInstance() : virtualAgentOutput_; } /** * * *
   * The virtual agent output.
   * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder() { return getVirtualAgentOutput(); } 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 (userInput_ != null) { output.writeMessage(1, getUserInput()); } if (virtualAgentOutput_ != null) { output.writeMessage(2, getVirtualAgentOutput()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (userInput_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserInput()); } if (virtualAgentOutput_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVirtualAgentOutput()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ConversationTurn)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.ConversationTurn other = (com.google.cloud.dialogflow.cx.v3.ConversationTurn) obj; if (hasUserInput() != other.hasUserInput()) return false; if (hasUserInput()) { if (!getUserInput().equals(other.getUserInput())) return false; } if (hasVirtualAgentOutput() != other.hasVirtualAgentOutput()) return false; if (hasVirtualAgentOutput()) { if (!getVirtualAgentOutput().equals(other.getVirtualAgentOutput())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUserInput()) { hash = (37 * hash) + USER_INPUT_FIELD_NUMBER; hash = (53 * hash) + getUserInput().hashCode(); } if (hasVirtualAgentOutput()) { hash = (37 * hash) + VIRTUAL_AGENT_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getVirtualAgentOutput().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn 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.cx.v3.ConversationTurn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn 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.cx.v3.ConversationTurn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.ConversationTurn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * One interaction between a human and virtual agent. The human provides some
   * input and the virtual agent provides a response.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ConversationTurn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ConversationTurn) com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.ConversationTurn.class, com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3.ConversationTurn.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); if (userInputBuilder_ == null) { userInput_ = null; } else { userInput_ = null; userInputBuilder_ = null; } if (virtualAgentOutputBuilder_ == null) { virtualAgentOutput_ = null; } else { virtualAgentOutput_ = null; virtualAgentOutputBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.ConversationTurn.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn build() { com.google.cloud.dialogflow.cx.v3.ConversationTurn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn buildPartial() { com.google.cloud.dialogflow.cx.v3.ConversationTurn result = new com.google.cloud.dialogflow.cx.v3.ConversationTurn(this); if (userInputBuilder_ == null) { result.userInput_ = userInput_; } else { result.userInput_ = userInputBuilder_.build(); } if (virtualAgentOutputBuilder_ == null) { result.virtualAgentOutput_ = virtualAgentOutput_; } else { result.virtualAgentOutput_ = virtualAgentOutputBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.ConversationTurn) { return mergeFrom((com.google.cloud.dialogflow.cx.v3.ConversationTurn) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ConversationTurn other) { if (other == com.google.cloud.dialogflow.cx.v3.ConversationTurn.getDefaultInstance()) return this; if (other.hasUserInput()) { mergeUserInput(other.getUserInput()); } if (other.hasVirtualAgentOutput()) { mergeVirtualAgentOutput(other.getVirtualAgentOutput()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.ConversationTurn parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.ConversationTurn) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput userInput_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder> userInputBuilder_; /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; * * @return Whether the userInput field is set. */ public boolean hasUserInput() { return userInputBuilder_ != null || userInput_ != null; } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; * * @return The userInput. */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput getUserInput() { if (userInputBuilder_ == null) { return userInput_ == null ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.getDefaultInstance() : userInput_; } else { return userInputBuilder_.getMessage(); } } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public Builder setUserInput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput value) { if (userInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } userInput_ = value; onChanged(); } else { userInputBuilder_.setMessage(value); } return this; } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public Builder setUserInput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder builderForValue) { if (userInputBuilder_ == null) { userInput_ = builderForValue.build(); onChanged(); } else { userInputBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public Builder mergeUserInput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput value) { if (userInputBuilder_ == null) { if (userInput_ != null) { userInput_ = com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.newBuilder(userInput_) .mergeFrom(value) .buildPartial(); } else { userInput_ = value; } onChanged(); } else { userInputBuilder_.mergeFrom(value); } return this; } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public Builder clearUserInput() { if (userInputBuilder_ == null) { userInput_ = null; onChanged(); } else { userInput_ = null; userInputBuilder_ = null; } return this; } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder getUserInputBuilder() { onChanged(); return getUserInputFieldBuilder().getBuilder(); } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder getUserInputOrBuilder() { if (userInputBuilder_ != null) { return userInputBuilder_.getMessageOrBuilder(); } else { return userInput_ == null ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.getDefaultInstance() : userInput_; } } /** * * *
     * The user input.
     * 
* * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder> getUserInputFieldBuilder() { if (userInputBuilder_ == null) { userInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder>( getUserInput(), getParentForChildren(), isClean()); userInput_ = null; } return userInputBuilder_; } private com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtualAgentOutput_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder> virtualAgentOutputBuilder_; /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * * * @return Whether the virtualAgentOutput field is set. */ public boolean hasVirtualAgentOutput() { return virtualAgentOutputBuilder_ != null || virtualAgentOutput_ != null; } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * * * @return The virtualAgentOutput. */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput getVirtualAgentOutput() { if (virtualAgentOutputBuilder_ == null) { return virtualAgentOutput_ == null ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput .getDefaultInstance() : virtualAgentOutput_; } else { return virtualAgentOutputBuilder_.getMessage(); } } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ public Builder setVirtualAgentOutput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput value) { if (virtualAgentOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } virtualAgentOutput_ = value; onChanged(); } else { virtualAgentOutputBuilder_.setMessage(value); } return this; } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ public Builder setVirtualAgentOutput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder builderForValue) { if (virtualAgentOutputBuilder_ == null) { virtualAgentOutput_ = builderForValue.build(); onChanged(); } else { virtualAgentOutputBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ public Builder mergeVirtualAgentOutput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput value) { if (virtualAgentOutputBuilder_ == null) { if (virtualAgentOutput_ != null) { virtualAgentOutput_ = com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.newBuilder( virtualAgentOutput_) .mergeFrom(value) .buildPartial(); } else { virtualAgentOutput_ = value; } onChanged(); } else { virtualAgentOutputBuilder_.mergeFrom(value); } return this; } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ public Builder clearVirtualAgentOutput() { if (virtualAgentOutputBuilder_ == null) { virtualAgentOutput_ = null; onChanged(); } else { virtualAgentOutput_ = null; virtualAgentOutputBuilder_ = null; } return this; } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder getVirtualAgentOutputBuilder() { onChanged(); return getVirtualAgentOutputFieldBuilder().getBuilder(); } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder() { if (virtualAgentOutputBuilder_ != null) { return virtualAgentOutputBuilder_.getMessageOrBuilder(); } else { return virtualAgentOutput_ == null ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput .getDefaultInstance() : virtualAgentOutput_; } } /** * * *
     * The virtual agent output.
     * 
* * * .google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder> getVirtualAgentOutputFieldBuilder() { if (virtualAgentOutputBuilder_ == null) { virtualAgentOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder>( getVirtualAgentOutput(), getParentForChildren(), isClean()); virtualAgentOutput_ = null; } return virtualAgentOutputBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ConversationTurn) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ConversationTurn) private static final com.google.cloud.dialogflow.cx.v3.ConversationTurn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ConversationTurn(); } public static com.google.cloud.dialogflow.cx.v3.ConversationTurn getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConversationTurn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConversationTurn(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy