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

com.google.cloud.dialogflow.v2.Agent Maven / Gradle / Ivy

There is a newer version: 4.61.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/v2/agent.proto

package com.google.cloud.dialogflow.v2;

/**
 *
 *
 * 
 * A Dialogflow agent is a virtual agent that handles conversations with your
 * end-users. It is a natural language understanding module that understands the
 * nuances of human language. Dialogflow translates end-user text or audio
 * during a conversation to structured data that your apps and services can
 * understand. You design and build a Dialogflow agent to handle the types of
 * conversations required for your system.
 * For more information about agents, see the
 * [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
 * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Agent} */ public final class Agent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Agent) AgentOrBuilder { private static final long serialVersionUID = 0L; // Use Agent.newBuilder() to construct. private Agent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Agent() { parent_ = ""; displayName_ = ""; defaultLanguageCode_ = ""; supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; timeZone_ = ""; description_ = ""; avatarUri_ = ""; matchMode_ = 0; apiVersion_ = 0; tier_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Agent(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Agent( 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(); parent_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); displayName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); defaultLanguageCode_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } supportedLanguageCodes_.add(s); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); timeZone_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); avatarUri_ = s; break; } case 64: { enableLogging_ = input.readBool(); break; } case 72: { int rawValue = input.readEnum(); matchMode_ = rawValue; break; } case 85: { classificationThreshold_ = input.readFloat(); break; } case 112: { int rawValue = input.readEnum(); apiVersion_ = rawValue; break; } case 120: { int rawValue = input.readEnum(); tier_ = rawValue; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AgentProto .internal_static_google_cloud_dialogflow_v2_Agent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AgentProto .internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.Agent.class, com.google.cloud.dialogflow.v2.Agent.Builder.class); } /** * * *
   * Match mode determines how intents are detected from user queries.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Agent.MatchMode} */ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Not specified.
     * 
* * MATCH_MODE_UNSPECIFIED = 0; */ MATCH_MODE_UNSPECIFIED(0), /** * * *
     * Best for agents with a small number of examples in intents and/or wide
     * use of templates syntax and composite entities.
     * 
* * MATCH_MODE_HYBRID = 1; */ MATCH_MODE_HYBRID(1), /** * * *
     * Can be used for agents with a large number of examples in intents,
     * especially the ones using @sys.any or very large custom entities.
     * 
* * MATCH_MODE_ML_ONLY = 2; */ MATCH_MODE_ML_ONLY(2), UNRECOGNIZED(-1), ; /** * * *
     * Not specified.
     * 
* * MATCH_MODE_UNSPECIFIED = 0; */ public static final int MATCH_MODE_UNSPECIFIED_VALUE = 0; /** * * *
     * Best for agents with a small number of examples in intents and/or wide
     * use of templates syntax and composite entities.
     * 
* * MATCH_MODE_HYBRID = 1; */ public static final int MATCH_MODE_HYBRID_VALUE = 1; /** * * *
     * Can be used for agents with a large number of examples in intents,
     * especially the ones using @sys.any or very large custom entities.
     * 
* * MATCH_MODE_ML_ONLY = 2; */ public static final int MATCH_MODE_ML_ONLY_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MatchMode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static MatchMode forNumber(int value) { switch (value) { case 0: return MATCH_MODE_UNSPECIFIED; case 1: return MATCH_MODE_HYBRID; case 2: return MATCH_MODE_ML_ONLY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MatchMode findValueByNumber(int number) { return MatchMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2.Agent.getDescriptor().getEnumTypes().get(0); } private static final MatchMode[] VALUES = values(); public static MatchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private MatchMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Agent.MatchMode) } /** * * *
   * API version for the agent.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Agent.ApiVersion} */ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Not specified.
     * 
* * API_VERSION_UNSPECIFIED = 0; */ API_VERSION_UNSPECIFIED(0), /** * * *
     * Legacy V1 API.
     * 
* * API_VERSION_V1 = 1; */ API_VERSION_V1(1), /** * * *
     * V2 API.
     * 
* * API_VERSION_V2 = 2; */ API_VERSION_V2(2), /** * * *
     * V2beta1 API.
     * 
* * API_VERSION_V2_BETA_1 = 3; */ API_VERSION_V2_BETA_1(3), UNRECOGNIZED(-1), ; /** * * *
     * Not specified.
     * 
* * API_VERSION_UNSPECIFIED = 0; */ public static final int API_VERSION_UNSPECIFIED_VALUE = 0; /** * * *
     * Legacy V1 API.
     * 
* * API_VERSION_V1 = 1; */ public static final int API_VERSION_V1_VALUE = 1; /** * * *
     * V2 API.
     * 
* * API_VERSION_V2 = 2; */ public static final int API_VERSION_V2_VALUE = 2; /** * * *
     * V2beta1 API.
     * 
* * API_VERSION_V2_BETA_1 = 3; */ public static final int API_VERSION_V2_BETA_1_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ApiVersion valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ApiVersion forNumber(int value) { switch (value) { case 0: return API_VERSION_UNSPECIFIED; case 1: return API_VERSION_V1; case 2: return API_VERSION_V2; case 3: return API_VERSION_V2_BETA_1; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ApiVersion findValueByNumber(int number) { return ApiVersion.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2.Agent.getDescriptor().getEnumTypes().get(1); } private static final ApiVersion[] VALUES = values(); public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ApiVersion(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Agent.ApiVersion) } /** * * *
   * Represents the agent tier.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Agent.Tier} */ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Not specified. This value should never be used.
     * 
* * TIER_UNSPECIFIED = 0; */ TIER_UNSPECIFIED(0), /** * * *
     * Standard tier.
     * 
* * TIER_STANDARD = 1; */ TIER_STANDARD(1), /** * * *
     * Enterprise tier (Essentials).
     * 
* * TIER_ENTERPRISE = 2; */ TIER_ENTERPRISE(2), /** * * *
     * Enterprise tier (Plus).
     * 
* * TIER_ENTERPRISE_PLUS = 3; */ TIER_ENTERPRISE_PLUS(3), UNRECOGNIZED(-1), ; /** * * *
     * Not specified. This value should never be used.
     * 
* * TIER_UNSPECIFIED = 0; */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** * * *
     * Standard tier.
     * 
* * TIER_STANDARD = 1; */ public static final int TIER_STANDARD_VALUE = 1; /** * * *
     * Enterprise tier (Essentials).
     * 
* * TIER_ENTERPRISE = 2; */ public static final int TIER_ENTERPRISE_VALUE = 2; /** * * *
     * Enterprise tier (Plus).
     * 
* * TIER_ENTERPRISE_PLUS = 3; */ public static final int TIER_ENTERPRISE_PLUS_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Tier valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Tier forNumber(int value) { switch (value) { case 0: return TIER_UNSPECIFIED; case 1: return TIER_STANDARD; case 2: return TIER_ENTERPRISE; case 3: return TIER_ENTERPRISE_PLUS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Tier findValueByNumber(int number) { return Tier.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2.Agent.getDescriptor().getEnumTypes().get(2); } private static final Tier[] VALUES = values(); public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Tier(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Agent.Tier) } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** * * *
   * Required. The project of this agent.
   * Format: `projects/<Project ID>`.
   * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The parent. */ @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; 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(); parent_ = s; return s; } } /** * * *
   * Required. The project of this agent.
   * Format: `projects/<Project ID>`.
   * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for parent. */ @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** * * *
   * Required. The name of this agent.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @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; } } /** * * *
   * Required. The name of this agent.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @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 DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object defaultLanguageCode_; /** * * *
   * Required. The default language of the agent as a language tag. See
   * [Language
   * Support](https://cloud.google.com/dialogflow/docs/reference/language)
   * for a list of the currently supported language codes. This field cannot be
   * set by the `Update` method.
   * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The defaultLanguageCode. */ @java.lang.Override public java.lang.String getDefaultLanguageCode() { java.lang.Object ref = defaultLanguageCode_; 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(); defaultLanguageCode_ = s; return s; } } /** * * *
   * Required. The default language of the agent as a language tag. See
   * [Language
   * Support](https://cloud.google.com/dialogflow/docs/reference/language)
   * for a list of the currently supported language codes. This field cannot be
   * set by the `Update` method.
   * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for defaultLanguageCode. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { java.lang.Object ref = defaultLanguageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultLanguageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList supportedLanguageCodes_; /** * * *
   * Optional. The list of all languages supported by this agent (except for the
   * `default_language_code`).
   * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the supportedLanguageCodes. */ public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() { return supportedLanguageCodes_; } /** * * *
   * Optional. The list of all languages supported by this agent (except for the
   * `default_language_code`).
   * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of supportedLanguageCodes. */ public int getSupportedLanguageCodesCount() { return supportedLanguageCodes_.size(); } /** * * *
   * Optional. The list of all languages supported by this agent (except for the
   * `default_language_code`).
   * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The supportedLanguageCodes at the given index. */ public java.lang.String getSupportedLanguageCodes(int index) { return supportedLanguageCodes_.get(index); } /** * * *
   * Optional. The list of all languages supported by this agent (except for the
   * `default_language_code`).
   * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The bytes of the supportedLanguageCodes at the given index. */ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) { return supportedLanguageCodes_.getByteString(index); } public static final int TIME_ZONE_FIELD_NUMBER = 5; private volatile java.lang.Object timeZone_; /** * * *
   * Required. The time zone of this agent from the
   * [time zone database](https://www.iana.org/time-zones), e.g.,
   * America/New_York, Europe/Paris.
   * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @java.lang.Override public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; 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(); timeZone_ = s; return s; } } /** * * *
   * Required. The time zone of this agent from the
   * [time zone database](https://www.iana.org/time-zones), e.g.,
   * America/New_York, Europe/Paris.
   * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @java.lang.Override public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeZone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** * * *
   * Optional. The description of this agent.
   * The maximum length is 500 characters. If exceeded, the request is rejected.
   * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * * *
   * Optional. The description of this agent.
   * The maximum length is 500 characters. If exceeded, the request is rejected.
   * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AVATAR_URI_FIELD_NUMBER = 7; private volatile java.lang.Object avatarUri_; /** * * *
   * Optional. The URI of the agent's avatar.
   * Avatars are used throughout the Dialogflow console and in the self-hosted
   * [Web
   * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
   * integration.
   * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The avatarUri. */ @java.lang.Override public java.lang.String getAvatarUri() { java.lang.Object ref = avatarUri_; 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(); avatarUri_ = s; return s; } } /** * * *
   * Optional. The URI of the agent's avatar.
   * Avatars are used throughout the Dialogflow console and in the self-hosted
   * [Web
   * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
   * integration.
   * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for avatarUri. */ @java.lang.Override public com.google.protobuf.ByteString getAvatarUriBytes() { java.lang.Object ref = avatarUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); avatarUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLE_LOGGING_FIELD_NUMBER = 8; private boolean enableLogging_; /** * * *
   * Optional. Determines whether this agent should log conversation queries.
   * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableLogging. */ @java.lang.Override public boolean getEnableLogging() { return enableLogging_; } public static final int MATCH_MODE_FIELD_NUMBER = 9; private int matchMode_; /** * * *
   * Optional. Determines how intents are detected from user queries.
   * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for matchMode. */ @java.lang.Override @java.lang.Deprecated public int getMatchModeValue() { return matchMode_; } /** * * *
   * Optional. Determines how intents are detected from user queries.
   * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @return The matchMode. */ @java.lang.Override @java.lang.Deprecated public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.v2.Agent.MatchMode result = com.google.cloud.dialogflow.v2.Agent.MatchMode.valueOf(matchMode_); return result == null ? com.google.cloud.dialogflow.v2.Agent.MatchMode.UNRECOGNIZED : result; } public static final int CLASSIFICATION_THRESHOLD_FIELD_NUMBER = 10; private float classificationThreshold_; /** * * *
   * Optional. To filter out false positive results and still get variety in
   * matched natural language inputs for your agent, you can tune the machine
   * learning classification threshold. If the returned score value is less than
   * the threshold value, then a fallback intent will be triggered or, if there
   * are no fallback intents defined, no intent will be triggered. The score
   * values range from 0.0 (completely uncertain) to 1.0 (completely certain).
   * If set to 0.0, the default of 0.3 is used.
   * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The classificationThreshold. */ @java.lang.Override public float getClassificationThreshold() { return classificationThreshold_; } public static final int API_VERSION_FIELD_NUMBER = 14; private int apiVersion_; /** * * *
   * Optional. API version displayed in Dialogflow console. If not specified,
   * V2 API is assumed. Clients are free to query different service endpoints
   * for different API versions. However, bots connectors and webhook calls will
   * follow the specified API version.
   * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for apiVersion. */ @java.lang.Override public int getApiVersionValue() { return apiVersion_; } /** * * *
   * Optional. API version displayed in Dialogflow console. If not specified,
   * V2 API is assumed. Clients are free to query different service endpoints
   * for different API versions. However, bots connectors and webhook calls will
   * follow the specified API version.
   * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The apiVersion. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.v2.Agent.ApiVersion result = com.google.cloud.dialogflow.v2.Agent.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.dialogflow.v2.Agent.ApiVersion.UNRECOGNIZED : result; } public static final int TIER_FIELD_NUMBER = 15; private int tier_; /** * * *
   * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
   * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for tier. */ @java.lang.Override public int getTierValue() { return tier_; } /** * * *
   * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
   * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The tier. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.Tier getTier() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.v2.Agent.Tier result = com.google.cloud.dialogflow.v2.Agent.Tier.valueOf(tier_); return result == null ? com.google.cloud.dialogflow.v2.Agent.Tier.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (!getDefaultLanguageCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguageCode_); } for (int i = 0; i < supportedLanguageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 4, supportedLanguageCodes_.getRaw(i)); } if (!getTimeZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } if (!getAvatarUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, avatarUri_); } if (enableLogging_ != false) { output.writeBool(8, enableLogging_); } if (matchMode_ != com.google.cloud.dialogflow.v2.Agent.MatchMode.MATCH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(9, matchMode_); } if (classificationThreshold_ != 0F) { output.writeFloat(10, classificationThreshold_); } if (apiVersion_ != com.google.cloud.dialogflow.v2.Agent.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(14, apiVersion_); } if (tier_ != com.google.cloud.dialogflow.v2.Agent.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(15, tier_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getParentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (!getDefaultLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultLanguageCode_); } { int dataSize = 0; for (int i = 0; i < supportedLanguageCodes_.size(); i++) { dataSize += computeStringSizeNoTag(supportedLanguageCodes_.getRaw(i)); } size += dataSize; size += 1 * getSupportedLanguageCodesList().size(); } if (!getTimeZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timeZone_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } if (!getAvatarUriBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, avatarUri_); } if (enableLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableLogging_); } if (matchMode_ != com.google.cloud.dialogflow.v2.Agent.MatchMode.MATCH_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, matchMode_); } if (classificationThreshold_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(10, classificationThreshold_); } if (apiVersion_ != com.google.cloud.dialogflow.v2.Agent.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, apiVersion_); } if (tier_ != com.google.cloud.dialogflow.v2.Agent.Tier.TIER_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, tier_); } 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.v2.Agent)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.Agent other = (com.google.cloud.dialogflow.v2.Agent) obj; if (!getParent().equals(other.getParent())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; if (!getSupportedLanguageCodesList().equals(other.getSupportedLanguageCodesList())) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getAvatarUri().equals(other.getAvatarUri())) return false; if (getEnableLogging() != other.getEnableLogging()) return false; if (matchMode_ != other.matchMode_) return false; if (java.lang.Float.floatToIntBits(getClassificationThreshold()) != java.lang.Float.floatToIntBits(other.getClassificationThreshold())) return false; if (apiVersion_ != other.apiVersion_) return false; if (tier_ != other.tier_) 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) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getDefaultLanguageCode().hashCode(); if (getSupportedLanguageCodesCount() > 0) { hash = (37 * hash) + SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER; hash = (53 * hash) + getSupportedLanguageCodesList().hashCode(); } hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + AVATAR_URI_FIELD_NUMBER; hash = (53 * hash) + getAvatarUri().hashCode(); hash = (37 * hash) + ENABLE_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLogging()); hash = (37 * hash) + MATCH_MODE_FIELD_NUMBER; hash = (53 * hash) + matchMode_; hash = (37 * hash) + CLASSIFICATION_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getClassificationThreshold()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + apiVersion_; hash = (37 * hash) + TIER_FIELD_NUMBER; hash = (53 * hash) + tier_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.Agent parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.Agent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.Agent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.Agent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.Agent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.Agent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.Agent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.Agent 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.v2.Agent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.Agent 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.v2.Agent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.Agent 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.v2.Agent 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; } /** * * *
   * A Dialogflow agent is a virtual agent that handles conversations with your
   * end-users. It is a natural language understanding module that understands the
   * nuances of human language. Dialogflow translates end-user text or audio
   * during a conversation to structured data that your apps and services can
   * understand. You design and build a Dialogflow agent to handle the types of
   * conversations required for your system.
   * For more information about agents, see the
   * [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Agent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Agent) com.google.cloud.dialogflow.v2.AgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AgentProto .internal_static_google_cloud_dialogflow_v2_Agent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AgentProto .internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.Agent.class, com.google.cloud.dialogflow.v2.Agent.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Agent.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(); parent_ = ""; displayName_ = ""; defaultLanguageCode_ = ""; supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); timeZone_ = ""; description_ = ""; avatarUri_ = ""; enableLogging_ = false; matchMode_ = 0; classificationThreshold_ = 0F; apiVersion_ = 0; tier_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.AgentProto .internal_static_google_cloud_dialogflow_v2_Agent_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.Agent getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.Agent.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.Agent build() { com.google.cloud.dialogflow.v2.Agent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.Agent buildPartial() { com.google.cloud.dialogflow.v2.Agent result = new com.google.cloud.dialogflow.v2.Agent(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.displayName_ = displayName_; result.defaultLanguageCode_ = defaultLanguageCode_; if (((bitField0_ & 0x00000001) != 0)) { supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.supportedLanguageCodes_ = supportedLanguageCodes_; result.timeZone_ = timeZone_; result.description_ = description_; result.avatarUri_ = avatarUri_; result.enableLogging_ = enableLogging_; result.matchMode_ = matchMode_; result.classificationThreshold_ = classificationThreshold_; result.apiVersion_ = apiVersion_; result.tier_ = tier_; 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.v2.Agent) { return mergeFrom((com.google.cloud.dialogflow.v2.Agent) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Agent other) { if (other == com.google.cloud.dialogflow.v2.Agent.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (!other.getDefaultLanguageCode().isEmpty()) { defaultLanguageCode_ = other.defaultLanguageCode_; onChanged(); } if (!other.supportedLanguageCodes_.isEmpty()) { if (supportedLanguageCodes_.isEmpty()) { supportedLanguageCodes_ = other.supportedLanguageCodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.addAll(other.supportedLanguageCodes_); } onChanged(); } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getAvatarUri().isEmpty()) { avatarUri_ = other.avatarUri_; onChanged(); } if (other.getEnableLogging() != false) { setEnableLogging(other.getEnableLogging()); } if (other.matchMode_ != 0) { setMatchModeValue(other.getMatchModeValue()); } if (other.getClassificationThreshold() != 0F) { setClassificationThreshold(other.getClassificationThreshold()); } if (other.apiVersion_ != 0) { setApiVersionValue(other.getApiVersionValue()); } if (other.tier_ != 0) { setTierValue(other.getTierValue()); } 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.v2.Agent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.v2.Agent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object parent_ = ""; /** * * *
     * Required. The project of this agent.
     * Format: `projects/<Project ID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The project of this agent.
     * Format: `projects/<Project ID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The project of this agent.
     * Format: `projects/<Project ID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The parent to set. * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parent_ = value; onChanged(); return this; } /** * * *
     * Required. The project of this agent.
     * Format: `projects/<Project ID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** * * *
     * Required. The project of this agent.
     * Format: `projects/<Project ID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for parent to set. * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * Required. The name of this agent.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @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; } } /** * * *
     * Required. The name of this agent.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @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; } } /** * * *
     * Required. The name of this agent.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @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; } /** * * *
     * Required. The name of this agent.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** * * *
     * Required. The name of this agent.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @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 java.lang.Object defaultLanguageCode_ = ""; /** * * *
     * Required. The default language of the agent as a language tag. See
     * [Language
     * Support](https://cloud.google.com/dialogflow/docs/reference/language)
     * for a list of the currently supported language codes. This field cannot be
     * set by the `Update` method.
     * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The defaultLanguageCode. */ public java.lang.String getDefaultLanguageCode() { java.lang.Object ref = defaultLanguageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultLanguageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The default language of the agent as a language tag. See
     * [Language
     * Support](https://cloud.google.com/dialogflow/docs/reference/language)
     * for a list of the currently supported language codes. This field cannot be
     * set by the `Update` method.
     * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for defaultLanguageCode. */ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { java.lang.Object ref = defaultLanguageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultLanguageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The default language of the agent as a language tag. See
     * [Language
     * Support](https://cloud.google.com/dialogflow/docs/reference/language)
     * for a list of the currently supported language codes. This field cannot be
     * set by the `Update` method.
     * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The defaultLanguageCode to set. * @return This builder for chaining. */ public Builder setDefaultLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultLanguageCode_ = value; onChanged(); return this; } /** * * *
     * Required. The default language of the agent as a language tag. See
     * [Language
     * Support](https://cloud.google.com/dialogflow/docs/reference/language)
     * for a list of the currently supported language codes. This field cannot be
     * set by the `Update` method.
     * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDefaultLanguageCode() { defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); onChanged(); return this; } /** * * *
     * Required. The default language of the agent as a language tag. See
     * [Language
     * Support](https://cloud.google.com/dialogflow/docs/reference/language)
     * for a list of the currently supported language codes. This field cannot be
     * set by the `Update` method.
     * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for defaultLanguageCode to set. * @return This builder for chaining. */ public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultLanguageCode_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_); bitField0_ |= 0x00000001; } } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the supportedLanguageCodes. */ public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() { return supportedLanguageCodes_.getUnmodifiableView(); } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of supportedLanguageCodes. */ public int getSupportedLanguageCodesCount() { return supportedLanguageCodes_.size(); } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The supportedLanguageCodes at the given index. */ public java.lang.String getSupportedLanguageCodes(int index) { return supportedLanguageCodes_.get(index); } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The bytes of the supportedLanguageCodes at the given index. */ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) { return supportedLanguageCodes_.getByteString(index); } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The supportedLanguageCodes to set. * @return This builder for chaining. */ public Builder setSupportedLanguageCodes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.set(index, value); onChanged(); return this; } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The supportedLanguageCodes to add. * @return This builder for chaining. */ public Builder addSupportedLanguageCodes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.add(value); onChanged(); return this; } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The supportedLanguageCodes to add. * @return This builder for chaining. */ public Builder addAllSupportedLanguageCodes(java.lang.Iterable values) { ensureSupportedLanguageCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedLanguageCodes_); onChanged(); return this; } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearSupportedLanguageCodes() { supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Optional. The list of all languages supported by this agent (except for the
     * `default_language_code`).
     * 
* * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes of the supportedLanguageCodes to add. * @return This builder for chaining. */ public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.add(value); onChanged(); return this; } private java.lang.Object timeZone_ = ""; /** * * *
     * Required. The time zone of this agent from the
     * [time zone database](https://www.iana.org/time-zones), e.g.,
     * America/New_York, Europe/Paris.
     * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeZone_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The time zone of this agent from the
     * [time zone database](https://www.iana.org/time-zones), e.g.,
     * America/New_York, Europe/Paris.
     * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeZone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The time zone of this agent from the
     * [time zone database](https://www.iana.org/time-zones), e.g.,
     * America/New_York, Europe/Paris.
     * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The timeZone to set. * @return This builder for chaining. */ public Builder setTimeZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } timeZone_ = value; onChanged(); return this; } /** * * *
     * Required. The time zone of this agent from the
     * [time zone database](https://www.iana.org/time-zones), e.g.,
     * America/New_York, Europe/Paris.
     * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); onChanged(); return this; } /** * * *
     * Required. The time zone of this agent from the
     * [time zone database](https://www.iana.org/time-zones), e.g.,
     * America/New_York, Europe/Paris.
     * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for timeZone to set. * @return This builder for chaining. */ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeZone_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * Optional. The description of this agent.
     * The maximum length is 500 characters. If exceeded, the request is rejected.
     * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The description of this agent.
     * The maximum length is 500 characters. If exceeded, the request is rejected.
     * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The description of this agent.
     * The maximum length is 500 characters. If exceeded, the request is rejected.
     * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * * *
     * Optional. The description of this agent.
     * The maximum length is 500 characters. If exceeded, the request is rejected.
     * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * * *
     * Optional. The description of this agent.
     * The maximum length is 500 characters. If exceeded, the request is rejected.
     * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object avatarUri_ = ""; /** * * *
     * Optional. The URI of the agent's avatar.
     * Avatars are used throughout the Dialogflow console and in the self-hosted
     * [Web
     * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
     * integration.
     * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The avatarUri. */ public java.lang.String getAvatarUri() { java.lang.Object ref = avatarUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avatarUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The URI of the agent's avatar.
     * Avatars are used throughout the Dialogflow console and in the self-hosted
     * [Web
     * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
     * integration.
     * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for avatarUri. */ public com.google.protobuf.ByteString getAvatarUriBytes() { java.lang.Object ref = avatarUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); avatarUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The URI of the agent's avatar.
     * Avatars are used throughout the Dialogflow console and in the self-hosted
     * [Web
     * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
     * integration.
     * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The avatarUri to set. * @return This builder for chaining. */ public Builder setAvatarUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } avatarUri_ = value; onChanged(); return this; } /** * * *
     * Optional. The URI of the agent's avatar.
     * Avatars are used throughout the Dialogflow console and in the self-hosted
     * [Web
     * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
     * integration.
     * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearAvatarUri() { avatarUri_ = getDefaultInstance().getAvatarUri(); onChanged(); return this; } /** * * *
     * Optional. The URI of the agent's avatar.
     * Avatars are used throughout the Dialogflow console and in the self-hosted
     * [Web
     * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
     * integration.
     * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for avatarUri to set. * @return This builder for chaining. */ public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); avatarUri_ = value; onChanged(); return this; } private boolean enableLogging_; /** * * *
     * Optional. Determines whether this agent should log conversation queries.
     * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableLogging. */ @java.lang.Override public boolean getEnableLogging() { return enableLogging_; } /** * * *
     * Optional. Determines whether this agent should log conversation queries.
     * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The enableLogging to set. * @return This builder for chaining. */ public Builder setEnableLogging(boolean value) { enableLogging_ = value; onChanged(); return this; } /** * * *
     * Optional. Determines whether this agent should log conversation queries.
     * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEnableLogging() { enableLogging_ = false; onChanged(); return this; } private int matchMode_ = 0; /** * * *
     * Optional. Determines how intents are detected from user queries.
     * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for matchMode. */ @java.lang.Override @java.lang.Deprecated public int getMatchModeValue() { return matchMode_; } /** * * *
     * Optional. Determines how intents are detected from user queries.
     * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for matchMode to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setMatchModeValue(int value) { matchMode_ = value; onChanged(); return this; } /** * * *
     * Optional. Determines how intents are detected from user queries.
     * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @return The matchMode. */ @java.lang.Override @java.lang.Deprecated public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.v2.Agent.MatchMode result = com.google.cloud.dialogflow.v2.Agent.MatchMode.valueOf(matchMode_); return result == null ? com.google.cloud.dialogflow.v2.Agent.MatchMode.UNRECOGNIZED : result; } /** * * *
     * Optional. Determines how intents are detected from user queries.
     * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @param value The matchMode to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setMatchMode(com.google.cloud.dialogflow.v2.Agent.MatchMode value) { if (value == null) { throw new NullPointerException(); } matchMode_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. Determines how intents are detected from user queries.
     * 
* * * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearMatchMode() { matchMode_ = 0; onChanged(); return this; } private float classificationThreshold_; /** * * *
     * Optional. To filter out false positive results and still get variety in
     * matched natural language inputs for your agent, you can tune the machine
     * learning classification threshold. If the returned score value is less than
     * the threshold value, then a fallback intent will be triggered or, if there
     * are no fallback intents defined, no intent will be triggered. The score
     * values range from 0.0 (completely uncertain) to 1.0 (completely certain).
     * If set to 0.0, the default of 0.3 is used.
     * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The classificationThreshold. */ @java.lang.Override public float getClassificationThreshold() { return classificationThreshold_; } /** * * *
     * Optional. To filter out false positive results and still get variety in
     * matched natural language inputs for your agent, you can tune the machine
     * learning classification threshold. If the returned score value is less than
     * the threshold value, then a fallback intent will be triggered or, if there
     * are no fallback intents defined, no intent will be triggered. The score
     * values range from 0.0 (completely uncertain) to 1.0 (completely certain).
     * If set to 0.0, the default of 0.3 is used.
     * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The classificationThreshold to set. * @return This builder for chaining. */ public Builder setClassificationThreshold(float value) { classificationThreshold_ = value; onChanged(); return this; } /** * * *
     * Optional. To filter out false positive results and still get variety in
     * matched natural language inputs for your agent, you can tune the machine
     * learning classification threshold. If the returned score value is less than
     * the threshold value, then a fallback intent will be triggered or, if there
     * are no fallback intents defined, no intent will be triggered. The score
     * values range from 0.0 (completely uncertain) to 1.0 (completely certain).
     * If set to 0.0, the default of 0.3 is used.
     * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearClassificationThreshold() { classificationThreshold_ = 0F; onChanged(); return this; } private int apiVersion_ = 0; /** * * *
     * Optional. API version displayed in Dialogflow console. If not specified,
     * V2 API is assumed. Clients are free to query different service endpoints
     * for different API versions. However, bots connectors and webhook calls will
     * follow the specified API version.
     * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for apiVersion. */ @java.lang.Override public int getApiVersionValue() { return apiVersion_; } /** * * *
     * Optional. API version displayed in Dialogflow console. If not specified,
     * V2 API is assumed. Clients are free to query different service endpoints
     * for different API versions. However, bots connectors and webhook calls will
     * follow the specified API version.
     * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for apiVersion to set. * @return This builder for chaining. */ public Builder setApiVersionValue(int value) { apiVersion_ = value; onChanged(); return this; } /** * * *
     * Optional. API version displayed in Dialogflow console. If not specified,
     * V2 API is assumed. Clients are free to query different service endpoints
     * for different API versions. However, bots connectors and webhook calls will
     * follow the specified API version.
     * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The apiVersion. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.v2.Agent.ApiVersion result = com.google.cloud.dialogflow.v2.Agent.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.dialogflow.v2.Agent.ApiVersion.UNRECOGNIZED : result; } /** * * *
     * Optional. API version displayed in Dialogflow console. If not specified,
     * V2 API is assumed. Clients are free to query different service endpoints
     * for different API versions. However, bots connectors and webhook calls will
     * follow the specified API version.
     * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The apiVersion to set. * @return This builder for chaining. */ public Builder setApiVersion(com.google.cloud.dialogflow.v2.Agent.ApiVersion value) { if (value == null) { throw new NullPointerException(); } apiVersion_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. API version displayed in Dialogflow console. If not specified,
     * V2 API is assumed. Clients are free to query different service endpoints
     * for different API versions. However, bots connectors and webhook calls will
     * follow the specified API version.
     * 
* * * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearApiVersion() { apiVersion_ = 0; onChanged(); return this; } private int tier_ = 0; /** * * *
     * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
     * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for tier. */ @java.lang.Override public int getTierValue() { return tier_; } /** * * *
     * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
     * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { tier_ = value; onChanged(); return this; } /** * * *
     * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
     * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The tier. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.Tier getTier() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.v2.Agent.Tier result = com.google.cloud.dialogflow.v2.Agent.Tier.valueOf(tier_); return result == null ? com.google.cloud.dialogflow.v2.Agent.Tier.UNRECOGNIZED : result; } /** * * *
     * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
     * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The tier to set. * @return This builder for chaining. */ public Builder setTier(com.google.cloud.dialogflow.v2.Agent.Tier value) { if (value == null) { throw new NullPointerException(); } tier_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
     * 
* * * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearTier() { tier_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Agent) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Agent) private static final com.google.cloud.dialogflow.v2.Agent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Agent(); } public static com.google.cloud.dialogflow.v2.Agent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Agent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Agent(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.v2.Agent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy