Class Agent.Builder (0.14.1)

public static final class Agent.Builder extends GeneratedMessageV3.Builder<Agent.Builder> implements AgentOrBuilder

Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..

Protobuf type google.cloud.dialogflow.cx.v3.Agent

Implements

AgentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSupportedLanguageCodes(Iterable<String> values)

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

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Parameter
NameDescription
valuesIterable<String>

The supportedLanguageCodes to add.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Agent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Agent.Builder
Overrides

addSupportedLanguageCodes(String value)

public Agent.Builder addSupportedLanguageCodes(String value)

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Parameter
NameDescription
valueString

The supportedLanguageCodes to add.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

addSupportedLanguageCodesBytes(ByteString value)

public Agent.Builder addSupportedLanguageCodesBytes(ByteString value)

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Parameter
NameDescription
valueByteString

The bytes of the supportedLanguageCodes to add.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

build()

public Agent build()
Returns
TypeDescription
Agent

buildPartial()

public Agent buildPartial()
Returns
TypeDescription
Agent

clear()

public Agent.Builder clear()
Returns
TypeDescription
Agent.Builder
Overrides

clearAdvancedSettings()

public Agent.Builder clearAdvancedSettings()

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Returns
TypeDescription
Agent.Builder

clearAvatarUri()

public Agent.Builder clearAvatarUri()

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

string avatar_uri = 7;

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearDefaultLanguageCode()

public Agent.Builder clearDefaultLanguageCode()

Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearDescription()

public Agent.Builder clearDescription()

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 6;

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearDisplayName()

public Agent.Builder clearDisplayName()

Required. The human-readable name of the agent, unique within the location.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearEnableSpellCorrection()

public Agent.Builder clearEnableSpellCorrection()

Indicates if automatic spell correction is enabled in detect intent requests.

bool enable_spell_correction = 20;

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearEnableStackdriverLogging() (deprecated)

public Agent.Builder clearEnableStackdriverLogging()

Deprecated. google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See google/cloud/dialogflow/cx/v3/agent.proto;l=245

Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.

bool enable_stackdriver_logging = 18 [deprecated = true];

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLocked()

public Agent.Builder clearLocked()

Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [RestoreAgent][].

bool locked = 27;

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearName()

public Agent.Builder clearName()

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string name = 1;

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Agent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Agent.Builder
Overrides

clearSecuritySettings()

public Agent.Builder clearSecuritySettings()

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

string security_settings = 17 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearSpeechToTextSettings()

public Agent.Builder clearSpeechToTextSettings()

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Returns
TypeDescription
Agent.Builder

clearStartFlow()

public Agent.Builder clearStartFlow()

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearSupportedLanguageCodes()

public Agent.Builder clearSupportedLanguageCodes()

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clearTimeZone()

public Agent.Builder clearTimeZone()

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Agent.Builder

This builder for chaining.

clone()

public Agent.Builder clone()
Returns
TypeDescription
Agent.Builder
Overrides

getAdvancedSettings()

public AdvancedSettings getAdvancedSettings()

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Returns
TypeDescription
AdvancedSettings

The advancedSettings.

getAdvancedSettingsBuilder()

public AdvancedSettings.Builder getAdvancedSettingsBuilder()

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Returns
TypeDescription
AdvancedSettings.Builder

getAdvancedSettingsOrBuilder()

public AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder()

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Returns
TypeDescription
AdvancedSettingsOrBuilder

getAvatarUri()

public String getAvatarUri()

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

string avatar_uri = 7;

Returns
TypeDescription
String

The avatarUri.

getAvatarUriBytes()

public ByteString getAvatarUriBytes()

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

string avatar_uri = 7;

Returns
TypeDescription
ByteString

The bytes for avatarUri.

getDefaultInstanceForType()

public Agent getDefaultInstanceForType()
Returns
TypeDescription
Agent

getDefaultLanguageCode()

public String getDefaultLanguageCode()

Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The defaultLanguageCode.

getDefaultLanguageCodeBytes()

public ByteString getDefaultLanguageCodeBytes()

Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for defaultLanguageCode.

getDescription()

public String getDescription()

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The human-readable name of the agent, unique within the location.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The human-readable name of the agent, unique within the location.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getEnableSpellCorrection()

public boolean getEnableSpellCorrection()

Indicates if automatic spell correction is enabled in detect intent requests.

bool enable_spell_correction = 20;

Returns
TypeDescription
boolean

The enableSpellCorrection.

getEnableStackdriverLogging() (deprecated)

public boolean getEnableStackdriverLogging()

Deprecated. google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See google/cloud/dialogflow/cx/v3/agent.proto;l=245

Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.

bool enable_stackdriver_logging = 18 [deprecated = true];

Returns
TypeDescription
boolean

The enableStackdriverLogging.

getLocked()

public boolean getLocked()

Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [RestoreAgent][].

bool locked = 27;

Returns
TypeDescription
boolean

The locked.

getName()

public String getName()

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSecuritySettings()

public String getSecuritySettings()

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

string security_settings = 17 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The securitySettings.

getSecuritySettingsBytes()

public ByteString getSecuritySettingsBytes()

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

string security_settings = 17 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for securitySettings.

getSpeechToTextSettings()

public SpeechToTextSettings getSpeechToTextSettings()

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Returns
TypeDescription
SpeechToTextSettings

The speechToTextSettings.

getSpeechToTextSettingsBuilder()

public SpeechToTextSettings.Builder getSpeechToTextSettingsBuilder()

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Returns
TypeDescription
SpeechToTextSettings.Builder

getSpeechToTextSettingsOrBuilder()

public SpeechToTextSettingsOrBuilder getSpeechToTextSettingsOrBuilder()

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Returns
TypeDescription
SpeechToTextSettingsOrBuilder

getStartFlow()

public String getStartFlow()

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The startFlow.

getStartFlowBytes()

public ByteString getStartFlowBytes()

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for startFlow.

getSupportedLanguageCodes(int index)

public String getSupportedLanguageCodes(int index)

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The supportedLanguageCodes at the given index.

getSupportedLanguageCodesBytes(int index)

public ByteString getSupportedLanguageCodesBytes(int index)

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the supportedLanguageCodes at the given index.

getSupportedLanguageCodesCount()

public int getSupportedLanguageCodesCount()

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Returns
TypeDescription
int

The count of supportedLanguageCodes.

getSupportedLanguageCodesList()

public ProtocolStringList getSupportedLanguageCodesList()

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the supportedLanguageCodes.

getTimeZone()

public String getTimeZone()

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for timeZone.

hasAdvancedSettings()

public boolean hasAdvancedSettings()

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Returns
TypeDescription
boolean

Whether the advancedSettings field is set.

hasSpeechToTextSettings()

public boolean hasSpeechToTextSettings()

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Returns
TypeDescription
boolean

Whether the speechToTextSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAdvancedSettings(AdvancedSettings value)

public Agent.Builder mergeAdvancedSettings(AdvancedSettings value)

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Parameter
NameDescription
valueAdvancedSettings
Returns
TypeDescription
Agent.Builder

mergeFrom(Agent other)

public Agent.Builder mergeFrom(Agent other)
Parameter
NameDescription
otherAgent
Returns
TypeDescription
Agent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSpeechToTextSettings(SpeechToTextSettings value)

public Agent.Builder mergeSpeechToTextSettings(SpeechToTextSettings value)

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Parameter
NameDescription
valueSpeechToTextSettings
Returns
TypeDescription
Agent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Agent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Agent.Builder
Overrides

setAdvancedSettings(AdvancedSettings value)

public Agent.Builder setAdvancedSettings(AdvancedSettings value)

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Parameter
NameDescription
valueAdvancedSettings
Returns
TypeDescription
Agent.Builder

setAdvancedSettings(AdvancedSettings.Builder builderForValue)

public Agent.Builder setAdvancedSettings(AdvancedSettings.Builder builderForValue)

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;

Parameter
NameDescription
builderForValueAdvancedSettings.Builder
Returns
TypeDescription
Agent.Builder

setAvatarUri(String value)

public Agent.Builder setAvatarUri(String value)

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

string avatar_uri = 7;

Parameter
NameDescription
valueString

The avatarUri to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setAvatarUriBytes(ByteString value)

public Agent.Builder setAvatarUriBytes(ByteString value)

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

string avatar_uri = 7;

Parameter
NameDescription
valueByteString

The bytes for avatarUri to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setDefaultLanguageCode(String value)

public Agent.Builder setDefaultLanguageCode(String value)

Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The defaultLanguageCode to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setDefaultLanguageCodeBytes(ByteString value)

public Agent.Builder setDefaultLanguageCodeBytes(ByteString value)

Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for defaultLanguageCode to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setDescription(String value)

public Agent.Builder setDescription(String value)

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Agent.Builder setDescriptionBytes(ByteString value)

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setDisplayName(String value)

public Agent.Builder setDisplayName(String value)

Required. The human-readable name of the agent, unique within the location.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Agent.Builder setDisplayNameBytes(ByteString value)

Required. The human-readable name of the agent, unique within the location.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setEnableSpellCorrection(boolean value)

public Agent.Builder setEnableSpellCorrection(boolean value)

Indicates if automatic spell correction is enabled in detect intent requests.

bool enable_spell_correction = 20;

Parameter
NameDescription
valueboolean

The enableSpellCorrection to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setEnableStackdriverLogging(boolean value) (deprecated)

public Agent.Builder setEnableStackdriverLogging(boolean value)

Deprecated. google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See google/cloud/dialogflow/cx/v3/agent.proto;l=245

Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.

bool enable_stackdriver_logging = 18 [deprecated = true];

Parameter
NameDescription
valueboolean

The enableStackdriverLogging to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Agent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Agent.Builder
Overrides

setLocked(boolean value)

public Agent.Builder setLocked(boolean value)

Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [RestoreAgent][].

bool locked = 27;

Parameter
NameDescription
valueboolean

The locked to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setName(String value)

public Agent.Builder setName(String value)

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Agent.Builder setNameBytes(ByteString value)

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

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

public Agent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Agent.Builder
Overrides

setSecuritySettings(String value)

public Agent.Builder setSecuritySettings(String value)

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

string security_settings = 17 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The securitySettings to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setSecuritySettingsBytes(ByteString value)

public Agent.Builder setSecuritySettingsBytes(ByteString value)

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

string security_settings = 17 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for securitySettings to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setSpeechToTextSettings(SpeechToTextSettings value)

public Agent.Builder setSpeechToTextSettings(SpeechToTextSettings value)

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Parameter
NameDescription
valueSpeechToTextSettings
Returns
TypeDescription
Agent.Builder

setSpeechToTextSettings(SpeechToTextSettings.Builder builderForValue)

public Agent.Builder setSpeechToTextSettings(SpeechToTextSettings.Builder builderForValue)

Speech recognition related settings.

.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;

Parameter
NameDescription
builderForValueSpeechToTextSettings.Builder
Returns
TypeDescription
Agent.Builder

setStartFlow(String value)

public Agent.Builder setStartFlow(String value)

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The startFlow to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setStartFlowBytes(ByteString value)

public Agent.Builder setStartFlowBytes(ByteString value)

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for startFlow to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setSupportedLanguageCodes(int index, String value)

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

The list of all languages supported by the agent (except for the default_language_code).

repeated string supported_language_codes = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The supportedLanguageCodes to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setTimeZone(String value)

public Agent.Builder setTimeZone(String value)

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The timeZone to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public Agent.Builder setTimeZoneBytes(ByteString value)

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for timeZone to set.

Returns
TypeDescription
Agent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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