Skip to content

Commit

Permalink
New: Added field_mask to built-in common wrappers (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
gideongoodwin authored and dcodeIO committed Feb 6, 2018
1 parent 057325d commit d6e3b9e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
//
Expand Down Expand Up @@ -359,13 +359,34 @@ 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.
*
* Bundled definitions are:
* - 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
Expand Down

0 comments on commit d6e3b9e

Please sign in to comment.