public static final class Suggestion.Article.Builder extends GeneratedMessageV3.Builder<Suggestion.Article.Builder> implements Suggestion.ArticleOrBuilder
Represents suggested article.Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.Article
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Suggestion.Article build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Suggestion.Article buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Suggestion.Article.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder mergeFrom(Suggestion.Article other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public Suggestion.Article.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Suggestion.Article.Builder>
IOException
public String getTitle()
Output only. The article title.
string title = 1;
getTitle
in interface Suggestion.ArticleOrBuilder
public ByteString getTitleBytes()
Output only. The article title.
string title = 1;
getTitleBytes
in interface Suggestion.ArticleOrBuilder
public Suggestion.Article.Builder setTitle(String value)
Output only. The article title.
string title = 1;
value
- The title to set.public Suggestion.Article.Builder clearTitle()
Output only. The article title.
string title = 1;
public Suggestion.Article.Builder setTitleBytes(ByteString value)
Output only. The article title.
string title = 1;
value
- The bytes for title to set.public String getUri()
Output only. The article URI.
string uri = 2;
getUri
in interface Suggestion.ArticleOrBuilder
public ByteString getUriBytes()
Output only. The article URI.
string uri = 2;
getUriBytes
in interface Suggestion.ArticleOrBuilder
public Suggestion.Article.Builder setUri(String value)
Output only. The article URI.
string uri = 2;
value
- The uri to set.public Suggestion.Article.Builder clearUri()
Output only. The article URI.
string uri = 2;
public Suggestion.Article.Builder setUriBytes(ByteString value)
Output only. The article URI.
string uri = 2;
value
- The bytes for uri to set.public ProtocolStringList getSnippetsList()
Output only. Article snippets.
repeated string snippets = 3;
getSnippetsList
in interface Suggestion.ArticleOrBuilder
public int getSnippetsCount()
Output only. Article snippets.
repeated string snippets = 3;
getSnippetsCount
in interface Suggestion.ArticleOrBuilder
public String getSnippets(int index)
Output only. Article snippets.
repeated string snippets = 3;
getSnippets
in interface Suggestion.ArticleOrBuilder
index
- The index of the element to return.public ByteString getSnippetsBytes(int index)
Output only. Article snippets.
repeated string snippets = 3;
getSnippetsBytes
in interface Suggestion.ArticleOrBuilder
index
- The index of the value to return.public Suggestion.Article.Builder setSnippets(int index, String value)
Output only. Article snippets.
repeated string snippets = 3;
index
- The index to set the value at.value
- The snippets to set.public Suggestion.Article.Builder addSnippets(String value)
Output only. Article snippets.
repeated string snippets = 3;
value
- The snippets to add.public Suggestion.Article.Builder addAllSnippets(Iterable<String> values)
Output only. Article snippets.
repeated string snippets = 3;
values
- The snippets to add.public Suggestion.Article.Builder clearSnippets()
Output only. Article snippets.
repeated string snippets = 3;
public Suggestion.Article.Builder addSnippetsBytes(ByteString value)
Output only. Article snippets.
repeated string snippets = 3;
value
- The bytes of the snippets to add.public int getMetadataCount()
Suggestion.ArticleOrBuilder
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataCount
in interface Suggestion.ArticleOrBuilder
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;
containsMetadata
in interface Suggestion.ArticleOrBuilder
@Deprecated public Map<String,String> getMetadata()
getMetadataMap()
instead.getMetadata
in interface Suggestion.ArticleOrBuilder
public Map<String,String> getMetadataMap()
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataMap
in interface Suggestion.ArticleOrBuilder
public String getMetadataOrDefault(String key, String defaultValue)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataOrDefault
in interface Suggestion.ArticleOrBuilder
public String getMetadataOrThrow(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataOrThrow
in interface Suggestion.ArticleOrBuilder
public Suggestion.Article.Builder clearMetadata()
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;
@Deprecated public Map<String,String> getMutableMetadata()
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;
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;
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;
getAnswerRecord
in interface Suggestion.ArticleOrBuilder
public 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;
getAnswerRecordBytes
in interface Suggestion.ArticleOrBuilder
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;
value
- The answerRecord to set.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;
public Suggestion.Article.Builder setAnswerRecordBytes(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;
value
- The bytes for answerRecord to set.public final Suggestion.Article.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
public final Suggestion.Article.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Suggestion.Article.Builder>
Copyright © 2022 Google LLC. All rights reserved.