Commit 579f81e1 authored by Charlie Moad's avatar Charlie Moad Committed by Paul Yang

js message support for jstype string on integers (#4332)

parent 40d6eca8
......@@ -922,6 +922,17 @@ jspb.Message.setProto3IntField = function(msg, fieldNumber, value) {
};
/**
* Sets the value of a non-extension integer, handled as string, field of a proto3
* @param {!jspb.Message} msg A jspb proto.
* @param {number} fieldNumber The field number.
* @param {number} value New value
* @protected
*/
jspb.Message.setProto3StringIntField = function(msg, fieldNumber, value) {
jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, '0');
};
/**
* Sets the value of a non-extension floating point field of a proto3
* @param {!jspb.Message} msg A jspb proto.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment