Skip to content

Commit d6e3b9e

Browse files
gideongoodwindcodeIO
authored andcommitted
New: Added field_mask to built-in common wrappers (#982)
1 parent 057325d commit d6e3b9e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/common.js

+22-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var commonRe = /\/|\./;
1212
* @property {INamespace} google/protobuf/any.proto Any
1313
* @property {INamespace} google/protobuf/duration.proto Duration
1414
* @property {INamespace} google/protobuf/empty.proto Empty
15+
* @property {INamespace} google/protobuf/field_mask.proto FieldMask
1516
* @property {INamespace} google/protobuf/struct.proto Struct, Value, NullValue and ListValue
1617
* @property {INamespace} google/protobuf/timestamp.proto Timestamp
1718
* @property {INamespace} google/protobuf/wrappers.proto Wrappers
@@ -33,7 +34,6 @@ function common(name, json) {
3334
// Not provided because of limited use (feel free to discuss or to provide yourself):
3435
//
3536
// google/protobuf/descriptor.proto
36-
// google/protobuf/field_mask.proto
3737
// google/protobuf/source_context.proto
3838
// google/protobuf/type.proto
3939
//
@@ -359,13 +359,34 @@ common("wrappers", {
359359
}
360360
});
361361

362+
common("field_mask", {
363+
364+
/**
365+
* Properties of a google.protobuf.FieldMask message.
366+
* @interface IDoubleValue
367+
* @type {Object}
368+
* @property {number} [value]
369+
* @memberof common
370+
*/
371+
FieldMask: {
372+
fields: {
373+
paths: {
374+
rule: "repeated",
375+
type: "string",
376+
id: 1
377+
}
378+
}
379+
}
380+
});
381+
362382
/**
363383
* Gets the root definition of the specified common proto file.
364384
*
365385
* Bundled definitions are:
366386
* - google/protobuf/any.proto
367387
* - google/protobuf/duration.proto
368388
* - google/protobuf/empty.proto
389+
* - google/protobuf/field_mask.proto
369390
* - google/protobuf/struct.proto
370391
* - google/protobuf/timestamp.proto
371392
* - google/protobuf/wrappers.proto

0 commit comments

Comments
 (0)