blob: 1aa8dcbc3645a36995cacc5525be0876d934f4e7 [file] [log] [blame]
# DO NOT MODIFY. This file was generated by
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
# Various changes to a single document.
description: "listen: add a doc, modify it, delete it, then add it again"
listen: <
responses: <
document_change: <
document: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 1
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 1
>
>
target_ids: 1
>
>
responses: <
target_change: <
target_change_type: CURRENT
>
>
responses: <
target_change: <
read_time: <
seconds: 1
>
>
>
responses: <
document_change: <
document: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 2
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 2
>
>
target_ids: 1
>
>
responses: <
target_change: <
read_time: <
seconds: 2
>
>
>
responses: <
document_delete: <
document: "projects/projectID/databases/(default)/documents/C/d1"
>
>
responses: <
target_change: <
read_time: <
seconds: 3
>
>
>
responses: <
document_change: <
document: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 3
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 3
>
>
target_ids: 1
>
>
responses: <
target_change: <
read_time: <
seconds: 4
>
>
>
snapshots: <
docs: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 1
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 1
>
>
changes: <
kind: ADDED
doc: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 1
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 1
>
>
old_index: -1
>
read_time: <
seconds: 1
>
>
snapshots: <
docs: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 2
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 2
>
>
changes: <
kind: MODIFIED
doc: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 2
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 2
>
>
>
read_time: <
seconds: 2
>
>
snapshots: <
changes: <
kind: REMOVED
doc: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 2
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 2
>
>
new_index: -1
>
read_time: <
seconds: 3
>
>
snapshots: <
docs: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 3
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 3
>
>
changes: <
kind: ADDED
doc: <
name: "projects/projectID/databases/(default)/documents/C/d1"
fields: <
key: "a"
value: <
integer_value: 3
>
>
create_time: <
seconds: 1
>
update_time: <
seconds: 3
>
>
old_index: -1
>
read_time: <
seconds: 4
>
>
>