Class LanguageSettings.Builder (0.1.0)

public static final class LanguageSettings.Builder extends GeneratedMessage.Builder<LanguageSettings.Builder> implements LanguageSettingsOrBuilder

Language settings of the app.

Protobuf type google.cloud.ces.v1.LanguageSettings

Static Methods

getDescriptor()

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

Methods

addAllSupportedLanguageCodes(Iterable<String> values)

public LanguageSettings.Builder addAllSupportedLanguageCodes(Iterable<String> values)

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The supportedLanguageCodes to add.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

addSupportedLanguageCodes(String value)

public LanguageSettings.Builder addSupportedLanguageCodes(String value)

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The supportedLanguageCodes to add.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

addSupportedLanguageCodesBytes(ByteString value)

public LanguageSettings.Builder addSupportedLanguageCodesBytes(ByteString value)

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the supportedLanguageCodes to add.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

build()

public LanguageSettings build()
Returns
Type Description
LanguageSettings

buildPartial()

public LanguageSettings buildPartial()
Returns
Type Description
LanguageSettings

clear()

public LanguageSettings.Builder clear()
Returns
Type Description
LanguageSettings.Builder
Overrides

clearDefaultLanguageCode()

public LanguageSettings.Builder clearDefaultLanguageCode()

Optional. The default language code of the app.

string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

clearEnableMultilingualSupport()

public LanguageSettings.Builder clearEnableMultilingualSupport()

Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input.

bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

clearFallbackAction()

public LanguageSettings.Builder clearFallbackAction()

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.

string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

clearSupportedLanguageCodes()

public LanguageSettings.Builder clearSupportedLanguageCodes()

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public LanguageSettings getDefaultInstanceForType()
Returns
Type Description
LanguageSettings

getDefaultLanguageCode()

public String getDefaultLanguageCode()

Optional. The default language code of the app.

string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The defaultLanguageCode.

getDefaultLanguageCodeBytes()

public ByteString getDefaultLanguageCodeBytes()

Optional. The default language code of the app.

string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for defaultLanguageCode.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableMultilingualSupport()

public boolean getEnableMultilingualSupport()

Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input.

bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableMultilingualSupport.

getFallbackAction()

public String getFallbackAction()

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.

string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fallbackAction.

getFallbackActionBytes()

public ByteString getFallbackActionBytes()

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.

string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fallbackAction.

getSupportedLanguageCodes(int index)

public String getSupportedLanguageCodes(int index)

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_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 supportedLanguageCodes at the given index.

getSupportedLanguageCodesBytes(int index)

public ByteString getSupportedLanguageCodesBytes(int index)

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_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 supportedLanguageCodes at the given index.

getSupportedLanguageCodesCount()

public int getSupportedLanguageCodesCount()

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of supportedLanguageCodes.

getSupportedLanguageCodesList()

public ProtocolStringList getSupportedLanguageCodesList()

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the supportedLanguageCodes.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LanguageSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDefaultLanguageCode(String value)

public LanguageSettings.Builder setDefaultLanguageCode(String value)

Optional. The default language code of the app.

string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The defaultLanguageCode to set.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

setDefaultLanguageCodeBytes(ByteString value)

public LanguageSettings.Builder setDefaultLanguageCodeBytes(ByteString value)

Optional. The default language code of the app.

string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for defaultLanguageCode to set.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

setEnableMultilingualSupport(boolean value)

public LanguageSettings.Builder setEnableMultilingualSupport(boolean value)

Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input.

bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableMultilingualSupport to set.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

setFallbackAction(String value)

public LanguageSettings.Builder setFallbackAction(String value)

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.

string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The fallbackAction to set.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

setFallbackActionBytes(ByteString value)

public LanguageSettings.Builder setFallbackActionBytes(ByteString value)

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.

string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for fallbackAction to set.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.

setSupportedLanguageCodes(int index, String value)

public LanguageSettings.Builder setSupportedLanguageCodes(int index, String value)

Optional. List of languages codes supported by the app, in addition to the default_language_code.

repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The supportedLanguageCodes to set.

Returns
Type Description
LanguageSettings.Builder

This builder for chaining.