Interface Suggestion.ArticleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Suggestion.Article,Suggestion.Article.Builder
- Enclosing class:
- Suggestion
public static interface Suggestion.ArticleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(String key)Output only.StringgetAnswerRecord()Output only.com.google.protobuf.ByteStringgetAnswerRecordBytes()Output only.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Output only.Map<String,String>getMetadataMap()Output only.StringgetMetadataOrDefault(String key, String defaultValue)Output only.StringgetMetadataOrThrow(String key)Output only.StringgetSnippets(int index)Output only.com.google.protobuf.ByteStringgetSnippetsBytes(int index)Output only.intgetSnippetsCount()Output only.List<String>getSnippetsList()Output only.StringgetTitle()Output only.com.google.protobuf.ByteStringgetTitleBytes()Output only.StringgetUri()Output only.com.google.protobuf.ByteStringgetUriBytes()Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTitle
String getTitle()
Output only. The article title.
string title = 1;- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()
Output only. The article title.
string title = 1;- Returns:
- The bytes for title.
-
getUri
String getUri()
Output only. The article URI.
string uri = 2;- Returns:
- The uri.
-
getUriBytes
com.google.protobuf.ByteString getUriBytes()
Output only. The article URI.
string uri = 2;- Returns:
- The bytes for uri.
-
getSnippetsList
List<String> 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
String getSnippets(int index)
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()
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
containsMetadata
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;
-
getMetadata
@Deprecated Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.
-
getMetadataMap
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;
-
getMetadataOrDefault
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;
-
getMetadataOrThrow
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;
-
getAnswerRecord
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;- Returns:
- The answerRecord.
-
getAnswerRecordBytes
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;- Returns:
- The bytes for answerRecord.
-
-