- 0.64.0 (latest)
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
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.v3beta1.Agent
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Agent.BuilderImplements
AgentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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;
Name | Description |
values | Iterable<String> The supportedLanguageCodes to add. |
Type | Description |
Agent.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Agent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Agent.Builder |
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;
Name | Description |
value | String The supportedLanguageCodes to add. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes of the supportedLanguageCodes to add. |
Type | Description |
Agent.Builder | This builder for chaining. |
build()
public Agent build()
Type | Description |
Agent |
buildPartial()
public Agent buildPartial()
Type | Description |
Agent |
clear()
public Agent.Builder clear()
Type | Description |
Agent.Builder |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Type | Description |
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;
Type | Description |
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];
Type | Description |
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;
Type | Description |
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];
Type | Description |
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;
Type | Description |
Agent.Builder | This builder for chaining. |
clearEnableStackdriverLogging() (deprecated)
public Agent.Builder clearEnableStackdriverLogging()
Deprecated. google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=255
Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
bool enable_stackdriver_logging = 18 [deprecated = true];
Type | Description |
Agent.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Agent.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Agent.Builder |
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;
Type | Description |
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;
Type | Description |
Agent.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Agent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Agent.Builder |
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) = { ... }
Type | Description |
Agent.Builder | This builder for chaining. |
clearSpeechToTextSettings()
public Agent.Builder clearSpeechToTextSettings()
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Type | Description |
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) = { ... }
Type | Description |
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;
Type | Description |
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];
Type | Description |
Agent.Builder | This builder for chaining. |
clone()
public Agent.Builder clone()
Type | Description |
Agent.Builder |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Type | Description |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Type | Description |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Type | Description |
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;
Type | Description |
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;
Type | Description |
ByteString | The bytes for avatarUri. |
getDefaultInstanceForType()
public Agent getDefaultInstanceForType()
Type | Description |
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];
Type | Description |
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];
Type | Description |
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;
Type | Description |
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;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
Type | Description |
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];
Type | Description |
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;
Type | Description |
boolean | The enableSpellCorrection. |
getEnableStackdriverLogging() (deprecated)
public boolean getEnableStackdriverLogging()
Deprecated. google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=255
Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
bool enable_stackdriver_logging = 18 [deprecated = true];
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
ByteString | The bytes for securitySettings. |
getSpeechToTextSettings()
public SpeechToTextSettings getSpeechToTextSettings()
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Type | Description |
SpeechToTextSettings | The speechToTextSettings. |
getSpeechToTextSettingsBuilder()
public SpeechToTextSettings.Builder getSpeechToTextSettingsBuilder()
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Type | Description |
SpeechToTextSettings.Builder |
getSpeechToTextSettingsOrBuilder()
public SpeechToTextSettingsOrBuilder getSpeechToTextSettingsOrBuilder()
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Type | Description |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
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;
Type | Description |
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;
Type | Description |
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];
Type | Description |
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];
Type | Description |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Type | Description |
boolean | Whether the advancedSettings field is set. |
hasSpeechToTextSettings()
public boolean hasSpeechToTextSettings()
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Type | Description |
boolean | Whether the speechToTextSettings field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Name | Description |
value | AdvancedSettings |
Type | Description |
Agent.Builder |
mergeFrom(Agent other)
public Agent.Builder mergeFrom(Agent other)
Name | Description |
other | Agent |
Type | Description |
Agent.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Agent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Agent.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Agent.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Agent.Builder |
mergeSpeechToTextSettings(SpeechToTextSettings value)
public Agent.Builder mergeSpeechToTextSettings(SpeechToTextSettings value)
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Name | Description |
value | SpeechToTextSettings |
Type | Description |
Agent.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Agent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Agent.Builder |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Name | Description |
value | AdvancedSettings |
Type | Description |
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.v3beta1.AdvancedSettings advanced_settings = 22;
Name | Description |
builderForValue | AdvancedSettings.Builder |
Type | Description |
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;
Name | Description |
value | String The avatarUri to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for avatarUri to set. |
Type | Description |
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];
Name | Description |
value | String The defaultLanguageCode to set. |
Type | Description |
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];
Name | Description |
value | ByteString The bytes for defaultLanguageCode to set. |
Type | Description |
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;
Name | Description |
value | String The description to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
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];
Name | Description |
value | String The displayName to set. |
Type | Description |
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];
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
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;
Name | Description |
value | boolean The enableSpellCorrection to set. |
Type | Description |
Agent.Builder | This builder for chaining. |
setEnableStackdriverLogging(boolean value) (deprecated)
public Agent.Builder setEnableStackdriverLogging(boolean value)
Deprecated. google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=255
Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
bool enable_stackdriver_logging = 18 [deprecated = true];
Name | Description |
value | boolean The enableStackdriverLogging to set. |
Type | Description |
Agent.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Agent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Agent.Builder |
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;
Name | Description |
value | boolean The locked to set. |
Type | Description |
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;
Name | Description |
value | String The name to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Agent.Builder |
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) = { ... }
Name | Description |
value | String The securitySettings to set. |
Type | Description |
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) = { ... }
Name | Description |
value | ByteString The bytes for securitySettings to set. |
Type | Description |
Agent.Builder | This builder for chaining. |
setSpeechToTextSettings(SpeechToTextSettings value)
public Agent.Builder setSpeechToTextSettings(SpeechToTextSettings value)
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Name | Description |
value | SpeechToTextSettings |
Type | Description |
Agent.Builder |
setSpeechToTextSettings(SpeechToTextSettings.Builder builderForValue)
public Agent.Builder setSpeechToTextSettings(SpeechToTextSettings.Builder builderForValue)
Speech recognition related settings.
.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings speech_to_text_settings = 13;
Name | Description |
builderForValue | SpeechToTextSettings.Builder |
Type | Description |
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) = { ... }
Name | Description |
value | String The startFlow to set. |
Type | Description |
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) = { ... }
Name | Description |
value | ByteString The bytes for startFlow to set. |
Type | Description |
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;
Name | Description |
index | int The index to set the value at. |
value | String The supportedLanguageCodes to set. |
Type | Description |
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];
Name | Description |
value | String The timeZone to set. |
Type | Description |
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];
Name | Description |
value | ByteString The bytes for timeZone to set. |
Type | Description |
Agent.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Agent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Agent.Builder |