public final class ListDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 implements ListDocumentsRequestOrBuilder
google.cloud.documentai.v1beta3.ListDocumentsRequest| Modifier and Type | Class and Description |
|---|---|
static class |
ListDocumentsRequest.Builder
Protobuf type
google.cloud.documentai.v1beta3.ListDocumentsRequest |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DATASET_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
PAGE_SIZE_FIELD_NUMBER |
static int |
PAGE_TOKEN_FIELD_NUMBER |
static int |
RETURN_TOTAL_SIZE_FIELD_NUMBER |
static int |
SKIP_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDataset()
Required.
|
com.google.protobuf.ByteString |
getDatasetBytes()
Required.
|
static ListDocumentsRequest |
getDefaultInstance() |
ListDocumentsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFilter()
Optional.
|
com.google.protobuf.ByteString |
getFilterBytes()
Optional.
|
int |
getPageSize()
The maximum number of documents to return.
|
String |
getPageToken()
A page token, received from a previous `ListDocuments` call.
|
com.google.protobuf.ByteString |
getPageTokenBytes()
A page token, received from a previous `ListDocuments` call.
|
com.google.protobuf.Parser<ListDocumentsRequest> |
getParserForType() |
boolean |
getReturnTotalSize()
Optional.
|
int |
getSerializedSize() |
int |
getSkip()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ListDocumentsRequest.Builder |
newBuilder() |
static ListDocumentsRequest.Builder |
newBuilder(ListDocumentsRequest prototype) |
ListDocumentsRequest.Builder |
newBuilderForType() |
protected ListDocumentsRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ListDocumentsRequest |
parseDelimitedFrom(InputStream input) |
static ListDocumentsRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ListDocumentsRequest |
parseFrom(byte[] data) |
static ListDocumentsRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ListDocumentsRequest |
parseFrom(ByteBuffer data) |
static ListDocumentsRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ListDocumentsRequest |
parseFrom(com.google.protobuf.ByteString data) |
static ListDocumentsRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ListDocumentsRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ListDocumentsRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ListDocumentsRequest |
parseFrom(InputStream input) |
static ListDocumentsRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ListDocumentsRequest> |
parser() |
ListDocumentsRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DATASET_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
public static final int RETURN_TOTAL_SIZE_FIELD_NUMBER
public static final int SKIP_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getDataset()
Required. The resource name of the dataset to be listed.
Format:
projects/{project}/locations/{location}/processors/{processor}/dataset
string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDataset in interface ListDocumentsRequestOrBuilderpublic com.google.protobuf.ByteString getDatasetBytes()
Required. The resource name of the dataset to be listed.
Format:
projects/{project}/locations/{location}/processors/{processor}/dataset
string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDatasetBytes in interface ListDocumentsRequestOrBuilderpublic int getPageSize()
The maximum number of documents to return. The service may return fewer than this value. If unspecified, at most 20 documents will be returned. The maximum value is 100; values above 100 will be coerced to 100.
int32 page_size = 2;getPageSize in interface ListDocumentsRequestOrBuilderpublic String getPageToken()
A page token, received from a previous `ListDocuments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.
string page_token = 3;getPageToken in interface ListDocumentsRequestOrBuilderpublic com.google.protobuf.ByteString getPageTokenBytes()
A page token, received from a previous `ListDocuments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.
string page_token = 3;getPageTokenBytes in interface ListDocumentsRequestOrBuilderpublic String getFilter()
Optional. Query to filter the documents based on
https://google.aip.dev/160.
## Currently support query strings are:
`SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED`
- `LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED`
- `DisplayName=\"file_name.pdf\"`
- `EntityType=abc/def`
- `TagName=\"auto-labeling-running\"|\"sampled\"`
Note:
- Only `AND`, `=` and `!=` are supported.
e.g. `DisplayName=file_name AND EntityType!=abc` IS supported.
- Wildcard `*` is supported only in `DisplayName` filter
- No duplicate filter keys are allowed,
e.g. `EntityType=a AND EntityType=b` is NOT supported.
- String match is case sensitive (for filter `DisplayName` & `EntityType`).
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];getFilter in interface ListDocumentsRequestOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
Optional. Query to filter the documents based on
https://google.aip.dev/160.
## Currently support query strings are:
`SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED`
- `LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED`
- `DisplayName=\"file_name.pdf\"`
- `EntityType=abc/def`
- `TagName=\"auto-labeling-running\"|\"sampled\"`
Note:
- Only `AND`, `=` and `!=` are supported.
e.g. `DisplayName=file_name AND EntityType!=abc` IS supported.
- Wildcard `*` is supported only in `DisplayName` filter
- No duplicate filter keys are allowed,
e.g. `EntityType=a AND EntityType=b` is NOT supported.
- String match is case sensitive (for filter `DisplayName` & `EntityType`).
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];getFilterBytes in interface ListDocumentsRequestOrBuilderpublic boolean getReturnTotalSize()
Optional. Controls if the request requires a total size of matched documents. See [ListDocumentsResponse.total_size][google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size]. Enabling this flag may adversely impact performance. Defaults to false.
bool return_total_size = 6 [(.google.api.field_behavior) = OPTIONAL];getReturnTotalSize in interface ListDocumentsRequestOrBuilderpublic int getSkip()
Optional. Number of results to skip beginning from the `page_token` if provided. https://google.aip.dev/158#skipping-results. It must be a non-negative integer. Negative values will be rejected. Note that this is not the number of pages to skip. If this value causes the cursor to move past the end of results, [ListDocumentsResponse.document_metadata][google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata] and [ListDocumentsResponse.next_page_token][google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token] will be empty.
int32 skip = 8 [(.google.api.field_behavior) = OPTIONAL];getSkip in interface ListDocumentsRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ListDocumentsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ListDocumentsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ListDocumentsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ListDocumentsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ListDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ListDocumentsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ListDocumentsRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static ListDocumentsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ListDocumentsRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ListDocumentsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ListDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ListDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ListDocumentsRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ListDocumentsRequest.Builder newBuilder()
public static ListDocumentsRequest.Builder newBuilder(ListDocumentsRequest prototype)
public ListDocumentsRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ListDocumentsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ListDocumentsRequest getDefaultInstance()
public static com.google.protobuf.Parser<ListDocumentsRequest> parser()
public com.google.protobuf.Parser<ListDocumentsRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ListDocumentsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.