@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
1,542 lines (1,291 loc) • 136 kB
JavaScript
// source: provenance/metadata/v1/events.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = function () {
return this || window || global || self || Function('return this')();
}.call(null);
goog.exportSymbol('proto.provenance.metadata.v1.EventContractSpecificationCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventContractSpecificationDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventContractSpecificationUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventOSLocatorCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventOSLocatorDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventOSLocatorUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventRecordCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventRecordDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventRecordSpecificationCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventRecordSpecificationDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventRecordSpecificationUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventRecordUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventScopeCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventScopeDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventScopeSpecificationCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventScopeSpecificationDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventScopeSpecificationUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventScopeUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventSessionCreated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventSessionDeleted', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventSessionUpdated', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventSetNetAssetValue', null, global);
goog.exportSymbol('proto.provenance.metadata.v1.EventTxCompleted', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventTxCompleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.metadata.v1.EventTxCompleted.repeatedFields_, null);
};
goog.inherits(proto.provenance.metadata.v1.EventTxCompleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventTxCompleted.displayName = 'proto.provenance.metadata.v1.EventTxCompleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventScopeCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventScopeCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventScopeCreated.displayName = 'proto.provenance.metadata.v1.EventScopeCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventScopeUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventScopeUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventScopeUpdated.displayName = 'proto.provenance.metadata.v1.EventScopeUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventScopeDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventScopeDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventScopeDeleted.displayName = 'proto.provenance.metadata.v1.EventScopeDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventSessionCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventSessionCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventSessionCreated.displayName = 'proto.provenance.metadata.v1.EventSessionCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventSessionUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventSessionUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventSessionUpdated.displayName = 'proto.provenance.metadata.v1.EventSessionUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventSessionDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventSessionDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventSessionDeleted.displayName = 'proto.provenance.metadata.v1.EventSessionDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventRecordCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventRecordCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventRecordCreated.displayName = 'proto.provenance.metadata.v1.EventRecordCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventRecordUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventRecordUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventRecordUpdated.displayName = 'proto.provenance.metadata.v1.EventRecordUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventRecordDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventRecordDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventRecordDeleted.displayName = 'proto.provenance.metadata.v1.EventRecordDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventScopeSpecificationCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventScopeSpecificationCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventScopeSpecificationCreated.displayName = 'proto.provenance.metadata.v1.EventScopeSpecificationCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventScopeSpecificationUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventScopeSpecificationUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventScopeSpecificationUpdated.displayName = 'proto.provenance.metadata.v1.EventScopeSpecificationUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventScopeSpecificationDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventScopeSpecificationDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventScopeSpecificationDeleted.displayName = 'proto.provenance.metadata.v1.EventScopeSpecificationDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventContractSpecificationCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventContractSpecificationCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventContractSpecificationCreated.displayName = 'proto.provenance.metadata.v1.EventContractSpecificationCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventContractSpecificationUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventContractSpecificationUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventContractSpecificationUpdated.displayName = 'proto.provenance.metadata.v1.EventContractSpecificationUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventContractSpecificationDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventContractSpecificationDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventContractSpecificationDeleted.displayName = 'proto.provenance.metadata.v1.EventContractSpecificationDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventRecordSpecificationCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventRecordSpecificationCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventRecordSpecificationCreated.displayName = 'proto.provenance.metadata.v1.EventRecordSpecificationCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventRecordSpecificationUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventRecordSpecificationUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventRecordSpecificationUpdated.displayName = 'proto.provenance.metadata.v1.EventRecordSpecificationUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventRecordSpecificationDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventRecordSpecificationDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventRecordSpecificationDeleted.displayName = 'proto.provenance.metadata.v1.EventRecordSpecificationDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventOSLocatorCreated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventOSLocatorCreated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventOSLocatorCreated.displayName = 'proto.provenance.metadata.v1.EventOSLocatorCreated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventOSLocatorUpdated = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventOSLocatorUpdated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventOSLocatorUpdated.displayName = 'proto.provenance.metadata.v1.EventOSLocatorUpdated';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventOSLocatorDeleted = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventOSLocatorDeleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventOSLocatorDeleted.displayName = 'proto.provenance.metadata.v1.EventOSLocatorDeleted';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.provenance.metadata.v1.EventSetNetAssetValue = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.metadata.v1.EventSetNetAssetValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.metadata.v1.EventSetNetAssetValue.displayName = 'proto.provenance.metadata.v1.EventSetNetAssetValue';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.provenance.metadata.v1.EventTxCompleted.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.metadata.v1.EventTxCompleted.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.provenance.metadata.v1.EventTxCompleted} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventTxCompleted.toObject = function (includeInstance, msg) {
var f,
obj = {
module: jspb.Message.getFieldWithDefault(msg, 1, ""),
endpoint: jspb.Message.getFieldWithDefault(msg, 2, ""),
signersList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.metadata.v1.EventTxCompleted}
*/
proto.provenance.metadata.v1.EventTxCompleted.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.metadata.v1.EventTxCompleted();
return proto.provenance.metadata.v1.EventTxCompleted.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.metadata.v1.EventTxCompleted} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.metadata.v1.EventTxCompleted}
*/
proto.provenance.metadata.v1.EventTxCompleted.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {string} */
reader.readString();
msg.setModule(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setEndpoint(value);
break;
case 3:
var value =
/** @type {string} */
reader.readString();
msg.addSigners(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.metadata.v1.EventTxCompleted.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.metadata.v1.EventTxCompleted} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventTxCompleted.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getModule();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getEndpoint();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getSignersList();
if (f.length > 0) {
writer.writeRepeatedString(3, f);
}
};
/**
* optional string module = 1;
* @return {string}
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.getModule = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventTxCompleted} returns this
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.setModule = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string endpoint = 2;
* @return {string}
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.getEndpoint = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventTxCompleted} returns this
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.setEndpoint = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated string signers = 3;
* @return {!Array<string>}
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.getSignersList = function () {
return (
/** @type {!Array<string>} */
jspb.Message.getRepeatedField(this, 3)
);
};
/**
* @param {!Array<string>} value
* @return {!proto.provenance.metadata.v1.EventTxCompleted} returns this
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.setSignersList = function (value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.provenance.metadata.v1.EventTxCompleted} returns this
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.addSigners = function (value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.provenance.metadata.v1.EventTxCompleted} returns this
*/
proto.provenance.metadata.v1.EventTxCompleted.prototype.clearSignersList = function () {
return this.setSignersList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.provenance.metadata.v1.EventScopeCreated.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.metadata.v1.EventScopeCreated.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.provenance.metadata.v1.EventScopeCreated} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventScopeCreated.toObject = function (includeInstance, msg) {
var f,
obj = {
scopeAddr: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.metadata.v1.EventScopeCreated}
*/
proto.provenance.metadata.v1.EventScopeCreated.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.metadata.v1.EventScopeCreated();
return proto.provenance.metadata.v1.EventScopeCreated.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.metadata.v1.EventScopeCreated} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.metadata.v1.EventScopeCreated}
*/
proto.provenance.metadata.v1.EventScopeCreated.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {string} */
reader.readString();
msg.setScopeAddr(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.metadata.v1.EventScopeCreated.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.metadata.v1.EventScopeCreated.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.metadata.v1.EventScopeCreated} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventScopeCreated.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getScopeAddr();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string scope_addr = 1;
* @return {string}
*/
proto.provenance.metadata.v1.EventScopeCreated.prototype.getScopeAddr = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventScopeCreated} returns this
*/
proto.provenance.metadata.v1.EventScopeCreated.prototype.setScopeAddr = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.provenance.metadata.v1.EventScopeUpdated.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.metadata.v1.EventScopeUpdated.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.provenance.metadata.v1.EventScopeUpdated} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventScopeUpdated.toObject = function (includeInstance, msg) {
var f,
obj = {
scopeAddr: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.metadata.v1.EventScopeUpdated}
*/
proto.provenance.metadata.v1.EventScopeUpdated.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.metadata.v1.EventScopeUpdated();
return proto.provenance.metadata.v1.EventScopeUpdated.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.metadata.v1.EventScopeUpdated} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.metadata.v1.EventScopeUpdated}
*/
proto.provenance.metadata.v1.EventScopeUpdated.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {string} */
reader.readString();
msg.setScopeAddr(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.metadata.v1.EventScopeUpdated.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.metadata.v1.EventScopeUpdated.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.metadata.v1.EventScopeUpdated} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventScopeUpdated.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getScopeAddr();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string scope_addr = 1;
* @return {string}
*/
proto.provenance.metadata.v1.EventScopeUpdated.prototype.getScopeAddr = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventScopeUpdated} returns this
*/
proto.provenance.metadata.v1.EventScopeUpdated.prototype.setScopeAddr = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.provenance.metadata.v1.EventScopeDeleted.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.metadata.v1.EventScopeDeleted.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.provenance.metadata.v1.EventScopeDeleted} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventScopeDeleted.toObject = function (includeInstance, msg) {
var f,
obj = {
scopeAddr: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.metadata.v1.EventScopeDeleted}
*/
proto.provenance.metadata.v1.EventScopeDeleted.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.metadata.v1.EventScopeDeleted();
return proto.provenance.metadata.v1.EventScopeDeleted.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.metadata.v1.EventScopeDeleted} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.metadata.v1.EventScopeDeleted}
*/
proto.provenance.metadata.v1.EventScopeDeleted.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {string} */
reader.readString();
msg.setScopeAddr(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.metadata.v1.EventScopeDeleted.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.metadata.v1.EventScopeDeleted.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.metadata.v1.EventScopeDeleted} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventScopeDeleted.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getScopeAddr();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string scope_addr = 1;
* @return {string}
*/
proto.provenance.metadata.v1.EventScopeDeleted.prototype.getScopeAddr = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventScopeDeleted} returns this
*/
proto.provenance.metadata.v1.EventScopeDeleted.prototype.setScopeAddr = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.provenance.metadata.v1.EventSessionCreated.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.metadata.v1.EventSessionCreated.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.provenance.metadata.v1.EventSessionCreated} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventSessionCreated.toObject = function (includeInstance, msg) {
var f,
obj = {
sessionAddr: jspb.Message.getFieldWithDefault(msg, 1, ""),
scopeAddr: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.metadata.v1.EventSessionCreated}
*/
proto.provenance.metadata.v1.EventSessionCreated.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.metadata.v1.EventSessionCreated();
return proto.provenance.metadata.v1.EventSessionCreated.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.metadata.v1.EventSessionCreated} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.metadata.v1.EventSessionCreated}
*/
proto.provenance.metadata.v1.EventSessionCreated.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {string} */
reader.readString();
msg.setSessionAddr(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setScopeAddr(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.metadata.v1.EventSessionCreated.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.metadata.v1.EventSessionCreated.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.metadata.v1.EventSessionCreated} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventSessionCreated.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getSessionAddr();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getScopeAddr();
if (f.length > 0) {
writer.writeString(2, f);
}
};
/**
* optional string session_addr = 1;
* @return {string}
*/
proto.provenance.metadata.v1.EventSessionCreated.prototype.getSessionAddr = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventSessionCreated} returns this
*/
proto.provenance.metadata.v1.EventSessionCreated.prototype.setSessionAddr = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string scope_addr = 2;
* @return {string}
*/
proto.provenance.metadata.v1.EventSessionCreated.prototype.getScopeAddr = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.metadata.v1.EventSessionCreated} returns this
*/
proto.provenance.metadata.v1.EventSessionCreated.prototype.setScopeAddr = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.provenance.metadata.v1.EventSessionUpdated.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.metadata.v1.EventSessionUpdated.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.provenance.metadata.v1.EventSessionUpdated} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventSessionUpdated.toObject = function (includeInstance, msg) {
var f,
obj = {
sessionAddr: jspb.Message.getFieldWithDefault(msg, 1, ""),
scopeAddr: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.metadata.v1.EventSessionUpdated}
*/
proto.provenance.metadata.v1.EventSessionUpdated.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.metadata.v1.EventSessionUpdated();
return proto.provenance.metadata.v1.EventSessionUpdated.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.metadata.v1.EventSessionUpdated} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.metadata.v1.EventSessionUpdated}
*/
proto.provenance.metadata.v1.EventSessionUpdated.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {string} */
reader.readString();
msg.setSessionAddr(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setScopeAddr(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.metadata.v1.EventSessionUpdated.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.metadata.v1.EventSessionUpdated.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.metadata.v1.EventSessionUpdated} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.metadata.v1.EventSessionUpdated.serializeBinaryToWriter = function (message, writer) {
var f = undefin