public interface ArticleAnswerOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsMetadata(String key)
public abstract boolean containsMetadata(String key)A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
| Name | Description |
| key | String |
| Type | Description |
| boolean |
getAnswerRecord()
public abstract 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;
| Type | Description |
| String | The answerRecord. |
getAnswerRecordBytes()
public abstract 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;
| Type | Description |
| ByteString | The bytes for answerRecord. |
getMetadata()
public abstract Map<String,String> getMetadata()Use #getMetadataMap() instead.
| Type | Description |
| Map<String,String> |
getMetadataCount()
public abstract int getMetadataCount()A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
| Type | Description |
| int |
getMetadataMap()
public abstract Map<String,String> getMetadataMap()A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
| Type | Description |
| Map<String,String> |
getMetadataOrDefault(String key, String defaultValue)
public abstract String getMetadataOrDefault(String key, String defaultValue)A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
| Name | Description |
| key | String |
| defaultValue | String |
| Type | Description |
| String |
getMetadataOrThrow(String key)
public abstract String getMetadataOrThrow(String key)A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
| Name | Description |
| key | String |
| Type | Description |
| String |
getSnippets(int index)
public abstract String getSnippets(int index)Output only. Article snippets.
repeated string snippets = 3;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The snippets at the given index. |
getSnippetsBytes(int index)
public abstract ByteString getSnippetsBytes(int index)Output only. Article snippets.
repeated string snippets = 3;
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the snippets at the given index. |
getSnippetsCount()
public abstract int getSnippetsCount()Output only. Article snippets.
repeated string snippets = 3;
| Type | Description |
| int | The count of snippets. |
getSnippetsList()
public abstract List<String> getSnippetsList()Output only. Article snippets.
repeated string snippets = 3;
| Type | Description |
| List<String> | A list containing the snippets. |
getTitle()
public abstract String getTitle()The article title.
string title = 1;
| Type | Description |
| String | The title. |
getTitleBytes()
public abstract ByteString getTitleBytes()The article title.
string title = 1;
| Type | Description |
| ByteString | The bytes for title. |
getUri()
public abstract String getUri()The article URI.
string uri = 2;
| Type | Description |
| String | The uri. |
getUriBytes()
public abstract ByteString getUriBytes()The article URI.
string uri = 2;
| Type | Description |
| ByteString | The bytes for uri. |