chore(grpc): add image field (#485)
This commit is contained in:
@@ -505,7 +505,8 @@ proto.proto.NotificationRequest.toObject = function(includeInstance, msg) {
|
||||
contentavailable: jspb.Message.getFieldWithDefault(msg, 11, false),
|
||||
threadid: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
||||
mutablecontent: jspb.Message.getFieldWithDefault(msg, 13, false),
|
||||
data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
||||
data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
||||
image: jspb.Message.getFieldWithDefault(msg, 15, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@@ -600,6 +601,10 @@ proto.proto.NotificationRequest.deserializeBinaryFromReader = function(msg, read
|
||||
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
||||
msg.setData(value);
|
||||
break;
|
||||
case 15:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setImage(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@@ -729,6 +734,13 @@ proto.proto.NotificationRequest.serializeBinaryToWriter = function(message, writ
|
||||
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getImage();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
15,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -990,6 +1002,21 @@ proto.proto.NotificationRequest.prototype.hasData = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string image = 15;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.proto.NotificationRequest.prototype.getImage = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.proto.NotificationRequest.prototype.setImage = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 15, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
|
||||
Reference in New Issue
Block a user