| Commit message (Collapse) | Author | Age |
| |
|
|
|
| |
These methods are used by grpc
|
|
|
|
|
|
|
|
|
| |
We need to use a default of 0 when parsing unspecified map keys, instead
of failing an assertion.
This change was written by Michael Aaron (michaelaaron@google.com) but I
am cherry-picking it directly instead of waiting for the next sync of
Google-internal changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* Adopt ruby_package in ruby generated code.
* Add test for ruby_package
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
| |
* Edited MessageFieldGenerator to clone to backing field instead of property
* Generated C# proto code
|
|\
| |
| | |
Cleanup + documentation for Java Lite runtime.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The current 15.6.x versions of Visual Studio 2017 contain a bug that
prevent them from compiling the following construct under certain
conditions:
std::unique_ptr<std::unique_ptr<Foo> []> foos;
This will fail to compile if Foo is an abstract class. To work-around
the problem the whole construct was change into:
std::vector<std::unique_ptr<Foo>> foos;
This not only fixes the compiler error but is also more readable than
previous version.
|
|/ |
|
|
|
|
|
| |
Since the generated header import GPBProtocolBuffers.h, there is no need
to generate imports for the WKTs as they will have already been imported.
|
|
|
|
|
|
|
|
| |
To avoid a cycle between headers, have the WKTs use minimal imports instead
of using the helper to get everything from the library.
Fixes https://github.com/google/protobuf/issues/4301
Fixes https://github.com/google/protobuf/issues/4403
|
|
|
|
|
|
|
|
|
| |
range options (#4342)
* when interpreting options, rewrite file descriptor's source code info
- so that interpreted option paths have correct location information
- so that corresponding uninterpreted option paths are removed
also includes a fix to source code locations for extension range options
|
|\
| |
| | |
Remove javanano.
|
| | |
|
|/
|
| |
This makes possible to build grpc_php_plugin with protobuf in shared mode.
|
|
|
|
|
| |
We no longer need this, now that we have finished the switch to C++11
and are using std::unique_ptr.
|
|\ |
|
| | |
|
|/|
| |
| | |
Remove unused output_file variable from js_embed
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Java: Generate warning free code
|
| | |
| | |
| | |
| | | |
Partially fixes #4230.
|
|/ /
| |
| |
| |
| |
| | |
These statements pulled a bunch of symbols from the std namespace into
the global namespace. This commit removes all of them except for
std::string, which is a bit trickier to remove.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The generated code for enums needs atomics support, so generate the
import instead of relying on it via transitive imports. This will
make future changes to this likely likely to break generated code
and runtime support are mixed.
Followup to https://github.com/google/protobuf/pull/4184.
|
| |
| |
| |
| | |
* Migrate away from deprecated OSAtomic APIs.
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Cherrypick for csharp, including:
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add preserve UnknownFields
Compare floating point values bitwise
Add auto-generated header to C# generated files
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
Java: generate an annotation to suppress deprecation warnings
|
|\ \ \ \
| | | | |
| | | | | |
Add deprecation annotation for oneof case.
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | | |
The valueOf method on enums is deprecated, but for compatibility reasons
the generated code has to keep using it. We can use an annotation to
suppress the deprecation warnings.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add auto-generated header to C# generated files
* regenerate C# protos
|
|\ \ \ \
| | | | |
| | | | | |
Avoid double underscores in macro name
|
| | | | | |
|
| | | | | |
|
| |/ / /
|/| | |
| | | | |
Add unknown field support for csharp
|
|/ / /
| | |
| | |
| | | |
Fixes https://github.com/google/protobuf/issues/3268
|
| | | |
|
| | | |
|
|\ \ \ |
|
| | | | |
|
| |\| | |
|
|/ / / |
|
| | | |
|
| | | |
|