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

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

There is a newer version: 0.66.0
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3/webhook.proto

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

/**
 *
 *
 * 
 * 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.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.WebhookRequest} */ public final class WebhookRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WebhookRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); detectIntentResponseId_ = s; break; } case 26: { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder subBuilder = null; if (intentInfo_ != null) { subBuilder = intentInfo_.toBuilder(); } intentInfo_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(intentInfo_); intentInfo_ = subBuilder.buildPartial(); } break; } case 34: { com.google.cloud.dialogflow.cx.v3.PageInfo.Builder subBuilder = null; if (pageInfo_ != null) { subBuilder = pageInfo_.toBuilder(); } pageInfo_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.PageInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pageInfo_); pageInfo_ = subBuilder.buildPartial(); } break; } case 42: { com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder subBuilder = null; if (sessionInfo_ != null) { subBuilder = sessionInfo_.toBuilder(); } sessionInfo_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.SessionInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionInfo_); sessionInfo_ = subBuilder.buildPartial(); } break; } case 50: { com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder subBuilder = null; if (fulfillmentInfo_ != null) { subBuilder = fulfillmentInfo_.toBuilder(); } fulfillmentInfo_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fulfillmentInfo_); fulfillmentInfo_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } messages_.add( input.readMessage( com.google.cloud.dialogflow.cx.v3.ResponseMessage.parser(), extensionRegistry)); break; } case 66: { com.google.protobuf.Struct.Builder subBuilder = null; if (payload_ != null) { subBuilder = payload_.toBuilder(); } payload_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(payload_); payload_ = subBuilder.buildPartial(); } break; } case 74: { com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder subBuilder = null; if (sentimentAnalysisResult_ != null) { subBuilder = sentimentAnalysisResult_.toBuilder(); } sentimentAnalysisResult_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sentimentAnalysisResult_); sentimentAnalysisResult_ = subBuilder.buildPartial(); } break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 10; query_ = s; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 11; query_ = s; break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 12; query_ = s; break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); queryCase_ = 14; query_ = s; break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); languageCode_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.Builder.class); } public interface FulfillmentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) com.google.protobuf.MessageOrBuilder { /** * * *
     * Always present. The tag used to identify which fulfillment is being
     * called.
     * 
* * string tag = 1; * * @return The tag. */ java.lang.String getTag(); /** * * *
     * Always present. The tag used to identify which fulfillment is being
     * called.
     * 
* * 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.v3.WebhookRequest.FulfillmentInfo} */ public static final class FulfillmentInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FulfillmentInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); tag_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder.class); } public static final int TAG_FIELD_NUMBER = 1; private volatile java.lang.Object tag_; /** * * *
     * Always present. The tag used to identify which fulfillment is being
     * called.
     * 
* * 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 tag used to identify which fulfillment is being
     * called.
     * 
* * 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 (!getTagBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTagBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo other = (com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) obj; if (!getTag().equals(other.getTag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.FulfillmentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.FulfillmentInfo parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.WebhookRequest.FulfillmentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); tag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo build() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(this); result.tag_ = tag_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo other) { if (other == com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo .getDefaultInstance()) return this; if (!other.getTag().isEmpty()) { tag_ = other.tag_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object tag_ = ""; /** * * *
       * Always present. The tag used to identify which fulfillment is being
       * called.
       * 
* * 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 tag used to identify which fulfillment is being
       * called.
       * 
* * 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 tag used to identify which fulfillment is being
       * called.
       * 
* * 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; onChanged(); return this; } /** * * *
       * Always present. The tag used to identify which fulfillment is being
       * called.
       * 
* * string tag = 1; * * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** * * *
       * Always present. The tag used to identify which fulfillment is being
       * called.
       * 
* * 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; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) private static final com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); } public static com.google.cloud.dialogflow.cx.v3.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 { return new FulfillmentInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) com.google.protobuf.MessageOrBuilder { /** * * *
     * Always present. The unique identifier of the last matched
     * [intent][google.cloud.dialogflow.cx.v3.Intent].
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.Intent].
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault( java.lang.String key, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo} */ public static final class IntentInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IntentInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); lastMatchedIntent_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo .IntentParameterValue> parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); displayName_ = s; break; } case 37: { confidence_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(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.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder.class); } public interface IntentParameterValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue} */ public static final class IntentParameterValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IntentParameterValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); originalValue_ = s; break; } case 18: { com.google.protobuf.Value.Builder subBuilder = null; if (resolvedValue_ != null) { subBuilder = resolvedValue_.toBuilder(); } resolvedValue_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resolvedValue_); resolvedValue_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_IntentParameterValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_IntentParameterValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue .class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue .Builder.class); } public static final int ORIGINAL_VALUE_FIELD_NUMBER = 1; 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 resolvedValue_ != null; } /** * * *
       * 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 getResolvedValue(); } 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 (!getOriginalValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, originalValue_); } if (resolvedValue_ != null) { output.writeMessage(2, getResolvedValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getOriginalValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, originalValue_); } if (resolvedValue_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue other = (com.google.cloud.dialogflow.cx.v3.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo .IntentParameterValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_IntentParameterValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_IntentParameterValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue .class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue .Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3.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) {} } @java.lang.Override public Builder clear() { super.clear(); originalValue_ = ""; if (resolvedValueBuilder_ == null) { resolvedValue_ = null; } else { resolvedValue_ = null; resolvedValueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_IntentParameterValue_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue build() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue( this); result.originalValue_ = originalValue_; if (resolvedValueBuilder_ == null) { result.resolvedValue_ = resolvedValue_; } else { result.resolvedValue_ = resolvedValueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue other) { if (other == com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue .getDefaultInstance()) return this; if (!other.getOriginalValue().isEmpty()) { originalValue_ = other.originalValue_; onChanged(); } if (other.hasResolvedValue()) { mergeResolvedValue(other.getResolvedValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; 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(); 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; 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 resolvedValueBuilder_ != null || resolvedValue_ != null; } /** * * *
         * 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; onChanged(); } else { resolvedValueBuilder_.setMessage(value); } 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(); onChanged(); } else { resolvedValueBuilder_.setMessage(builderForValue.build()); } 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 (resolvedValue_ != null) { resolvedValue_ = com.google.protobuf.Value.newBuilder(resolvedValue_) .mergeFrom(value) .buildPartial(); } else { resolvedValue_ = value; } onChanged(); } else { resolvedValueBuilder_.mergeFrom(value); } return this; } /** * * *
         * Always present. Structured value for the parameter extracted from user
         * utterance.
         * 
* * .google.protobuf.Value resolved_value = 2; */ public Builder clearResolvedValue() { if (resolvedValueBuilder_ == null) { resolvedValue_ = null; onChanged(); } else { resolvedValue_ = null; resolvedValueBuilder_ = null; } 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() { 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.v3.WebhookRequest.IntentInfo.IntentParameterValue) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) private static final com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo .IntentParameterValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); } public static com.google.cloud.dialogflow.cx.v3.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 { return new IntentParameterValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int LAST_MATCHED_INTENT_FIELD_NUMBER = 1; private volatile java.lang.Object lastMatchedIntent_; /** * * *
     * Always present. The unique identifier of the last matched
     * [intent][google.cloud.dialogflow.cx.v3.Intent].
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.Intent].
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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; private volatile java.lang.Object displayName_; /** * * *
     * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_ParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo .IntentParameterValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters_; private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } 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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault( java.lang.String key, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.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_; /** * * *
     * 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 (!getLastMatchedIntentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastMatchedIntent_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 2); if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } if (confidence_ != 0F) { output.writeFloat(4, confidence_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getLastMatchedIntentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastMatchedIntent_); } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> entry : internalGetParameters().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters__ = ParametersDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters__); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (confidence_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo other = (com.google.cloud.dialogflow.cx.v3.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.WebhookRequest.IntentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(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.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); lastMatchedIntent_ = ""; displayName_ = ""; internalGetMutableParameters().clear(); confidence_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_IntentInfo_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo build() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(this); int from_bitField0_ = bitField0_; result.lastMatchedIntent_ = lastMatchedIntent_; result.displayName_ = displayName_; result.parameters_ = internalGetParameters(); result.parameters_.makeImmutable(); result.confidence_ = confidence_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) { return mergeFrom((com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo other) { if (other == com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance()) return this; if (!other.getLastMatchedIntent().isEmpty()) { lastMatchedIntent_ = other.lastMatchedIntent_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object lastMatchedIntent_ = ""; /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3.Intent].
       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       * ID>/intents/<Intent ID>`.
       * 
* * 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.v3.Intent].
       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       * ID>/intents/<Intent ID>`.
       * 
* * 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.v3.Intent].
       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       * ID>/intents/<Intent ID>`.
       * 
* * 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; onChanged(); return this; } /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3.Intent].
       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       * ID>/intents/<Intent ID>`.
       * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearLastMatchedIntent() { lastMatchedIntent_ = getDefaultInstance().getLastMatchedIntent(); onChanged(); return this; } /** * * *
       * Always present. The unique identifier of the last matched
       * [intent][google.cloud.dialogflow.cx.v3.Intent].
       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       * ID>/intents/<Intent ID>`.
       * 
* * 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; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.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.v3.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.v3.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; onChanged(); return this; } /** * * *
       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
       * 
* * string display_name = 3; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** * * *
       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.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; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters_; private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> internalGetMutableParameters() { onChanged(); ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } 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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } 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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault( java.lang.String key, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearParameters() { internalGetMutableParameters().getMutableMap().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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public Builder removeParameters(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableParameters().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** * * *
       * 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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public Builder putParameters( java.lang.String key, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableParameters().getMutableMap().put(key, value); 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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ public Builder putAllParameters( java.util.Map< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> values) { internalGetMutableParameters().getMutableMap().putAll(values); return this; } 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; 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() { 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.v3.WebhookRequest.IntentInfo) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) private static final com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(); } public static com.google.cloud.dialogflow.cx.v3.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 { return new IntentInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SentimentAnalysisResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult} */ public static final class SentimentAnalysisResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SentimentAnalysisResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { score_ = input.readFloat(); break; } case 21: { magnitude_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_SentimentAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_SentimentAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder .class); } public static final int SCORE_FIELD_NUMBER = 1; 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_; } public static final int MAGNITUDE_FIELD_NUMBER = 2; 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_; } 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 (score_ != 0F) { output.writeFloat(1, score_); } if (magnitude_ != 0F) { output.writeFloat(2, magnitude_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (score_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } if (magnitude_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, magnitude_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult other = (com.google.cloud.dialogflow.cx.v3.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.WebhookRequest.SentimentAnalysisResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_SentimentAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_SentimentAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder .class); } // Construct using // com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); score_ = 0F; magnitude_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_SentimentAnalysisResult_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult build() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(this); result.score_ = score_; result.magnitude_ = magnitude_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult other) { if (other == com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult .getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } if (other.getMagnitude() != 0F) { setMagnitude(other.getMagnitude()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; 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() { 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; 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() { 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.v3.WebhookRequest.SentimentAnalysisResult) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) private static final com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); } public static com.google.cloud.dialogflow.cx.v3.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 { return new SentimentAnalysisResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int queryCase_ = 0; 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), 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 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; private volatile java.lang.Object detectIntentResponseId_; /** * * *
   * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.IntentInput] was provided as input, this field will
   * contain a copy of the intent identifier.
   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
   * ID>/intents/<Intent ID>`.
   * 
* * 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.v3.IntentInput] was provided as input, this field will
   * contain a copy of the intent identifier.
   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
   * ID>/intents/<Intent ID>`.
   * 
* * 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.v3.IntentInput] was provided as input, this field will
   * contain a copy of the intent identifier.
   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
   * ID>/intents/<Intent ID>`.
   * 
* * 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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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 LANGUAGE_CODE_FIELD_NUMBER = 15; 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.v3.WebhookRequest.FulfillmentInfo fulfillmentInfo_; /** * * *
   * Always present. Information about the fulfillment that triggered this
   * webhook call.
   * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return Whether the fulfillmentInfo field is set. */ @java.lang.Override public boolean hasFulfillmentInfo() { return fulfillmentInfo_ != null; } /** * * *
   * Always present. Information about the fulfillment that triggered this
   * webhook call.
   * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return The fulfillmentInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo getFulfillmentInfo() { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.getDefaultInstance() : fulfillmentInfo_; } /** * * *
   * Always present. Information about the fulfillment that triggered this
   * webhook call.
   * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder() { return getFulfillmentInfo(); } public static final int INTENT_INFO_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intentInfo_; /** * * *
   * Information about the last matched intent.
   * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; * * @return Whether the intentInfo field is set. */ @java.lang.Override public boolean hasIntentInfo() { return intentInfo_ != null; } /** * * *
   * Information about the last matched intent.
   * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; * * @return The intentInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo getIntentInfo() { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } /** * * *
   * Information about the last matched intent.
   * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder() { return getIntentInfo(); } public static final int PAGE_INFO_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.cx.v3.PageInfo pageInfo_; /** * * *
   * Information about page status.
   * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; * * @return Whether the pageInfo field is set. */ @java.lang.Override public boolean hasPageInfo() { return pageInfo_ != null; } /** * * *
   * Information about page status.
   * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; * * @return The pageInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfo getPageInfo() { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance() : pageInfo_; } /** * * *
   * Information about page status.
   * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder() { return getPageInfo(); } public static final int SESSION_INFO_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.cx.v3.SessionInfo sessionInfo_; /** * * *
   * Information about session status.
   * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; * * @return Whether the sessionInfo field is set. */ @java.lang.Override public boolean hasSessionInfo() { return sessionInfo_ != null; } /** * * *
   * Information about session status.
   * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; * * @return The sessionInfo. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionInfo getSessionInfo() { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance() : sessionInfo_; } /** * * *
   * Information about session status.
   * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBuilder() { return getSessionInfo(); } public static final int MESSAGES_FIELD_NUMBER = 7; 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.v3.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
   * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.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.v3.QueryParameters.payload].
   * 
* * .google.protobuf.Struct payload = 8; * * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return payload_ != null; } /** * * *
   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.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.v3.QueryParameters.payload].
   * 
* * .google.protobuf.Struct payload = 8; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { return getPayload(); } public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 9; private com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return Whether the sentimentAnalysisResult field is set. */ @java.lang.Override public boolean hasSentimentAnalysisResult() { return sentimentAnalysisResult_ != null; } /** * * *
   * 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return The sentimentAnalysisResult. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult getSentimentAnalysisResult() { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { return getSentimentAnalysisResult(); } 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 (!getDetectIntentResponseIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detectIntentResponseId_); } if (intentInfo_ != null) { output.writeMessage(3, getIntentInfo()); } if (pageInfo_ != null) { output.writeMessage(4, getPageInfo()); } if (sessionInfo_ != null) { output.writeMessage(5, getSessionInfo()); } if (fulfillmentInfo_ != null) { output.writeMessage(6, getFulfillmentInfo()); } for (int i = 0; i < messages_.size(); i++) { output.writeMessage(7, messages_.get(i)); } if (payload_ != null) { output.writeMessage(8, getPayload()); } if (sentimentAnalysisResult_ != null) { 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 (!getLanguageCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDetectIntentResponseIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, detectIntentResponseId_); } if (intentInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIntentInfo()); } if (pageInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPageInfo()); } if (sessionInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSessionInfo()); } if (fulfillmentInfo_ != null) { 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 (payload_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPayload()); } if (sentimentAnalysisResult_ != null) { 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 (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.WebhookRequest other = (com.google.cloud.dialogflow.cx.v3.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 (!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 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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(); } 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 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.WebhookRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.WebhookRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.WebhookRequest) com.google.cloud.dialogflow.cx.v3.WebhookRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.WebhookRequest.class, com.google.cloud.dialogflow.cx.v3.WebhookRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3.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) { getMessagesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); detectIntentResponseId_ = ""; languageCode_ = ""; if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = null; } else { fulfillmentInfo_ = null; fulfillmentInfoBuilder_ = null; } if (intentInfoBuilder_ == null) { intentInfo_ = null; } else { intentInfo_ = null; intentInfoBuilder_ = null; } if (pageInfoBuilder_ == null) { pageInfo_ = null; } else { pageInfo_ = null; pageInfoBuilder_ = null; } if (sessionInfoBuilder_ == null) { sessionInfo_ = null; } else { sessionInfo_ = null; sessionInfoBuilder_ = null; } if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { messagesBuilder_.clear(); } if (payloadBuilder_ == null) { payload_ = null; } else { payload_ = null; payloadBuilder_ = null; } if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = null; } else { sentimentAnalysisResult_ = null; sentimentAnalysisResultBuilder_ = null; } queryCase_ = 0; query_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.WebhookProto .internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.WebhookRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest build() { com.google.cloud.dialogflow.cx.v3.WebhookRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest(this); int from_bitField0_ = bitField0_; result.detectIntentResponseId_ = detectIntentResponseId_; if (queryCase_ == 10) { result.query_ = query_; } if (queryCase_ == 11) { result.query_ = query_; } if (queryCase_ == 12) { result.query_ = query_; } if (queryCase_ == 14) { result.query_ = query_; } result.languageCode_ = languageCode_; if (fulfillmentInfoBuilder_ == null) { result.fulfillmentInfo_ = fulfillmentInfo_; } else { result.fulfillmentInfo_ = fulfillmentInfoBuilder_.build(); } if (intentInfoBuilder_ == null) { result.intentInfo_ = intentInfo_; } else { result.intentInfo_ = intentInfoBuilder_.build(); } if (pageInfoBuilder_ == null) { result.pageInfo_ = pageInfo_; } else { result.pageInfo_ = pageInfoBuilder_.build(); } if (sessionInfoBuilder_ == null) { result.sessionInfo_ = sessionInfo_; } else { result.sessionInfo_ = sessionInfoBuilder_.build(); } if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } if (payloadBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = payloadBuilder_.build(); } if (sentimentAnalysisResultBuilder_ == null) { result.sentimentAnalysisResult_ = sentimentAnalysisResult_; } else { result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); } result.queryCase_ = queryCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.WebhookRequest) { return mergeFrom((com.google.cloud.dialogflow.cx.v3.WebhookRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) { if (other == com.google.cloud.dialogflow.cx.v3.WebhookRequest.getDefaultInstance()) return this; if (!other.getDetectIntentResponseId().isEmpty()) { detectIntentResponseId_ = other.detectIntentResponseId_; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; 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_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } onChanged(); } } else { if (!other.messages_.isEmpty()) { if (messagesBuilder_.isEmpty()) { messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); 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()); } 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 QUERY_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.WebhookRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.WebhookRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.v3.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.v3.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.v3.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; onChanged(); return this; } /** * * *
     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.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(); onChanged(); return this; } /** * * *
     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.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; onChanged(); return this; } /** * * *
     * If [natural language text][google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.IntentInput] was provided as input, this field will
     * contain a copy of the intent identifier.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.IntentInput] was provided as input, this field will
     * contain a copy of the intent identifier.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.IntentInput] was provided as input, this field will
     * contain a copy of the intent identifier.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.IntentInput] was provided as input, this field will
     * contain a copy of the intent identifier.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.IntentInput] was provided as input, this field will
     * contain a copy of the intent identifier.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.IntentInput] was provided as input, this field will
     * contain a copy of the intent identifier.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/intents/<Intent ID>`.
     * 
* * 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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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; } 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; 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(); 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; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillmentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder> fulfillmentInfoBuilder_; /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return Whether the fulfillmentInfo field is set. */ public boolean hasFulfillmentInfo() { return fulfillmentInfoBuilder_ != null || fulfillmentInfo_ != null; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * * * @return The fulfillmentInfo. */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo getFulfillmentInfo() { if (fulfillmentInfoBuilder_ == null) { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.getDefaultInstance() : fulfillmentInfo_; } else { return fulfillmentInfoBuilder_.getMessage(); } } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder setFulfillmentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo value) { if (fulfillmentInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fulfillmentInfo_ = value; onChanged(); } else { fulfillmentInfoBuilder_.setMessage(value); } return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder setFulfillmentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder builderForValue) { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = builderForValue.build(); onChanged(); } else { fulfillmentInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder mergeFulfillmentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo value) { if (fulfillmentInfoBuilder_ == null) { if (fulfillmentInfo_ != null) { fulfillmentInfo_ = com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.newBuilder( fulfillmentInfo_) .mergeFrom(value) .buildPartial(); } else { fulfillmentInfo_ = value; } onChanged(); } else { fulfillmentInfoBuilder_.mergeFrom(value); } return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public Builder clearFulfillmentInfo() { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = null; onChanged(); } else { fulfillmentInfo_ = null; fulfillmentInfoBuilder_ = null; } return this; } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder getFulfillmentInfoBuilder() { onChanged(); return getFulfillmentInfoFieldBuilder().getBuilder(); } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder() { if (fulfillmentInfoBuilder_ != null) { return fulfillmentInfoBuilder_.getMessageOrBuilder(); } else { return fulfillmentInfo_ == null ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.getDefaultInstance() : fulfillmentInfo_; } } /** * * *
     * Always present. Information about the fulfillment that triggered this
     * webhook call.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder> getFulfillmentInfoFieldBuilder() { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder>( getFulfillmentInfo(), getParentForChildren(), isClean()); fulfillmentInfo_ = null; } return fulfillmentInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder> intentInfoBuilder_; /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; * * @return Whether the intentInfo field is set. */ public boolean hasIntentInfo() { return intentInfoBuilder_ != null || intentInfo_ != null; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; * * @return The intentInfo. */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo getIntentInfo() { if (intentInfoBuilder_ == null) { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } else { return intentInfoBuilder_.getMessage(); } } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public Builder setIntentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo value) { if (intentInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } intentInfo_ = value; onChanged(); } else { intentInfoBuilder_.setMessage(value); } return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public Builder setIntentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder builderForValue) { if (intentInfoBuilder_ == null) { intentInfo_ = builderForValue.build(); onChanged(); } else { intentInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public Builder mergeIntentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo value) { if (intentInfoBuilder_ == null) { if (intentInfo_ != null) { intentInfo_ = com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.newBuilder(intentInfo_) .mergeFrom(value) .buildPartial(); } else { intentInfo_ = value; } onChanged(); } else { intentInfoBuilder_.mergeFrom(value); } return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public Builder clearIntentInfo() { if (intentInfoBuilder_ == null) { intentInfo_ = null; onChanged(); } else { intentInfo_ = null; intentInfoBuilder_ = null; } return this; } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder getIntentInfoBuilder() { onChanged(); return getIntentInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder() { if (intentInfoBuilder_ != null) { return intentInfoBuilder_.getMessageOrBuilder(); } else { return intentInfo_ == null ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance() : intentInfo_; } } /** * * *
     * Information about the last matched intent.
     * 
* * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder> getIntentInfoFieldBuilder() { if (intentInfoBuilder_ == null) { intentInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder>( getIntentInfo(), getParentForChildren(), isClean()); intentInfo_ = null; } return intentInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3.PageInfo pageInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.PageInfo, com.google.cloud.dialogflow.cx.v3.PageInfo.Builder, com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder> pageInfoBuilder_; /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; * * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { return pageInfoBuilder_ != null || pageInfo_ != null; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; * * @return The pageInfo. */ public com.google.cloud.dialogflow.cx.v3.PageInfo getPageInfo() { if (pageInfoBuilder_ == null) { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance() : pageInfo_; } else { return pageInfoBuilder_.getMessage(); } } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { if (pageInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pageInfo_ = value; onChanged(); } else { pageInfoBuilder_.setMessage(value); } return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder builderForValue) { if (pageInfoBuilder_ == null) { pageInfo_ = builderForValue.build(); onChanged(); } else { pageInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { if (pageInfoBuilder_ == null) { if (pageInfo_ != null) { pageInfo_ = com.google.cloud.dialogflow.cx.v3.PageInfo.newBuilder(pageInfo_) .mergeFrom(value) .buildPartial(); } else { pageInfo_ = value; } onChanged(); } else { pageInfoBuilder_.mergeFrom(value); } return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public Builder clearPageInfo() { if (pageInfoBuilder_ == null) { pageInfo_ = null; onChanged(); } else { pageInfo_ = null; pageInfoBuilder_ = null; } return this; } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public com.google.cloud.dialogflow.cx.v3.PageInfo.Builder getPageInfoBuilder() { onChanged(); return getPageInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder() { if (pageInfoBuilder_ != null) { return pageInfoBuilder_.getMessageOrBuilder(); } else { return pageInfo_ == null ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance() : pageInfo_; } } /** * * *
     * Information about page status.
     * 
* * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.PageInfo, com.google.cloud.dialogflow.cx.v3.PageInfo.Builder, com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder> getPageInfoFieldBuilder() { if (pageInfoBuilder_ == null) { pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.PageInfo, com.google.cloud.dialogflow.cx.v3.PageInfo.Builder, com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder>( getPageInfo(), getParentForChildren(), isClean()); pageInfo_ = null; } return pageInfoBuilder_; } private com.google.cloud.dialogflow.cx.v3.SessionInfo sessionInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SessionInfo, com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder, com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder> sessionInfoBuilder_; /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; * * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { return sessionInfoBuilder_ != null || sessionInfo_ != null; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; * * @return The sessionInfo. */ public com.google.cloud.dialogflow.cx.v3.SessionInfo getSessionInfo() { if (sessionInfoBuilder_ == null) { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance() : sessionInfo_; } else { return sessionInfoBuilder_.getMessage(); } } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionInfo_ = value; onChanged(); } else { sessionInfoBuilder_.setMessage(value); } return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public Builder setSessionInfo( com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (sessionInfo_ != null) { sessionInfo_ = com.google.cloud.dialogflow.cx.v3.SessionInfo.newBuilder(sessionInfo_) .mergeFrom(value) .buildPartial(); } else { sessionInfo_ = value; } onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public Builder clearSessionInfo() { if (sessionInfoBuilder_ == null) { sessionInfo_ = null; onChanged(); } else { sessionInfo_ = null; sessionInfoBuilder_ = null; } return this; } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder getSessionInfoBuilder() { onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBuilder() { if (sessionInfoBuilder_ != null) { return sessionInfoBuilder_.getMessageOrBuilder(); } else { return sessionInfo_ == null ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance() : sessionInfo_; } } /** * * *
     * Information about session status.
     * 
* * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SessionInfo, com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder, com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder> getSessionInfoFieldBuilder() { if (sessionInfoBuilder_ == null) { sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SessionInfo, com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder, com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder>( getSessionInfo(), getParentForChildren(), isClean()); sessionInfo_ = null; } return sessionInfoBuilder_; } private java.util.List messages_ = java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder setMessages(int index, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder setMessages( int index, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder addMessages(com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder addMessages(int index, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder addMessages( com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder addMessages( int index, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuilder() { return getMessagesFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuilder(int index) { return getMessagesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookResponse.fulfillment_response];
     * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7; */ public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>( messages_, ((bitField0_ & 0x00000001) != 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.v3.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** * * *
     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.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.v3.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; onChanged(); } else { payloadBuilder_.setMessage(value); } return this; } /** * * *
     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { payloadBuilder_.mergeFrom(value); } return this; } /** * * *
     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = null; onChanged(); } else { payload_ = null; payloadBuilder_ = null; } return this; } /** * * *
     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
     * 
* * .google.protobuf.Struct payload = 8; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * * *
     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.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.v3.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.v3.WebhookRequest.SentimentAnalysisResult sentimentAnalysisResult_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return Whether the sentimentAnalysisResult field is set. */ public boolean hasSentimentAnalysisResult() { return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null; } /** * * *
     * 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * * * @return The sentimentAnalysisResult. */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult getSentimentAnalysisResult() { if (sentimentAnalysisResultBuilder_ == null) { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder setSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sentimentAnalysisResult_ = value; onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(value); } 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder setSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder builderForValue) { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = builderForValue.build(); onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(builderForValue.build()); } 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder mergeSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { if (sentimentAnalysisResult_ != null) { sentimentAnalysisResult_ = com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.newBuilder( sentimentAnalysisResult_) .mergeFrom(value) .buildPartial(); } else { sentimentAnalysisResult_ = value; } onChanged(); } else { sentimentAnalysisResultBuilder_.mergeFrom(value); } 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public Builder clearSentimentAnalysisResult() { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = null; onChanged(); } else { sentimentAnalysisResult_ = null; sentimentAnalysisResultBuilder_ = null; } 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() { 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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { if (sentimentAnalysisResultBuilder_ != null) { return sentimentAnalysisResultBuilder_.getMessageOrBuilder(); } else { return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder> getSentimentAnalysisResultFieldBuilder() { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder>( getSentimentAnalysisResult(), getParentForChildren(), isClean()); sentimentAnalysisResult_ = null; } return sentimentAnalysisResultBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.WebhookRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.WebhookRequest) private static final com.google.cloud.dialogflow.cx.v3.WebhookRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.WebhookRequest(); } public static com.google.cloud.dialogflow.cx.v3.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 { return new WebhookRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy