aboutsummaryrefslogtreecommitdiff
path: root/csharp/protos
Commit message (Collapse)AuthorAgeFilesLines
* Provide simple access to descriptor declarations in C#Jon Skeet2018-09-221-0/+30
| | | | | | | | | This is primarily for access to comments, which would be expected to be available in a protoc plugin. The implementation has two fiddly aspects: - We use a Lazy<T> to avoid building the map before cross-linking. An alternative would be to crosslink at the end of the constructor, and remove the calls to CrossLink elsewhere. This would be generally better IMO, but deviate from the Java code. - The casts to IReadOnlyList<DescriptorBase> are unfortunate. They'll always work, because these lists are always ReadOnlyCollection<T> for a descriptor type... but we can't use IList<DescriptorBase> as that's not covariant, and it's annoyingly fiddly to change the field to be of type ReadOnlyCollection<T>.
* Replace repo links.Feng Xiao2018-08-221-2/+2
|
* Add unknown field support for csharp (#3936)Jie Luo2017-12-131-0/+1
| | | Add unknown field support for csharp
* Remove non-C# options from C#-only test protosJon Skeet2017-11-145-31/+4
|
* Move C#-only test protos to csharp/protosJon Skeet2017-11-125-0/+621
| | | | | | | | | | unittest_proto3 had been changed in a very backward-incompatible way which was never going to work with C# as it imports proto2 messages. This is now a copy of the old file, but with a package name change for compatibility with the remaining files in src/google/protobuf. The other moves are for files that are only used by C#.
* Fix merging with message-valued oneofJon Skeet2017-10-311-0/+15
| | | | | | | | | | If messages A and B have the same oneof case, which is a message type, and we merge B into A, those sub-messages should be merged. Fixes #3200. Note that I haven't regenerated all the code, as some of the protos have been changed, breaking generation.
* Add Oneof custom options testJie Luo2017-01-271-6/+4
|
* Support custom options in C#Jon Skeet2017-01-191-0/+338
| | | | | | | | | | | | This consists of: - Changing the codegen for the fixed set of options protos, to parse unknown fields instead of skipping them - Add a new CustomOptions type in the C# support library - Expose CustomOptions properties from the immutable proto wrappers in the support library Only single-value options are currently supported, and fetching options values requires getting the type right and knowing the field number. Both of these can be addressed at a later time. Fixes #2143, at least as a first pass.
* Code review fixesalien2016-03-291-1/+1
|
* csharp: add support for the json_name optionalien2016-03-181-1/+8
| | | | | Conflicts: csharp/src/Google.Protobuf/JsonFormatter.cs
* Remove a redundant layer of directory hierarchy.Jon Skeet2015-08-031-118/+118
|
* Addressed issues raised in code review. Will merge when green.Jon Skeet2015-08-031-1/+4
|
* Fix JSON formatting to always emit fields in field order, including oneofsJon Skeet2015-07-311-0/+25
|
* Handle field names of "descriptor" and "types".Jon Skeet2015-07-311-0/+9
|
* Fix for doubly-nested types - issue #307.Jon Skeet2015-06-291-0/+9
| | | | No specific test case - if the generated code compiles, the issue is fixed :)
* More cleanup, based around searches for "Google.ProtocolBuffers"Jon Skeet2015-06-263-239/+0
| | | | | | | - Remove some old proto2-based C#-only messages - Remove the "build" directory which only contained out-of-date files - Remove the csharp_namespace option from proto2 messages - Change "Google.ProtocolBuffers" to "Google.Protobuf" in other messages
* First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Jon Skeet2015-06-091-77/+9
| | | | pretty slow right now.
* Remove the C#-specific field_presence_test.proto, using ↵Jon Skeet2015-05-131-21/+0
| | | | | | | unittest_no_field_presence.proto instead. This is the start of establishing a C# namespace of "Google.ProtocolBuffers.TestProtos.Proto3" for proto3-syntax protos. We could optionally split the directory structure as well into Proto2 and Proto3 for clarity.
* Change field_presence_test.protoJie Luo2015-05-011-4/+1
|
* Merge branch 'csharp' of git://github.com/google/protobuf into google-csharpJie Luo2015-04-2925-4446/+0
|\
| * Remove RPC support.Jon Skeet2015-04-293-113/+0
| | | | | | | | It is expected that third parties will generate service/RPC code themselves - see gRPC as an example.
| * Remove a bunch of files which are no longer relevant:Jon Skeet2015-04-2922-4333/+0
| | | | | | | | | | | | 1) Project files for different configurations - we're going to look at all this again, ideally to just have a single PCL-compatible build 2) ProtoGen - the C++ generator is now the only one we care about 3) Proto files - these are mostly duplicates (or older versions) of the ones in the common directories
* | Change the package for field_presence_test.protoJie Luo2015-04-291-1/+1
| |
* | field presence Reflection and testsJie Luo2015-04-291-0/+24
|/
* Updated set of unit tests and unit test protos.Jon Skeet2015-04-286-89/+53
| | | | | | | | | | This commit includes changes to the C#-specific protos, and rebuilt versions of the "stock" protos. The stock protos have been locally updated to have a specific C# namespace, but this is expected to change soon, so hasn't been committed. Four areas are currently not tested: 1) Serialization - we may restore this at some point, possibly optionally. 2) Services - currently nothing is generated for this; will need to see how it interacts with GRPC 3) Fields beginning with _{digit} - see https://github.com/google/protobuf/issues/308 4) Fields with names which conflict with the declaring type in nasty ways - see https://github.com/google/protobuf/issues/309
* Imported protobuf-csharp-port into csharp/ treeJan Tattermusch2015-04-1630-0/+4862