Class Agent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
com.google.cloud.dialogflow.v2.Agent.Builder
All Implemented Interfaces:
AgentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Agent

public static final class Agent.Builder extends com.google.protobuf.GeneratedMessage.Builder<Agent.Builder> implements AgentOrBuilder
 A Dialogflow agent is a virtual agent that handles conversations with your
 end-users. It is a natural language understanding module that understands the
 nuances of human language. Dialogflow translates end-user text or audio
 during a conversation to structured data that your apps and services can
 understand. You design and build a Dialogflow agent to handle the types of
 conversations required for your system.

 For more information about agents, see the
 [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
 
Protobuf type google.cloud.dialogflow.v2.Agent
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
    • clear

      public Agent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
    • getDefaultInstanceForType

      public Agent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Agent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Agent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Agent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Agent.Builder>
    • mergeFrom

      public Agent.Builder mergeFrom(Agent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
    • mergeFrom

      public Agent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Agent.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The project of this agent.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface AgentOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project of this agent.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface AgentOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public Agent.Builder setParent(String value)
       Required. The project of this agent.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public Agent.Builder clearParent()
       Required. The project of this agent.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public Agent.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project of this agent.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The name of this agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface AgentOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The name of this agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface AgentOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Agent.Builder setDisplayName(String value)
       Required. The name of this agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Agent.Builder clearDisplayName()
       Required. The name of this agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Agent.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The name of this agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDefaultLanguageCode

      public String getDefaultLanguageCode()
       Required. The default language of the agent as a language tag. See
       [Language
       Support](https://cloud.google.com/dialogflow/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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDefaultLanguageCode in interface AgentOrBuilder
      Returns:
      The defaultLanguageCode.
    • getDefaultLanguageCodeBytes

      public com.google.protobuf.ByteString getDefaultLanguageCodeBytes()
       Required. The default language of the agent as a language tag. See
       [Language
       Support](https://cloud.google.com/dialogflow/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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDefaultLanguageCodeBytes in interface AgentOrBuilder
      Returns:
      The bytes for defaultLanguageCode.
    • setDefaultLanguageCode

      public Agent.Builder setDefaultLanguageCode(String value)
       Required. The default language of the agent as a language tag. See
       [Language
       Support](https://cloud.google.com/dialogflow/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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The defaultLanguageCode to set.
      Returns:
      This builder for chaining.
    • clearDefaultLanguageCode

      public Agent.Builder clearDefaultLanguageCode()
       Required. The default language of the agent as a language tag. See
       [Language
       Support](https://cloud.google.com/dialogflow/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 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDefaultLanguageCodeBytes

      public Agent.Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value)
       Required. The default language of the agent as a language tag. See
       [Language
       Support](https://cloud.google.com/dialogflow/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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for defaultLanguageCode to set.
      Returns:
      This builder for chaining.
    • getSupportedLanguageCodesList

      public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList()
       Optional. The list of all languages supported by this agent (except for the
       `default_language_code`).
       
      repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedLanguageCodesList in interface AgentOrBuilder
      Returns:
      A list containing the supportedLanguageCodes.
    • getSupportedLanguageCodesCount

      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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedLanguageCodesCount in interface AgentOrBuilder
      Returns:
      The count of supportedLanguageCodes.
    • getSupportedLanguageCodes

      public 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedLanguageCodes in interface AgentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The supportedLanguageCodes at the given index.
    • getSupportedLanguageCodesBytes

      public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedLanguageCodesBytes in interface AgentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the supportedLanguageCodes at the given index.
    • setSupportedLanguageCodes

      public Agent.Builder setSupportedLanguageCodes(int index, String value)
       Optional. The list of all languages supported by this agent (except for the
       `default_language_code`).
       
      repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The supportedLanguageCodes to set.
      Returns:
      This builder for chaining.
    • addSupportedLanguageCodes

      public Agent.Builder addSupportedLanguageCodes(String value)
       Optional. The list of all languages supported by this agent (except for the
       `default_language_code`).
       
      repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The supportedLanguageCodes to add.
      Returns:
      This builder for chaining.
    • addAllSupportedLanguageCodes

      public Agent.Builder addAllSupportedLanguageCodes(Iterable<String> values)
       Optional. The list of all languages supported by this agent (except for the
       `default_language_code`).
       
      repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The supportedLanguageCodes to add.
      Returns:
      This builder for chaining.
    • clearSupportedLanguageCodes

      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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSupportedLanguageCodesBytes

      public Agent.Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value)
       Optional. The list of all languages supported by this agent (except for the
       `default_language_code`).
       
      repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the supportedLanguageCodes to add.
      Returns:
      This builder for chaining.
    • getTimeZone

      public 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZone in interface AgentOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZoneBytes in interface AgentOrBuilder
      Returns:
      The bytes for timeZone.
    • setTimeZone

      public Agent.Builder setTimeZone(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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

      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 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTimeZoneBytes

      public Agent.Builder setTimeZoneBytes(com.google.protobuf.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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for timeZone to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. The description of this agent.
       The maximum length is 500 characters. If exceeded, the request is rejected.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface AgentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of this agent.
       The maximum length is 500 characters. If exceeded, the request is rejected.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface AgentOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Agent.Builder setDescription(String value)
       Optional. The description of this agent.
       The maximum length is 500 characters. If exceeded, the request is rejected.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Agent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The description of this agent.
       The maximum length is 500 characters. If exceeded, the request is rejected.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getAvatarUri

      public 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://cloud.google.com/dialogflow/docs/integrations/web-demo)
       integration.
       
      string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvatarUri in interface AgentOrBuilder
      Returns:
      The avatarUri.
    • getAvatarUriBytes

      public com.google.protobuf.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://cloud.google.com/dialogflow/docs/integrations/web-demo)
       integration.
       
      string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvatarUriBytes in interface AgentOrBuilder
      Returns:
      The bytes for avatarUri.
    • setAvatarUri

      public Agent.Builder setAvatarUri(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://cloud.google.com/dialogflow/docs/integrations/web-demo)
       integration.
       
      string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The avatarUri to set.
      Returns:
      This builder for chaining.
    • clearAvatarUri

      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://cloud.google.com/dialogflow/docs/integrations/web-demo)
       integration.
       
      string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAvatarUriBytes

      public Agent.Builder setAvatarUriBytes(com.google.protobuf.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://cloud.google.com/dialogflow/docs/integrations/web-demo)
       integration.
       
      string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for avatarUri to set.
      Returns:
      This builder for chaining.
    • getEnableLogging

      public boolean getEnableLogging()
       Optional. Determines whether this agent should log conversation queries.
       
      bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableLogging in interface AgentOrBuilder
      Returns:
      The enableLogging.
    • setEnableLogging

      public Agent.Builder setEnableLogging(boolean value)
       Optional. Determines whether this agent should log conversation queries.
       
      bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableLogging to set.
      Returns:
      This builder for chaining.
    • clearEnableLogging

      public Agent.Builder clearEnableLogging()
       Optional. Determines whether this agent should log conversation queries.
       
      bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMatchModeValue

      @Deprecated public int getMatchModeValue()
      Deprecated.
      google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353
       Optional. Determines how intents are detected from user queries.
       
      .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchModeValue in interface AgentOrBuilder
      Returns:
      The enum numeric value on the wire for matchMode.
    • setMatchModeValue

      @Deprecated public Agent.Builder setMatchModeValue(int value)
      Deprecated.
      google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353
       Optional. Determines how intents are detected from user queries.
       
      .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for matchMode to set.
      Returns:
      This builder for chaining.
    • getMatchMode

      @Deprecated public Agent.MatchMode getMatchMode()
      Deprecated.
      google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353
       Optional. Determines how intents are detected from user queries.
       
      .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchMode in interface AgentOrBuilder
      Returns:
      The matchMode.
    • setMatchMode

      @Deprecated public Agent.Builder setMatchMode(Agent.MatchMode value)
      Deprecated.
      google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353
       Optional. Determines how intents are detected from user queries.
       
      .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The matchMode to set.
      Returns:
      This builder for chaining.
    • clearMatchMode

      @Deprecated public Agent.Builder clearMatchMode()
      Deprecated.
      google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353
       Optional. Determines how intents are detected from user queries.
       
      .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getClassificationThreshold

      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 will 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getClassificationThreshold in interface AgentOrBuilder
      Returns:
      The classificationThreshold.
    • setClassificationThreshold

      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 will 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The classificationThreshold to set.
      Returns:
      This builder for chaining.
    • clearClassificationThreshold

      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 will 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getApiVersionValue

      public int getApiVersionValue()
       Optional. API version displayed in Dialogflow console. If not specified,
       V2 API is assumed. Clients are free to query different service endpoints
       for different API versions. However, bots connectors and webhook calls will
       follow the specified API version.
       
      .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiVersionValue in interface AgentOrBuilder
      Returns:
      The enum numeric value on the wire for apiVersion.
    • setApiVersionValue

      public Agent.Builder setApiVersionValue(int value)
       Optional. API version displayed in Dialogflow console. If not specified,
       V2 API is assumed. Clients are free to query different service endpoints
       for different API versions. However, bots connectors and webhook calls will
       follow the specified API version.
       
      .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for apiVersion to set.
      Returns:
      This builder for chaining.
    • getApiVersion

      public Agent.ApiVersion getApiVersion()
       Optional. API version displayed in Dialogflow console. If not specified,
       V2 API is assumed. Clients are free to query different service endpoints
       for different API versions. However, bots connectors and webhook calls will
       follow the specified API version.
       
      .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiVersion in interface AgentOrBuilder
      Returns:
      The apiVersion.
    • setApiVersion

      public Agent.Builder setApiVersion(Agent.ApiVersion value)
       Optional. API version displayed in Dialogflow console. If not specified,
       V2 API is assumed. Clients are free to query different service endpoints
       for different API versions. However, bots connectors and webhook calls will
       follow the specified API version.
       
      .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The apiVersion to set.
      Returns:
      This builder for chaining.
    • clearApiVersion

      public Agent.Builder clearApiVersion()
       Optional. API version displayed in Dialogflow console. If not specified,
       V2 API is assumed. Clients are free to query different service endpoints
       for different API versions. However, bots connectors and webhook calls will
       follow the specified API version.
       
      .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getTierValue

      public int getTierValue()
       Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
       
      .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTierValue in interface AgentOrBuilder
      Returns:
      The enum numeric value on the wire for tier.
    • setTierValue

      public Agent.Builder setTierValue(int value)
       Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
       
      .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for tier to set.
      Returns:
      This builder for chaining.
    • getTier

      public Agent.Tier getTier()
       Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
       
      .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTier in interface AgentOrBuilder
      Returns:
      The tier.
    • setTier

      public Agent.Builder setTier(Agent.Tier value)
       Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
       
      .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tier to set.
      Returns:
      This builder for chaining.
    • clearTier

      public Agent.Builder clearTier()
       Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
       
      .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.