UNPKG

teletype-client-modified

Version:

I have modified the library developed by Atom to make it compatible with non-browser facility. I am using it only for experimentation purposes. I will remove this package post my experiment and raise a PR at Atom to finally merge this package so that this

1,564 lines (1,335 loc) 173 kB
/** * @fileoverview * @enhanceable * @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! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var teletype$crdt_pb = require('./teletype-crdt_pb.js'); goog.exportSymbol('proto.BufferProxy', null, global); goog.exportSymbol('proto.BufferProxyUpdate', null, global); goog.exportSymbol('proto.BufferProxyUpdate.OperationsUpdate', null, global); goog.exportSymbol('proto.BufferProxyUpdate.URIUpdate', null, global); goog.exportSymbol('proto.EditorProxy', null, global); goog.exportSymbol('proto.EditorProxyMetadata', null, global); goog.exportSymbol('proto.EditorProxyUpdate', null, global); goog.exportSymbol('proto.EditorProxyUpdate.SelectionsUpdate', null, global); goog.exportSymbol('proto.NetworkMessage', null, global); goog.exportSymbol('proto.NetworkMessage.StarBroadcast', null, global); goog.exportSymbol('proto.NetworkMessage.StarJoinNotification', null, global); goog.exportSymbol('proto.NetworkMessage.StarJoinRequest', null, global); goog.exportSymbol('proto.NetworkMessage.StarJoinResponse', null, global); goog.exportSymbol('proto.NetworkMessage.StarLeaveNotification', null, global); goog.exportSymbol('proto.NetworkMessage.StarUnicast', null, global); goog.exportSymbol('proto.PeerIdentity', null, global); goog.exportSymbol('proto.PortalSubscriptionResponse', null, global); goog.exportSymbol('proto.PortalUpdate', null, global); goog.exportSymbol('proto.PortalUpdate.EditorProxyCreation', null, global); goog.exportSymbol('proto.PortalUpdate.EditorProxyRemoval', null, global); goog.exportSymbol('proto.PortalUpdate.EditorProxySwitch', null, global); goog.exportSymbol('proto.PortalUpdate.SiteAssignment', null, global); goog.exportSymbol('proto.RouterMessage', null, global); goog.exportSymbol('proto.RouterMessage.Notification', null, global); goog.exportSymbol('proto.RouterMessage.Request', null, global); goog.exportSymbol('proto.RouterMessage.Response', null, global); goog.exportSymbol('proto.Tether', 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.PortalSubscriptionResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.PortalSubscriptionResponse.repeatedFields_, null); }; goog.inherits(proto.PortalSubscriptionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.PortalSubscriptionResponse.displayName = 'proto.PortalSubscriptionResponse'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.PortalSubscriptionResponse.repeatedFields_ = [4,5,6,8]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.PortalSubscriptionResponse.prototype.toObject = function(opt_includeInstance) { return proto.PortalSubscriptionResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.PortalSubscriptionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalSubscriptionResponse.toObject = function(includeInstance, msg) { var f, obj = { siteIdsByPeerIdMap: (f = msg.getSiteIdsByPeerIdMap()) ? f.toObject(includeInstance, undefined) : [], tethersList: jspb.Message.toObjectList(msg.getTethersList(), proto.Tether.toObject, includeInstance), activeBufferProxiesList: jspb.Message.toObjectList(msg.getActiveBufferProxiesList(), proto.BufferProxy.toObject, includeInstance), activeEditorProxiesList: jspb.Message.toObjectList(msg.getActiveEditorProxiesList(), proto.EditorProxy.toObject, includeInstance), activeEditorProxyIdsBySiteIdMap: (f = msg.getActiveEditorProxyIdsBySiteIdMap()) ? f.toObject(includeInstance, undefined) : [], editorProxiesMetadataList: jspb.Message.toObjectList(msg.getEditorProxiesMetadataList(), proto.EditorProxyMetadata.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.PortalSubscriptionResponse} */ proto.PortalSubscriptionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.PortalSubscriptionResponse; return proto.PortalSubscriptionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.PortalSubscriptionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.PortalSubscriptionResponse} */ proto.PortalSubscriptionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = msg.getSiteIdsByPeerIdMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint32); }); break; case 4: var value = new proto.Tether; reader.readMessage(value,proto.Tether.deserializeBinaryFromReader); msg.addTethers(value); break; case 5: var value = new proto.BufferProxy; reader.readMessage(value,proto.BufferProxy.deserializeBinaryFromReader); msg.addActiveBufferProxies(value); break; case 6: var value = new proto.EditorProxy; reader.readMessage(value,proto.EditorProxy.deserializeBinaryFromReader); msg.addActiveEditorProxies(value); break; case 7: var value = msg.getActiveEditorProxyIdsBySiteIdMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32); }); break; case 8: var value = new proto.EditorProxyMetadata; reader.readMessage(value,proto.EditorProxyMetadata.deserializeBinaryFromReader); msg.addEditorProxiesMetadata(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.PortalSubscriptionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.PortalSubscriptionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.PortalSubscriptionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalSubscriptionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSiteIdsByPeerIdMap(true); if (f && f.getLength() > 0) { f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint32); } f = message.getTethersList(); if (f.length > 0) { writer.writeRepeatedMessage( 4, f, proto.Tether.serializeBinaryToWriter ); } f = message.getActiveBufferProxiesList(); if (f.length > 0) { writer.writeRepeatedMessage( 5, f, proto.BufferProxy.serializeBinaryToWriter ); } f = message.getActiveEditorProxiesList(); if (f.length > 0) { writer.writeRepeatedMessage( 6, f, proto.EditorProxy.serializeBinaryToWriter ); } f = message.getActiveEditorProxyIdsBySiteIdMap(true); if (f && f.getLength() > 0) { f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); } f = message.getEditorProxiesMetadataList(); if (f.length > 0) { writer.writeRepeatedMessage( 8, f, proto.EditorProxyMetadata.serializeBinaryToWriter ); } }; /** * map<string, uint32> site_ids_by_peer_id = 1; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,number>} */ proto.PortalSubscriptionResponse.prototype.getSiteIdsByPeerIdMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,number>} */ ( jspb.Message.getMapField(this, 1, opt_noLazyCreate, null)); }; proto.PortalSubscriptionResponse.prototype.clearSiteIdsByPeerIdMap = function() { this.getSiteIdsByPeerIdMap().clear(); }; /** * repeated Tether tethers = 4; * @return {!Array.<!proto.Tether>} */ proto.PortalSubscriptionResponse.prototype.getTethersList = function() { return /** @type{!Array.<!proto.Tether>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.Tether, 4)); }; /** @param {!Array.<!proto.Tether>} value */ proto.PortalSubscriptionResponse.prototype.setTethersList = function(value) { jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** * @param {!proto.Tether=} opt_value * @param {number=} opt_index * @return {!proto.Tether} */ proto.PortalSubscriptionResponse.prototype.addTethers = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Tether, opt_index); }; proto.PortalSubscriptionResponse.prototype.clearTethersList = function() { this.setTethersList([]); }; /** * repeated BufferProxy active_buffer_proxies = 5; * @return {!Array.<!proto.BufferProxy>} */ proto.PortalSubscriptionResponse.prototype.getActiveBufferProxiesList = function() { return /** @type{!Array.<!proto.BufferProxy>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.BufferProxy, 5)); }; /** @param {!Array.<!proto.BufferProxy>} value */ proto.PortalSubscriptionResponse.prototype.setActiveBufferProxiesList = function(value) { jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** * @param {!proto.BufferProxy=} opt_value * @param {number=} opt_index * @return {!proto.BufferProxy} */ proto.PortalSubscriptionResponse.prototype.addActiveBufferProxies = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.BufferProxy, opt_index); }; proto.PortalSubscriptionResponse.prototype.clearActiveBufferProxiesList = function() { this.setActiveBufferProxiesList([]); }; /** * repeated EditorProxy active_editor_proxies = 6; * @return {!Array.<!proto.EditorProxy>} */ proto.PortalSubscriptionResponse.prototype.getActiveEditorProxiesList = function() { return /** @type{!Array.<!proto.EditorProxy>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.EditorProxy, 6)); }; /** @param {!Array.<!proto.EditorProxy>} value */ proto.PortalSubscriptionResponse.prototype.setActiveEditorProxiesList = function(value) { jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** * @param {!proto.EditorProxy=} opt_value * @param {number=} opt_index * @return {!proto.EditorProxy} */ proto.PortalSubscriptionResponse.prototype.addActiveEditorProxies = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.EditorProxy, opt_index); }; proto.PortalSubscriptionResponse.prototype.clearActiveEditorProxiesList = function() { this.setActiveEditorProxiesList([]); }; /** * map<uint32, uint32> active_editor_proxy_ids_by_site_id = 7; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<number,number>} */ proto.PortalSubscriptionResponse.prototype.getActiveEditorProxyIdsBySiteIdMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<number,number>} */ ( jspb.Message.getMapField(this, 7, opt_noLazyCreate, null)); }; proto.PortalSubscriptionResponse.prototype.clearActiveEditorProxyIdsBySiteIdMap = function() { this.getActiveEditorProxyIdsBySiteIdMap().clear(); }; /** * repeated EditorProxyMetadata editor_proxies_metadata = 8; * @return {!Array.<!proto.EditorProxyMetadata>} */ proto.PortalSubscriptionResponse.prototype.getEditorProxiesMetadataList = function() { return /** @type{!Array.<!proto.EditorProxyMetadata>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.EditorProxyMetadata, 8)); }; /** @param {!Array.<!proto.EditorProxyMetadata>} value */ proto.PortalSubscriptionResponse.prototype.setEditorProxiesMetadataList = function(value) { jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** * @param {!proto.EditorProxyMetadata=} opt_value * @param {number=} opt_index * @return {!proto.EditorProxyMetadata} */ proto.PortalSubscriptionResponse.prototype.addEditorProxiesMetadata = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.EditorProxyMetadata, opt_index); }; proto.PortalSubscriptionResponse.prototype.clearEditorProxiesMetadataList = function() { this.setEditorProxiesMetadataList([]); }; /** * 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.PortalUpdate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.PortalUpdate.oneofGroups_); }; goog.inherits(proto.PortalUpdate, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.PortalUpdate.displayName = 'proto.PortalUpdate'; } /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.PortalUpdate.oneofGroups_ = [[1,2,4,5]]; /** * @enum {number} */ proto.PortalUpdate.VariantCase = { VARIANT_NOT_SET: 0, EDITOR_PROXY_SWITCH: 1, SITE_ASSIGNMENT: 2, TETHER_UPDATE: 4, EDITOR_PROXY_CREATION: 5 }; /** * @return {proto.PortalUpdate.VariantCase} */ proto.PortalUpdate.prototype.getVariantCase = function() { return /** @type {proto.PortalUpdate.VariantCase} */(jspb.Message.computeOneofCase(this, proto.PortalUpdate.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.PortalUpdate.prototype.toObject = function(opt_includeInstance) { return proto.PortalUpdate.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.PortalUpdate} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.toObject = function(includeInstance, msg) { var f, obj = { editorProxySwitch: (f = msg.getEditorProxySwitch()) && proto.PortalUpdate.EditorProxySwitch.toObject(includeInstance, f), siteAssignment: (f = msg.getSiteAssignment()) && proto.PortalUpdate.SiteAssignment.toObject(includeInstance, f), tetherUpdate: (f = msg.getTetherUpdate()) && proto.Tether.toObject(includeInstance, f), editorProxyCreation: (f = msg.getEditorProxyCreation()) && proto.PortalUpdate.EditorProxyCreation.toObject(includeInstance, 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.PortalUpdate} */ proto.PortalUpdate.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.PortalUpdate; return proto.PortalUpdate.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.PortalUpdate} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.PortalUpdate} */ proto.PortalUpdate.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.PortalUpdate.EditorProxySwitch; reader.readMessage(value,proto.PortalUpdate.EditorProxySwitch.deserializeBinaryFromReader); msg.setEditorProxySwitch(value); break; case 2: var value = new proto.PortalUpdate.SiteAssignment; reader.readMessage(value,proto.PortalUpdate.SiteAssignment.deserializeBinaryFromReader); msg.setSiteAssignment(value); break; case 4: var value = new proto.Tether; reader.readMessage(value,proto.Tether.deserializeBinaryFromReader); msg.setTetherUpdate(value); break; case 5: var value = new proto.PortalUpdate.EditorProxyCreation; reader.readMessage(value,proto.PortalUpdate.EditorProxyCreation.deserializeBinaryFromReader); msg.setEditorProxyCreation(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.PortalUpdate.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.PortalUpdate.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.PortalUpdate} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEditorProxySwitch(); if (f != null) { writer.writeMessage( 1, f, proto.PortalUpdate.EditorProxySwitch.serializeBinaryToWriter ); } f = message.getSiteAssignment(); if (f != null) { writer.writeMessage( 2, f, proto.PortalUpdate.SiteAssignment.serializeBinaryToWriter ); } f = message.getTetherUpdate(); if (f != null) { writer.writeMessage( 4, f, proto.Tether.serializeBinaryToWriter ); } f = message.getEditorProxyCreation(); if (f != null) { writer.writeMessage( 5, f, proto.PortalUpdate.EditorProxyCreation.serializeBinaryToWriter ); } }; /** * 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.PortalUpdate.EditorProxySwitch = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.PortalUpdate.EditorProxySwitch, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.PortalUpdate.EditorProxySwitch.displayName = 'proto.PortalUpdate.EditorProxySwitch'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.PortalUpdate.EditorProxySwitch.prototype.toObject = function(opt_includeInstance) { return proto.PortalUpdate.EditorProxySwitch.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.PortalUpdate.EditorProxySwitch} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.EditorProxySwitch.toObject = function(includeInstance, msg) { var f, obj = { editorProxyId: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.PortalUpdate.EditorProxySwitch} */ proto.PortalUpdate.EditorProxySwitch.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.PortalUpdate.EditorProxySwitch; return proto.PortalUpdate.EditorProxySwitch.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.PortalUpdate.EditorProxySwitch} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.PortalUpdate.EditorProxySwitch} */ proto.PortalUpdate.EditorProxySwitch.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); msg.setEditorProxyId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.PortalUpdate.EditorProxySwitch.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.PortalUpdate.EditorProxySwitch.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.PortalUpdate.EditorProxySwitch} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.EditorProxySwitch.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEditorProxyId(); if (f !== 0) { writer.writeUint32( 1, f ); } }; /** * optional uint32 editor_proxy_id = 1; * @return {number} */ proto.PortalUpdate.EditorProxySwitch.prototype.getEditorProxyId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** @param {number} value */ proto.PortalUpdate.EditorProxySwitch.prototype.setEditorProxyId = function(value) { jspb.Message.setProto3IntField(this, 1, value); }; /** * 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.PortalUpdate.SiteAssignment = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.PortalUpdate.SiteAssignment, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.PortalUpdate.SiteAssignment.displayName = 'proto.PortalUpdate.SiteAssignment'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.PortalUpdate.SiteAssignment.prototype.toObject = function(opt_includeInstance) { return proto.PortalUpdate.SiteAssignment.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.PortalUpdate.SiteAssignment} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.SiteAssignment.toObject = function(includeInstance, msg) { var f, obj = { peerId: jspb.Message.getFieldWithDefault(msg, 1, ""), siteId: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.PortalUpdate.SiteAssignment} */ proto.PortalUpdate.SiteAssignment.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.PortalUpdate.SiteAssignment; return proto.PortalUpdate.SiteAssignment.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.PortalUpdate.SiteAssignment} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.PortalUpdate.SiteAssignment} */ proto.PortalUpdate.SiteAssignment.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.setPeerId(value); break; case 2: var value = /** @type {number} */ (reader.readUint32()); msg.setSiteId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.PortalUpdate.SiteAssignment.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.PortalUpdate.SiteAssignment.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.PortalUpdate.SiteAssignment} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.SiteAssignment.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPeerId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getSiteId(); if (f !== 0) { writer.writeUint32( 2, f ); } }; /** * optional string peer_id = 1; * @return {string} */ proto.PortalUpdate.SiteAssignment.prototype.getPeerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.PortalUpdate.SiteAssignment.prototype.setPeerId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional uint32 site_id = 2; * @return {number} */ proto.PortalUpdate.SiteAssignment.prototype.getSiteId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** @param {number} value */ proto.PortalUpdate.SiteAssignment.prototype.setSiteId = function(value) { jspb.Message.setProto3IntField(this, 2, value); }; /** * 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.PortalUpdate.EditorProxyRemoval = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.PortalUpdate.EditorProxyRemoval, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.PortalUpdate.EditorProxyRemoval.displayName = 'proto.PortalUpdate.EditorProxyRemoval'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.PortalUpdate.EditorProxyRemoval.prototype.toObject = function(opt_includeInstance) { return proto.PortalUpdate.EditorProxyRemoval.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.PortalUpdate.EditorProxyRemoval} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.EditorProxyRemoval.toObject = function(includeInstance, msg) { var f, obj = { editorProxyId: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.PortalUpdate.EditorProxyRemoval} */ proto.PortalUpdate.EditorProxyRemoval.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.PortalUpdate.EditorProxyRemoval; return proto.PortalUpdate.EditorProxyRemoval.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.PortalUpdate.EditorProxyRemoval} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.PortalUpdate.EditorProxyRemoval} */ proto.PortalUpdate.EditorProxyRemoval.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); msg.setEditorProxyId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.PortalUpdate.EditorProxyRemoval.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.PortalUpdate.EditorProxyRemoval.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.PortalUpdate.EditorProxyRemoval} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.EditorProxyRemoval.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEditorProxyId(); if (f !== 0) { writer.writeUint32( 1, f ); } }; /** * optional uint32 editor_proxy_id = 1; * @return {number} */ proto.PortalUpdate.EditorProxyRemoval.prototype.getEditorProxyId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** @param {number} value */ proto.PortalUpdate.EditorProxyRemoval.prototype.setEditorProxyId = function(value) { jspb.Message.setProto3IntField(this, 1, value); }; /** * 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.PortalUpdate.EditorProxyCreation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.PortalUpdate.EditorProxyCreation, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.PortalUpdate.EditorProxyCreation.displayName = 'proto.PortalUpdate.EditorProxyCreation'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.PortalUpdate.EditorProxyCreation.prototype.toObject = function(opt_includeInstance) { return proto.PortalUpdate.EditorProxyCreation.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.PortalUpdate.EditorProxyCreation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.EditorProxyCreation.toObject = function(includeInstance, msg) { var f, obj = { editorProxyMetadata: (f = msg.getEditorProxyMetadata()) && proto.EditorProxyMetadata.toObject(includeInstance, 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.PortalUpdate.EditorProxyCreation} */ proto.PortalUpdate.EditorProxyCreation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.PortalUpdate.EditorProxyCreation; return proto.PortalUpdate.EditorProxyCreation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.PortalUpdate.EditorProxyCreation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.PortalUpdate.EditorProxyCreation} */ proto.PortalUpdate.EditorProxyCreation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.EditorProxyMetadata; reader.readMessage(value,proto.EditorProxyMetadata.deserializeBinaryFromReader); msg.setEditorProxyMetadata(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.PortalUpdate.EditorProxyCreation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.PortalUpdate.EditorProxyCreation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.PortalUpdate.EditorProxyCreation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.PortalUpdate.EditorProxyCreation.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEditorProxyMetadata(); if (f != null) { writer.writeMessage( 1, f, proto.EditorProxyMetadata.serializeBinaryToWriter ); } }; /** * optional EditorProxyMetadata editor_proxy_metadata = 1; * @return {?proto.EditorProxyMetadata} */ proto.PortalUpdate.EditorProxyCreation.prototype.getEditorProxyMetadata = function() { return /** @type{?proto.EditorProxyMetadata} */ ( jspb.Message.getWrapperField(this, proto.EditorProxyMetadata, 1)); }; /** @param {?proto.EditorProxyMetadata|undefined} value */ proto.PortalUpdate.EditorProxyCreation.prototype.setEditorProxyMetadata = function(value) { jspb.Message.setWrapperField(this, 1, value); }; proto.PortalUpdate.EditorProxyCreation.prototype.clearEditorProxyMetadata = function() { this.setEditorProxyMetadata(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.PortalUpdate.EditorProxyCreation.prototype.hasEditorProxyMetadata = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional EditorProxySwitch editor_proxy_switch = 1; * @return {?proto.PortalUpdate.EditorProxySwitch} */ proto.PortalUpdate.prototype.getEditorProxySwitch = function() { return /** @type{?proto.PortalUpdate.EditorProxySwitch} */ ( jspb.Message.getWrapperField(this, proto.PortalUpdate.EditorProxySwitch, 1)); }; /** @param {?proto.PortalUpdate.EditorProxySwitch|undefined} value */ proto.PortalUpdate.prototype.setEditorProxySwitch = function(value) { jspb.Message.setOneofWrapperField(this, 1, proto.PortalUpdate.oneofGroups_[0], value); }; proto.PortalUpdate.prototype.clearEditorProxySwitch = function() { this.setEditorProxySwitch(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.PortalUpdate.prototype.hasEditorProxySwitch = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional SiteAssignment site_assignment = 2; * @return {?proto.PortalUpdate.SiteAssignment} */ proto.PortalUpdate.prototype.getSiteAssignment = function() { return /** @type{?proto.PortalUpdate.SiteAssignment} */ ( jspb.Message.getWrapperField(this, proto.PortalUpdate.SiteAssignment, 2)); }; /** @param {?proto.PortalUpdate.SiteAssignment|undefined} value */ proto.PortalUpdate.prototype.setSiteAssignment = function(value) { jspb.Message.setOneofWrapperField(this, 2, proto.PortalUpdate.oneofGroups_[0], value); }; proto.PortalUpdate.prototype.clearSiteAssignment = function() { this.setSiteAssignment(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.PortalUpdate.prototype.hasSiteAssignment = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional Tether tether_update = 4; * @return {?proto.Tether} */ proto.PortalUpdate.prototype.getTetherUpdate = function() { return /** @type{?proto.Tether} */ ( jspb.Message.getWrapperField(this, proto.Tether, 4)); }; /** @param {?proto.Tether|undefined} value */ proto.PortalUpdate.prototype.setTetherUpdate = function(value) { jspb.Message.setOneofWrapperField(this, 4, proto.PortalUpdate.oneofGroups_[0], value); }; proto.PortalUpdate.prototype.clearTetherUpdate = function() { this.setTetherUpdate(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.PortalUpdate.prototype.hasTetherUpdate = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional EditorProxyCreation editor_proxy_creation = 5; * @return {?proto.PortalUpdate.EditorProxyCreation} */ proto.PortalUpdate.prototype.getEditorProxyCreation = function() { return /** @type{?proto.PortalUpdate.EditorProxyCreation} */ ( jspb.Message.getWrapperField(this, proto.PortalUpdate.EditorProxyCreation, 5)); }; /** @param {?proto.PortalUpdate.EditorProxyCreation|undefined} value */ proto.PortalUpdate.prototype.setEditorProxyCreation = function(value) { jspb.Message.setOneofWrapperField(this, 5, proto.PortalUpdate.oneofGroups_[0], value); }; proto.PortalUpdate.prototype.clearEditorProxyCreation = function() { this.setEditorProxyCreation(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.PortalUpdate.prototype.hasEditorProxyCreation = function() { return jspb.Message.getField(this, 5) != null; }; /** * 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.Tether = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Tether, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.Tether.displayName = 'proto.Tether'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Tether.prototype.toObject = function(opt_includeInstance) { return proto.Tether.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Tether} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Tether.toObject = function(includeInstance, msg) { var f, obj = { followerSiteId: jspb.Message.getFieldWithDefault(msg, 1, 0), leaderSiteId: jspb.Message.getFieldWithDefault(msg, 2, 0), state: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.Tether} */ proto.Tether.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Tether; return proto.Tether.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Tether} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Tether} */ proto.Tether.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); msg.setFollowerSiteId(value); break; case 2: var value = /** @type {number} */ (reader.readUint32()); msg.setLeaderSiteId(value); break; case 3: var value = /** @type {number} */ (reader.readUint32()); msg.setState(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Tether.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Tether.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Tether} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Tether.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getFollowerSiteId(); if (f !== 0) { writer.writeUint32( 1, f ); } f = message.getLeaderSiteId(); if (f !== 0) { writer.writeUint32( 2, f ); } f = message.getState(); if (f !== 0) { writer.writeUint32( 3, f ); } }; /** * optional uint32 follower_site_id = 1; * @return {number} */ proto.Tether.prototype.getFollowerSiteId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** @param {number} value */ proto.Tether.prototype.setFollowerSiteId = function(value) { jspb.Message.setProto3IntField(this, 1, value); }; /** * optional uint32 leader_site_id = 2; * @return {number} */ proto.Tether.prototype.getLeaderSiteId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** @param {number} value */ proto.Tether.prototype.setLeaderSiteId = function(value) { jspb.Message.setProto3IntField(this, 2, value); }; /** * optional uint32 state = 3; * @return {number} */ proto.Tether.prototype.getState = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** @param {number} value */ proto.Tether.prototype.setState = function(value) { jspb.Message.setProto3IntField(this, 3, value); }; /** * 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.EditorProxy = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.EditorProxy, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.EditorProxy.displayName = 'proto.EditorProxy'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ prot