Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc / node_modules / protobufjs / src / ProtoBuf / Reflect / Extension.js
diff --git a/legacy-libs/grpc/node_modules/protobufjs/src/ProtoBuf/Reflect/Extension.js b/legacy-libs/grpc/node_modules/protobufjs/src/ProtoBuf/Reflect/Extension.js
new file mode 100644 (file)
index 0000000..4559a4f
--- /dev/null
@@ -0,0 +1,22 @@
+/**\r
+ * An extension (field).\r
+ * @exports ProtoBuf.Reflect.Extension\r
+ * @constructor\r
+ * @param {!ProtoBuf.Builder} builder Builder reference\r
+ * @param {!ProtoBuf.Reflect.T} parent Parent object\r
+ * @param {string} name Object name\r
+ * @param {!ProtoBuf.Reflect.Message.Field} field Extension field\r
+ */\r
+var Extension = function(builder, parent, name, field) {\r
+    T.call(this, builder, parent, name);\r
+\r
+    /**\r
+     * Extended message field.\r
+     * @type {!ProtoBuf.Reflect.Message.Field}\r
+     * @expose\r
+     */\r
+    this.field = field;\r
+};\r
+\r
+// Extends T\r
+Extension.prototype = Object.create(T.prototype);\r