Interface ArticleAnswerOrBuilder (4.5.11)

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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for answerRecord.

getConfidence()

public abstract float getConfidence()

Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).

float confidence = 4;

Returns
TypeDescription
float

The confidence.

getMetadata()

public abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getSnippets(int index)

public abstract String getSnippets(int index)

Article snippets.

repeated string snippets = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The snippets at the given index.

getSnippetsBytes(int index)

public abstract ByteString getSnippetsBytes(int index)

Article snippets.

repeated string snippets = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the snippets at the given index.

getSnippetsCount()

public abstract int getSnippetsCount()

Article snippets.

repeated string snippets = 3;

Returns
TypeDescription
int

The count of snippets.

getSnippetsList()

public abstract List<String> getSnippetsList()

Article snippets.

repeated string snippets = 3;

Returns
TypeDescription
List<String>

A list containing the snippets.

getTitle()

public abstract String getTitle()

The article title.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

The article title.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

getUri()

public abstract String getUri()

The article URI.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

The article URI.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.