|
@@ -2055,6 +2055,8 @@
|
|
|
* @interface IItem
|
|
|
* @property {number|Long|null} [id] Item id
|
|
|
* @property {number|null} [count] Item count
|
|
|
+ * @property {string|null} [name] Item name
|
|
|
+ * @property {number|Long|null} [picId] Item picId
|
|
|
*/
|
|
|
|
|
|
/**
|
|
@@ -2089,6 +2091,22 @@
|
|
|
Item.prototype.count = 0;
|
|
|
|
|
|
/**
|
|
|
+ * Item name.
|
|
|
+ * @member {string} name
|
|
|
+ * @memberof tutorial.Message.Item
|
|
|
+ * @instance
|
|
|
+ */
|
|
|
+ Item.prototype.name = "";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Item picId.
|
|
|
+ * @member {number|Long} picId
|
|
|
+ * @memberof tutorial.Message.Item
|
|
|
+ * @instance
|
|
|
+ */
|
|
|
+ Item.prototype.picId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
|
+
|
|
|
+ /**
|
|
|
* Creates a new Item instance using the specified properties.
|
|
|
* @function create
|
|
|
* @memberof tutorial.Message.Item
|
|
@@ -2116,6 +2134,10 @@
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
|
|
|
if (message.count != null && message.hasOwnProperty("count"))
|
|
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.count);
|
|
|
+ if (message.name != null && message.hasOwnProperty("name"))
|
|
|
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
|
|
|
+ if (message.picId != null && message.hasOwnProperty("picId"))
|
|
|
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.picId);
|
|
|
return writer;
|
|
|
};
|
|
|
|
|
@@ -2156,6 +2178,12 @@
|
|
|
case 2:
|
|
|
message.count = reader.int32();
|
|
|
break;
|
|
|
+ case 3:
|
|
|
+ message.name = reader.string();
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ message.picId = reader.int64();
|
|
|
+ break;
|
|
|
default:
|
|
|
reader.skipType(tag & 7);
|
|
|
break;
|
|
@@ -2197,6 +2225,12 @@
|
|
|
if (message.count != null && message.hasOwnProperty("count"))
|
|
|
if (!$util.isInteger(message.count))
|
|
|
return "count: integer expected";
|
|
|
+ if (message.name != null && message.hasOwnProperty("name"))
|
|
|
+ if (!$util.isString(message.name))
|
|
|
+ return "name: string expected";
|
|
|
+ if (message.picId != null && message.hasOwnProperty("picId"))
|
|
|
+ if (!$util.isInteger(message.picId) && !(message.picId && $util.isInteger(message.picId.low) && $util.isInteger(message.picId.high)))
|
|
|
+ return "picId: integer|Long expected";
|
|
|
return null;
|
|
|
};
|
|
|
|
|
@@ -2223,6 +2257,17 @@
|
|
|
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
|
|
|
if (object.count != null)
|
|
|
message.count = object.count | 0;
|
|
|
+ if (object.name != null)
|
|
|
+ message.name = String(object.name);
|
|
|
+ if (object.picId != null)
|
|
|
+ if ($util.Long)
|
|
|
+ (message.picId = $util.Long.fromValue(object.picId)).unsigned = false;
|
|
|
+ else if (typeof object.picId === "string")
|
|
|
+ message.picId = parseInt(object.picId, 10);
|
|
|
+ else if (typeof object.picId === "number")
|
|
|
+ message.picId = object.picId;
|
|
|
+ else if (typeof object.picId === "object")
|
|
|
+ message.picId = new $util.LongBits(object.picId.low >>> 0, object.picId.high >>> 0).toNumber();
|
|
|
return message;
|
|
|
};
|
|
|
|
|
@@ -2246,6 +2291,12 @@
|
|
|
} else
|
|
|
object.id = options.longs === String ? "0" : 0;
|
|
|
object.count = 0;
|
|
|
+ object.name = "";
|
|
|
+ if ($util.Long) {
|
|
|
+ var long = new $util.Long(0, 0, false);
|
|
|
+ object.picId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
|
+ } else
|
|
|
+ object.picId = options.longs === String ? "0" : 0;
|
|
|
}
|
|
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
|
if (typeof message.id === "number")
|
|
@@ -2254,6 +2305,13 @@
|
|
|
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
|
|
|
if (message.count != null && message.hasOwnProperty("count"))
|
|
|
object.count = message.count;
|
|
|
+ if (message.name != null && message.hasOwnProperty("name"))
|
|
|
+ object.name = message.name;
|
|
|
+ if (message.picId != null && message.hasOwnProperty("picId"))
|
|
|
+ if (typeof message.picId === "number")
|
|
|
+ object.picId = options.longs === String ? String(message.picId) : message.picId;
|
|
|
+ else
|
|
|
+ object.picId = options.longs === String ? $util.Long.prototype.toString.call(message.picId) : options.longs === Number ? new $util.LongBits(message.picId.low >>> 0, message.picId.high >>> 0).toNumber() : message.picId;
|
|
|
return object;
|
|
|
};
|
|
|
|