public static final class Agent.Builder extends GeneratedMessageV3.Builder<Agent.Builder> implements AgentOrBuilder
Represents a conversational agent.Protobuf type
google.cloud.dialogflow.v2beta1.AgentgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Agent.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Agent.Builder>public Agent getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Agent build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Agent buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Agent.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Agent.Builder>public Agent.Builder mergeFrom(Agent other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Agent.Builder>public Agent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Agent.Builder>java.io.IOExceptionpublic java.lang.String getParent()
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;getParent in interface AgentOrBuilderpublic ByteString getParentBytes()
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1;getParentBytes in interface AgentOrBuilderpublic 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 AgentOrBuilderpublic ByteString getDisplayNameBytes()
Required. The name of this agent.
string display_name = 2;getDisplayNameBytes in interface AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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 AgentOrBuilderpublic 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.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Agent.Builder>public final Agent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Agent.Builder>