Interface SampleQuery.QueryEntry.TargetOrBuilder (0.43.0)

public static interface SampleQuery.QueryEntry.TargetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPageNumbers(int index)

public abstract int getPageNumbers(int index)

Expected page numbers of the target.

Each page number must be non negative.

repeated int32 page_numbers = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The pageNumbers at the given index.

getPageNumbersCount()

public abstract int getPageNumbersCount()

Expected page numbers of the target.

Each page number must be non negative.

repeated int32 page_numbers = 2;

Returns
Type Description
int

The count of pageNumbers.

getPageNumbersList()

public abstract List<Integer> getPageNumbersList()

Expected page numbers of the target.

Each page number must be non negative.

repeated int32 page_numbers = 2;

Returns
Type Description
List<Integer>

A list containing the pageNumbers.

getScore()

public abstract double getScore()

Relevance score of the target.

optional double score = 3;

Returns
Type Description
double

The score.

getUri()

public abstract String getUri()

Expected uri of the target.

This field must be a UTF-8 encoded string with a length limit of 2048 characters.

Example of valid uris: https://example.com/abc, gcs://example/example.pdf.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

Expected uri of the target.

This field must be a UTF-8 encoded string with a length limit of 2048 characters.

Example of valid uris: https://example.com/abc, gcs://example/example.pdf.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasScore()

public abstract boolean hasScore()

Relevance score of the target.

optional double score = 3;

Returns
Type Description
boolean

Whether the score field is set.