Class Suggestion.Article.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • clear

        public Suggestion.Article.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.GeneratedMessageV3.Builder<Suggestion.Article.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<Suggestion.Article.Builder>
      • getDefaultInstanceForType

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

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

        public Suggestion.Article buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Suggestion.Article.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • setField

        public Suggestion.Article.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • clearField

        public Suggestion.Article.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • clearOneof

        public Suggestion.Article.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • setRepeatedField

        public Suggestion.Article.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • addRepeatedField

        public Suggestion.Article.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • mergeFrom

        public Suggestion.Article.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<Suggestion.Article.Builder>
      • isInitialized

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

        public Suggestion.Article.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<Suggestion.Article.Builder>
        Throws:
        IOException
      • getTitleBytes

        public com.google.protobuf.ByteString getTitleBytes()
         Output only. The article title.
         
        string title = 1;
        Specified by:
        getTitleBytes in interface Suggestion.ArticleOrBuilder
        Returns:
        The bytes for title.
      • setTitle

        public Suggestion.Article.Builder setTitle​(String value)
         Output only. The article title.
         
        string title = 1;
        Parameters:
        value - The title to set.
        Returns:
        This builder for chaining.
      • clearTitle

        public Suggestion.Article.Builder clearTitle()
         Output only. The article title.
         
        string title = 1;
        Returns:
        This builder for chaining.
      • setTitleBytes

        public Suggestion.Article.Builder setTitleBytes​(com.google.protobuf.ByteString value)
         Output only. The article title.
         
        string title = 1;
        Parameters:
        value - The bytes for title to set.
        Returns:
        This builder for chaining.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Output only. The article URI.
         
        string uri = 2;
        Specified by:
        getUriBytes in interface Suggestion.ArticleOrBuilder
        Returns:
        The bytes for uri.
      • setUri

        public Suggestion.Article.Builder setUri​(String value)
         Output only. The article URI.
         
        string uri = 2;
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public Suggestion.Article.Builder clearUri()
         Output only. The article URI.
         
        string uri = 2;
        Returns:
        This builder for chaining.
      • setUriBytes

        public Suggestion.Article.Builder setUriBytes​(com.google.protobuf.ByteString value)
         Output only. The article URI.
         
        string uri = 2;
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.
      • getSnippetsList

        public com.google.protobuf.ProtocolStringList getSnippetsList()
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Specified by:
        getSnippetsList in interface Suggestion.ArticleOrBuilder
        Returns:
        A list containing the snippets.
      • getSnippetsCount

        public int getSnippetsCount()
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Specified by:
        getSnippetsCount in interface Suggestion.ArticleOrBuilder
        Returns:
        The count of snippets.
      • getSnippets

        public String getSnippets​(int index)
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Specified by:
        getSnippets in interface Suggestion.ArticleOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The snippets at the given index.
      • getSnippetsBytes

        public com.google.protobuf.ByteString getSnippetsBytes​(int index)
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Specified by:
        getSnippetsBytes in interface Suggestion.ArticleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the snippets at the given index.
      • setSnippets

        public Suggestion.Article.Builder setSnippets​(int index,
                                                      String value)
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Parameters:
        index - The index to set the value at.
        value - The snippets to set.
        Returns:
        This builder for chaining.
      • addSnippets

        public Suggestion.Article.Builder addSnippets​(String value)
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Parameters:
        value - The snippets to add.
        Returns:
        This builder for chaining.
      • addAllSnippets

        public Suggestion.Article.Builder addAllSnippets​(Iterable<String> values)
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Parameters:
        values - The snippets to add.
        Returns:
        This builder for chaining.
      • clearSnippets

        public Suggestion.Article.Builder clearSnippets()
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Returns:
        This builder for chaining.
      • addSnippetsBytes

        public Suggestion.Article.Builder addSnippetsBytes​(com.google.protobuf.ByteString value)
         Output only. Article snippets.
         
        repeated string snippets = 3;
        Parameters:
        value - The bytes of the snippets to add.
        Returns:
        This builder for chaining.
      • containsMetadata

        public boolean containsMetadata​(String key)
         Output only. A map that contains metadata about the answer and the
         document from which it originates.
         
        map<string, string> metadata = 5;
        Specified by:
        containsMetadata in interface Suggestion.ArticleOrBuilder
      • removeMetadata

        public Suggestion.Article.Builder removeMetadata​(String key)
         Output only. A map that contains metadata about the answer and the
         document from which it originates.
         
        map<string, string> metadata = 5;
      • getMutableMetadata

        @Deprecated
        public Map<String,​String> getMutableMetadata()
        Deprecated.
        Use alternate mutation accessors instead.
      • putMetadata

        public Suggestion.Article.Builder putMetadata​(String key,
                                                      String value)
         Output only. A map that contains metadata about the answer and the
         document from which it originates.
         
        map<string, string> metadata = 5;
      • putAllMetadata

        public Suggestion.Article.Builder putAllMetadata​(Map<String,​String> values)
         Output only. A map that contains metadata about the answer and the
         document from which it originates.
         
        map<string, string> metadata = 5;
      • getAnswerRecord

        public String getAnswerRecord()
         Output only. The name of answer record, in the format of
         "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer
         Record ID>"
         
        string answer_record = 6;
        Specified by:
        getAnswerRecord in interface Suggestion.ArticleOrBuilder
        Returns:
        The answerRecord.
      • getAnswerRecordBytes

        public com.google.protobuf.ByteString getAnswerRecordBytes()
         Output only. The name of answer record, in the format of
         "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer
         Record ID>"
         
        string answer_record = 6;
        Specified by:
        getAnswerRecordBytes in interface Suggestion.ArticleOrBuilder
        Returns:
        The bytes for answerRecord.
      • setAnswerRecord

        public Suggestion.Article.Builder setAnswerRecord​(String value)
         Output only. The name of answer record, in the format of
         "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer
         Record ID>"
         
        string answer_record = 6;
        Parameters:
        value - The answerRecord to set.
        Returns:
        This builder for chaining.
      • clearAnswerRecord

        public Suggestion.Article.Builder clearAnswerRecord()
         Output only. The name of answer record, in the format of
         "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer
         Record ID>"
         
        string answer_record = 6;
        Returns:
        This builder for chaining.
      • setAnswerRecordBytes

        public Suggestion.Article.Builder setAnswerRecordBytes​(com.google.protobuf.ByteString value)
         Output only. The name of answer record, in the format of
         "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer
         Record ID>"
         
        string answer_record = 6;
        Parameters:
        value - The bytes for answerRecord to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Suggestion.Article.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
      • mergeUnknownFields

        public final Suggestion.Article.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>