github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/proto/rpcdump_pb.js (about) 1 // source: rpcdump.proto 2 /** 3 * @fileoverview 4 * @enhanceable 5 * @suppress {missingRequire} reports error on implicit type usages. 6 * @suppress {messageConventions} JS Compiler reports an error if a variable or 7 * field starts with 'MSG_' and isn't a translatable message. 8 * @public 9 */ 10 // GENERATED CODE -- DO NOT EDIT! 11 /* eslint-disable */ 12 // @ts-nocheck 13 14 var jspb = require('google-protobuf'); 15 var goog = jspb; 16 var global = Function('return this')(); 17 18 var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js'); 19 goog.object.extend(proto, gogoproto_gogo_pb); 20 var dump_pb = require('./dump_pb.js'); 21 goog.object.extend(proto, dump_pb); 22 goog.exportSymbol('proto.rpcdump.GetDumpParam', null, global); 23 /** 24 * Generated by JsPbCodeGenerator. 25 * @param {Array=} opt_data Optional initial data array, typically from a 26 * server response, or constructed directly in Javascript. The array is used 27 * in place and becomes part of the constructed object. It is not cloned. 28 * If no data is provided, the constructed object will be empty, but still 29 * valid. 30 * @extends {jspb.Message} 31 * @constructor 32 */ 33 proto.rpcdump.GetDumpParam = function(opt_data) { 34 jspb.Message.initialize(this, opt_data, 0, -1, null, null); 35 }; 36 goog.inherits(proto.rpcdump.GetDumpParam, jspb.Message); 37 if (goog.DEBUG && !COMPILED) { 38 /** 39 * @public 40 * @override 41 */ 42 proto.rpcdump.GetDumpParam.displayName = 'proto.rpcdump.GetDumpParam'; 43 } 44 45 46 47 if (jspb.Message.GENERATE_TO_OBJECT) { 48 /** 49 * Creates an object representation of this proto. 50 * Field names that are reserved in JavaScript and will be renamed to pb_name. 51 * Optional fields that are not set will be set to undefined. 52 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. 53 * For the list of reserved names please see: 54 * net/proto2/compiler/js/internal/generator.cc#kKeyword. 55 * @param {boolean=} opt_includeInstance Deprecated. whether to include the 56 * JSPB instance for transitional soy proto support: 57 * http://goto/soy-param-migration 58 * @return {!Object} 59 */ 60 proto.rpcdump.GetDumpParam.prototype.toObject = function(opt_includeInstance) { 61 return proto.rpcdump.GetDumpParam.toObject(opt_includeInstance, this); 62 }; 63 64 65 /** 66 * Static version of the {@see toObject} method. 67 * @param {boolean|undefined} includeInstance Deprecated. Whether to include 68 * the JSPB instance for transitional soy proto support: 69 * http://goto/soy-param-migration 70 * @param {!proto.rpcdump.GetDumpParam} msg The msg instance to transform. 71 * @return {!Object} 72 * @suppress {unusedLocalVariables} f is only used for nested messages 73 */ 74 proto.rpcdump.GetDumpParam.toObject = function(includeInstance, msg) { 75 var f, obj = { 76 height: jspb.Message.getFieldWithDefault(msg, 1, 0) 77 }; 78 79 if (includeInstance) { 80 obj.$jspbMessageInstance = msg; 81 } 82 return obj; 83 }; 84 } 85 86 87 /** 88 * Deserializes binary data (in protobuf wire format). 89 * @param {jspb.ByteSource} bytes The bytes to deserialize. 90 * @return {!proto.rpcdump.GetDumpParam} 91 */ 92 proto.rpcdump.GetDumpParam.deserializeBinary = function(bytes) { 93 var reader = new jspb.BinaryReader(bytes); 94 var msg = new proto.rpcdump.GetDumpParam; 95 return proto.rpcdump.GetDumpParam.deserializeBinaryFromReader(msg, reader); 96 }; 97 98 99 /** 100 * Deserializes binary data (in protobuf wire format) from the 101 * given reader into the given message object. 102 * @param {!proto.rpcdump.GetDumpParam} msg The message object to deserialize into. 103 * @param {!jspb.BinaryReader} reader The BinaryReader to use. 104 * @return {!proto.rpcdump.GetDumpParam} 105 */ 106 proto.rpcdump.GetDumpParam.deserializeBinaryFromReader = function(msg, reader) { 107 while (reader.nextField()) { 108 if (reader.isEndGroup()) { 109 break; 110 } 111 var field = reader.getFieldNumber(); 112 switch (field) { 113 case 1: 114 var value = /** @type {number} */ (reader.readUint64()); 115 msg.setHeight(value); 116 break; 117 default: 118 reader.skipField(); 119 break; 120 } 121 } 122 return msg; 123 }; 124 125 126 /** 127 * Serializes the message to binary data (in protobuf wire format). 128 * @return {!Uint8Array} 129 */ 130 proto.rpcdump.GetDumpParam.prototype.serializeBinary = function() { 131 var writer = new jspb.BinaryWriter(); 132 proto.rpcdump.GetDumpParam.serializeBinaryToWriter(this, writer); 133 return writer.getResultBuffer(); 134 }; 135 136 137 /** 138 * Serializes the given message to binary data (in protobuf wire 139 * format), writing to the given BinaryWriter. 140 * @param {!proto.rpcdump.GetDumpParam} message 141 * @param {!jspb.BinaryWriter} writer 142 * @suppress {unusedLocalVariables} f is only used for nested messages 143 */ 144 proto.rpcdump.GetDumpParam.serializeBinaryToWriter = function(message, writer) { 145 var f = undefined; 146 f = message.getHeight(); 147 if (f !== 0) { 148 writer.writeUint64( 149 1, 150 f 151 ); 152 } 153 }; 154 155 156 /** 157 * optional uint64 height = 1; 158 * @return {number} 159 */ 160 proto.rpcdump.GetDumpParam.prototype.getHeight = function() { 161 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); 162 }; 163 164 165 /** 166 * @param {number} value 167 * @return {!proto.rpcdump.GetDumpParam} returns this 168 */ 169 proto.rpcdump.GetDumpParam.prototype.setHeight = function(value) { 170 return jspb.Message.setProto3IntField(this, 1, value); 171 }; 172 173 174 goog.object.extend(exports, proto.rpcdump);