public final class ListDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 implements ListDocumentsRequestOrBuilder
The request for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].Protobuf type
google.firestore.v1.ListDocumentsRequest
Modifier and Type | Class and Description |
---|---|
static class |
ListDocumentsRequest.Builder
The request for
[Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
|
static class |
ListDocumentsRequest.ConsistencySelectorCase |
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 |
COLLECTION_ID_FIELD_NUMBER |
static int |
MASK_FIELD_NUMBER |
static int |
ORDER_BY_FIELD_NUMBER |
static int |
PAGE_SIZE_FIELD_NUMBER |
static int |
PAGE_TOKEN_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
READ_TIME_FIELD_NUMBER |
static int |
SHOW_MISSING_FIELD_NUMBER |
static int |
TRANSACTION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCollectionId()
Optional.
|
com.google.protobuf.ByteString |
getCollectionIdBytes()
Optional.
|
ListDocumentsRequest.ConsistencySelectorCase |
getConsistencySelectorCase() |
static ListDocumentsRequest |
getDefaultInstance() |
ListDocumentsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DocumentMask |
getMask()
Optional.
|
DocumentMaskOrBuilder |
getMaskOrBuilder()
Optional.
|
String |
getOrderBy()
Optional.
|
com.google.protobuf.ByteString |
getOrderByBytes()
Optional.
|
int |
getPageSize()
Optional.
|
String |
getPageToken()
Optional.
|
com.google.protobuf.ByteString |
getPageTokenBytes()
Optional.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
com.google.protobuf.Parser<ListDocumentsRequest> |
getParserForType() |
com.google.protobuf.Timestamp |
getReadTime()
Perform the read at the provided time.
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
Perform the read at the provided time.
|
int |
getSerializedSize() |
boolean |
getShowMissing()
If the list should show missing documents.
|
com.google.protobuf.ByteString |
getTransaction()
Perform the read as part of an already active transaction.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMask()
Optional.
|
boolean |
hasReadTime()
Perform the read at the provided time.
|
boolean |
hasTransaction()
Perform the read as part of an already active transaction.
|
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, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int PARENT_FIELD_NUMBER
public static final int COLLECTION_ID_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
public static final int ORDER_BY_FIELD_NUMBER
public static final int MASK_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
public static final int SHOW_MISSING_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public ListDocumentsRequest.ConsistencySelectorCase getConsistencySelectorCase()
getConsistencySelectorCase
in interface ListDocumentsRequestOrBuilder
public String getParent()
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
getParent
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.ByteString getParentBytes()
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
getParentBytes
in interface ListDocumentsRequestOrBuilder
public String getCollectionId()
Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.
string collection_id = 2 [(.google.api.field_behavior) = OPTIONAL];
getCollectionId
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.ByteString getCollectionIdBytes()
Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.
string collection_id = 2 [(.google.api.field_behavior) = OPTIONAL];
getCollectionIdBytes
in interface ListDocumentsRequestOrBuilder
public int getPageSize()
Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.
int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
getPageSize
in interface ListDocumentsRequestOrBuilder
public String getPageToken()
Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.
string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];
getPageToken
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.ByteString getPageTokenBytes()
Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.
string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];
getPageTokenBytes
in interface ListDocumentsRequestOrBuilder
public String getOrderBy()
Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by] used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];
getOrderBy
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.ByteString getOrderByBytes()
Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by] used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];
getOrderByBytes
in interface ListDocumentsRequestOrBuilder
public boolean hasMask()
Optional. The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 7 [(.google.api.field_behavior) = OPTIONAL];
hasMask
in interface ListDocumentsRequestOrBuilder
public DocumentMask getMask()
Optional. The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 7 [(.google.api.field_behavior) = OPTIONAL];
getMask
in interface ListDocumentsRequestOrBuilder
public DocumentMaskOrBuilder getMaskOrBuilder()
Optional. The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 7 [(.google.api.field_behavior) = OPTIONAL];
getMaskOrBuilder
in interface ListDocumentsRequestOrBuilder
public boolean hasTransaction()
Perform the read as part of an already active transaction.
bytes transaction = 8;
hasTransaction
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.ByteString getTransaction()
Perform the read as part of an already active transaction.
bytes transaction = 8;
getTransaction
in interface ListDocumentsRequestOrBuilder
public boolean hasReadTime()
Perform the read at the provided time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 10;
hasReadTime
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.Timestamp getReadTime()
Perform the read at the provided time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 10;
getReadTime
in interface ListDocumentsRequestOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
Perform the read at the provided time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 10;
getReadTimeOrBuilder
in interface ListDocumentsRequestOrBuilder
public boolean getShowMissing()
If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, [`create_time`][google.firestore.v1.Document.create_time], or [`update_time`][google.firestore.v1.Document.update_time] set. Requests with `show_missing` may not specify `where` or `order_by`.
bool show_missing = 12;
getShowMissing
in interface ListDocumentsRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ListDocumentsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ListDocumentsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ListDocumentsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ListDocumentsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ListDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ListDocumentsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ListDocumentsRequest parseFrom(InputStream input) throws IOException
IOException
public static ListDocumentsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ListDocumentsRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ListDocumentsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ListDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ListDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ListDocumentsRequest.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ListDocumentsRequest.Builder newBuilder()
public static ListDocumentsRequest.Builder newBuilder(ListDocumentsRequest prototype)
public ListDocumentsRequest.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ListDocumentsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static ListDocumentsRequest getDefaultInstance()
public static com.google.protobuf.Parser<ListDocumentsRequest> parser()
public com.google.protobuf.Parser<ListDocumentsRequest> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ListDocumentsRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.