public static final class Agent.Builder extends GeneratedMessageV3.Builder<Agent.Builder> implements AgentOrBuilder
Represents a conversational agent.Protobuf type
google.cloud.dialogflow.v2beta1.Agent
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Agent.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Agent build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Agent buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Agent.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Agent.Builder>
public Agent.Builder mergeFrom(Agent other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Agent.Builder>
public Agent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Agent.Builder>
java.io.IOException
public java.lang.String getParent()
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;
getParent
in interface AgentOrBuilder
public ByteString getParentBytes()
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;
getParentBytes
in interface AgentOrBuilder
public Agent.Builder setParent(java.lang.String value)
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;
public Agent.Builder clearParent()
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;
public Agent.Builder setParentBytes(ByteString value)
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;
public java.lang.String getDisplayName()
Required. The name of this agent.
string display_name = 2;
getDisplayName
in interface AgentOrBuilder
public ByteString getDisplayNameBytes()
Required. The name of this agent.
string display_name = 2;
getDisplayNameBytes
in interface AgentOrBuilder
public Agent.Builder setDisplayName(java.lang.String value)
Required. The name of this agent.
string display_name = 2;
public Agent.Builder clearDisplayName()
Required. The name of this agent.
string display_name = 2;
public Agent.Builder setDisplayNameBytes(ByteString value)
Required. The name of this agent.
string display_name = 2;
public java.lang.String getDefaultLanguageCode()
Required. The default language of the agent as a language tag. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3;
getDefaultLanguageCode
in interface AgentOrBuilder
public ByteString getDefaultLanguageCodeBytes()
Required. The default language of the agent as a language tag. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3;
getDefaultLanguageCodeBytes
in interface AgentOrBuilder
public Agent.Builder setDefaultLanguageCode(java.lang.String value)
Required. The default language of the agent as a language tag. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3;
public Agent.Builder clearDefaultLanguageCode()
Required. The default language of the agent as a language tag. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3;
public Agent.Builder setDefaultLanguageCodeBytes(ByteString value)
Required. The default language of the agent as a language tag. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3;
public ProtocolStringList getSupportedLanguageCodesList()
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
getSupportedLanguageCodesList
in interface AgentOrBuilder
public int getSupportedLanguageCodesCount()
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
getSupportedLanguageCodesCount
in interface AgentOrBuilder
public java.lang.String getSupportedLanguageCodes(int index)
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
getSupportedLanguageCodes
in interface AgentOrBuilder
public ByteString getSupportedLanguageCodesBytes(int index)
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
getSupportedLanguageCodesBytes
in interface AgentOrBuilder
public Agent.Builder setSupportedLanguageCodes(int index, java.lang.String value)
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
public Agent.Builder addSupportedLanguageCodes(java.lang.String value)
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
public Agent.Builder addAllSupportedLanguageCodes(java.lang.Iterable<java.lang.String> values)
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
public Agent.Builder clearSupportedLanguageCodes()
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
public Agent.Builder addSupportedLanguageCodesBytes(ByteString value)
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4;
public java.lang.String getTimeZone()
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5;
getTimeZone
in interface AgentOrBuilder
public ByteString getTimeZoneBytes()
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5;
getTimeZoneBytes
in interface AgentOrBuilder
public Agent.Builder setTimeZone(java.lang.String value)
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5;
public Agent.Builder clearTimeZone()
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5;
public Agent.Builder setTimeZoneBytes(ByteString value)
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5;
public java.lang.String getDescription()
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6;
getDescription
in interface AgentOrBuilder
public ByteString getDescriptionBytes()
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6;
getDescriptionBytes
in interface AgentOrBuilder
public Agent.Builder setDescription(java.lang.String value)
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6;
public Agent.Builder clearDescription()
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6;
public Agent.Builder setDescriptionBytes(ByteString value)
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6;
public java.lang.String getAvatarUri()
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
string avatar_uri = 7;
getAvatarUri
in interface AgentOrBuilder
public ByteString getAvatarUriBytes()
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
string avatar_uri = 7;
getAvatarUriBytes
in interface AgentOrBuilder
public Agent.Builder setAvatarUri(java.lang.String value)
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
string avatar_uri = 7;
public Agent.Builder clearAvatarUri()
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
string avatar_uri = 7;
public Agent.Builder setAvatarUriBytes(ByteString value)
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
string avatar_uri = 7;
public boolean getEnableLogging()
Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8;
getEnableLogging
in interface AgentOrBuilder
public Agent.Builder setEnableLogging(boolean value)
Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8;
public Agent.Builder clearEnableLogging()
Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8;
public int getMatchModeValue()
Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9;
getMatchModeValue
in interface AgentOrBuilder
public Agent.Builder setMatchModeValue(int value)
Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9;
public Agent.MatchMode getMatchMode()
Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9;
getMatchMode
in interface AgentOrBuilder
public Agent.Builder setMatchMode(Agent.MatchMode value)
Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9;
public Agent.Builder clearMatchMode()
Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9;
public float getClassificationThreshold()
Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent is be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10;
getClassificationThreshold
in interface AgentOrBuilder
public Agent.Builder setClassificationThreshold(float value)
Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent is be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10;
public Agent.Builder clearClassificationThreshold()
Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent is be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10;
public final Agent.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Agent.Builder>
public final Agent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Agent.Builder>