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
TypeDescription
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
NameDescription
valuesIterable<String>

The supportedResponseLanguageCodes to add.

Returns
TypeDescription
Flow.MultiLanguageSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Flow.MultiLanguageSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The supportedResponseLanguageCodes to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the supportedResponseLanguageCodes to add.

Returns
TypeDescription
Flow.MultiLanguageSettings.Builder

This builder for chaining.

build()

public Flow.MultiLanguageSettings build()
Returns
TypeDescription
Flow.MultiLanguageSettings

buildPartial()

public Flow.MultiLanguageSettings buildPartial()
Returns
TypeDescription
Flow.MultiLanguageSettings

clear()

public Flow.MultiLanguageSettings.Builder clear()
Returns
TypeDescription
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
TypeDescription
Flow.MultiLanguageSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Flow.MultiLanguageSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Flow.MultiLanguageSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Flow.MultiLanguageSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Flow.MultiLanguageSettings.Builder

This builder for chaining.

clone()

public Flow.MultiLanguageSettings.Builder clone()
Returns
TypeDescription
Flow.MultiLanguageSettings.Builder
Overrides

getDefaultInstanceForType()

public Flow.MultiLanguageSettings getDefaultInstanceForType()
Returns
TypeDescription
Flow.MultiLanguageSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the supportedResponseLanguageCodes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Flow.MultiLanguageSettings other)

public Flow.MultiLanguageSettings.Builder mergeFrom(Flow.MultiLanguageSettings other)
Parameter
NameDescription
otherFlow.MultiLanguageSettings
Returns
TypeDescription
Flow.MultiLanguageSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Flow.MultiLanguageSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Flow.MultiLanguageSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Flow.MultiLanguageSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Flow.MultiLanguageSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Flow.MultiLanguageSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enableMultiLanguageDetection to set.

Returns
TypeDescription
Flow.MultiLanguageSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Flow.MultiLanguageSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The supportedResponseLanguageCodes to set.

Returns
TypeDescription
Flow.MultiLanguageSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Flow.MultiLanguageSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Flow.MultiLanguageSettings.Builder
Overrides