Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update with generated code from protobufjs version 7.0.0 #1767

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
616 changes: 616 additions & 0 deletions dev/protos/firestore_admin_v1_proto_api.d.ts

Large diffs are not rendered by default.

1,506 changes: 1,480 additions & 26 deletions dev/protos/firestore_admin_v1_proto_api.js

Large diffs are not rendered by default.

826 changes: 826 additions & 0 deletions dev/protos/firestore_v1_proto_api.d.ts

Large diffs are not rendered by default.

1,954 changes: 1,911 additions & 43 deletions dev/protos/firestore_v1_proto_api.js

Large diffs are not rendered by default.

1,113 changes: 952 additions & 161 deletions dev/protos/firestore_v1beta1_proto_api.d.ts

Large diffs are not rendered by default.

4,001 changes: 2,894 additions & 1,107 deletions dev/protos/firestore_v1beta1_proto_api.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dev/protos/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ popd
PBJS_ARGS=( --proto_path=. \
--js_out=import_style=commonjs,binary:library \
--target=static-module \
--path="$(npm root)/protobufjs" \
--no-create \
--no-encode \
--no-decode \
Expand Down Expand Up @@ -117,19 +118,22 @@ perl -pi -e 's/number\|Long/number\|string/g' firestore_v1beta1_proto_api.js

"${PBJS}" --proto_path=. --target=json -o v1.json \
-r firestore_v1 \
--path="$(npm root)/protobufjs" \
"${PROTOS_DIR}/google/firestore/v1/*.proto" \
"${PROTOS_DIR}/google/protobuf/*.proto" "${PROTOS_DIR}/google/type/*.proto" \
"${PROTOS_DIR}/google/rpc/*.proto" "${PROTOS_DIR}/google/api/*.proto"

"${PBJS}" --proto_path=. --target=json -o v1_admin.json \
-r firestore_admin_v1 \
--path="$(npm root)/protobufjs" \
"${PROTOS_DIR}/google/firestore/admin/v1/*.proto" \
"${PROTOS_DIR}/google/protobuf/*.proto" "${PROTOS_DIR}/google/type/*.proto" \
"${PROTOS_DIR}/google/rpc/*.proto" "${PROTOS_DIR}/google/api/*.proto" \
"${PROTOS_DIR}/google/longrunning/*.proto"

"${PBJS}" --proto_path=. --target=json -o v1beta1.json \
-r firestore_v1beta1 \
--path="$(npm root)/protobufjs" \
"${PROTOS_DIR}/google/firestore/v1beta1/*.proto" \
"${PROTOS_DIR}/google/protobuf/*.proto" "${PROTOS_DIR}/google/type/*.proto" \
"${PROTOS_DIR}/google/rpc/*.proto" "${PROTOS_DIR}/google/api/*.proto"
Expand Down
126 changes: 63 additions & 63 deletions dev/protos/v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,69 @@
}
}
},
"Struct": {
"fields": {
"fields": {
"keyType": "string",
"type": "Value",
"id": 1
}
}
},
"Value": {
"oneofs": {
"kind": {
"oneof": [
"nullValue",
"numberValue",
"stringValue",
"boolValue",
"structValue",
"listValue"
]
}
},
"fields": {
"nullValue": {
"type": "NullValue",
"id": 1
},
"numberValue": {
"type": "double",
"id": 2
},
"stringValue": {
"type": "string",
"id": 3
},
"boolValue": {
"type": "bool",
"id": 4
},
"structValue": {
"type": "Struct",
"id": 5
},
"listValue": {
"type": "ListValue",
"id": 6
}
}
},
"NullValue": {
"values": {
"NULL_VALUE": 0
}
},
"ListValue": {
"fields": {
"values": {
"rule": "repeated",
"type": "Value",
"id": 1
}
}
},
"FileDescriptorSet": {
"fields": {
"file": {
Expand Down Expand Up @@ -743,69 +806,6 @@
}
}
},
"Struct": {
"fields": {
"fields": {
"keyType": "string",
"type": "Value",
"id": 1
}
}
},
"Value": {
"oneofs": {
"kind": {
"oneof": [
"nullValue",
"numberValue",
"stringValue",
"boolValue",
"structValue",
"listValue"
]
}
},
"fields": {
"nullValue": {
"type": "NullValue",
"id": 1
},
"numberValue": {
"type": "double",
"id": 2
},
"stringValue": {
"type": "string",
"id": 3
},
"boolValue": {
"type": "bool",
"id": 4
},
"structValue": {
"type": "Struct",
"id": 5
},
"listValue": {
"type": "ListValue",
"id": 6
}
}
},
"NullValue": {
"values": {
"NULL_VALUE": 0
}
},
"ListValue": {
"fields": {
"values": {
"rule": "repeated",
"type": "Value",
"id": 1
}
}
},
"Empty": {
"fields": {}
},
Expand Down