public final class SearchDocumentsResponse extends GeneratedMessageV3 implements SearchDocumentsResponseOrBuilder
Response message for DocumentService.SearchDocuments.
Protobuf type google.cloud.contentwarehouse.v1.SearchDocumentsResponse
Static Fields
HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER
public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER
Field Value
MATCHING_DOCUMENTS_FIELD_NUMBER
public static final int MATCHING_DOCUMENTS_FIELD_NUMBER
Field Value
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
Field Value
NEXT_PAGE_TOKEN_FIELD_NUMBER
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TOTAL_SIZE_FIELD_NUMBER
public static final int TOTAL_SIZE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SearchDocumentsResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SearchDocumentsResponse.Builder newBuilder()
Returns
newBuilder(SearchDocumentsResponse prototype)
public static SearchDocumentsResponse.Builder newBuilder(SearchDocumentsResponse prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static SearchDocumentsResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchDocumentsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SearchDocumentsResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchDocumentsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SearchDocumentsResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchDocumentsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static SearchDocumentsResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchDocumentsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static SearchDocumentsResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchDocumentsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SearchDocumentsResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchDocumentsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SearchDocumentsResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SearchDocumentsResponse getDefaultInstanceForType()
Returns
getHistogramQueryResults(int index)
public HistogramQueryResult getHistogramQueryResults(int index)
The histogram results that match with the specified
SearchDocumentsRequest.histogram_queries.
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
Parameter
Returns
getHistogramQueryResultsCount()
public int getHistogramQueryResultsCount()
The histogram results that match with the specified
SearchDocumentsRequest.histogram_queries.
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
Returns
getHistogramQueryResultsList()
public List<HistogramQueryResult> getHistogramQueryResultsList()
The histogram results that match with the specified
SearchDocumentsRequest.histogram_queries.
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
Returns
getHistogramQueryResultsOrBuilder(int index)
public HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder(int index)
The histogram results that match with the specified
SearchDocumentsRequest.histogram_queries.
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
Parameter
Returns
getHistogramQueryResultsOrBuilderList()
public List<? extends HistogramQueryResultOrBuilder> getHistogramQueryResultsOrBuilderList()
The histogram results that match with the specified
SearchDocumentsRequest.histogram_queries.
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
Returns
Type | Description |
List<? extends com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> | |
getMatchingDocuments(int index)
public SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index)
The document entities that match the specified SearchDocumentsRequest.
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
Parameter
Returns
getMatchingDocumentsCount()
public int getMatchingDocumentsCount()
The document entities that match the specified SearchDocumentsRequest.
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
Returns
getMatchingDocumentsList()
public List<SearchDocumentsResponse.MatchingDocument> getMatchingDocumentsList()
The document entities that match the specified SearchDocumentsRequest.
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
Returns
getMatchingDocumentsOrBuilder(int index)
public SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder(int index)
The document entities that match the specified SearchDocumentsRequest.
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
Parameter
Returns
getMatchingDocumentsOrBuilderList()
public List<? extends SearchDocumentsResponse.MatchingDocumentOrBuilder> getMatchingDocumentsOrBuilderList()
The document entities that match the specified SearchDocumentsRequest.
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
Returns
Type | Description |
List<? extends com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> | |
getMetadata()
public ResponseMetadata getMetadata()
Additional information for the API invocation, such as the request tracking
id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
Returns
getMetadataOrBuilder()
public ResponseMetadataOrBuilder getMetadataOrBuilder()
Additional information for the API invocation, such as the request tracking
id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
Returns
getNextPageToken()
public String getNextPageToken()
The token that specifies the starting position of the next page of results.
This field is empty if there are no more results.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
The token that specifies the starting position of the next page of results.
This field is empty if there are no more results.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getParserForType()
public Parser<SearchDocumentsResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTotalSize()
public int getTotalSize()
The total number of matched documents which is available only if the client
set SearchDocumentsRequest.require_total_size to true
. Otherwise, the
value will be -1
. total_size
will max at "100,000". If this
is returned, then it can be assumed that the count is equal to or greater
than 100,000. Typically a UI would handle this condition by displaying
"of many", for example: "Displaying 10 of many".
int32 total_size = 3;
Returns
Type | Description |
int | The totalSize.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasMetadata()
public boolean hasMetadata()
Additional information for the API invocation, such as the request tracking
id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
Returns
Type | Description |
boolean | Whether the metadata field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SearchDocumentsResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchDocumentsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SearchDocumentsResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions