Class Flow.MultiLanguageSettings.Builder (0.52.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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.

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Flow.MultiLanguageSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Flow.MultiLanguageSettings.Builder
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.

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

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.

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

build()

public Flow.MultiLanguageSettings build()
Returns
Type Description
Flow.MultiLanguageSettings

buildPartial()

public Flow.MultiLanguageSettings buildPartial()
Returns
Type Description
Flow.MultiLanguageSettings

clear()

public Flow.MultiLanguageSettings.Builder clear()
Returns
Type Description
Flow.MultiLanguageSettings.Builder
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];

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Flow.MultiLanguageSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Flow.MultiLanguageSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Flow.MultiLanguageSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Flow.MultiLanguageSettings.Builder
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];

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

clone()

public Flow.MultiLanguageSettings.Builder clone()
Returns
Type Description
Flow.MultiLanguageSettings.Builder
Overrides

getDefaultInstanceForType()

public Flow.MultiLanguageSettings getDefaultInstanceForType()
Returns
Type Description
Flow.MultiLanguageSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Flow.MultiLanguageSettings other)

public Flow.MultiLanguageSettings.Builder mergeFrom(Flow.MultiLanguageSettings other)
Parameter
Name Description
other Flow.MultiLanguageSettings
Returns
Type Description
Flow.MultiLanguageSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Flow.MultiLanguageSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Flow.MultiLanguageSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Flow.MultiLanguageSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Flow.MultiLanguageSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Flow.MultiLanguageSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Flow.MultiLanguageSettings.Builder
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.

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Flow.MultiLanguageSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Flow.MultiLanguageSettings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Flow.MultiLanguageSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Flow.MultiLanguageSettings.Builder
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.

Returns
Type Description
Flow.MultiLanguageSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Flow.MultiLanguageSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Flow.MultiLanguageSettings.Builder
Overrides