package google.firestore.v1beta1

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service Firestore

firestore.proto:56

The Cloud Firestore service. This service exposes several types of comparable timestamps: * `create_time` - The time at which a document was created. Changes only when a document is deleted, then re-created. Increases in a strict monotonic fashion. * `update_time` - The time at which a document was last updated. Changes every time a document is modified. Does not change when a write results in no modifications. Increases in a strict monotonic fashion. * `read_time` - The time at which a particular state was observed. Used to denote a consistent snapshot of the database or the time at which a Document was observed to not exist. * `commit_time` - The time at which the writes in a transaction were committed. Any read with an equal or greater `read_time` is guaranteed to see the effects of the transaction.

message ArrayValue

document.proto:136

An array value.

Used in: DocumentTransform.FieldTransform, Value

message Cursor

query.proto:233

A position in a query result set.

Used in: StructuredQuery

message Document

document.proto:36

A Firestore document. Must not exceed 1 MiB - 4 bytes.

Used as response type in: Firestore.CreateDocument, Firestore.GetDocument, Firestore.UpdateDocument

Used as field type in: BatchGetDocumentsResponse, CreateDocumentRequest, DocumentChange, ListDocumentsResponse, RunQueryResponse, UpdateDocumentRequest, Write

message DocumentChange

write.proto:190

A [Document][google.firestore.v1beta1.Document] has changed. May be the result of multiple [writes][google.firestore.v1beta1.Write], including deletes, that ultimately resulted in a new value for the [Document][google.firestore.v1beta1.Document]. Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages may be returned for the same logical change, if multiple targets are affected.

Used in: ListenResponse

message DocumentDelete

write.proto:210

A [Document][google.firestore.v1beta1.Document] has been deleted. May be the result of multiple [writes][google.firestore.v1beta1.Write], including updates, the last of which deleted the [Document][google.firestore.v1beta1.Document]. Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages may be returned for the same logical delete, if multiple targets are affected.

Used in: ListenResponse

message DocumentMask

common.proto:36

A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a [Document][google.firestore.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value].

Used in: BatchGetDocumentsRequest, CreateDocumentRequest, GetDocumentRequest, ListDocumentsRequest, UpdateDocumentRequest, Write

message DocumentRemove

write.proto:231

A [Document][google.firestore.v1beta1.Document] has been removed from the view of the targets. Sent if the document is no longer relevant to a target and is out of view. Can be sent instead of a DocumentDelete or a DocumentChange if the server can not send the new value of the document. Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages may be returned for the same logical write or delete, if multiple targets are affected.

Used in: ListenResponse

message DocumentTransform

write.proto:70

A transformation of a document.

Used in: Write

message DocumentTransform.FieldTransform

write.proto:72

A transformation of a field of the document.

Used in: DocumentTransform

enum DocumentTransform.FieldTransform.ServerValue

write.proto:74

A value that is calculated by the server.

Used in: FieldTransform

message ExistenceFilter

write.proto:245

A digest of all the documents that match a given target.

Used in: ListenResponse

message MapValue

document.proto:142

A map value.

Used in: Value

message Precondition

common.proto:43

A precondition on a document, used for conditional operations.

Used in: DeleteDocumentRequest, UpdateDocumentRequest, Write

message StructuredQuery

query.proto:33

A Firestore query.

Used in: RunQueryRequest, Target.QueryTarget

message StructuredQuery.CollectionSelector

query.proto:35

A selection of a collection, such as `messages as m1`.

Used in: StructuredQuery

message StructuredQuery.CompositeFilter

query.proto:62

A filter that merges multiple other filters using the given operator.

Used in: Filter

enum StructuredQuery.CompositeFilter.Operator

query.proto:64

A composite filter operator.

Used in: CompositeFilter

enum StructuredQuery.Direction

query.proto:173

A sort direction.

Used in: Order

message StructuredQuery.FieldFilter

query.proto:81

A filter on a specific field.

Used in: Filter

enum StructuredQuery.FieldFilter.Operator

query.proto:83

A field filter operator.

Used in: FieldFilter

message StructuredQuery.FieldReference

query.proto:168

A reference to a field, such as `max(messages.time) as max_time`.

Used in: FieldFilter, Order, Projection, UnaryFilter

message StructuredQuery.Filter

query.proto:47

A filter.

Used in: StructuredQuery, CompositeFilter

message StructuredQuery.Order

query.proto:150

An order on a field.

Used in: StructuredQuery

message StructuredQuery.Projection

query.proto:159

The projection of document's fields to return.

Used in: StructuredQuery

message StructuredQuery.UnaryFilter

query.proto:126

A filter with a single operand.

Used in: Filter

enum StructuredQuery.UnaryFilter.Operator

query.proto:128

A unary operator.

Used in: UnaryFilter

message Target

firestore.proto:612

A specification of a set of documents to listen to.

Used in: ListenRequest

message Target.DocumentsTarget

firestore.proto:614

A target specified by a set of documents names.

Used in: Target

message Target.QueryTarget

firestore.proto:623

A target specified by a query.

Used in: Target

message TargetChange

firestore.proto:673

Targets being watched have changed.

Used in: ListenResponse

enum TargetChange.TargetChangeType

firestore.proto:675

The type of change.

Used in: TargetChange

message TransactionOptions

common.proto:57

Options for creating a new transaction.

Used in: BatchGetDocumentsRequest, BeginTransactionRequest, RunQueryRequest

message TransactionOptions.ReadOnly

common.proto:65

Options for a transaction that can only be used to read documents.

Used in: TransactionOptions

message TransactionOptions.ReadWrite

common.proto:59

Options for a transaction that can be used to read and write documents.

Used in: TransactionOptions

message Value

document.proto:83

A message that can hold any of the supported value types.

Used in: ArrayValue, Cursor, Document, DocumentTransform.FieldTransform, MapValue, StructuredQuery.FieldFilter, WriteResult

message Write

write.proto:34

A write on a document.

Used in: CommitRequest, WriteRequest

message WriteResult

write.proto:170

The result of applying a write.

Used in: CommitResponse, WriteResponse