Skip to content

Commit 53ef8a2

Browse files
authored
Re-sync with .proto / .textproto files from google-cloud-common. (googleapis#5351)
Regenerated 'test_pb2.py' by hacking the 'Makefile' to work around machine- specific bits (those changes not committed). Copied in additional '.textproto' files, bumping the count of testcases from 83 to 236. Still doesn't include updates to run tests for 'listen-*.textproto'.
1 parent 3261043 commit 53ef8a2

File tree

155 files changed

+7426
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+7426
-58
lines changed

firestore/google/cloud/firestore_v1beta1/proto/test_pb2.py

Lines changed: 758 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# A simple call, resulting in a single update operation.
5+
6+
description: "create: basic"
7+
create: <
8+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
9+
json_data: "{\"a\": 1}"
10+
request: <
11+
database: "projects/projectID/databases/(default)"
12+
writes: <
13+
update: <
14+
name: "projects/projectID/databases/(default)/documents/C/d"
15+
fields: <
16+
key: "a"
17+
value: <
18+
integer_value: 1
19+
>
20+
>
21+
>
22+
current_document: <
23+
exists: false
24+
>
25+
>
26+
>
27+
>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# A call to a write method with complicated input data.
5+
6+
description: "create: complex"
7+
create: <
8+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
9+
json_data: "{\"a\": [1, 2.5], \"b\": {\"c\": [\"three\", {\"d\": true}]}}"
10+
request: <
11+
database: "projects/projectID/databases/(default)"
12+
writes: <
13+
update: <
14+
name: "projects/projectID/databases/(default)/documents/C/d"
15+
fields: <
16+
key: "a"
17+
value: <
18+
array_value: <
19+
values: <
20+
integer_value: 1
21+
>
22+
values: <
23+
double_value: 2.5
24+
>
25+
>
26+
>
27+
>
28+
fields: <
29+
key: "b"
30+
value: <
31+
map_value: <
32+
fields: <
33+
key: "c"
34+
value: <
35+
array_value: <
36+
values: <
37+
string_value: "three"
38+
>
39+
values: <
40+
map_value: <
41+
fields: <
42+
key: "d"
43+
value: <
44+
boolean_value: true
45+
>
46+
>
47+
>
48+
>
49+
>
50+
>
51+
>
52+
>
53+
>
54+
>
55+
>
56+
current_document: <
57+
exists: false
58+
>
59+
>
60+
>
61+
>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# The Delete sentinel must be the value of a field. Deletes are implemented by
5+
# turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not
6+
# support array indexing.
7+
8+
description: "create: Delete cannot be anywhere inside an array value"
9+
create: <
10+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
11+
json_data: "{\"a\": [1, {\"b\": \"Delete\"}]}"
12+
is_error: true
13+
>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# The Delete sentinel must be the value of a field. Deletes are implemented by
5+
# turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not
6+
# support array indexing.
7+
8+
description: "create: Delete cannot be in an array value"
9+
create: <
10+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
11+
json_data: "{\"a\": [1, 2, \"Delete\"]}"
12+
is_error: true
13+
>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
5+
description: "create: creating or setting an empty map"
6+
create: <
7+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
8+
json_data: "{}"
9+
request: <
10+
database: "projects/projectID/databases/(default)"
11+
writes: <
12+
update: <
13+
name: "projects/projectID/databases/(default)/documents/C/d"
14+
>
15+
current_document: <
16+
exists: false
17+
>
18+
>
19+
>
20+
>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# The Delete sentinel cannot be used in Create, or in Set without a Merge option.
5+
6+
description: "create: Delete cannot appear in data"
7+
create: <
8+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
9+
json_data: "{\"a\": 1, \"b\": \"Delete\"}"
10+
is_error: true
11+
>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# Create and Set treat their map keys literally. They do not split on dots.
5+
6+
description: "create: don\342\200\231t split on dots"
7+
create: <
8+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
9+
json_data: "{ \"a.b\": { \"c.d\": 1 }, \"e\": 2 }"
10+
request: <
11+
database: "projects/projectID/databases/(default)"
12+
writes: <
13+
update: <
14+
name: "projects/projectID/databases/(default)/documents/C/d"
15+
fields: <
16+
key: "a.b"
17+
value: <
18+
map_value: <
19+
fields: <
20+
key: "c.d"
21+
value: <
22+
integer_value: 1
23+
>
24+
>
25+
>
26+
>
27+
>
28+
fields: <
29+
key: "e"
30+
value: <
31+
integer_value: 2
32+
>
33+
>
34+
>
35+
current_document: <
36+
exists: false
37+
>
38+
>
39+
>
40+
>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# Create and Set treat their map keys literally. They do not escape special
5+
# characters.
6+
7+
description: "create: non-alpha characters in map keys"
8+
create: <
9+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
10+
json_data: "{ \"*\": { \".\": 1 }, \"~\": 2 }"
11+
request: <
12+
database: "projects/projectID/databases/(default)"
13+
writes: <
14+
update: <
15+
name: "projects/projectID/databases/(default)/documents/C/d"
16+
fields: <
17+
key: "*"
18+
value: <
19+
map_value: <
20+
fields: <
21+
key: "."
22+
value: <
23+
integer_value: 1
24+
>
25+
>
26+
>
27+
>
28+
>
29+
fields: <
30+
key: "~"
31+
value: <
32+
integer_value: 2
33+
>
34+
>
35+
>
36+
current_document: <
37+
exists: false
38+
>
39+
>
40+
>
41+
>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# DO NOT MODIFY. This file was generated by
2+
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
3+
4+
# If the only values in the input are ServerTimestamps, then no update operation
5+
# should be produced.
6+
7+
description: "create: ServerTimestamp alone"
8+
create: <
9+
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
10+
json_data: "{\"a\": \"ServerTimestamp\"}"
11+
request: <
12+
database: "projects/projectID/databases/(default)"
13+
writes: <
14+
transform: <
15+
document: "projects/projectID/databases/(default)/documents/C/d"
16+
field_transforms: <
17+
field_path: "a"
18+
set_to_server_value: REQUEST_TIME
19+
>
20+
>
21+
current_document: <
22+
exists: false
23+
>
24+
>
25+
>
26+
>

0 commit comments

Comments
 (0)