aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Merge pull request #4659 from calder/bazel-python-namespace-fixGravatar Feng Xiao2018-05-24
|\ | | | | Declare 'google' namespace when importing Python protobuf via Bazel
* \ Merge pull request #4674 from xfxyjwf/bazelGravatar Feng Xiao2018-05-24
|\ \ | | | | | | Add kokoro configs for bazel build.
| * | Add kokoro configs for bazel build.Gravatar Feng Xiao2018-05-24
| | |
* | | Fix array constructor in c extension for compatibility (#4667)Gravatar Paul Yang2018-05-24
| | | | | | | | | | | | | | | In old generated code, the constructor of message doesn't provide a default null to parent's constructor. Previously, in c extesnion, this case was not handled.
* | | PHP namespaces for nested messages and enums (#4536)Gravatar Brent Shaffer2018-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * uses namespaces for nested messages and enums * fixes namespaces for PHP dist * fixes namespace for Descriptors, adds Cardinality and Kind * fixes nested namespaces for reserved words and adds tests * adds tests and generator fix for php class prefixes * fixes escaping of protobuf packages, enum comments, misc others * nice refactor of generated code * adds class files for backwards compatibility * simplifies code with templates * adds compatibility files to makefile * cleanup of generator and fixes nested namespace bug * regenerates proto types * remove internal BC classes * adds deprecated warning, adds methods back * simplifies if statement * fixes dist files * addresses review comments * adds back TYPE_URL_PREFIX constant * adds @deprecated to old nested class files * skips tests which require a separate process when protobuf.so is enabled * Adds tests for legacy nested classes that do not require separate processes to test * uses legacy names for GPBUtil message check * adds block for IDE @deprecated message * Namespace for nested message/enum in c extension * Remove unused code
* | | Implement array constructor in php c extension.Gravatar Bo Yang2018-05-24
| | |
* | | PHP array constructors for protobuf messages (#4530)Gravatar Brent Shaffer2018-05-24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP array constructors for protobuf messages * removes Descriptor from error message * allows mergeFrom to accept an array * only use initWithDescriptor if instanceof MapEntry * adds doc comments * removes ability for constructors to take arrays for submessages * Revert "allows mergeFrom to accept an array" This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9. * makes mergeFromArray protected and fixes mergeFrom whitespace * Separates merging from JSON and merging from PHP array * removes well-known types and json keys from array construction * Addresses PR review comments * cleans up tests * fixes exception messages
* | Merge pull request #4669 from jtattermusch/fix_bazel_build_syntaxGravatar Feng Xiao2018-05-24
|\ \ | | | | | | Fix syntax error in BUILD file
| * | fix syntax error in BUILD fileGravatar Jan Tattermusch2018-05-24
|/ /
| * Declare 'google' namespace when importing Python protobuf via Bazel.Gravatar Calder Coalson2018-05-22
|/ | | | | | | | | | | | | `python/google/__init__.py` declares the top-level 'google' namespace so that `google.protobuf` can be imported alongside other Google Python modules like `google.auth`. This works well when installing protobuf via Pip, but the Bazel `//:python_srcs` rule doesn't include this file in its `srcs`. Bazel implicitly creates an empty `google/__init__.py`, which does *not* set up a namespace. The result is that consuming Python protobuf via Bazel breaks all other Google Python libraries. This fixes #4658.
* Merge pull request #4663 from TeBoring/ruby-distcheckGravatar Feng Xiao2018-05-22
|\ | | | | Add missing ruby/tests/test_ruby_package.proto
* | CMake OSX rpath management (#4620)Gravatar Mizux2018-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * CMake: Add comment for CMP0048 * CMake: osx use @rpath/ as target's install name (CMP0042) On MacoS library should use @rpath/ as prefix path instead of absolute build path e.g. otool -L libprotobuf.dylib libprotobuf.dylib: @rpath/libprotobuf.dylib (...) ... * CMake: add rpath to target for LINUX and APPLE
* | Merge pull request #4660 from BSBandme/fix_kokoro_benchmark_buildGravatar Yilun Chong2018-05-22
|\ \ | | | | | | Fix python benchmark build
* \ \ Merge pull request #3984 from laszlocsomor/wildcardGravatar Feng Xiao2018-05-22
|\ \ \ | | | | | | | | Windows: expand wildcard arguments
| | | * Add missing ruby/tests/test_ruby_package.protoGravatar Bo Yang2018-05-22
| |_|/ |/| |
* | | Allows the json marshaller to be passed json marshal options (#4252)Gravatar Erik Benoist2018-05-22
| | |
| * | Windows: expand wildcard argumentsGravatar Laszlo Csomor2018-05-22
|/ / | | | | | | Fixes https://github.com/google/protobuf/issues/3957
| * Fix python benchmark buildGravatar Yilun Chong2018-05-21
| |
* | Merge pull request #4634 from BSBandme/fix_kokoro_benchmark_buildGravatar Yilun Chong2018-05-21
|\| | | | | Fix java benchmark bug, fix python lib cache
| * Fix java benchmark bug, fix python library_pathGravatar Yilun Chong2018-05-21
| |
* | remove PACKAGE_NAME and REPOSITORY_NAME deprecated usage (#4650)Gravatar Ittai Zeidman2018-05-21
| |
* | Merge pull request #4644 from acozzette/php-timestampGravatar Adam Cozzette2018-05-18
|\ \ | | | | | | Updated PHP generated code for timestamp.proto
* | | Adopt ruby_package in ruby generated code. (#4627)Gravatar Paul Yang2018-05-17
| | | | | | | | | | | | | | | | | | * Adopt ruby_package in ruby generated code. * Add test for ruby_package
| * | Updated PHP generated code for timestamp.protoGravatar Adam Cozzette2018-05-17
|/ /
* | re-write int128 long division to avoid license impact from stackoverflow ↵Gravatar NickFengIBM2018-05-17
| | | | | | | | | | | | | | references (#4633) * rewrite int128 long divison to avoid stackoverflow hit Protobuf was showing Stackoverflow hits in the code base, primarily code written to calculate long division. This code was copied from a stackoverflow post, which means it would be licensed under CC BY-SA 3.0. Due to this license, IBM Legal did not want to include this OSS in our products and advised us to re-write this particular piece of code to avoid the license restriction. We have re-written the code for our own distribution, and are willing to merge it into the main code base for others who want to avoid the stackoverflow license issues to benefit as well.
* | Merge pull request #4619 from ccvca/cmake_protobuf_generate_changesGravatar Feng Xiao2018-05-17
|\ \ | | | | | | cmake: protobuf_generate fix GENERATE_EXTENSIONS, fix DEPENDS, add PROTOC_OUT_DIR
* \ \ Merge pull request #4631 from banshee/fix_4615Gravatar Adam Cozzette2018-05-16
|\ \ \ | | | | | | | | Fix 4615
| * | | Don't look for sched_yield on Android.Gravatar James Moore2018-05-16
| | | | | | | | | | | | | | | | | | | | | | | | The problem is that sched_yield is available on the target, but configure.ac is asking to build a host binary using the AC_SEARCH_LIBS macro. It can't configure for Android, since sched_yield isn't available on the host.
* | | | Merge pull request #4624 from eughermann/hash-ub-fixGravatar Adam Cozzette2018-05-15
|\ \ \ \ | | | | | | | | | | Fix undefined behavior in hash function.
* \ \ \ \ Merge pull request #4632 from chronoxor/masterGravatar Feng Xiao2018-05-15
|\ \ \ \ \ | | | | | | | | | | | | Fix issue with version.rc
| * | | | | Fix issue with version.rcGravatar Ivan Shynkarenka2018-05-15
|/ / / / /
* | | | | Merge pull request #4574 from jozefizso/patch-1Gravatar Feng Xiao2018-05-15
|\ \ \ \ \ | |_|/ / / |/| | | | Fix appveyor documentation
| * | | | Fix appveyor documentationGravatar Jozef Izso2018-05-15
|/ / / /
| | * | cmake: Fix DEPENDS of add_custom_command in protobuf_generateGravatar Christian von Arnim2018-05-15
| | | |
* | | | Merge pull request #4623 from BSBandme/fix_kokoro_benchmark_buildGravatar Yilun Chong2018-05-14
|\ \ \ \ | | |_|/ | |/| | Fix python install, cat java error log for kokoro build
* | | | Adopt php_metadata_namespace in php code generator (#4622)Gravatar Paul Yang2018-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adopt php_metadata_namespace in php code generator The php_metadata_namespace is corresponded to the relative directory of the metadata file. e.g., previously, the metadata file of foo.proto was GPBMetadata/Foo.php. If the php_metadata_namespace is "Metadata\\Bar", the metadata file will be Metadata/Bar/Foo.php. * Handle empty php_metadata_namespace
| | * | Remove undefined behavior from the hash function.Gravatar Eugene Hermann2018-05-14
| | | | | | | | | | | | | | | | | | | | | | | | Signed integer overflow creates undefined behavior that may lead to unpredictable fails on different platforms. One known example of the hardware where this code did fail is Apple A6 (32-bit Apple Swift CPU) 16777619, 16777499 - two prime numbers that typically used to get better dispersion.
* | | | Merge pull request #4579 from jozefizso/dev/3380_version_infoGravatar Feng Xiao2018-05-14
|\ \ \ \ | | | | | | | | | | Include version information in Windows binaries #3380
* | | | | enable source link for csharp (#4179)Gravatar Cameron Taggart2018-05-14
| | | | |
* | | | | Merge pull request #4587 from chronoxor/masterGravatar Feng Xiao2018-05-14
|\ \ \ \ \ | | | | | | | | | | | | Appveyor MinGW build
* \ \ \ \ \ Merge pull request #4611 from anuraaga/remove-string-moveGravatar Feng Xiao2018-05-14
|\ \ \ \ \ \ | | | | | | | | | | | | | | [Java] Remove unsafe no-copy String allocation since it's not useful in rece…
* | | | | | | fix index out of range error in C# generation using msvc (#1329)Gravatar Warren Falk2018-05-14
| |_|_|_|/ / |/| | | | |
| | | | * | Fix python install, cat java error log for kokoro buildGravatar Yilun Chong2018-05-14
| | | | | |
| | | | | * cmake: Add parameter PROTOC_OUT_DIR to protobuf_generateGravatar Christian von Arnim2018-05-14
| | | | | |
| | | | | * cmake: Use GENERATE_EXTENSIONS parameter in protobuf_generateGravatar Christian von Arnim2018-05-14
| |_|_|_|/ |/| | | |
* | | | | Add file option php_metadata_namespace and ruby_package (#4609)Gravatar Paul Yang2018-05-11
| | | | |
* | | | | Merge pull request #4538 from Mizux/patch-2Gravatar Feng Xiao2018-05-10
|\ \ \ \ \ | |_|_|_|/ |/| | | | Add .proto files to extract_includes.bat
| | * | | Remove unsafe no-copy String allocation since it's not useful in recent Java ↵Gravatar Anuraag Agrawal2018-05-11
| |/ / / |/| | | | | | | | | | | versions.
* | | | Throw error if user want to access message properties (#4603)Gravatar Paul Yang2018-05-10
| | | | | | | | | | | | | | | | | | | | | | | | * Throw error if user want to access message properties * Fix typo
* | | | Avoid direct check of class name (#4601)Gravatar Paul Yang2018-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid direct check of class name So that subclasses are also ok * Use type hint in function signature.