Interface Suggestion.ArticleOrBuilder (4.28.0)

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
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for answerRecord.

getMetadata()

public abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
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()

Output only. The article title.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Output only. The article title.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.

getUri()

public abstract String getUri()

Output only. The article URI.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

Output only. The article URI.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.