You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it's a proto syntax change, is it for proto2 or proto3?
proto3
If it's about generated code change, what programming language?
Java
Describe the problem you are trying to solve.
The current type for serializedSize is int, which has a size limit of 2,147,483,648. For a larger sized data, it will throw out bufferSize must be >= 0 during serialization.
Describe the solution you'd like
instead of
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
...
Can we change to long
public int getSerializedSize() {
**long** size = memoizedSize;
if (size != -1) return size;
...
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
This is a constraint imposed by the protobuf format. A length-delimited value's length is an int32, so this can't be changed without breaking the format.
What language does this apply to?
Java
If it's a proto syntax change, is it for proto2 or proto3?
proto3
If it's about generated code change, what programming language?
Java
Describe the problem you are trying to solve.
The current type for serializedSize is
int
, which has a size limit of 2,147,483,648. For a larger sized data, it will throw outbufferSize must be >= 0
during serialization.Describe the solution you'd like
instead of
Can we change to
long
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: