FirestoreServiceBase constructor
FirestoreServiceBase()
Implementation
FirestoreServiceBase() {
$addMethod($grpc.ServiceMethod<$0.GetDocumentRequest, $1.Document>(
'GetDocument',
getDocument_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetDocumentRequest.fromBuffer(value),
($1.Document value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$0.ListDocumentsRequest, $0.ListDocumentsResponse>(
'ListDocuments',
listDocuments_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.ListDocumentsRequest.fromBuffer(value),
($0.ListDocumentsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.UpdateDocumentRequest, $1.Document>(
'UpdateDocument',
updateDocument_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.UpdateDocumentRequest.fromBuffer(value),
($1.Document value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DeleteDocumentRequest, $2.Empty>(
'DeleteDocument',
deleteDocument_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.DeleteDocumentRequest.fromBuffer(value),
($2.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.BatchGetDocumentsRequest,
$0.BatchGetDocumentsResponse>(
'BatchGetDocuments',
batchGetDocuments_Pre,
false,
true,
($core.List<$core.int> value) =>
$0.BatchGetDocumentsRequest.fromBuffer(value),
($0.BatchGetDocumentsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.BeginTransactionRequest,
$0.BeginTransactionResponse>(
'BeginTransaction',
beginTransaction_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.BeginTransactionRequest.fromBuffer(value),
($0.BeginTransactionResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.CommitRequest, $0.CommitResponse>(
'Commit',
commit_Pre,
false,
false,
($core.List<$core.int> value) => $0.CommitRequest.fromBuffer(value),
($0.CommitResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.RollbackRequest, $2.Empty>(
'Rollback',
rollback_Pre,
false,
false,
($core.List<$core.int> value) => $0.RollbackRequest.fromBuffer(value),
($2.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.RunQueryRequest, $0.RunQueryResponse>(
'RunQuery',
runQuery_Pre,
false,
true,
($core.List<$core.int> value) => $0.RunQueryRequest.fromBuffer(value),
($0.RunQueryResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.RunAggregationQueryRequest,
$0.RunAggregationQueryResponse>(
'RunAggregationQuery',
runAggregationQuery_Pre,
false,
true,
($core.List<$core.int> value) =>
$0.RunAggregationQueryRequest.fromBuffer(value),
($0.RunAggregationQueryResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.PartitionQueryRequest,
$0.PartitionQueryResponse>(
'PartitionQuery',
partitionQuery_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.PartitionQueryRequest.fromBuffer(value),
($0.PartitionQueryResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.WriteRequest, $0.WriteResponse>(
'Write',
write,
true,
true,
($core.List<$core.int> value) => $0.WriteRequest.fromBuffer(value),
($0.WriteResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ListenRequest, $0.ListenResponse>(
'Listen',
listen,
true,
true,
($core.List<$core.int> value) => $0.ListenRequest.fromBuffer(value),
($0.ListenResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ListCollectionIdsRequest,
$0.ListCollectionIdsResponse>(
'ListCollectionIds',
listCollectionIds_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.ListCollectionIdsRequest.fromBuffer(value),
($0.ListCollectionIdsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.BatchWriteRequest, $0.BatchWriteResponse>(
'BatchWrite',
batchWrite_Pre,
false,
false,
($core.List<$core.int> value) => $0.BatchWriteRequest.fromBuffer(value),
($0.BatchWriteResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.CreateDocumentRequest, $1.Document>(
'CreateDocument',
createDocument_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.CreateDocumentRequest.fromBuffer(value),
($1.Document value) => value.writeToBuffer()));
}