From 379c58675e07b9b566bbd63f5c4134b5403e3c3e Mon Sep 17 00:00:00 2001 From: gideong Date: Wed, 31 Jan 2018 15:16:22 -0800 Subject: [PATCH] Adding field_mask. --- src/common.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index 33918b88b..489ee1c67 100644 --- a/src/common.js +++ b/src/common.js @@ -12,6 +12,7 @@ var commonRe = /\/|\./; * @property {INamespace} google/protobuf/any.proto Any * @property {INamespace} google/protobuf/duration.proto Duration * @property {INamespace} google/protobuf/empty.proto Empty + * @property {INamespace} google/protobuf/field_mask.proto FieldMask * @property {INamespace} google/protobuf/struct.proto Struct, Value, NullValue and ListValue * @property {INamespace} google/protobuf/timestamp.proto Timestamp * @property {INamespace} google/protobuf/wrappers.proto Wrappers @@ -33,7 +34,6 @@ function common(name, json) { // Not provided because of limited use (feel free to discuss or to provide yourself): // // google/protobuf/descriptor.proto -// google/protobuf/field_mask.proto // google/protobuf/source_context.proto // google/protobuf/type.proto // @@ -359,6 +359,26 @@ common("wrappers", { } }); +common("field_mask", { + + /** + * Properties of a google.protobuf.FieldMask message. + * @interface IDoubleValue + * @type {Object} + * @property {number} [value] + * @memberof common + */ + FieldMask: { + fields: { + paths: { + rule: "repeated", + type: "string", + id: 1 + } + } + } +}); + /** * Gets the root definition of the specified common proto file. * @@ -366,6 +386,7 @@ common("wrappers", { * - google/protobuf/any.proto * - google/protobuf/duration.proto * - google/protobuf/empty.proto + * - google/protobuf/field_mask.proto * - google/protobuf/struct.proto * - google/protobuf/timestamp.proto * - google/protobuf/wrappers.proto