Thomas Van Lenten
66f074592d
Merge pull request #1454 from thomasvl/enum_defaults
...
Proper checking of enum with non zero default
9 years ago
Thomas Van Lenten
18b6a321b5
Proper checking of enum with non zero default
...
proto2 syntax allows the first enum to have a non zero value. This means any
field using that default has a non zero default without having an explicit
default being set. So when deciding what runtime info is needed, don't rely
on an explicit default, always check that the values aren't zero.
Fixes https://github.com/google/protobuf/issues/1453
9 years ago
Feng Xiao
4057447997
Merge pull request #1444 from mbrtargeting/master
...
Added serialVersionUID to ExtendableMessage.
9 years ago
Tony Allevato
385755e13b
Add initial design document for Swift protocol buffers. ( #1442 )
...
* Add initial design doc for Swift protocol buffers.
9 years ago
Jakub Kukul
db93833bc6
Added serialVersionUID to ExtendableMessage.
9 years ago
Feng Xiao
034294bfb0
Merge pull request #1438 from xfxyjwf/docs
...
Add a docs directory and move the third-party add-ons page here.
9 years ago
Feng Xiao
0ad204845f
Merge pull request #1416 from cwhipkey/master
...
Change protobuf CPP proto generator to support the 'lite' option in
9 years ago
Feng Xiao
8052dc75a9
Add a docs directory and move the third-party add-ons page here.
9 years ago
Feng Xiao
f00300d7f0
Merge pull request #1414 from xyzzyz/googletest
...
Remove googletest.h header from stringprintf.cc
9 years ago
Thomas Van Lenten
1ccb4ca8ba
Merge pull request #1434 from jskeet/regenerate
...
Regenerate descriptor/well-known types for C#
9 years ago
Jon Skeet
c588ac42a2
Regenerate well-known types for C#
...
(There are documentation changes and new fields in descriptor.proto that have resulted
in changes to the serialized descriptor, but no breaking changes for C#.)
9 years ago
Thomas Van Lenten
e539e9820e
Merge pull request #1433 from thomasvl/check_wkt
...
ObjC support for failing the build in the generated WKTs are out of date
9 years ago
Thomas Van Lenten
511f28b73a
ObjC support for failing the build in the generated WKTs are out of date
...
- Always generated into a temp directory so we can see if things changed.
- Add a flag to control exiting with error when stale vs updating.
This should let the continuous builds error out when ObjC needs to have the
checked in sources updated.
9 years ago
Jon Skeet
f265fb8152
Merge pull request #1401 from jskeet/enum-casing
...
Enum casing in C#
9 years ago
Joshua Haberman
36978c3938
Merge pull request #1417 from seishun/windows2
...
Support Windows in gulpfile.js
9 years ago
Jon Skeet
d90d615f71
Attempt to fix AppVeyor build by exporting GetEnumValueName
9 years ago
Jon Skeet
790f4c8e37
Use the original name in JSON formatting.
...
(JSON parsing already does the right thing.)
9 years ago
Jon Skeet
84ea2c7a81
Regenerate all C# code and make it compile
...
JSON tests fail, as we're not using OriginalNameAttribute yet.
9 years ago
Jon Skeet
75626ed79c
Add C# codegen changes to enum value names (mostly C++)
...
Overview of changes:
- A new C#-specific command-line option, legacy_enum_values to revert to the old behavior
- When legacy_enum_values isn't specified, we strip the enum name as a prefix, and PascalCase the value name
- A new attribute within the C# code so that we can always tell the original in-proto name
Regenerating the C# code with legacy_enum_values leads to code which still compiles and works - but
there's more still to do.
9 years ago
Jisi Liu
1dc81948f5
Merge pull request #1428 from pherl/master
...
Add missing includes in field mask test
9 years ago
Jisi Liu
1b0ff34b90
Add missing includes in field mask test
9 years ago
Thomas Van Lenten
52825bf91a
Merge pull request #1426 from thomasvl/fix_comment_typo
...
Fix comments typo and update WKTs
9 years ago
Thomas Van Lenten
e664aa6d91
Regenerate the WKT to pick up current changes to the proto files.
9 years ago
Feng Xiao
83a7a5e885
Merge pull request #1402 from davidzchen/py2and3
...
Add missing PY2AND3 srcs_versions attributes to Python Bazel build targets
9 years ago
Thomas Van Lenten
3633bcd5e4
Fix comment typo
9 years ago
Jisi Liu
072296f186
Merge pull request #1422 from pherl/master
...
Update file list to include the missing extension lite file.
9 years ago
Jisi Liu
1f4f3e26bd
Update file list to include the missing extension lite file.
9 years ago
Nikolai Vavilov
7ff229fa4e
Support Windows in gulpfile.js
9 years ago
Joshua Haberman
ca9bbd71d5
Merge pull request #1413 from haberman/updateupb
...
Updated upb: JSON parser now accepts both camelCase and original case, and flag to choose on output.
9 years ago
Chad Whipkey
baf52bd79e
Change protobuf CPP proto generator to support the 'lite' option in
...
proto3.
Added a couple unit test proto3 files, for arena_lite and lite. Cloned
the proto3_arena_unittest to test some of the basics of generated code
(and to ensure that the generated proto3 test files are used by some
test).
9 years ago
Josh Haberman
e67ef3d449
Bugfix for JSON error case.
9 years ago
Josh Haberman
800e986012
Remove no longer applicable documentation from README.md.
9 years ago
Josh Haberman
194ad621bb
Ruby JSON: always accept both camelCase and original field names.
...
For JSON encoding we provide a new option to decide at
encode time whether to use camelCase or original proto field
names:
json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)
9 years ago
Adam Michalik
1b912fceee
Remove googletest.h header from stringprintf.cc
...
It doesn't seem to be necessary here, and it pulls other testing headers
during compilation of release protobuf.
9 years ago
Josh Haberman
90c7f6e55e
Documented the JSON change and compatibility flags.
9 years ago
Josh Haberman
94e54b39c8
Updated upb: picked up legacy JSON flags to help Ruby users migrate.
...
The flags are:
UPB_JSON_ACCEPT_LEGACY_FIELD_NAMES
UPB_JSON_WRITE_LEGACY_FIELD_NAMES
The first just allows the parser to accept the old field names.
The second makes the printer print the old field names.
These flags are intended to be temporary, as a migration aid
for users.
9 years ago
Joshua Haberman
814685ca2c
Merge pull request #1397 from google/internal-merge
...
Internal merge
9 years ago
Josh Haberman
3c4ce528c6
Fix for gulpfile.js.
9 years ago
Jon Skeet
2a197b3eb0
Use 0 as the default value for all enums, rather than finding the actual enum value name
...
This will make it easier to change the enum value names, as it reduces the number of places they're used.
9 years ago
Jan Tattermusch
3ffbdd712f
Merge pull request #1400 from jskeet/fix-internal
...
Fix to csharp_options - initialize internal_access to false.
9 years ago
David Z. Chen
5ebeefb94c
Add missing PY2AND3 srcs_versions attributes to Python Bazel build targets.
9 years ago
Jon Skeet
0a902ee0ac
Fix to csharp_options - initialize internal_access to false.
9 years ago
Josh Haberman
2cd79bf3a8
Removed duplicated operator delete from merge conflict.
9 years ago
Josh Haberman
4465daa57a
Merge branch 'master' into internal-merge
9 years ago
Jon Skeet
667f4a6282
Merge pull request #1393 from gvaish/master
...
Added support for internal_access for C#
9 years ago
Josh Haberman
15239361e3
Fix for CommonJS tests.
9 years ago
Jie Luo
09292d5759
Merge pull request #1392 from anandolee/master
...
Sync the manually integrate changes in google3/third_party
9 years ago
Gaurav Vaish
a6e39316a7
Added support for internal_access for C#
9 years ago
Jon Skeet
cef46e115a
Merge pull request #1390 from jskeet/tidy-up
...
Tidy up for C# codegen
9 years ago
Jie Luo
c61207492e
sync the Manually integrate changes in google3/third_party
9 years ago