How to use the google-protobuf.ExtensionFieldInfo function in google-protobuf

To help you get started, we’ve selected a few google-protobuf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rai-project / mlmodelscope / src / proto / github.com / gogo / protobuf / gogoproto / gogo_pb.js View on Github external
jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FileOptions.extensions[63019] =
  proto.gogoproto.stableMarshalerAll;

/**
 * A tuple of {field number, class constructor} for the extension
 * field named `sizerAll`.
 * @type {!jspb.ExtensionFieldInfo.}
 */
proto.gogoproto.sizerAll = new jspb.ExtensionFieldInfo(
  63020,
  { sizerAll: 0 },
  null,
  /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ null,
  0
);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63020] = new jspb.ExtensionFieldBinaryInfo(
  proto.gogoproto.sizerAll,
  jspb.BinaryReader.prototype.readBool,
  jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
github rai-project / mlmodelscope / src / proto / github.com / gogo / protobuf / gogoproto / gogo_pb.js View on Github external
jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.EnumOptions.extensions[62021] =
  proto.gogoproto.goprotoEnumStringer;

/**
 * A tuple of {field number, class constructor} for the extension
 * field named `enumStringer`.
 * @type {!jspb.ExtensionFieldInfo.}
 */
proto.gogoproto.enumStringer = new jspb.ExtensionFieldInfo(
  62022,
  { enumStringer: 0 },
  null,
  /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ null,
  0
);

google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62022] = new jspb.ExtensionFieldBinaryInfo(
  proto.gogoproto.enumStringer,
  jspb.BinaryReader.prototype.readBool,
  jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
github hyperledger / burrow / js / proto / gogoproto / gogo_pb.js View on Github external
jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FileOptions.extensions[63015] = proto.gogoproto.testgenAll;


/**
 * A tuple of {field number, class constructor} for the extension
 * field named `benchgenAll`.
 * @type {!jspb.ExtensionFieldInfo}
 */
proto.gogoproto.benchgenAll = new jspb.ExtensionFieldInfo(
    63016,
    {benchgenAll: 0},
    null,
     /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
         null),
    0);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63016] = new jspb.ExtensionFieldBinaryInfo(
    proto.gogoproto.benchgenAll,
    jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
github rai-project / mlmodelscope / src / proto / github.com / gogo / protobuf / gogoproto / gogo_pb.js View on Github external
jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FileOptions.extensions[63014] =
  proto.gogoproto.descriptionAll;

/**
 * A tuple of {field number, class constructor} for the extension
 * field named `testgenAll`.
 * @type {!jspb.ExtensionFieldInfo.}
 */
proto.gogoproto.testgenAll = new jspb.ExtensionFieldInfo(
  63015,
  { testgenAll: 0 },
  null,
  /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ null,
  0
);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63015] = new jspb.ExtensionFieldBinaryInfo(
  proto.gogoproto.testgenAll,
  jspb.BinaryReader.prototype.readBool,
  jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
github rai-project / mlmodelscope / src / proto / github.com / gogo / protobuf / gogoproto / gogo_pb.js View on Github external
jspb.BinaryWriter.prototype.writeString,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.EnumValueOptions.extensions[66001] =
  proto.gogoproto.enumvalueCustomname;

/**
 * A tuple of {field number, class constructor} for the extension
 * field named `goprotoGettersAll`.
 * @type {!jspb.ExtensionFieldInfo.}
 */
proto.gogoproto.goprotoGettersAll = new jspb.ExtensionFieldInfo(
  63001,
  { goprotoGettersAll: 0 },
  null,
  /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ null,
  0
);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63001] = new jspb.ExtensionFieldBinaryInfo(
  proto.gogoproto.goprotoGettersAll,
  jspb.BinaryReader.prototype.readBool,
  jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
github hyperledger / burrow / js / proto / gogoproto / gogo_pb.js View on Github external
jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FileOptions.extensions[63019] = proto.gogoproto.stableMarshalerAll;


/**
 * A tuple of {field number, class constructor} for the extension
 * field named `sizerAll`.
 * @type {!jspb.ExtensionFieldInfo}
 */
proto.gogoproto.sizerAll = new jspb.ExtensionFieldInfo(
    63020,
    {sizerAll: 0},
    null,
     /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
         null),
    0);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63020] = new jspb.ExtensionFieldBinaryInfo(
    proto.gogoproto.sizerAll,
    jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
github hyperledger / burrow / js / proto / gogoproto / gogo_pb.js View on Github external
jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FileOptions.extensions[63027] = proto.gogoproto.gogoprotoImport;


/**
 * A tuple of {field number, class constructor} for the extension
 * field named `protosizerAll`.
 * @type {!jspb.ExtensionFieldInfo}
 */
proto.gogoproto.protosizerAll = new jspb.ExtensionFieldInfo(
    63028,
    {protosizerAll: 0},
    null,
     /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
         null),
    0);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63028] = new jspb.ExtensionFieldBinaryInfo(
    proto.gogoproto.protosizerAll,
    jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
github rai-project / mlmodelscope / src / proto / github.com / gogo / protobuf / gogoproto / gogo_pb.js View on Github external
jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.MessageOptions.extensions[64019] =
  proto.gogoproto.stableMarshaler;

/**
 * A tuple of {field number, class constructor} for the extension
 * field named `sizer`.
 * @type {!jspb.ExtensionFieldInfo.}
 */
proto.gogoproto.sizer = new jspb.ExtensionFieldInfo(
  64020,
  { sizer: 0 },
  null,
  /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ null,
  0
);

google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64020] = new jspb.ExtensionFieldBinaryInfo(
  proto.gogoproto.sizer,
  jspb.BinaryReader.prototype.readBool,
  jspb.BinaryWriter.prototype.writeBool,
  undefined,
  undefined,
  false
);
// This registers the extension field with the extended class, so that
github Opteo / google-ads-node / src / protos / google / longrunning / operations_pb.js View on Github external
};


/** @param {string} value */
proto.google.longrunning.OperationInfo.prototype.setMetadataType = function(value) {
  jspb.Message.setProto3StringField(this, 2, value);
};



/**
 * A tuple of {field number, class constructor} for the extension
 * field named `operationInfo`.
 * @type {!jspb.ExtensionFieldInfo}
 */
proto.google.longrunning.operationInfo = new jspb.ExtensionFieldInfo(
    1049,
    {operationInfo: 0},
    proto.google.longrunning.OperationInfo,
     /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
         proto.google.longrunning.OperationInfo.toObject),
    0);

google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[1049] = new jspb.ExtensionFieldBinaryInfo(
    proto.google.longrunning.operationInfo,
    jspb.BinaryReader.prototype.readMessage,
    jspb.BinaryWriter.prototype.writeMessage,
    proto.google.longrunning.OperationInfo.serializeBinaryToWriter,
    proto.google.longrunning.OperationInfo.deserializeBinaryFromReader,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
github hyperledger / burrow / js / proto / gogoproto / gogo_pb.js View on Github external
jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FileOptions.extensions[63024] = proto.gogoproto.unsafeUnmarshalerAll;


/**
 * A tuple of {field number, class constructor} for the extension
 * field named `goprotoExtensionsMapAll`.
 * @type {!jspb.ExtensionFieldInfo}
 */
proto.gogoproto.goprotoExtensionsMapAll = new jspb.ExtensionFieldInfo(
    63025,
    {goprotoExtensionsMapAll: 0},
    null,
     /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
         null),
    0);

google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63025] = new jspb.ExtensionFieldBinaryInfo(
    proto.gogoproto.goprotoExtensionsMapAll,
    jspb.BinaryReader.prototype.readBool,
    jspb.BinaryWriter.prototype.writeBool,
    undefined,
    undefined,
    false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.