Class Intent.Message.SelectItemInfo.Builder

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

public static final class Intent.Message.SelectItemInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.SelectItemInfo.Builder> implements Intent.Message.SelectItemInfoOrBuilder
 Additional info about the select item for when it is triggered in a
 dialog.
 
Protobuf type google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo
  • 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<Intent.Message.SelectItemInfo.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.Message.SelectItemInfo.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.Message.SelectItemInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

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

      public String getKey()
       Required. A unique key that will be sent back to the agent if this
       response is given.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface Intent.Message.SelectItemInfoOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Required. A unique key that will be sent back to the agent if this
       response is given.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyBytes in interface Intent.Message.SelectItemInfoOrBuilder
      Returns:
      The bytes for key.
    • setKey

       Required. A unique key that will be sent back to the agent if this
       response is given.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

       Required. A unique key that will be sent back to the agent if this
       response is given.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Intent.Message.SelectItemInfo.Builder setKeyBytes(com.google.protobuf.ByteString value)
       Required. A unique key that will be sent back to the agent if this
       response is given.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getSynonymsList

      public com.google.protobuf.ProtocolStringList getSynonymsList()
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSynonymsList in interface Intent.Message.SelectItemInfoOrBuilder
      Returns:
      A list containing the synonyms.
    • getSynonymsCount

      public int getSynonymsCount()
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSynonymsCount in interface Intent.Message.SelectItemInfoOrBuilder
      Returns:
      The count of synonyms.
    • getSynonyms

      public String getSynonyms(int index)
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSynonyms in interface Intent.Message.SelectItemInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The synonyms at the given index.
    • getSynonymsBytes

      public com.google.protobuf.ByteString getSynonymsBytes(int index)
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSynonymsBytes in interface Intent.Message.SelectItemInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the synonyms at the given index.
    • setSynonyms

      public Intent.Message.SelectItemInfo.Builder setSynonyms(int index, String value)
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The synonyms to set.
      Returns:
      This builder for chaining.
    • addSynonyms

      public Intent.Message.SelectItemInfo.Builder addSynonyms(String value)
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The synonyms to add.
      Returns:
      This builder for chaining.
    • addAllSynonyms

      public Intent.Message.SelectItemInfo.Builder addAllSynonyms(Iterable<String> values)
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The synonyms to add.
      Returns:
      This builder for chaining.
    • clearSynonyms

      public Intent.Message.SelectItemInfo.Builder clearSynonyms()
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSynonymsBytes

      public Intent.Message.SelectItemInfo.Builder addSynonymsBytes(com.google.protobuf.ByteString value)
       Optional. A list of synonyms that can also be used to trigger this
       item in dialog.
       
      repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the synonyms to add.
      Returns:
      This builder for chaining.