public static final class Flow.MultiLanguageSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder> implements Flow.MultiLanguageSettingsOrBuilder
Settings for multi-lingual agents.Protobuf type
google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Flow.MultiLanguageSettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Flow.MultiLanguageSettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Flow.MultiLanguageSettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder mergeFrom(Flow.MultiLanguageSettings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public Flow.MultiLanguageSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Flow.MultiLanguageSettings.Builder>IOExceptionpublic boolean getEnableMultiLanguageDetection()
Optional. Enable multi-language detection for this flow. This can be set only if [agent level multi language setting][Agent.enable_multi_language_training] is enabled.
bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
getEnableMultiLanguageDetection in interface Flow.MultiLanguageSettingsOrBuilderpublic Flow.MultiLanguageSettings.Builder setEnableMultiLanguageDetection(boolean value)
Optional. Enable multi-language detection for this flow. This can be set only if [agent level multi language setting][Agent.enable_multi_language_training] is enabled.
bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
value - The enableMultiLanguageDetection to set.public Flow.MultiLanguageSettings.Builder clearEnableMultiLanguageDetection()
Optional. Enable multi-language detection for this flow. This can be set only if [agent level multi language setting][Agent.enable_multi_language_training] is enabled.
bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.ProtocolStringList getSupportedResponseLanguageCodesList()
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
getSupportedResponseLanguageCodesList in interface Flow.MultiLanguageSettingsOrBuilderpublic int getSupportedResponseLanguageCodesCount()
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
getSupportedResponseLanguageCodesCount in interface Flow.MultiLanguageSettingsOrBuilderpublic String getSupportedResponseLanguageCodes(int index)
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
getSupportedResponseLanguageCodes in interface Flow.MultiLanguageSettingsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSupportedResponseLanguageCodesBytes(int index)
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
getSupportedResponseLanguageCodesBytes in interface Flow.MultiLanguageSettingsOrBuilderindex - The index of the value to return.public Flow.MultiLanguageSettings.Builder setSupportedResponseLanguageCodes(int index, String value)
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The supportedResponseLanguageCodes to set.public Flow.MultiLanguageSettings.Builder addSupportedResponseLanguageCodes(String value)
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The supportedResponseLanguageCodes to add.public Flow.MultiLanguageSettings.Builder addAllSupportedResponseLanguageCodes(Iterable<String> values)
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
values - The supportedResponseLanguageCodes to add.public Flow.MultiLanguageSettings.Builder clearSupportedResponseLanguageCodes()
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
public Flow.MultiLanguageSettings.Builder addSupportedResponseLanguageCodesBytes(com.google.protobuf.ByteString value)
Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. The supported languages must be a subset of the languages supported by the agent.
repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes of the supportedResponseLanguageCodes to add.public final Flow.MultiLanguageSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>public final Flow.MultiLanguageSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder>Copyright © 2025 Google LLC. All rights reserved.