Interface ArticleAnswerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ArticleAnswer,ArticleAnswer.Builder
@Generated
public interface ArticleAnswerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) A map that contains metadata about the answer and the document from which it originates.The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"com.google.protobuf.ByteStringThe name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"Deprecated.intA map that contains metadata about the answer and the document from which it originates.A map that contains metadata about the answer and the document from which it originates.getMetadataOrDefault(String key, String defaultValue) A map that contains metadata about the answer and the document from which it originates.getMetadataOrThrow(String key) A map that contains metadata about the answer and the document from which it originates.getSnippets(int index) Output only.com.google.protobuf.ByteStringgetSnippetsBytes(int index) Output only.intOutput only.Output only.getTitle()The article title.com.google.protobuf.ByteStringThe article title.getUri()The article URI.com.google.protobuf.ByteStringThe article URI.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTitle
String getTitle()The article title.
string title = 1;- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()The article title.
string title = 1;- Returns:
- The bytes for title.
-
getUri
String getUri()The article URI.
string uri = 2;- Returns:
- The uri.
-
getUriBytes
com.google.protobuf.ByteString getUriBytes()The article URI.
string uri = 2;- Returns:
- The bytes for uri.
-
getSnippetsList
Output only. Article snippets.
repeated string snippets = 3;- Returns:
- A list containing the snippets.
-
getSnippetsCount
int getSnippetsCount()Output only. Article snippets.
repeated string snippets = 3;- Returns:
- The count of snippets.
-
getSnippets
Output only. Article snippets.
repeated string snippets = 3;- Parameters:
index- The index of the element to return.- Returns:
- The snippets at the given index.
-
getSnippetsBytes
com.google.protobuf.ByteString getSnippetsBytes(int index) Output only. Article snippets.
repeated string snippets = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the snippets at the given index.
-
getMetadataCount
int getMetadataCount()A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
containsMetadata
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getMetadataOrDefault
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getMetadataOrThrow
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getAnswerRecord
String getAnswerRecord()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Returns:
- The answerRecord.
-
getAnswerRecordBytes
com.google.protobuf.ByteString getAnswerRecordBytes()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Returns:
- The bytes for answerRecord.
-