Interface SampleQuery.QueryEntry.TargetOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SampleQuery.QueryEntry.Target,SampleQuery.QueryEntry.Target.Builder
- Enclosing class:
- SampleQuery.QueryEntry
public static interface SampleQuery.QueryEntry.TargetOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintgetPageNumbers(int index) Expected page numbers of the target.intExpected page numbers of the target.Expected page numbers of the target.doublegetScore()Relevance score of the target.getUri()Expected uri of the target.com.google.protobuf.ByteStringExpected uri of the target.booleanhasScore()Relevance score of the target.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getUri
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:
- The uri.
-
getUriBytes
com.google.protobuf.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:
- The bytes for uri.
-
getPageNumbersList
Expected page numbers of the target. Each page number must be non negative.
repeated int32 page_numbers = 2;- Returns:
- A list containing the pageNumbers.
-
getPageNumbersCount
int getPageNumbersCount()Expected page numbers of the target. Each page number must be non negative.
repeated int32 page_numbers = 2;- Returns:
- The count of pageNumbers.
-
getPageNumbers
int getPageNumbers(int index) Expected page numbers of the target. Each page number must be non negative.
repeated int32 page_numbers = 2;- Parameters:
index- The index of the element to return.- Returns:
- The pageNumbers at the given index.
-
hasScore
boolean hasScore()Relevance score of the target.
optional double score = 3;- Returns:
- Whether the score field is set.
-
getScore
double getScore()Relevance score of the target.
optional double score = 3;- Returns:
- The score.
-