Class Flow.MultiLanguageSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.Builder
- All Implemented Interfaces:
Flow.MultiLanguageSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Flow.MultiLanguageSettings
public static final class Flow.MultiLanguageSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
implements Flow.MultiLanguageSettingsOrBuilder
Settings for multi-lingual agents.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.addSupportedResponseLanguageCodesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.getSupportedResponseLanguageCodes(int index) Optional.com.google.protobuf.ByteStringgetSupportedResponseLanguageCodesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEnableMultiLanguageDetection(boolean value) Optional.setSupportedResponseLanguageCodes(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Flow.MultiLanguageSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
-
mergeFrom
public Flow.MultiLanguageSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Flow.MultiLanguageSettings.Builder>- Throws:
IOException
-
getEnableMultiLanguageDetection
public 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];- Specified by:
getEnableMultiLanguageDetectionin interfaceFlow.MultiLanguageSettingsOrBuilder- Returns:
- The enableMultiLanguageDetection.
-
setEnableMultiLanguageDetection
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];- Parameters:
value- The enableMultiLanguageDetection to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
getSupportedResponseLanguageCodesList
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Specified by:
getSupportedResponseLanguageCodesListin interfaceFlow.MultiLanguageSettingsOrBuilder- Returns:
- A list containing the supportedResponseLanguageCodes.
-
getSupportedResponseLanguageCodesCount
public 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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Specified by:
getSupportedResponseLanguageCodesCountin interfaceFlow.MultiLanguageSettingsOrBuilder- Returns:
- The count of supportedResponseLanguageCodes.
-
getSupportedResponseLanguageCodes
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Specified by:
getSupportedResponseLanguageCodesin interfaceFlow.MultiLanguageSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportedResponseLanguageCodes at the given index.
-
getSupportedResponseLanguageCodesBytes
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Specified by:
getSupportedResponseLanguageCodesBytesin interfaceFlow.MultiLanguageSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the supportedResponseLanguageCodes at the given index.
-
setSupportedResponseLanguageCodes
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Parameters:
index- The index to set the value at.value- The supportedResponseLanguageCodes to set.- Returns:
- This builder for chaining.
-
addSupportedResponseLanguageCodes
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Parameters:
value- The supportedResponseLanguageCodes to add.- Returns:
- This builder for chaining.
-
addAllSupportedResponseLanguageCodes
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Parameters:
values- The supportedResponseLanguageCodes to add.- Returns:
- This builder for chaining.
-
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Returns:
- This builder for chaining.
-
addSupportedResponseLanguageCodesBytes
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.v3beta1.Agent.enable_multi_language_training] and multi-language detection is enabled in the [flow][google.cloud.dialogflow.cx.v3beta1.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];- Parameters:
value- The bytes of the supportedResponseLanguageCodes to add.- Returns:
- This builder for chaining.
-