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

com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 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/v3beta1/webhook.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.cx.v3beta1;

/**
 *
 *
 * 
 * The request message for a webhook call. The request is sent as a JSON object
 * and the field names will be presented in camel cases.
 *
 * You may see undocumented fields in an actual request. These fields are used
 * internally by Dialogflow and should be ignored.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest} */ public final class WebhookRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest) WebhookRequestOrBuilder { private static final long serialVersionUID = 0L; // Use WebhookRequest.newBuilder() to construct. private WebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebhookRequest() { detectIntentResponseId_ = ""; languageCode_ = ""; messages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebhookRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.Builder.class); } public interface FulfillmentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) com.google.protobuf.MessageOrBuilder { /** * * *
     * Always present.
     * The value of the
     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
     * field will be populated in this field by Dialogflow when the associated
     * webhook is called. The tag is typically used by the webhook service to
     * identify which fulfillment is being called, but it could be used for
     * other purposes.
     * 
* * string tag = 1; * * @return The tag. */ java.lang.String getTag(); /** * * *
     * Always present.
     * The value of the
     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
     * field will be populated in this field by Dialogflow when the associated
     * webhook is called. The tag is typically used by the webhook service to
     * identify which fulfillment is being called, but it could be used for
     * other purposes.
     * 
* * string tag = 1; * * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); } /** * * *
   * Represents fulfillment information communicated to the webhook.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} */ public static final class FulfillmentInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) FulfillmentInfoOrBuilder { private static final long serialVersionUID = 0L; // Use FulfillmentInfo.newBuilder() to construct. private FulfillmentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FulfillmentInfo() { tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FulfillmentInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_FulfillmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_FulfillmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder.class); } public static final int TAG_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object tag_ = ""; /** * * *
     * Always present.
     * The value of the
     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
     * field will be populated in this field by Dialogflow when the associated
     * webhook is called. The tag is typically used by the webhook service to
     * identify which fulfillment is being called, but it could be used for
     * other purposes.
     * 
* * string tag = 1; * * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** * * *
     * Always present.
     * The value of the
     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
     * field will be populated in this field by Dialogflow when the associated
     * webhook is called. The tag is typically used by the webhook service to
     * identify which fulfillment is being called, but it could be used for
     * other purposes.
     * 
* * string tag = 1; * * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo other = (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) obj; if (!getTag().equals(other.getTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo 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.v3beta1.WebhookRequest.FulfillmentInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Represents fulfillment information communicated to the webhook.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_FulfillmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_FulfillmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder .class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_FulfillmentInfo_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo build() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tag_ = tag_; } } @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.v3beta1.WebhookRequest.FulfillmentInfo) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo .getDefaultInstance()) return this; if (!other.getTag().isEmpty()) { tag_ = other.tag_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object tag_ = ""; /** * * *
       * Always present.
       * The value of the
       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
       * field will be populated in this field by Dialogflow when the associated
       * webhook is called. The tag is typically used by the webhook service to
       * identify which fulfillment is being called, but it could be used for
       * other purposes.
       * 
* * string tag = 1; * * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Always present.
       * The value of the
       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
       * field will be populated in this field by Dialogflow when the associated
       * webhook is called. The tag is typically used by the webhook service to
       * identify which fulfillment is being called, but it could be used for
       * other purposes.
       * 
* * string tag = 1; * * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Always present.
       * The value of the
       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
       * field will be populated in this field by Dialogflow when the associated
       * webhook is called. The tag is typically used by the webhook service to
       * identify which fulfillment is being called, but it could be used for
       * other purposes.
       * 
* * string tag = 1; * * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Always present.
       * The value of the
       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
       * field will be populated in this field by Dialogflow when the associated
       * webhook is called. The tag is typically used by the webhook service to
       * identify which fulfillment is being called, but it could be used for
       * other purposes.
       * 
* * string tag = 1; * * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Always present.
       * The value of the
       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag]
       * field will be populated in this field by Dialogflow when the associated
       * webhook is called. The tag is typically used by the webhook service to
       * identify which fulfillment is being called, but it could be used for
       * other purposes.
       * 
* * string tag = 1; * * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; bitField0_ |= 0x00000001; 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.v3beta1.WebhookRequest.FulfillmentInfo) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) private static final com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FulfillmentInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) com.google.protobuf.MessageOrBuilder { /** * * *
     * Always present. The unique identifier of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return The lastMatchedIntent. */ java.lang.String getLastMatchedIntent(); /** * * *
     * Always present. The unique identifier of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for lastMatchedIntent. */ com.google.protobuf.ByteString getLastMatchedIntentBytes(); /** * * *
     * Always present. The display name of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * 
* * string display_name = 3; * * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
     * Always present. The display name of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * 
* * string display_name = 3; * * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ int getParametersCount(); /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ boolean containsParameters(java.lang.String key); /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getParameters(); /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getParametersMap(); /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue defaultValue); /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(java.lang.String key); /** * * *
     * The confidence of the matched intent. Values range from 0.0 (completely
     * uncertain) to 1.0 (completely certain).
     * 
* * float confidence = 4; * * @return The confidence. */ float getConfidence(); } /** * * *
   * Represents intent information communicated to the webhook.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} */ public static final class IntentInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) IntentInfoOrBuilder { private static final long serialVersionUID = 0L; // Use IntentInfo.newBuilder() to construct. private IntentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntentInfo() { lastMatchedIntent_ = ""; displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IntentInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder.class); } public interface IntentParameterValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) com.google.protobuf.MessageOrBuilder { /** * * *
       * Always present. Original text value extracted from user utterance.
       * 
* * string original_value = 1; * * @return The originalValue. */ java.lang.String getOriginalValue(); /** * * *
       * Always present. Original text value extracted from user utterance.
       * 
* * string original_value = 1; * * @return The bytes for originalValue. */ com.google.protobuf.ByteString getOriginalValueBytes(); /** * * *
       * Always present. Structured value for the parameter extracted from user
       * utterance.
       * 
* * .google.protobuf.Value resolved_value = 2; * * @return Whether the resolvedValue field is set. */ boolean hasResolvedValue(); /** * * *
       * Always present. Structured value for the parameter extracted from user
       * utterance.
       * 
* * .google.protobuf.Value resolved_value = 2; * * @return The resolvedValue. */ com.google.protobuf.Value getResolvedValue(); /** * * *
       * Always present. Structured value for the parameter extracted from user
       * utterance.
       * 
* * .google.protobuf.Value resolved_value = 2; */ com.google.protobuf.ValueOrBuilder getResolvedValueOrBuilder(); } /** * * *
     * Represents a value for an intent parameter.
     * 
* * Protobuf type {@code * google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} */ public static final class IntentParameterValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) IntentParameterValueOrBuilder { private static final long serialVersionUID = 0L; // Use IntentParameterValue.newBuilder() to construct. private IntentParameterValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntentParameterValue() { originalValue_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IntentParameterValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_IntentParameterValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_IntentParameterValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.Builder.class); } private int bitField0_; public static final int ORIGINAL_VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object originalValue_ = ""; /** * * *
       * Always present. Original text value extracted from user utterance.
       * 
* * string original_value = 1; * * @return The originalValue. */ @java.lang.Override public java.lang.String getOriginalValue() { java.lang.Object ref = originalValue_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalValue_ = s; return s; } } /** * * *
       * Always present. Original text value extracted from user utterance.
       * 
* * string original_value = 1; * * @return The bytes for originalValue. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalValueBytes() { java.lang.Object ref = originalValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOLVED_VALUE_FIELD_NUMBER = 2; private com.google.protobuf.Value resolvedValue_; /** * * *
       * Always present. Structured value for the parameter extracted from user
       * utterance.
       * 
* * .google.protobuf.Value resolved_value = 2; * * @return Whether the resolvedValue field is set. */ @java.lang.Override public boolean hasResolvedValue() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Always present. Structured value for the parameter extracted from user
       * utterance.
       * 
* * .google.protobuf.Value resolved_value = 2; * * @return The resolvedValue. */ @java.lang.Override public com.google.protobuf.Value getResolvedValue() { return resolvedValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : resolvedValue_; } /** * * *
       * Always present. Structured value for the parameter extracted from user
       * utterance.
       * 
* * .google.protobuf.Value resolved_value = 2; */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getResolvedValueOrBuilder() { return resolvedValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : resolvedValue_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, originalValue_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getResolvedValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, originalValue_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue other = (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue) obj; if (!getOriginalValue().equals(other.getOriginalValue())) return false; if (hasResolvedValue() != other.hasResolvedValue()) return false; if (hasResolvedValue()) { if (!getResolvedValue().equals(other.getResolvedValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ORIGINAL_VALUE_FIELD_NUMBER; hash = (53 * hash) + getOriginalValue().hashCode(); if (hasResolvedValue()) { hash = (37 * hash) + RESOLVED_VALUE_FIELD_NUMBER; hash = (53 * hash) + getResolvedValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue 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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
       * Represents a value for an intent parameter.
       * 
* * Protobuf type {@code * google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_IntentParameterValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_IntentParameterValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResolvedValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; originalValue_ = ""; resolvedValue_ = null; if (resolvedValueBuilder_ != null) { resolvedValueBuilder_.dispose(); resolvedValueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_IntentParameterValue_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue build() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.originalValue_ = originalValue_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.resolvedValue_ = resolvedValueBuilder_ == null ? resolvedValue_ : resolvedValueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.getDefaultInstance()) return this; if (!other.getOriginalValue().isEmpty()) { originalValue_ = other.originalValue_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasResolvedValue()) { mergeResolvedValue(other.getResolvedValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { originalValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getResolvedValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object originalValue_ = ""; /** * * *
         * Always present. Original text value extracted from user utterance.
         * 
* * string original_value = 1; * * @return The originalValue. */ public java.lang.String getOriginalValue() { java.lang.Object ref = originalValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalValue_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * Always present. Original text value extracted from user utterance.
         * 
* * string original_value = 1; * * @return The bytes for originalValue. */ public com.google.protobuf.ByteString getOriginalValueBytes() { java.lang.Object ref = originalValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Always present. Original text value extracted from user utterance.
         * 
* * string original_value = 1; * * @param value The originalValue to set. * @return This builder for chaining. */ public Builder setOriginalValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalValue_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Always present. Original text value extracted from user utterance.
         * 
* * string original_value = 1; * * @return This builder for chaining. */ public Builder clearOriginalValue() { originalValue_ = getDefaultInstance().getOriginalValue(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
         * Always present. Original text value extracted from user utterance.
         * 
* * string original_value = 1; * * @param value The bytes for originalValue to set. * @return This builder for chaining. */ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalValue_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Value resolvedValue_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> resolvedValueBuilder_; /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; * * @return Whether the resolvedValue field is set. */ public boolean hasResolvedValue() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; * * @return The resolvedValue. */ public com.google.protobuf.Value getResolvedValue() { if (resolvedValueBuilder_ == null) { return resolvedValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : resolvedValue_; } else { return resolvedValueBuilder_.getMessage(); } } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public Builder setResolvedValue(com.google.protobuf.Value value) { if (resolvedValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resolvedValue_ = value; } else { resolvedValueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValue) { if (resolvedValueBuilder_ == null) { resolvedValue_ = builderForValue.build(); } else { resolvedValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public Builder mergeResolvedValue(com.google.protobuf.Value value) { if (resolvedValueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && resolvedValue_ != null && resolvedValue_ != com.google.protobuf.Value.getDefaultInstance()) { getResolvedValueBuilder().mergeFrom(value); } else { resolvedValue_ = value; } } else { resolvedValueBuilder_.mergeFrom(value); } if (resolvedValue_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public Builder clearResolvedValue() { bitField0_ = (bitField0_ & ~0x00000002); resolvedValue_ = null; if (resolvedValueBuilder_ != null) { resolvedValueBuilder_.dispose(); resolvedValueBuilder_ = null; } onChanged(); return this; } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public com.google.protobuf.Value.Builder getResolvedValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResolvedValueFieldBuilder().getBuilder(); } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public com.google.protobuf.ValueOrBuilder getResolvedValueOrBuilder() { if (resolvedValueBuilder_ != null) { return resolvedValueBuilder_.getMessageOrBuilder(); } else { return resolvedValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : resolvedValue_; } } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> getResolvedValueFieldBuilder() { if (resolvedValueBuilder_ == null) { resolvedValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( getResolvedValue(), getParentForChildren(), isClean()); resolvedValue_ = null; } return resolvedValueBuilder_; } @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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) private static final com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue(); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntentParameterValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int LAST_MATCHED_INTENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object lastMatchedIntent_ = ""; /** * * *
     * Always present. The unique identifier of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return The lastMatchedIntent. */ @java.lang.Override public java.lang.String getLastMatchedIntent() { java.lang.Object ref = lastMatchedIntent_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastMatchedIntent_ = s; return s; } } /** * * *
     * Always present. The unique identifier of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for lastMatchedIntent. */ @java.lang.Override public com.google.protobuf.ByteString getLastMatchedIntentBytes() { java.lang.Object ref = lastMatchedIntent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastMatchedIntent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
     * Always present. The display name of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * 
* * string display_name = 3; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** * * *
     * Always present. The display name of the last matched
     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
     * 
* * string display_name = 3; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETERS_FIELD_NUMBER = 2; private static final class ParametersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_ParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters_; private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } /** Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getParameters() { return getParametersMap(); } /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getParametersMap() { return internalGetParameters().getMap(); } /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue getParametersOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Parameters identified as a result of intent matching. This is a map of
     * the name of the identified parameter to the value of the parameter
     * identified from the user's utterance. All parameters defined in the
     * matched intent that are identified will be surfaced here.
     * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** * * *
     * The confidence of the matched intent. Values range from 0.0 (completely
     * uncertain) to 1.0 (completely certain).
     * 
* * float confidence = 4; * * @return The confidence. */ @java.lang.Override public float getConfidence() { return confidence_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastMatchedIntent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastMatchedIntent_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { output.writeFloat(4, confidence_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastMatchedIntent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastMatchedIntent_); } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> entry : internalGetParameters().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue> parameters__ = ParametersDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo other = (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) obj; if (!getLastMatchedIntent().equals(other.getLastMatchedIntent())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!internalGetParameters().equals(other.internalGetParameters())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LAST_MATCHED_INTENT_FIELD_NUMBER; hash = (53 * hash) + getLastMatchedIntent().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); if (!internalGetParameters().getMap().isEmpty()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetParameters().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo 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.v3beta1.WebhookRequest.IntentInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Represents intent information communicated to the webhook.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: return internalGetMutableParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; lastMatchedIntent_ = ""; displayName_ = ""; internalGetMutableParameters().clear(); confidence_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_IntentInfo_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo build() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lastMatchedIntent_ = lastMatchedIntent_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.parameters_ = internalGetParameters().build(ParametersDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000008) != 0)) { result.confidence_ = confidence_; } } @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.v3beta1.WebhookRequest.IntentInfo) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .getDefaultInstance()) return this; if (!other.getLastMatchedIntent().isEmpty()) { lastMatchedIntent_ = other.lastMatchedIntent_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); bitField0_ |= 0x00000004; if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { lastMatchedIntent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue> parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParameters() .ensureBuilderMap() .put(parameters__.getKey(), parameters__.getValue()); bitField0_ |= 0x00000004; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 26 case 37: { confidence_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object lastMatchedIntent_ = ""; /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return The lastMatchedIntent. */ public java.lang.String getLastMatchedIntent() { java.lang.Object ref = lastMatchedIntent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastMatchedIntent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for lastMatchedIntent. */ public com.google.protobuf.ByteString getLastMatchedIntentBytes() { java.lang.Object ref = lastMatchedIntent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastMatchedIntent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @param value The lastMatchedIntent to set. * @return This builder for chaining. */ public Builder setLastMatchedIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } lastMatchedIntent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearLastMatchedIntent() { lastMatchedIntent_ = getDefaultInstance().getLastMatchedIntent(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes for lastMatchedIntent to set. * @return This builder for chaining. */ public Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastMatchedIntent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
       * Always present. The display name of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * 
* * string display_name = 3; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Always present. The display name of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * 
* * string display_name = 3; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Always present. The display name of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * 
* * string display_name = 3; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Always present. The display name of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * 
* * string display_name = 3; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Always present. The display name of the last matched
       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       * 
* * string display_name = 3; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private static final class ParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue> { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue build( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder val) { if (val instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue) { return (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue) val; } return ((com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.Builder) val) .build(); } @java.lang.Override public com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue> defaultEntry() { return ParametersDefaultEntryHolder.defaultEntry; } }; private static final ParametersConverter parametersConverter = new ParametersConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue .Builder> parameters_; private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue .Builder> internalGetParameters() { if (parameters_ == null) { return new com.google.protobuf.MapFieldBuilder<>(parametersConverter); } return parameters_; } private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue .Builder> internalGetMutableParameters() { if (parameters_ == null) { parameters_ = new com.google.protobuf.MapFieldBuilder<>(parametersConverter); } bitField0_ |= 0x00000004; onChanged(); return parameters_; } public int getParametersCount() { return internalGetParameters().ensureBuilderMap().size(); } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetParameters().ensureBuilderMap().containsKey(key); } /** Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getParameters() { return getParametersMap(); } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getParametersMap() { return internalGetParameters().getImmutableMap(); } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue getParametersOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder> map = internalGetMutableParameters().ensureBuilderMap(); return map.containsKey(key) ? parametersConverter.build(map.get(key)) : defaultValue; } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder> map = internalGetMutableParameters().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return parametersConverter.build(map.get(key)); } public Builder clearParameters() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParameters().clear(); return this; } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public Builder removeParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableParameters().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters() { bitField0_ |= 0x00000004; return internalGetMutableParameters().ensureMessageMap(); } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public Builder putParameters( java.lang.String key, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableParameters().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public Builder putAllParameters( java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue> values) { for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableParameters().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000004; return this; } /** * * *
       * Parameters identified as a result of intent matching. This is a map of
       * the name of the identified parameter to the value of the parameter
       * identified from the user's utterance. All parameters defined in the
       * matched intent that are identified will be surfaced here.
       * 
* * * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue .Builder putParametersBuilderIfAbsent(java.lang.String key) { java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder> builderMap = internalGetMutableParameters().ensureBuilderMap(); com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue .newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) { entry = ((com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue) entry) .toBuilder(); builderMap.put(key, entry); } return (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue.Builder) entry; } private float confidence_; /** * * *
       * The confidence of the matched intent. Values range from 0.0 (completely
       * uncertain) to 1.0 (completely certain).
       * 
* * float confidence = 4; * * @return The confidence. */ @java.lang.Override public float getConfidence() { return confidence_; } /** * * *
       * The confidence of the matched intent. Values range from 0.0 (completely
       * uncertain) to 1.0 (completely certain).
       * 
* * float confidence = 4; * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { confidence_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The confidence of the matched intent. Values range from 0.0 (completely
       * uncertain) to 1.0 (completely certain).
       * 
* * float confidence = 4; * * @return This builder for chaining. */ public Builder clearConfidence() { bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; 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.v3beta1.WebhookRequest.IntentInfo) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) private static final com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntentInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SentimentAnalysisResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) com.google.protobuf.MessageOrBuilder { /** * * *
     * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
     *  sentiment).
     * 
* * float score = 1; * * @return The score. */ float getScore(); /** * * *
     * A non-negative number in the [0, +inf) range, which represents the
     * absolute magnitude of sentiment, regardless of score (positive or
     * negative).
     * 
* * float magnitude = 2; * * @return The magnitude. */ float getMagnitude(); } /** * * *
   * Represents the result of sentiment analysis.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} */ public static final class SentimentAnalysisResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) SentimentAnalysisResultOrBuilder { private static final long serialVersionUID = 0L; // Use SentimentAnalysisResult.newBuilder() to construct. private SentimentAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SentimentAnalysisResult() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SentimentAnalysisResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_SentimentAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_SentimentAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.Builder .class); } public static final int SCORE_FIELD_NUMBER = 1; private float score_ = 0F; /** * * *
     * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
     *  sentiment).
     * 
* * float score = 1; * * @return The score. */ @java.lang.Override public float getScore() { return score_; } public static final int MAGNITUDE_FIELD_NUMBER = 2; private float magnitude_ = 0F; /** * * *
     * A non-negative number in the [0, +inf) range, which represents the
     * absolute magnitude of sentiment, regardless of score (positive or
     * negative).
     * 
* * float magnitude = 2; * * @return The magnitude. */ @java.lang.Override public float getMagnitude() { return magnitude_; } 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 (java.lang.Float.floatToRawIntBits(score_) != 0) { output.writeFloat(1, score_); } if (java.lang.Float.floatToRawIntBits(magnitude_) != 0) { output.writeFloat(2, magnitude_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Float.floatToRawIntBits(score_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } if (java.lang.Float.floatToRawIntBits(magnitude_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, magnitude_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult other = (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) obj; if (java.lang.Float.floatToIntBits(getScore()) != java.lang.Float.floatToIntBits(other.getScore())) return false; if (java.lang.Float.floatToIntBits(getMagnitude()) != java.lang.Float.floatToIntBits(other.getMagnitude())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + MAGNITUDE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getMagnitude()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult 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.v3beta1.WebhookRequest.SentimentAnalysisResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Represents the result of sentiment analysis.
     * 
* * Protobuf type {@code * google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_SentimentAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_SentimentAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; score_ = 0F; magnitude_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_SentimentAnalysisResult_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult build() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.magnitude_ = magnitude_; } } @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.v3beta1.WebhookRequest.SentimentAnalysisResult) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } if (other.getMagnitude() != 0F) { setMagnitude(other.getMagnitude()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { score_ = input.readFloat(); bitField0_ |= 0x00000001; break; } // case 13 case 21: { magnitude_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private float score_; /** * * *
       * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
       *  sentiment).
       * 
* * float score = 1; * * @return The score. */ @java.lang.Override public float getScore() { return score_; } /** * * *
       * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
       *  sentiment).
       * 
* * float score = 1; * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { score_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
       *  sentiment).
       * 
* * float score = 1; * * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; onChanged(); return this; } private float magnitude_; /** * * *
       * A non-negative number in the [0, +inf) range, which represents the
       * absolute magnitude of sentiment, regardless of score (positive or
       * negative).
       * 
* * float magnitude = 2; * * @return The magnitude. */ @java.lang.Override public float getMagnitude() { return magnitude_; } /** * * *
       * A non-negative number in the [0, +inf) range, which represents the
       * absolute magnitude of sentiment, regardless of score (positive or
       * negative).
       * 
* * float magnitude = 2; * * @param value The magnitude to set. * @return This builder for chaining. */ public Builder setMagnitude(float value) { magnitude_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * A non-negative number in the [0, +inf) range, which represents the
       * absolute magnitude of sentiment, regardless of score (positive or
       * negative).
       * 
* * float magnitude = 2; * * @return This builder for chaining. */ public Builder clearMagnitude() { bitField0_ = (bitField0_ & ~0x00000002); magnitude_ = 0F; 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.v3beta1.WebhookRequest.SentimentAnalysisResult) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) private static final com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest .SentimentAnalysisResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SentimentAnalysisResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int queryCase_ = 0; @SuppressWarnings("serial") private java.lang.Object query_; public enum QueryCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT(10), TRIGGER_INTENT(11), TRANSCRIPT(12), TRIGGER_EVENT(14), DTMF_DIGITS(17), QUERY_NOT_SET(0); private final int value; private QueryCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static QueryCase valueOf(int value) { return forNumber(value); } public static QueryCase forNumber(int value) { switch (value) { case 10: return TEXT; case 11: return TRIGGER_INTENT; case 12: return TRANSCRIPT; case 14: return TRIGGER_EVENT; case 17: return DTMF_DIGITS; case 0: return QUERY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public QueryCase getQueryCase() { return QueryCase.forNumber(queryCase_); } public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object detectIntentResponseId_ = ""; /** * * *
   * Always present. The unique identifier of the
   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
   * that will be returned to the API caller.
   * 
* * string detect_intent_response_id = 1; * * @return The detectIntentResponseId. */ @java.lang.Override public java.lang.String getDetectIntentResponseId() { java.lang.Object ref = detectIntentResponseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectIntentResponseId_ = s; return s; } } /** * * *
   * Always present. The unique identifier of the
   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
   * that will be returned to the API caller.
   * 
* * string detect_intent_response_id = 1; * * @return The bytes for detectIntentResponseId. */ @java.lang.Override public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() { java.lang.Object ref = detectIntentResponseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectIntentResponseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 10; /** * * *
   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
   * was provided as input, this field will contain a copy of the text.
   * 
* * string text = 10; * * @return Whether the text field is set. */ public boolean hasText() { return queryCase_ == 10; } /** * * *
   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
   * was provided as input, this field will contain a copy of the text.
   * 
* * string text = 10; * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = ""; if (queryCase_ == 10) { ref = query_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 10) { query_ = s; } return s; } } /** * * *
   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
   * was provided as input, this field will contain a copy of the text.
   * 
* * string text = 10; * * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (queryCase_ == 10) { ref = query_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 10) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRIGGER_INTENT_FIELD_NUMBER = 11; /** * * *
   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
   * provided as input, this field will contain a copy of the intent
   * identifier. Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
   * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ public boolean hasTriggerIntent() { return queryCase_ == 11; } /** * * *
   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
   * provided as input, this field will contain a copy of the intent
   * identifier. Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
   * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ public java.lang.String getTriggerIntent() { java.lang.Object ref = ""; if (queryCase_ == 11) { ref = query_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 11) { query_ = s; } return s; } } /** * * *
   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
   * provided as input, this field will contain a copy of the intent
   * identifier. Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
   * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ public com.google.protobuf.ByteString getTriggerIntentBytes() { java.lang.Object ref = ""; if (queryCase_ == 11) { ref = query_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 11) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRANSCRIPT_FIELD_NUMBER = 12; /** * * *
   * If [natural language speech
   * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
   * input, this field will contain the transcript for the audio.
   * 
* * string transcript = 12; * * @return Whether the transcript field is set. */ public boolean hasTranscript() { return queryCase_ == 12; } /** * * *
   * If [natural language speech
   * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
   * input, this field will contain the transcript for the audio.
   * 
* * string transcript = 12; * * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = ""; if (queryCase_ == 12) { ref = query_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 12) { query_ = s; } return s; } } /** * * *
   * If [natural language speech
   * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
   * input, this field will contain the transcript for the audio.
   * 
* * string transcript = 12; * * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = ""; if (queryCase_ == 12) { ref = query_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 12) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRIGGER_EVENT_FIELD_NUMBER = 14; /** * * *
   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
   * as input, this field will contain the name of the event.
   * 
* * string trigger_event = 14; * * @return Whether the triggerEvent field is set. */ public boolean hasTriggerEvent() { return queryCase_ == 14; } /** * * *
   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
   * as input, this field will contain the name of the event.
   * 
* * string trigger_event = 14; * * @return The triggerEvent. */ public java.lang.String getTriggerEvent() { java.lang.Object ref = ""; if (queryCase_ == 14) { ref = query_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 14) { query_ = s; } return s; } } /** * * *
   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
   * as input, this field will contain the name of the event.
   * 
* * string trigger_event = 14; * * @return The bytes for triggerEvent. */ public com.google.protobuf.ByteString getTriggerEventBytes() { java.lang.Object ref = ""; if (queryCase_ == 14) { ref = query_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 14) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DTMF_DIGITS_FIELD_NUMBER = 17; /** * * *
   * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
   * input, this field will contain the DTMF digits.
   * 
* * string dtmf_digits = 17; * * @return Whether the dtmfDigits field is set. */ public boolean hasDtmfDigits() { return queryCase_ == 17; } /** * * *
   * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
   * input, this field will contain the DTMF digits.
   * 
* * string dtmf_digits = 17; * * @return The dtmfDigits. */ public java.lang.String getDtmfDigits() { java.lang.Object ref = ""; if (queryCase_ == 17) { ref = query_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 17) { query_ = s; } return s; } } /** * * *
   * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
   * input, this field will contain the DTMF digits.
   * 
* * string dtmf_digits = 17; * * @return The bytes for dtmfDigits. */ public com.google.protobuf.ByteString getDtmfDigitsBytes() { java.lang.Object ref = ""; if (queryCase_ == 17) { ref = query_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 17) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** * * *
   * The language code specified in the [original
   * request][QueryInput.language_code].
   * 
* * string language_code = 15; * * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** * * *
   * The language code specified in the [original
   * request][QueryInput.language_code].
   * 
* * string language_code = 15; * * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FULFILLMENT_INFO_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillmentInfo_; /** * * *
   * Always present. Information about the fulfillment that triggered this
   * webhook call.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return Whether the fulfillmentInfo field is set. */ @java.lang.Override public boolean hasFulfillmentInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Always present. Information about the fulfillment that triggered this
   * webhook call.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return The fulfillmentInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo getFulfillmentInfo() { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.getDefaultInstance() : fulfillmentInfo_; } /** * * *
   * Always present. Information about the fulfillment that triggered this
   * webhook call.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder() { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.getDefaultInstance() : fulfillmentInfo_; } public static final int INTENT_INFO_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intentInfo_; /** * * *
   * Information about the last matched intent.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; * * @return Whether the intentInfo field is set. */ @java.lang.Override public boolean hasIntentInfo() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Information about the last matched intent.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; * * @return The intentInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo getIntentInfo() { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } /** * * *
   * Information about the last matched intent.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder() { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } public static final int PAGE_INFO_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.cx.v3beta1.PageInfo pageInfo_; /** * * *
   * Information about page status.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; * * @return Whether the pageInfo field is set. */ @java.lang.Override public boolean hasPageInfo() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Information about page status.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; * * @return The pageInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfo getPageInfo() { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance() : pageInfo_; } /** * * *
   * Information about page status.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder getPageInfoOrBuilder() { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance() : pageInfo_; } public static final int SESSION_INFO_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.cx.v3beta1.SessionInfo sessionInfo_; /** * * *
   * Information about session status.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; * * @return Whether the sessionInfo field is set. */ @java.lang.Override public boolean hasSessionInfo() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Information about session status.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; * * @return The sessionInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo getSessionInfo() { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance() : sessionInfo_; } /** * * *
   * Information about session status.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder getSessionInfoOrBuilder() { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance() : sessionInfo_; } public static final int MESSAGES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List messages_; /** * * *
   * The list of rich message responses to present to the user. Webhook can
   * choose to append or replace this list in
   * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ @java.lang.Override public java.util.List getMessagesList() { return messages_; } /** * * *
   * The list of rich message responses to present to the user. Webhook can
   * choose to append or replace this list in
   * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ @java.lang.Override public java.util.List getMessagesOrBuilderList() { return messages_; } /** * * *
   * The list of rich message responses to present to the user. Webhook can
   * choose to append or replace this list in
   * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ @java.lang.Override public int getMessagesCount() { return messages_.size(); } /** * * *
   * The list of rich message responses to present to the user. Webhook can
   * choose to append or replace this list in
   * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index) { return messages_.get(index); } /** * * *
   * The list of rich message responses to present to the user. Webhook can
   * choose to append or replace this list in
   * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getMessagesOrBuilder( int index) { return messages_.get(index); } public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.Struct payload_; /** * * *
   * Custom data set in
   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
   * 
* * .google.protobuf.Struct payload = 8; * * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Custom data set in
   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
   * 
* * .google.protobuf.Struct payload = 8; * * @return The payload. */ @java.lang.Override public com.google.protobuf.Struct getPayload() { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } /** * * *
   * Custom data set in
   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
   * 
* * .google.protobuf.Struct payload = 8; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 9; private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentimentAnalysisResult_; /** * * *
   * The sentiment analysis result of the current user request. The field is
   * filled when sentiment analysis is configured to be enabled for the request.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return Whether the sentimentAnalysisResult field is set. */ @java.lang.Override public boolean hasSentimentAnalysisResult() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * The sentiment analysis result of the current user request. The field is
   * filled when sentiment analysis is configured to be enabled for the request.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return The sentimentAnalysisResult. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult getSentimentAnalysisResult() { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance() : sentimentAnalysisResult_; } /** * * *
   * The sentiment analysis result of the current user request. The field is
   * filled when sentiment analysis is configured to be enabled for the request.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance() : sentimentAnalysisResult_; } public static final int LANGUAGE_INFO_FIELD_NUMBER = 18; private com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo languageInfo_; /** * * *
   * Information about the language of the request.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; * * @return Whether the languageInfo field is set. */ @java.lang.Override public boolean hasLanguageInfo() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * Information about the language of the request.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; * * @return The languageInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo getLanguageInfo() { return languageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.getDefaultInstance() : languageInfo_; } /** * * *
   * Information about the language of the request.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { return languageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.getDefaultInstance() : languageInfo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectIntentResponseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detectIntentResponseId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getIntentInfo()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getPageInfo()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getSessionInfo()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getFulfillmentInfo()); } for (int i = 0; i < messages_.size(); i++) { output.writeMessage(7, messages_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getPayload()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(9, getSentimentAnalysisResult()); } if (queryCase_ == 10) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, query_); } if (queryCase_ == 11) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, query_); } if (queryCase_ == 12) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, query_); } if (queryCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, query_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); } if (queryCase_ == 17) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, query_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(18, getLanguageInfo()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectIntentResponseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, detectIntentResponseId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIntentInfo()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPageInfo()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSessionInfo()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFulfillmentInfo()); } for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, messages_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPayload()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSentimentAnalysisResult()); } if (queryCase_ == 10) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, query_); } if (queryCase_ == 11) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, query_); } if (queryCase_ == 12) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, query_); } if (queryCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, query_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); } if (queryCase_ == 17) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, query_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLanguageInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest other = (com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest) obj; if (!getDetectIntentResponseId().equals(other.getDetectIntentResponseId())) return false; if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (hasFulfillmentInfo() != other.hasFulfillmentInfo()) return false; if (hasFulfillmentInfo()) { if (!getFulfillmentInfo().equals(other.getFulfillmentInfo())) return false; } if (hasIntentInfo() != other.hasIntentInfo()) return false; if (hasIntentInfo()) { if (!getIntentInfo().equals(other.getIntentInfo())) return false; } if (hasPageInfo() != other.hasPageInfo()) return false; if (hasPageInfo()) { if (!getPageInfo().equals(other.getPageInfo())) return false; } if (hasSessionInfo() != other.hasSessionInfo()) return false; if (hasSessionInfo()) { if (!getSessionInfo().equals(other.getSessionInfo())) return false; } if (!getMessagesList().equals(other.getMessagesList())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { if (!getPayload().equals(other.getPayload())) return false; } if (hasSentimentAnalysisResult() != other.hasSentimentAnalysisResult()) return false; if (hasSentimentAnalysisResult()) { if (!getSentimentAnalysisResult().equals(other.getSentimentAnalysisResult())) return false; } if (hasLanguageInfo() != other.hasLanguageInfo()) return false; if (hasLanguageInfo()) { if (!getLanguageInfo().equals(other.getLanguageInfo())) return false; } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 10: if (!getText().equals(other.getText())) return false; break; case 11: if (!getTriggerIntent().equals(other.getTriggerIntent())) return false; break; case 12: if (!getTranscript().equals(other.getTranscript())) return false; break; case 14: if (!getTriggerEvent().equals(other.getTriggerEvent())) return false; break; case 17: if (!getDtmfDigits().equals(other.getDtmfDigits())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER; hash = (53 * hash) + getDetectIntentResponseId().hashCode(); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); if (hasFulfillmentInfo()) { hash = (37 * hash) + FULFILLMENT_INFO_FIELD_NUMBER; hash = (53 * hash) + getFulfillmentInfo().hashCode(); } if (hasIntentInfo()) { hash = (37 * hash) + INTENT_INFO_FIELD_NUMBER; hash = (53 * hash) + getIntentInfo().hashCode(); } if (hasPageInfo()) { hash = (37 * hash) + PAGE_INFO_FIELD_NUMBER; hash = (53 * hash) + getPageInfo().hashCode(); } if (hasSessionInfo()) { hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSessionInfo().hashCode(); } if (getMessagesCount() > 0) { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } if (hasSentimentAnalysisResult()) { hash = (37 * hash) + SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getSentimentAnalysisResult().hashCode(); } if (hasLanguageInfo()) { hash = (37 * hash) + LANGUAGE_INFO_FIELD_NUMBER; hash = (53 * hash) + getLanguageInfo().hashCode(); } switch (queryCase_) { case 10: hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); break; case 11: hash = (37 * hash) + TRIGGER_INTENT_FIELD_NUMBER; hash = (53 * hash) + getTriggerIntent().hashCode(); break; case 12: hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; hash = (53 * hash) + getTranscript().hashCode(); break; case 14: hash = (37 * hash) + TRIGGER_EVENT_FIELD_NUMBER; hash = (53 * hash) + getTriggerEvent().hashCode(); break; case 17: hash = (37 * hash) + DTMF_DIGITS_FIELD_NUMBER; hash = (53 * hash) + getDtmfDigits().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest 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.v3beta1.WebhookRequest 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 request message for a webhook call. The request is sent as a JSON object
   * and the field names will be presented in camel cases.
   *
   * You may see undocumented fields in an actual request. These fields are used
   * internally by Dialogflow and should be ignored.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.WebhookRequest) com.google.cloud.dialogflow.cx.v3beta1.WebhookRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.class, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFulfillmentInfoFieldBuilder(); getIntentInfoFieldBuilder(); getPageInfoFieldBuilder(); getSessionInfoFieldBuilder(); getMessagesFieldBuilder(); getPayloadFieldBuilder(); getSentimentAnalysisResultFieldBuilder(); getLanguageInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; detectIntentResponseId_ = ""; languageCode_ = ""; fulfillmentInfo_ = null; if (fulfillmentInfoBuilder_ != null) { fulfillmentInfoBuilder_.dispose(); fulfillmentInfoBuilder_ = null; } intentInfo_ = null; if (intentInfoBuilder_ != null) { intentInfoBuilder_.dispose(); intentInfoBuilder_ = null; } pageInfo_ = null; if (pageInfoBuilder_ != null) { pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } sessionInfo_ = null; if (sessionInfoBuilder_ != null) { sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { messages_ = null; messagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); payload_ = null; if (payloadBuilder_ != null) { payloadBuilder_.dispose(); payloadBuilder_ = null; } sentimentAnalysisResult_ = null; if (sentimentAnalysisResultBuilder_ != null) { sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } languageInfo_ = null; if (languageInfoBuilder_ != null) { languageInfoBuilder_.dispose(); languageInfoBuilder_ = null; } queryCase_ = 0; query_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest build() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000800); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.detectIntentResponseId_ = detectIntentResponseId_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.languageCode_ = languageCode_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.fulfillmentInfo_ = fulfillmentInfoBuilder_ == null ? fulfillmentInfo_ : fulfillmentInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.intentInfo_ = intentInfoBuilder_ == null ? intentInfo_ : intentInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000200) != 0)) { result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.sessionInfo_ = sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00001000) != 0)) { result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00002000) != 0)) { result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_ == null ? sentimentAnalysisResult_ : sentimentAnalysisResultBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00004000) != 0)) { result.languageInfo_ = languageInfoBuilder_ == null ? languageInfo_ : languageInfoBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result) { result.queryCase_ = queryCase_; result.query_ = this.query_; } @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.v3beta1.WebhookRequest) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.getDefaultInstance()) return this; if (!other.getDetectIntentResponseId().isEmpty()) { detectIntentResponseId_ = other.detectIntentResponseId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasFulfillmentInfo()) { mergeFulfillmentInfo(other.getFulfillmentInfo()); } if (other.hasIntentInfo()) { mergeIntentInfo(other.getIntentInfo()); } if (other.hasPageInfo()) { mergePageInfo(other.getPageInfo()); } if (other.hasSessionInfo()) { mergeSessionInfo(other.getSessionInfo()); } if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } onChanged(); } } else { if (!other.messages_.isEmpty()) { if (messagesBuilder_.isEmpty()) { messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000800); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } } } if (other.hasPayload()) { mergePayload(other.getPayload()); } if (other.hasSentimentAnalysisResult()) { mergeSentimentAnalysisResult(other.getSentimentAnalysisResult()); } if (other.hasLanguageInfo()) { mergeLanguageInfo(other.getLanguageInfo()); } switch (other.getQueryCase()) { case TEXT: { queryCase_ = 10; query_ = other.query_; onChanged(); break; } case TRIGGER_INTENT: { queryCase_ = 11; query_ = other.query_; onChanged(); break; } case TRANSCRIPT: { queryCase_ = 12; query_ = other.query_; onChanged(); break; } case TRIGGER_EVENT: { queryCase_ = 14; query_ = other.query_; onChanged(); break; } case DTMF_DIGITS: { queryCase_ = 17; query_ = other.query_; onChanged(); break; } case QUERY_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { detectIntentResponseId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getIntentInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 26 case 34: { input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 34 case 42: { input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 42 case 50: { input.readMessage(getFulfillmentInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 50 case 58: { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.parser(), extensionRegistry); if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(m); } else { messagesBuilder_.addMessage(m); } break; } // case 58 case 66: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 66 case 74: { input.readMessage( getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 74 case 82: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 10; query_ = s; break; } // case 82 case 90: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 11; query_ = s; break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 12; query_ = s; break; } // case 98 case 114: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 14; query_ = s; break; } // case 114 case 122: { languageCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 122 case 138: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 17; query_ = s; break; } // case 138 case 146: { input.readMessage(getLanguageInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int queryCase_ = 0; private java.lang.Object query_; public QueryCase getQueryCase() { return QueryCase.forNumber(queryCase_); } public Builder clearQuery() { queryCase_ = 0; query_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object detectIntentResponseId_ = ""; /** * * *
     * Always present. The unique identifier of the
     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
     * that will be returned to the API caller.
     * 
* * string detect_intent_response_id = 1; * * @return The detectIntentResponseId. */ public java.lang.String getDetectIntentResponseId() { java.lang.Object ref = detectIntentResponseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectIntentResponseId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Always present. The unique identifier of the
     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
     * that will be returned to the API caller.
     * 
* * string detect_intent_response_id = 1; * * @return The bytes for detectIntentResponseId. */ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() { java.lang.Object ref = detectIntentResponseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectIntentResponseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Always present. The unique identifier of the
     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
     * that will be returned to the API caller.
     * 
* * string detect_intent_response_id = 1; * * @param value The detectIntentResponseId to set. * @return This builder for chaining. */ public Builder setDetectIntentResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } detectIntentResponseId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Always present. The unique identifier of the
     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
     * that will be returned to the API caller.
     * 
* * string detect_intent_response_id = 1; * * @return This builder for chaining. */ public Builder clearDetectIntentResponseId() { detectIntentResponseId_ = getDefaultInstance().getDetectIntentResponseId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Always present. The unique identifier of the
     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse]
     * that will be returned to the API caller.
     * 
* * string detect_intent_response_id = 1; * * @param value The bytes for detectIntentResponseId to set. * @return This builder for chaining. */ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectIntentResponseId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
     * was provided as input, this field will contain a copy of the text.
     * 
* * string text = 10; * * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return queryCase_ == 10; } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
     * was provided as input, this field will contain a copy of the text.
     * 
* * string text = 10; * * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = ""; if (queryCase_ == 10) { ref = query_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 10) { query_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
     * was provided as input, this field will contain a copy of the text.
     * 
* * string text = 10; * * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (queryCase_ == 10) { ref = query_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 10) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
     * was provided as input, this field will contain a copy of the text.
     * 
* * string text = 10; * * @param value The text to set. * @return This builder for chaining. */ public Builder setText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryCase_ = 10; query_ = value; onChanged(); return this; } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
     * was provided as input, this field will contain a copy of the text.
     * 
* * string text = 10; * * @return This builder for chaining. */ public Builder clearText() { if (queryCase_ == 10) { queryCase_ = 0; query_ = null; onChanged(); } return this; } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput]
     * was provided as input, this field will contain a copy of the text.
     * 
* * string text = 10; * * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryCase_ = 10; query_ = value; onChanged(); return this; } /** * * *
     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
     * provided as input, this field will contain a copy of the intent
     * identifier. Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @java.lang.Override public boolean hasTriggerIntent() { return queryCase_ == 11; } /** * * *
     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
     * provided as input, this field will contain a copy of the intent
     * identifier. Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @java.lang.Override public java.lang.String getTriggerIntent() { java.lang.Object ref = ""; if (queryCase_ == 11) { ref = query_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 11) { query_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
     * provided as input, this field will contain a copy of the intent
     * identifier. Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @java.lang.Override public com.google.protobuf.ByteString getTriggerIntentBytes() { java.lang.Object ref = ""; if (queryCase_ == 11) { ref = query_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 11) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
     * provided as input, this field will contain a copy of the intent
     * identifier. Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @param value The triggerIntent to set. * @return This builder for chaining. */ public Builder setTriggerIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryCase_ = 11; query_ = value; onChanged(); return this; } /** * * *
     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
     * provided as input, this field will contain a copy of the intent
     * identifier. Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearTriggerIntent() { if (queryCase_ == 11) { queryCase_ = 0; query_ = null; onChanged(); } return this; } /** * * *
     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was
     * provided as input, this field will contain a copy of the intent
     * identifier. Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
     * 
* * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @param value The bytes for triggerIntent to set. * @return This builder for chaining. */ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryCase_ = 11; query_ = value; onChanged(); return this; } /** * * *
     * If [natural language speech
     * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
     * input, this field will contain the transcript for the audio.
     * 
* * string transcript = 12; * * @return Whether the transcript field is set. */ @java.lang.Override public boolean hasTranscript() { return queryCase_ == 12; } /** * * *
     * If [natural language speech
     * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
     * input, this field will contain the transcript for the audio.
     * 
* * string transcript = 12; * * @return The transcript. */ @java.lang.Override public java.lang.String getTranscript() { java.lang.Object ref = ""; if (queryCase_ == 12) { ref = query_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 12) { query_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * If [natural language speech
     * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
     * input, this field will contain the transcript for the audio.
     * 
* * string transcript = 12; * * @return The bytes for transcript. */ @java.lang.Override public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = ""; if (queryCase_ == 12) { ref = query_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 12) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * If [natural language speech
     * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
     * input, this field will contain the transcript for the audio.
     * 
* * string transcript = 12; * * @param value The transcript to set. * @return This builder for chaining. */ public Builder setTranscript(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryCase_ = 12; query_ = value; onChanged(); return this; } /** * * *
     * If [natural language speech
     * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
     * input, this field will contain the transcript for the audio.
     * 
* * string transcript = 12; * * @return This builder for chaining. */ public Builder clearTranscript() { if (queryCase_ == 12) { queryCase_ = 0; query_ = null; onChanged(); } return this; } /** * * *
     * If [natural language speech
     * audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as
     * input, this field will contain the transcript for the audio.
     * 
* * string transcript = 12; * * @param value The bytes for transcript to set. * @return This builder for chaining. */ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryCase_ = 12; query_ = value; onChanged(); return this; } /** * * *
     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
     * as input, this field will contain the name of the event.
     * 
* * string trigger_event = 14; * * @return Whether the triggerEvent field is set. */ @java.lang.Override public boolean hasTriggerEvent() { return queryCase_ == 14; } /** * * *
     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
     * as input, this field will contain the name of the event.
     * 
* * string trigger_event = 14; * * @return The triggerEvent. */ @java.lang.Override public java.lang.String getTriggerEvent() { java.lang.Object ref = ""; if (queryCase_ == 14) { ref = query_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 14) { query_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
     * as input, this field will contain the name of the event.
     * 
* * string trigger_event = 14; * * @return The bytes for triggerEvent. */ @java.lang.Override public com.google.protobuf.ByteString getTriggerEventBytes() { java.lang.Object ref = ""; if (queryCase_ == 14) { ref = query_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 14) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
     * as input, this field will contain the name of the event.
     * 
* * string trigger_event = 14; * * @param value The triggerEvent to set. * @return This builder for chaining. */ public Builder setTriggerEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryCase_ = 14; query_ = value; onChanged(); return this; } /** * * *
     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
     * as input, this field will contain the name of the event.
     * 
* * string trigger_event = 14; * * @return This builder for chaining. */ public Builder clearTriggerEvent() { if (queryCase_ == 14) { queryCase_ = 0; query_ = null; onChanged(); } return this; } /** * * *
     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided
     * as input, this field will contain the name of the event.
     * 
* * string trigger_event = 14; * * @param value The bytes for triggerEvent to set. * @return This builder for chaining. */ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryCase_ = 14; query_ = value; onChanged(); return this; } /** * * *
     * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
     * input, this field will contain the DTMF digits.
     * 
* * string dtmf_digits = 17; * * @return Whether the dtmfDigits field is set. */ @java.lang.Override public boolean hasDtmfDigits() { return queryCase_ == 17; } /** * * *
     * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
     * input, this field will contain the DTMF digits.
     * 
* * string dtmf_digits = 17; * * @return The dtmfDigits. */ @java.lang.Override public java.lang.String getDtmfDigits() { java.lang.Object ref = ""; if (queryCase_ == 17) { ref = query_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 17) { query_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
     * input, this field will contain the DTMF digits.
     * 
* * string dtmf_digits = 17; * * @return The bytes for dtmfDigits. */ @java.lang.Override public com.google.protobuf.ByteString getDtmfDigitsBytes() { java.lang.Object ref = ""; if (queryCase_ == 17) { ref = query_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 17) { query_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
     * input, this field will contain the DTMF digits.
     * 
* * string dtmf_digits = 17; * * @param value The dtmfDigits to set. * @return This builder for chaining. */ public Builder setDtmfDigits(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryCase_ = 17; query_ = value; onChanged(); return this; } /** * * *
     * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
     * input, this field will contain the DTMF digits.
     * 
* * string dtmf_digits = 17; * * @return This builder for chaining. */ public Builder clearDtmfDigits() { if (queryCase_ == 17) { queryCase_ = 0; query_ = null; onChanged(); } return this; } /** * * *
     * If [DTMF][google.cloud.dialogflow.cx.v3beta1.DtmfInput] was provided as
     * input, this field will contain the DTMF digits.
     * 
* * string dtmf_digits = 17; * * @param value The bytes for dtmfDigits to set. * @return This builder for chaining. */ public Builder setDtmfDigitsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryCase_ = 17; query_ = value; onChanged(); return this; } private java.lang.Object languageCode_ = ""; /** * * *
     * The language code specified in the [original
     * request][QueryInput.language_code].
     * 
* * string language_code = 15; * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The language code specified in the [original
     * request][QueryInput.language_code].
     * 
* * string language_code = 15; * * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The language code specified in the [original
     * request][QueryInput.language_code].
     * 
* * string language_code = 15; * * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The language code specified in the [original
     * request][QueryInput.language_code].
     * 
* * string language_code = 15; * * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * The language code specified in the [original
     * request][QueryInput.language_code].
     * 
* * string language_code = 15; * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillmentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder> fulfillmentInfoBuilder_; /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return Whether the fulfillmentInfo field is set. */ public boolean hasFulfillmentInfo() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return The fulfillmentInfo. */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo getFulfillmentInfo() { if (fulfillmentInfoBuilder_ == null) { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo .getDefaultInstance() : fulfillmentInfo_; } else { return fulfillmentInfoBuilder_.getMessage(); } } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder setFulfillmentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo value) { if (fulfillmentInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fulfillmentInfo_ = value; } else { fulfillmentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder setFulfillmentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder builderForValue) { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = builderForValue.build(); } else { fulfillmentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder mergeFulfillmentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo value) { if (fulfillmentInfoBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && fulfillmentInfo_ != null && fulfillmentInfo_ != com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo .getDefaultInstance()) { getFulfillmentInfoBuilder().mergeFrom(value); } else { fulfillmentInfo_ = value; } } else { fulfillmentInfoBuilder_.mergeFrom(value); } if (fulfillmentInfo_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder clearFulfillmentInfo() { bitField0_ = (bitField0_ & ~0x00000080); fulfillmentInfo_ = null; if (fulfillmentInfoBuilder_ != null) { fulfillmentInfoBuilder_.dispose(); fulfillmentInfoBuilder_ = null; } onChanged(); return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder getFulfillmentInfoBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFulfillmentInfoFieldBuilder().getBuilder(); } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder() { if (fulfillmentInfoBuilder_ != null) { return fulfillmentInfoBuilder_.getMessageOrBuilder(); } else { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo .getDefaultInstance() : fulfillmentInfo_; } } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder> getFulfillmentInfoFieldBuilder() { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder>( getFulfillmentInfo(), getParentForChildren(), isClean()); fulfillmentInfo_ = null; } return fulfillmentInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder> intentInfoBuilder_; /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; * * @return Whether the intentInfo field is set. */ public boolean hasIntentInfo() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; * * @return The intentInfo. */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo getIntentInfo() { if (intentInfoBuilder_ == null) { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } else { return intentInfoBuilder_.getMessage(); } } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public Builder setIntentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo value) { if (intentInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } intentInfo_ = value; } else { intentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public Builder setIntentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder builderForValue) { if (intentInfoBuilder_ == null) { intentInfo_ = builderForValue.build(); } else { intentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public Builder mergeIntentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo value) { if (intentInfoBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && intentInfo_ != null && intentInfo_ != com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .getDefaultInstance()) { getIntentInfoBuilder().mergeFrom(value); } else { intentInfo_ = value; } } else { intentInfoBuilder_.mergeFrom(value); } if (intentInfo_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public Builder clearIntentInfo() { bitField0_ = (bitField0_ & ~0x00000100); intentInfo_ = null; if (intentInfoBuilder_ != null) { intentInfoBuilder_.dispose(); intentInfoBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder getIntentInfoBuilder() { bitField0_ |= 0x00000100; onChanged(); return getIntentInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder() { if (intentInfoBuilder_ != null) { return intentInfoBuilder_.getMessageOrBuilder(); } else { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder> getIntentInfoFieldBuilder() { if (intentInfoBuilder_ == null) { intentInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder>( getIntentInfo(), getParentForChildren(), isClean()); intentInfo_ = null; } return intentInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.PageInfo pageInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.PageInfo, com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder> pageInfoBuilder_; /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; * * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; * * @return The pageInfo. */ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo getPageInfo() { if (pageInfoBuilder_ == null) { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance() : pageInfo_; } else { return pageInfoBuilder_.getMessage(); } } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo value) { if (pageInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pageInfo_ = value; } else { pageInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public Builder setPageInfo( com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder builderForValue) { if (pageInfoBuilder_ == null) { pageInfo_ = builderForValue.build(); } else { pageInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo value) { if (pageInfoBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && pageInfo_ != null && pageInfo_ != com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance()) { getPageInfoBuilder().mergeFrom(value); } else { pageInfo_ = value; } } else { pageInfoBuilder_.mergeFrom(value); } if (pageInfo_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public Builder clearPageInfo() { bitField0_ = (bitField0_ & ~0x00000200); pageInfo_ = null; if (pageInfoBuilder_ != null) { pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder getPageInfoBuilder() { bitField0_ |= 0x00000200; onChanged(); return getPageInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder getPageInfoOrBuilder() { if (pageInfoBuilder_ != null) { return pageInfoBuilder_.getMessageOrBuilder(); } else { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance() : pageInfo_; } } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.PageInfo, com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder> getPageInfoFieldBuilder() { if (pageInfoBuilder_ == null) { pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.PageInfo, com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder>( getPageInfo(), getParentForChildren(), isClean()); pageInfo_ = null; } return pageInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.SessionInfo sessionInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionInfo, com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder> sessionInfoBuilder_; /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; * * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; * * @return The sessionInfo. */ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo getSessionInfo() { if (sessionInfoBuilder_ == null) { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance() : sessionInfo_; } else { return sessionInfoBuilder_.getMessage(); } } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionInfo_ = value; } else { sessionInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public Builder setSessionInfo( com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && sessionInfo_ != null && sessionInfo_ != com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance()) { getSessionInfoBuilder().mergeFrom(value); } else { sessionInfo_ = value; } } else { sessionInfoBuilder_.mergeFrom(value); } if (sessionInfo_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public Builder clearSessionInfo() { bitField0_ = (bitField0_ & ~0x00000400); sessionInfo_ = null; if (sessionInfoBuilder_ != null) { sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder getSessionInfoBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder getSessionInfoOrBuilder() { if (sessionInfoBuilder_ != null) { return sessionInfoBuilder_.getMessageOrBuilder(); } else { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance() : sessionInfo_; } } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionInfo, com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder> getSessionInfoFieldBuilder() { if (sessionInfoBuilder_ == null) { sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionInfo, com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder>( getSessionInfo(), getParentForChildren(), isClean()); sessionInfo_ = null; } return sessionInfoBuilder_; } private java.util.List messages_ = java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { messages_ = new java.util.ArrayList( messages_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder> messagesBuilder_; /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { return java.util.Collections.unmodifiableList(messages_); } else { return messagesBuilder_.getMessageList(); } } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public int getMessagesCount() { if (messagesBuilder_ == null) { return messages_.size(); } else { return messagesBuilder_.getCount(); } } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessage(index); } } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder setMessages( int index, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); onChanged(); } else { messagesBuilder_.setMessage(index, value); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder setMessages( int index, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.set(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder addMessages(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); onChanged(); } else { messagesBuilder_.addMessage(value); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder addMessages( int index, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(index, value); onChanged(); } else { messagesBuilder_.addMessage(index, value); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder addMessages( com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder addMessages( int index, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { messagesBuilder_.clear(); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.remove(index); onChanged(); } else { messagesBuilder_.remove(index); } return this; } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder getMessagesBuilder( int index) { return getMessagesFieldBuilder().getBuilder(index); } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public java.util.List getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messages_); } } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder addMessagesBuilder() { return getMessagesFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.getDefaultInstance()); } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder addMessagesBuilder( int index) { return getMessagesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.getDefaultInstance()); } /** * * *
     * The list of rich message responses to present to the user. Webhook can
     * choose to append or replace this list in
     * [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 7; */ public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder>( messages_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } private com.google.protobuf.Struct payload_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> payloadBuilder_; /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; * * @return Whether the payload field is set. */ public boolean hasPayload() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; * * @return The payload. */ public com.google.protobuf.Struct getPayload() { if (payloadBuilder_ == null) { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder setPayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; } else { payloadBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); } else { payloadBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && payload_ != null && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } } else { payloadBuilder_.mergeFrom(value); } if (payload_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00001000); payload_ = null; if (payloadBuilder_ != null) { payloadBuilder_.dispose(); payloadBuilder_ = null; } onChanged(); return this; } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { bitField0_ |= 0x00001000; onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } } /** * * *
     * Custom data set in
     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentimentAnalysisResult_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder> sentimentAnalysisResultBuilder_; /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return Whether the sentimentAnalysisResult field is set. */ public boolean hasSentimentAnalysisResult() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return The sentimentAnalysisResult. */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult getSentimentAnalysisResult() { if (sentimentAnalysisResultBuilder_ == null) { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance() : sentimentAnalysisResult_; } else { return sentimentAnalysisResultBuilder_.getMessage(); } } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder setSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sentimentAnalysisResult_ = value; } else { sentimentAnalysisResultBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder setSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.Builder builderForValue) { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = builderForValue.build(); } else { sentimentAnalysisResultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder mergeSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && sentimentAnalysisResult_ != null && sentimentAnalysisResult_ != com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance()) { getSentimentAnalysisResultBuilder().mergeFrom(value); } else { sentimentAnalysisResult_ = value; } } else { sentimentAnalysisResultBuilder_.mergeFrom(value); } if (sentimentAnalysisResult_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder clearSentimentAnalysisResult() { bitField0_ = (bitField0_ & ~0x00002000); sentimentAnalysisResult_ = null; if (sentimentAnalysisResultBuilder_ != null) { sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } onChanged(); return this; } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() { bitField0_ |= 0x00002000; onChanged(); return getSentimentAnalysisResultFieldBuilder().getBuilder(); } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { if (sentimentAnalysisResultBuilder_ != null) { return sentimentAnalysisResultBuilder_.getMessageOrBuilder(); } else { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .getDefaultInstance() : sentimentAnalysisResult_; } } /** * * *
     * The sentiment analysis result of the current user request. The field is
     * filled when sentiment analysis is configured to be enabled for the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder> getSentimentAnalysisResultFieldBuilder() { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult .Builder, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest .SentimentAnalysisResultOrBuilder>( getSentimentAnalysisResult(), getParentForChildren(), isClean()); sentimentAnalysisResult_ = null; } return sentimentAnalysisResultBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo languageInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo, com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.LanguageInfoOrBuilder> languageInfoBuilder_; /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; * * @return Whether the languageInfo field is set. */ public boolean hasLanguageInfo() { return ((bitField0_ & 0x00004000) != 0); } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; * * @return The languageInfo. */ public com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo getLanguageInfo() { if (languageInfoBuilder_ == null) { return languageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.getDefaultInstance() : languageInfo_; } else { return languageInfoBuilder_.getMessage(); } } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ public Builder setLanguageInfo(com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo value) { if (languageInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } languageInfo_ = value; } else { languageInfoBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ public Builder setLanguageInfo( com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.Builder builderForValue) { if (languageInfoBuilder_ == null) { languageInfo_ = builderForValue.build(); } else { languageInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ public Builder mergeLanguageInfo(com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo value) { if (languageInfoBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && languageInfo_ != null && languageInfo_ != com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.getDefaultInstance()) { getLanguageInfoBuilder().mergeFrom(value); } else { languageInfo_ = value; } } else { languageInfoBuilder_.mergeFrom(value); } if (languageInfo_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ public Builder clearLanguageInfo() { bitField0_ = (bitField0_ & ~0x00004000); languageInfo_ = null; if (languageInfoBuilder_ != null) { languageInfoBuilder_.dispose(); languageInfoBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ public com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.Builder getLanguageInfoBuilder() { bitField0_ |= 0x00004000; onChanged(); return getLanguageInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ public com.google.cloud.dialogflow.cx.v3beta1.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { if (languageInfoBuilder_ != null) { return languageInfoBuilder_.getMessageOrBuilder(); } else { return languageInfo_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.getDefaultInstance() : languageInfo_; } } /** * * *
     * Information about the language of the request.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.LanguageInfo language_info = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo, com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.LanguageInfoOrBuilder> getLanguageInfoFieldBuilder() { if (languageInfoBuilder_ == null) { languageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo, com.google.cloud.dialogflow.cx.v3beta1.LanguageInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.LanguageInfoOrBuilder>( getLanguageInfo(), getParentForChildren(), isClean()); languageInfo_ = null; } return languageInfoBuilder_; } @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.v3beta1.WebhookRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.WebhookRequest) private static final com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(); } public static com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebhookRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy