Interface Suggestion.ArticleOrBuilder (4.3.1)

public static interface Suggestion.ArticleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsMetadata(String key)

public abstract 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnswerRecord()

public abstract 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
TypeDescription
String

The answerRecord.

getAnswerRecordBytes()

public abstract 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
TypeDescription
ByteString

The bytes for answerRecord.

getMetadata()

public abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public abstract int getMetadataCount()

Output only. 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()

Output only. 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)

Output only. 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)

Output only. 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)

Output only. 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)

Output only. 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()

Output only. Article snippets.

repeated string snippets = 3;

Returns
TypeDescription
int

The count of snippets.

getSnippetsList()

public abstract List<String> getSnippetsList()

Output only. Article snippets.

repeated string snippets = 3;

Returns
TypeDescription
List<String>

A list containing the snippets.

getTitle()

public abstract String getTitle()

Output only. The article title.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Output only. The article title.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

getUri()

public abstract String getUri()

Output only. The article URI.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

Output only. The article URI.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.