Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
579f81e1
Commit
579f81e1
authored
Apr 02, 2018
by
Charlie Moad
Committed by
Paul Yang
Apr 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js message support for jstype string on integers (#4332)
parent
40d6eca8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
message.js
js/message.js
+11
-0
No files found.
js/message.js
View file @
579f81e1
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment