Class Intent.Message.SelectItemInfo.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public Intent.Message.SelectItemInfo.Builder setKey​(String 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 key to set.
        Returns:
        This builder for chaining.
      • clearKey

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