Interface ArticleAnswerOrBuilder (4.58.0)

public interface ArticleAnswerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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;

Parameter
Name Description
key String
Returns
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;

Returns
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;

Returns
Type Description
ByteString

The bytes for answerRecord.

getMetadata() (deprecated)

public abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
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;

Returns
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;

Returns
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;

Parameters
Name Description
key String
defaultValue String
Returns
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;

Parameter
Name Description
key String
Returns
Type Description
String

getSnippets(int index)

public abstract String getSnippets(int index)

Output only. Article snippets.

repeated string snippets = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
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;

Parameter
Name Description
index int

The index of the value to return.

Returns
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;

Returns
Type Description
int

The count of snippets.

getSnippetsList()

public abstract List<String> getSnippetsList()

Output only. Article snippets.

repeated string snippets = 3;

Returns
Type Description
List<String>

A list containing the snippets.

getTitle()

public abstract String getTitle()

The article title.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

The article title.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.

getUri()

public abstract String getUri()

The article URI.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

The article URI.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.