Constructor
new Firestore(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Firestore service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
batchGetDocuments(request, callback) → {undefined}
Calls BatchGetDocuments.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IBatchGetDocumentsRequest |
BatchGetDocumentsRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.BatchGetDocumentsCallback |
Node-style callback called with the error, if any, and BatchGetDocumentsResponse |
Returns:
Type | Description |
---|---|
undefined |
batchGetDocuments(request) → {Promise.<google.firestore.v1beta1.BatchGetDocumentsResponse>}
Calls BatchGetDocuments.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IBatchGetDocumentsRequest |
BatchGetDocumentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.BatchGetDocumentsResponse> |
Promise |
batchWrite(request, callback) → {undefined}
Calls BatchWrite.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IBatchWriteRequest |
BatchWriteRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.BatchWriteCallback |
Node-style callback called with the error, if any, and BatchWriteResponse |
Returns:
Type | Description |
---|---|
undefined |
batchWrite(request) → {Promise.<google.firestore.v1beta1.BatchWriteResponse>}
Calls BatchWrite.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IBatchWriteRequest |
BatchWriteRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.BatchWriteResponse> |
Promise |
beginTransaction(request, callback) → {undefined}
Calls BeginTransaction.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IBeginTransactionRequest |
BeginTransactionRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.BeginTransactionCallback |
Node-style callback called with the error, if any, and BeginTransactionResponse |
Returns:
Type | Description |
---|---|
undefined |
beginTransaction(request) → {Promise.<google.firestore.v1beta1.BeginTransactionResponse>}
Calls BeginTransaction.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IBeginTransactionRequest |
BeginTransactionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.BeginTransactionResponse> |
Promise |
commit(request, callback) → {undefined}
Calls Commit.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.ICommitRequest |
CommitRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.CommitCallback |
Node-style callback called with the error, if any, and CommitResponse |
Returns:
Type | Description |
---|---|
undefined |
commit(request) → {Promise.<google.firestore.v1beta1.CommitResponse>}
Calls Commit.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.ICommitRequest |
CommitRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.CommitResponse> |
Promise |
createDocument(request, callback) → {undefined}
Calls CreateDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.ICreateDocumentRequest |
CreateDocumentRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.CreateDocumentCallback |
Node-style callback called with the error, if any, and Document |
Returns:
Type | Description |
---|---|
undefined |
createDocument(request) → {Promise.<google.firestore.v1beta1.Document>}
Calls CreateDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.ICreateDocumentRequest |
CreateDocumentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.Document> |
Promise |
deleteDocument(request, callback) → {undefined}
Calls DeleteDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IDeleteDocumentRequest |
DeleteDocumentRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.DeleteDocumentCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteDocument(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IDeleteDocumentRequest |
DeleteDocumentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getDocument(request, callback) → {undefined}
Calls GetDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IGetDocumentRequest |
GetDocumentRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.GetDocumentCallback |
Node-style callback called with the error, if any, and Document |
Returns:
Type | Description |
---|---|
undefined |
getDocument(request) → {Promise.<google.firestore.v1beta1.Document>}
Calls GetDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IGetDocumentRequest |
GetDocumentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.Document> |
Promise |
listCollectionIds(request, callback) → {undefined}
Calls ListCollectionIds.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IListCollectionIdsRequest |
ListCollectionIdsRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.ListCollectionIdsCallback |
Node-style callback called with the error, if any, and ListCollectionIdsResponse |
Returns:
Type | Description |
---|---|
undefined |
listCollectionIds(request) → {Promise.<google.firestore.v1beta1.ListCollectionIdsResponse>}
Calls ListCollectionIds.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IListCollectionIdsRequest |
ListCollectionIdsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.ListCollectionIdsResponse> |
Promise |
listDocuments(request, callback) → {undefined}
Calls ListDocuments.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IListDocumentsRequest |
ListDocumentsRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.ListDocumentsCallback |
Node-style callback called with the error, if any, and ListDocumentsResponse |
Returns:
Type | Description |
---|---|
undefined |
listDocuments(request) → {Promise.<google.firestore.v1beta1.ListDocumentsResponse>}
Calls ListDocuments.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IListDocumentsRequest |
ListDocumentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.ListDocumentsResponse> |
Promise |
listen(request, callback) → {undefined}
Calls Listen.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IListenRequest |
ListenRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.ListenCallback |
Node-style callback called with the error, if any, and ListenResponse |
Returns:
Type | Description |
---|---|
undefined |
listen(request) → {Promise.<google.firestore.v1beta1.ListenResponse>}
Calls Listen.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IListenRequest |
ListenRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.ListenResponse> |
Promise |
partitionQuery(request, callback) → {undefined}
Calls PartitionQuery.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IPartitionQueryRequest |
PartitionQueryRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.PartitionQueryCallback |
Node-style callback called with the error, if any, and PartitionQueryResponse |
Returns:
Type | Description |
---|---|
undefined |
partitionQuery(request) → {Promise.<google.firestore.v1beta1.PartitionQueryResponse>}
Calls PartitionQuery.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IPartitionQueryRequest |
PartitionQueryRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.PartitionQueryResponse> |
Promise |
rollback(request, callback) → {undefined}
Calls Rollback.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IRollbackRequest |
RollbackRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.RollbackCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
rollback(request) → {Promise.<google.protobuf.Empty>}
Calls Rollback.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IRollbackRequest |
RollbackRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
runQuery(request, callback) → {undefined}
Calls RunQuery.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IRunQueryRequest |
RunQueryRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.RunQueryCallback |
Node-style callback called with the error, if any, and RunQueryResponse |
Returns:
Type | Description |
---|---|
undefined |
runQuery(request) → {Promise.<google.firestore.v1beta1.RunQueryResponse>}
Calls RunQuery.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IRunQueryRequest |
RunQueryRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.RunQueryResponse> |
Promise |
updateDocument(request, callback) → {undefined}
Calls UpdateDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IUpdateDocumentRequest |
UpdateDocumentRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.UpdateDocumentCallback |
Node-style callback called with the error, if any, and Document |
Returns:
Type | Description |
---|---|
undefined |
updateDocument(request) → {Promise.<google.firestore.v1beta1.Document>}
Calls UpdateDocument.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IUpdateDocumentRequest |
UpdateDocumentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.Document> |
Promise |
write(request, callback) → {undefined}
Calls Write.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IWriteRequest |
WriteRequest message or plain object |
callback |
google.firestore.v1beta1.Firestore.WriteCallback |
Node-style callback called with the error, if any, and WriteResponse |
Returns:
Type | Description |
---|---|
undefined |
write(request) → {Promise.<google.firestore.v1beta1.WriteResponse>}
Calls Write.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.firestore.v1beta1.IWriteRequest |
WriteRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.firestore.v1beta1.WriteResponse> |
Promise |
Type Definitions
BatchGetDocumentsCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#batchGetDocuments.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.BatchGetDocumentsResponse |
<optional> |
BatchGetDocumentsResponse |
BatchWriteCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#batchWrite.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.BatchWriteResponse |
<optional> |
BatchWriteResponse |
BeginTransactionCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#beginTransaction.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.BeginTransactionResponse |
<optional> |
BeginTransactionResponse |
CommitCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#commit.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.CommitResponse |
<optional> |
CommitResponse |
CreateDocumentCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#createDocument.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.Document |
<optional> |
Document |
DeleteDocumentCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#deleteDocument.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetDocumentCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#getDocument.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.Document |
<optional> |
Document |
ListCollectionIdsCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#listCollectionIds.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.ListCollectionIdsResponse |
<optional> |
ListCollectionIdsResponse |
ListDocumentsCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#listDocuments.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.ListDocumentsResponse |
<optional> |
ListDocumentsResponse |
ListenCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#listen.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.ListenResponse |
<optional> |
ListenResponse |
PartitionQueryCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#partitionQuery.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.PartitionQueryResponse |
<optional> |
PartitionQueryResponse |
RollbackCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#rollback.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
RunQueryCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#runQuery.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.RunQueryResponse |
<optional> |
RunQueryResponse |
UpdateDocumentCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#updateDocument.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.Document |
<optional> |
Document |
WriteCallback(error, responseopt)
Callback as used by google.firestore.v1beta1.Firestore#write.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.firestore.v1beta1.WriteResponse |
<optional> |
WriteResponse |