Class Intent.Builder

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

public static final class Intent.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Builder> implements IntentOrBuilder
 An intent represents a user's intent to interact with a conversational agent.

 You can provide information for the Dialogflow API to use to match user input
 to an intent by adding training phrases (i.e., examples of user input) to
 your intent.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Intent
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Intent.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Intent.Builder>
    • internalGetFieldAccessorTable

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

      public Intent.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<Intent.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<Intent.Builder>
    • getDefaultInstanceForType

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

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

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

      public Intent.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<Intent.Builder>
    • mergeFrom

      public Intent.Builder mergeFrom(Intent other)
    • isInitialized

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

      public Intent.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<Intent.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The unique identifier of the intent.
       Required for the
       [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]
       method.
       [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent]
       populates the name automatically.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      string name = 1;
      Specified by:
      getName in interface IntentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique identifier of the intent.
       Required for the
       [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]
       method.
       [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent]
       populates the name automatically.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface IntentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Intent.Builder setName(String value)
       The unique identifier of the intent.
       Required for the
       [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]
       method.
       [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent]
       populates the name automatically.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Intent.Builder clearName()
       The unique identifier of the intent.
       Required for the
       [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]
       method.
       [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent]
       populates the name automatically.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Intent.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique identifier of the intent.
       Required for the
       [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]
       method.
       [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent]
       populates the name automatically.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The human-readable name of the intent, unique within the agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface IntentOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The human-readable name of the intent, unique within the agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface IntentOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Intent.Builder setDisplayName(String value)
       Required. The human-readable name of the intent, unique within the agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Intent.Builder clearDisplayName()
       Required. The human-readable name of the intent, unique within the agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Intent.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The human-readable name of the intent, unique within the agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getTrainingPhrasesList

      public List<Intent.TrainingPhrase> getTrainingPhrasesList()
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
      Specified by:
      getTrainingPhrasesList in interface IntentOrBuilder
    • getTrainingPhrasesCount

      public int getTrainingPhrasesCount()
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
      Specified by:
      getTrainingPhrasesCount in interface IntentOrBuilder
    • getTrainingPhrases

      public Intent.TrainingPhrase getTrainingPhrases(int index)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
      Specified by:
      getTrainingPhrases in interface IntentOrBuilder
    • setTrainingPhrases

      public Intent.Builder setTrainingPhrases(int index, Intent.TrainingPhrase value)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • setTrainingPhrases

      public Intent.Builder setTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • addTrainingPhrases

      public Intent.Builder addTrainingPhrases(Intent.TrainingPhrase value)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • addTrainingPhrases

      public Intent.Builder addTrainingPhrases(int index, Intent.TrainingPhrase value)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • addTrainingPhrases

      public Intent.Builder addTrainingPhrases(Intent.TrainingPhrase.Builder builderForValue)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • addTrainingPhrases

      public Intent.Builder addTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • addAllTrainingPhrases

      public Intent.Builder addAllTrainingPhrases(Iterable<? extends Intent.TrainingPhrase> values)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • clearTrainingPhrases

      public Intent.Builder clearTrainingPhrases()
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • removeTrainingPhrases

      public Intent.Builder removeTrainingPhrases(int index)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • getTrainingPhrasesBuilder

      public Intent.TrainingPhrase.Builder getTrainingPhrasesBuilder(int index)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • getTrainingPhrasesOrBuilder

      public Intent.TrainingPhraseOrBuilder getTrainingPhrasesOrBuilder(int index)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
      Specified by:
      getTrainingPhrasesOrBuilder in interface IntentOrBuilder
    • getTrainingPhrasesOrBuilderList

      public List<? extends Intent.TrainingPhraseOrBuilder> getTrainingPhrasesOrBuilderList()
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
      Specified by:
      getTrainingPhrasesOrBuilderList in interface IntentOrBuilder
    • addTrainingPhrasesBuilder

      public Intent.TrainingPhrase.Builder addTrainingPhrasesBuilder()
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • addTrainingPhrasesBuilder

      public Intent.TrainingPhrase.Builder addTrainingPhrasesBuilder(int index)
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • getTrainingPhrasesBuilderList

      public List<Intent.TrainingPhrase.Builder> getTrainingPhrasesBuilderList()
       The collection of training phrases the agent is trained on to identify the
       intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase training_phrases = 3;
    • getParametersList

      public List<Intent.Parameter> getParametersList()
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
      Specified by:
      getParametersList in interface IntentOrBuilder
    • getParametersCount

      public int getParametersCount()
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
      Specified by:
      getParametersCount in interface IntentOrBuilder
    • getParameters

      public Intent.Parameter getParameters(int index)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
      Specified by:
      getParameters in interface IntentOrBuilder
    • setParameters

      public Intent.Builder setParameters(int index, Intent.Parameter value)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • setParameters

      public Intent.Builder setParameters(int index, Intent.Parameter.Builder builderForValue)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • addParameters

      public Intent.Builder addParameters(Intent.Parameter value)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • addParameters

      public Intent.Builder addParameters(int index, Intent.Parameter value)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • addParameters

      public Intent.Builder addParameters(Intent.Parameter.Builder builderForValue)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • addParameters

      public Intent.Builder addParameters(int index, Intent.Parameter.Builder builderForValue)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • addAllParameters

      public Intent.Builder addAllParameters(Iterable<? extends Intent.Parameter> values)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • clearParameters

      public Intent.Builder clearParameters()
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • removeParameters

      public Intent.Builder removeParameters(int index)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • getParametersBuilder

      public Intent.Parameter.Builder getParametersBuilder(int index)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • getParametersOrBuilder

      public Intent.ParameterOrBuilder getParametersOrBuilder(int index)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
      Specified by:
      getParametersOrBuilder in interface IntentOrBuilder
    • getParametersOrBuilderList

      public List<? extends Intent.ParameterOrBuilder> getParametersOrBuilderList()
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
      Specified by:
      getParametersOrBuilderList in interface IntentOrBuilder
    • addParametersBuilder

      public Intent.Parameter.Builder addParametersBuilder()
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • addParametersBuilder

      public Intent.Parameter.Builder addParametersBuilder(int index)
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • getParametersBuilderList

      public List<Intent.Parameter.Builder> getParametersBuilderList()
       The collection of parameters associated with the intent.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.Parameter parameters = 4;
    • getPriority

      public int getPriority()
       The priority of this intent. Higher numbers represent higher
       priorities.
      
       - If the supplied value is unspecified or 0, the service
       translates the value to 500,000, which corresponds to the
       `Normal` priority in the console.
       - If the supplied value is negative, the intent is ignored
       in runtime detect intent requests.
       
      int32 priority = 5;
      Specified by:
      getPriority in interface IntentOrBuilder
      Returns:
      The priority.
    • setPriority

      public Intent.Builder setPriority(int value)
       The priority of this intent. Higher numbers represent higher
       priorities.
      
       - If the supplied value is unspecified or 0, the service
       translates the value to 500,000, which corresponds to the
       `Normal` priority in the console.
       - If the supplied value is negative, the intent is ignored
       in runtime detect intent requests.
       
      int32 priority = 5;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public Intent.Builder clearPriority()
       The priority of this intent. Higher numbers represent higher
       priorities.
      
       - If the supplied value is unspecified or 0, the service
       translates the value to 500,000, which corresponds to the
       `Normal` priority in the console.
       - If the supplied value is negative, the intent is ignored
       in runtime detect intent requests.
       
      int32 priority = 5;
      Returns:
      This builder for chaining.
    • getIsFallback

      public boolean getIsFallback()
       Indicates whether this is a fallback intent. Currently only default
       fallback intent is allowed in the agent, which is added upon agent
       creation.
       Adding training phrases to fallback intent is useful in the case of
       requests that are mistakenly matched, since training phrases assigned to
       fallback intents act as negative examples that triggers no-match event.
       
      bool is_fallback = 6;
      Specified by:
      getIsFallback in interface IntentOrBuilder
      Returns:
      The isFallback.
    • setIsFallback

      public Intent.Builder setIsFallback(boolean value)
       Indicates whether this is a fallback intent. Currently only default
       fallback intent is allowed in the agent, which is added upon agent
       creation.
       Adding training phrases to fallback intent is useful in the case of
       requests that are mistakenly matched, since training phrases assigned to
       fallback intents act as negative examples that triggers no-match event.
       
      bool is_fallback = 6;
      Parameters:
      value - The isFallback to set.
      Returns:
      This builder for chaining.
    • clearIsFallback

      public Intent.Builder clearIsFallback()
       Indicates whether this is a fallback intent. Currently only default
       fallback intent is allowed in the agent, which is added upon agent
       creation.
       Adding training phrases to fallback intent is useful in the case of
       requests that are mistakenly matched, since training phrases assigned to
       fallback intents act as negative examples that triggers no-match event.
       
      bool is_fallback = 6;
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: IntentOrBuilder
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
      Specified by:
      getLabelsCount in interface IntentOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
      Specified by:
      containsLabels in interface IntentOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface IntentOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
      Specified by:
      getLabelsMap in interface IntentOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
      Specified by:
      getLabelsOrDefault in interface IntentOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
      Specified by:
      getLabelsOrThrow in interface IntentOrBuilder
    • clearLabels

      public Intent.Builder clearLabels()
    • removeLabels

      public Intent.Builder removeLabels(String key)
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Intent.Builder putLabels(String key, String value)
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
    • putAllLabels

      public Intent.Builder putAllLabels(Map<String,String> values)
       The key/value metadata to label an intent. Labels can contain
       lowercase letters, digits and the symbols '-' and '_'. International
       characters are allowed, including letters from unicase alphabets. Keys must
       start with a letter. Keys and values can be no longer than 63 characters
       and no more than 128 bytes.
      
       Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
       Dialogflow defined labels include:
       * sys-head
       * sys-contextual
       The above labels do not require value. "sys-head" means the intent is a
       head intent. "sys-contextual" means the intent is a contextual intent.
       
      map<string, string> labels = 7;
    • getDescription

      public String getDescription()
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 8;
      Specified by:
      getDescription in interface IntentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 8;
      Specified by:
      getDescriptionBytes in interface IntentOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Intent.Builder setDescription(String value)
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 8;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Intent.Builder clearDescription()
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 8;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Intent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 8;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDtmfPattern

      public String getDtmfPattern()
       Optional. Matching DTMF pattern for the intent.
       
      string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDtmfPattern in interface IntentOrBuilder
      Returns:
      The dtmfPattern.
    • getDtmfPatternBytes

      public com.google.protobuf.ByteString getDtmfPatternBytes()
       Optional. Matching DTMF pattern for the intent.
       
      string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDtmfPatternBytes in interface IntentOrBuilder
      Returns:
      The bytes for dtmfPattern.
    • setDtmfPattern

      public Intent.Builder setDtmfPattern(String value)
       Optional. Matching DTMF pattern for the intent.
       
      string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dtmfPattern to set.
      Returns:
      This builder for chaining.
    • clearDtmfPattern

      public Intent.Builder clearDtmfPattern()
       Optional. Matching DTMF pattern for the intent.
       
      string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDtmfPatternBytes

      public Intent.Builder setDtmfPatternBytes(com.google.protobuf.ByteString value)
       Optional. Matching DTMF pattern for the intent.
       
      string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for dtmfPattern to set.
      Returns:
      This builder for chaining.