public static final class Flow.MultiLanguageSettings.Builder extends GeneratedMessageV3.Builder<Flow.MultiLanguageSettings.Builder> implements Flow.MultiLanguageSettingsOrBuilder
Settings for multi-lingual agents.
Protobuf type google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllSupportedResponseLanguageCodes(Iterable<String> values)
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
and multi-language detection is enabled in the
flow.
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];
Parameter |
Name |
Description |
values |
Iterable<String>
The supportedResponseLanguageCodes to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Flow.MultiLanguageSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSupportedResponseLanguageCodes(String value)
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
and multi-language detection is enabled in the
flow.
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];
Parameter |
Name |
Description |
value |
String
The supportedResponseLanguageCodes to add.
|
addSupportedResponseLanguageCodesBytes(ByteString value)
public Flow.MultiLanguageSettings.Builder addSupportedResponseLanguageCodesBytes(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
and multi-language detection is enabled in the
flow.
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];
Parameter |
Name |
Description |
value |
ByteString
The bytes of the supportedResponseLanguageCodes to add.
|
build()
public Flow.MultiLanguageSettings build()
buildPartial()
public Flow.MultiLanguageSettings buildPartial()
clear()
public Flow.MultiLanguageSettings.Builder clear()
Overrides
clearEnableMultiLanguageDetection()
public Flow.MultiLanguageSettings.Builder clearEnableMultiLanguageDetection()
Optional. Enable multi-language detection for this flow. This can be set
only if agent level multi language
setting is enabled.
bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public Flow.MultiLanguageSettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Flow.MultiLanguageSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSupportedResponseLanguageCodes()
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
and multi-language detection is enabled in the
flow.
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];
clone()
public Flow.MultiLanguageSettings.Builder clone()
Overrides
getDefaultInstanceForType()
public Flow.MultiLanguageSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEnableMultiLanguageDetection()
public boolean getEnableMultiLanguageDetection()
Optional. Enable multi-language detection for this flow. This can be set
only if agent level multi language
setting is enabled.
bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The enableMultiLanguageDetection.
|
getSupportedResponseLanguageCodes(int index)
public 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
and multi-language detection is enabled in the
flow.
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];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The supportedResponseLanguageCodes at the given index.
|
getSupportedResponseLanguageCodesBytes(int index)
public 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
and multi-language detection is enabled in the
flow.
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];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the supportedResponseLanguageCodes at the given index.
|
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
and multi-language detection is enabled in the
flow.
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 |
Type |
Description |
int |
The count of supportedResponseLanguageCodes.
|
getSupportedResponseLanguageCodesList()
public 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
and multi-language detection is enabled in the
flow.
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 |
Type |
Description |
ProtocolStringList |
A list containing the supportedResponseLanguageCodes.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Flow.MultiLanguageSettings other)
public Flow.MultiLanguageSettings.Builder mergeFrom(Flow.MultiLanguageSettings other)
public Flow.MultiLanguageSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Flow.MultiLanguageSettings.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Flow.MultiLanguageSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setEnableMultiLanguageDetection(boolean value)
public 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 is enabled.
bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
boolean
The enableMultiLanguageDetection to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Flow.MultiLanguageSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Flow.MultiLanguageSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSupportedResponseLanguageCodes(int index, String value)
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
and multi-language detection is enabled in the
flow.
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 |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The supportedResponseLanguageCodes to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Flow.MultiLanguageSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides