public static final class Suggestion.Article.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder> implements Suggestion.ArticleOrBuilder
Represents suggested article.Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.Article| Modifier and Type | Method and Description |
|---|---|
Suggestion.Article.Builder |
addAllSnippets(Iterable<String> values)
Output only.
|
Suggestion.Article.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Suggestion.Article.Builder |
addSnippets(String value)
Output only.
|
Suggestion.Article.Builder |
addSnippetsBytes(com.google.protobuf.ByteString value)
Output only.
|
Suggestion.Article |
build() |
Suggestion.Article |
buildPartial() |
Suggestion.Article.Builder |
clear() |
Suggestion.Article.Builder |
clearAnswerRecord()
Output only.
|
Suggestion.Article.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Suggestion.Article.Builder |
clearMetadata() |
Suggestion.Article.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Suggestion.Article.Builder |
clearSnippets()
Output only.
|
Suggestion.Article.Builder |
clearTitle()
Output only.
|
Suggestion.Article.Builder |
clearUri()
Output only.
|
Suggestion.Article.Builder |
clone() |
boolean |
containsMetadata(String key)
Output only.
|
String |
getAnswerRecord()
Output only.
|
com.google.protobuf.ByteString |
getAnswerRecordBytes()
Output only.
|
Suggestion.Article |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Output only.
|
Map<String,String> |
getMetadataMap()
Output only.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Output only.
|
String |
getMetadataOrThrow(String key)
Output only.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
String |
getSnippets(int index)
Output only.
|
com.google.protobuf.ByteString |
getSnippetsBytes(int index)
Output only.
|
int |
getSnippetsCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getSnippetsList()
Output only.
|
String |
getTitle()
Output only.
|
com.google.protobuf.ByteString |
getTitleBytes()
Output only.
|
String |
getUri()
Output only.
|
com.google.protobuf.ByteString |
getUriBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Suggestion.Article.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Suggestion.Article.Builder |
mergeFrom(com.google.protobuf.Message other) |
Suggestion.Article.Builder |
mergeFrom(Suggestion.Article other) |
Suggestion.Article.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Suggestion.Article.Builder |
putAllMetadata(Map<String,String> values)
Output only.
|
Suggestion.Article.Builder |
putMetadata(String key,
String value)
Output only.
|
Suggestion.Article.Builder |
removeMetadata(String key)
Output only.
|
Suggestion.Article.Builder |
setAnswerRecord(String value)
Output only.
|
Suggestion.Article.Builder |
setAnswerRecordBytes(com.google.protobuf.ByteString value)
Output only.
|
Suggestion.Article.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Suggestion.Article.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Suggestion.Article.Builder |
setSnippets(int index,
String value)
Output only.
|
Suggestion.Article.Builder |
setTitle(String value)
Output only.
|
Suggestion.Article.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
Output only.
|
Suggestion.Article.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Suggestion.Article.Builder |
setUri(String value)
Output only.
|
Suggestion.Article.Builder |
setUriBytes(com.google.protobuf.ByteString value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Suggestion.Article build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Suggestion.Article buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Suggestion.Article.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder mergeFrom(Suggestion.Article other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public Suggestion.Article.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.Article.Builder>IOExceptionpublic String getTitle()
Output only. The article title.
string title = 1;getTitle in interface Suggestion.ArticleOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Output only. The article title.
string title = 1;getTitleBytes in interface Suggestion.ArticleOrBuilderpublic 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(com.google.protobuf.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.ArticleOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Output only. The article URI.
string uri = 2;getUriBytes in interface Suggestion.ArticleOrBuilderpublic 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(com.google.protobuf.ByteString value)
Output only. The article URI.
string uri = 2;value - The bytes for uri to set.public com.google.protobuf.ProtocolStringList getSnippetsList()
Output only. Article snippets.
repeated string snippets = 3;getSnippetsList in interface Suggestion.ArticleOrBuilderpublic int getSnippetsCount()
Output only. Article snippets.
repeated string snippets = 3;getSnippetsCount in interface Suggestion.ArticleOrBuilderpublic String getSnippets(int index)
Output only. Article snippets.
repeated string snippets = 3;getSnippets in interface Suggestion.ArticleOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSnippetsBytes(int index)
Output only. Article snippets.
repeated string snippets = 3;getSnippetsBytes in interface Suggestion.ArticleOrBuilderindex - 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(com.google.protobuf.ByteString value)
Output only. Article snippets.
repeated string snippets = 3;value - The bytes of the snippets to add.public int getMetadataCount()
Suggestion.ArticleOrBuilderOutput 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.ArticleOrBuilderpublic 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.ArticleOrBuilderpublic 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.ArticleOrBuilderpublic 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.ArticleOrBuilderpublic 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.ArticleOrBuilderpublic 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.ArticleOrBuilderpublic 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;getAnswerRecordBytes in interface Suggestion.ArticleOrBuilderpublic 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(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;value - The bytes for answerRecord to set.public final Suggestion.Article.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>public final Suggestion.Article.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>Copyright © 2023 Google LLC. All rights reserved.