aboutsummaryrefslogtreecommitdiff
path: root/csharp
Commit message (Collapse)AuthorAgeFilesLines
* fix type initialization problem with FileDescriptorJan Tattermusch2015-08-141-148/+175
|
* add a failing descriptor testJan Tattermusch2015-08-141-0/+7
|
* remove duplicate test caseJan Tattermusch2015-08-141-1/+0
|
* Allow public access to descriptor.proto as a dependency.Jon Skeet2015-08-131-0/+15
| | | | | With this in place, generating APIs on github.com/google/googleapis works - previously annotations.proto failed. Currently there's no access to the annotations (stored as extensions) but we could potentially expose those at a later date.
* More TODOs done.Jon Skeet2015-08-107-126/+168
| | | | | | - Removed a TODO without change in DescriptorPool.LookupSymbol - the TODOs were around performance, and this is only used during descriptor initialization - Make the CodedInputStream limits read-only, adding a static factory method for the rare cases when this is useful - Extracted IDeepCloneable into its own file.
* Merge pull request #701 from jskeet/map-viewsJon Skeet2015-08-102-4/+180
|\ | | | | Implement Keys and Values as views in MapField
| * Fix parameter name in exception.Jon Skeet2015-08-101-1/+1
| |
| * Implement ICollection.CopyTo (using Array) for MapField views.Jon Skeet2015-08-102-1/+26
| |
| * Implement Keys and Values as viewsJon Skeet2015-08-082-4/+155
| |
* | Make FieldDescriptor.IsPacked work appropriately.Jon Skeet2015-08-083-4/+18
|/ | | | | This is a bit of a grotty hack, as we need to sort of fake proto2 field presence, but with only a proto3 version of the descriptor messages (a bit like oneof detection). Should be okay, but will need to be careful of this if we ever implement proto2.
* Address review comments.Jon Skeet2015-08-081-2/+0
|
* Remove reference to generic types within XML comment.Jon Skeet2015-08-081-2/+2
| | | | Visual Studio is happy with it, but Mono isn't :(
* Tidying up - fix a bunch of TODOs and remove outdated ones.Jon Skeet2015-08-0817-102/+84
|
* Address review comments.Jon Skeet2015-08-082-2/+24
|
* Generated code for previous commit.Jon Skeet2015-08-0621-452/+142
|
* Skip groups properly.Jon Skeet2015-08-066-32/+138
| | | | | | | | | | | Now the generated code doesn't need to check for end group tags, as it will skip whole groups at a time. Currently it will ignore extraneous end group tags, which may or may not be a good thing. Renamed ConsumeLastField to SkipLastField as it felt more natural. Removed WireFormat.IsEndGroupTag as it's no longer useful. This mostly fixes issue 688. (Generated code changes coming in next commit.)
* Make InvalidProtocolBufferException.InvalidTag internal.Jon Skeet2015-08-051-1/+1
| | | | We don't need to expose the InvalidProtocolBufferException factory method now that the generated code doesn't throw the exception.
* Generated code changes for previous commit.Jon Skeet2015-08-0519-339/+113
|
* Change ReadTag and PeekTag to just use 0 as a return value for "end of ↵Jon Skeet2015-08-057-62/+52
| | | | | | | | stream", rather than using an awkward out parameter. This simplifies quite a lot of code. Generated code in next commit.
* Update AssemblyInfo for conformance - mostly to fix version numbers.Jon Skeet2015-08-051-23/+35
|
* Validate that after reading a message, we've consumed as many bytes as we ↵Jon Skeet2015-08-052-8/+47
| | | | | | expected to. We should now have no conformance failures.
* Generated code changes for previous commit.Jon Skeet2015-08-0519-0/+113
|
* Consume unknown fields when parsing.Jon Skeet2015-08-052-0/+62
| | | | | This is expected to be the cause of the conformance test failures. Generated code in next commit.
* First pass at C# conformance tests.Jon Skeet2015-08-058-0/+2642
| | | | Completely untested so far - easier to get started in VS and then transfer to Linux for tweaking...
* Merge pull request #691 from jskeet/xml-documentationJon Skeet2015-08-0527-108/+742
|\ | | | | Document everything, and turn on errors if we fail to document anything in the future
| * Fix one cref that Mono was unhappy withJon Skeet2015-08-051-1/+1
| |
| * Document everything, and turn on errors if we fail to document anything in ↵Jon Skeet2015-08-0426-107/+741
| | | | | | | | the future.
* | Fix build warnings around unused variablesJon Skeet2015-08-043-3/+3
|/
* Merge pull request #681 from jskeet/json-fieldmaskJon Skeet2015-08-032-1/+39
|\ | | | | JSON formatting for FieldMask
| * JSON formatting for FieldMaskJon Skeet2015-08-032-1/+39
| |
* | Merge pull request #677 from jskeet/move-protosJon Skeet2015-08-032-120/+120
|\ \ | | | | | | Remove a redundant layer of directory hierarchy.
| * | Remove a redundant layer of directory hierarchy.Jon Skeet2015-08-032-120/+120
| | |
* | | Merge pull request #680 from jskeet/aptcaJon Skeet2015-08-031-0/+2
|\ \ \ | |_|/ |/| | Allow partially-trusted callers again.
| * | Allow partially-trusted callers again.Jon Skeet2015-08-031-0/+2
| |/ | | | | | | Fixes issue #552. (And yay, it looks like our build profile supports this...)
* / Expose Coded*Stream constructors directly.Jon Skeet2015-08-0311-127/+100
|/
* Merge pull request #675 from jtattermusch/signingJon Skeet2015-08-0313-90/+85
|\ | | | | Add ReleaseSigned configuration for C#
| * make changes and fixes in signingJan Tattermusch2015-08-0210-96/+16
| |
| * added protoc.exe and well known protobuf files to the nuspec fileJan Tattermusch2015-08-021-1/+15
| |
| * build signed assembliesJan Tattermusch2015-08-0215-36/+97
| |
* | Initial pass at formatting Struct as JSON.Jon Skeet2015-08-032-3/+98
| | | | | | | | This seems remarkably little code, but it appears to work. I can add tests for invalid structs at some point, once the general approach is approved.
* | Addressed issues raised in code review. Will merge when green.Jon Skeet2015-08-032-26/+18
| |
* | Format JSON for Duration and Timestamp.Jon Skeet2015-08-033-11/+182
|/ | | | This is taking an approach of putting all the logic in JsonFormatter. That's helpful in terms of concealing the details of whether or not to wrap the value in quotes, but it does lack flexibility. I don't *think* we want to allow user-defined formatting of messages, so that much shouldn't be a problem.
* Simplify the JSON tests for readabilityJon Skeet2015-07-311-60/+71
| | | | Use ' instead of " in the expected JSON, then replace it before asserting.
* Fix JSON formatting to always emit fields in field order, including oneofsJon Skeet2015-07-314-36/+353
|
* Fix trivial bug in field orderings.Jon Skeet2015-07-312-1/+14
| | | | (Shows the benefit of unit testing even code "too simple to fail"...)
* Well-known type operations for Timestamp and Duration (but not JSON formatting).Jon Skeet2015-07-317-0/+563
| | | | | While I've provided operators, I haven't yet provided the method equivalents. It's not clear to me that they're actually a good idea, while we're really targeting C# developers who definitely *can* use the user-defined operators.
* Handle field names of "descriptor" and "types".Jon Skeet2015-07-313-6/+244
|
* Generated code for previous commit.Jon Skeet2015-07-309-57/+57
|
* Prohibit null values for string/bytes fields in generated code.Jon Skeet2015-07-301-0/+10
|
* Rename ThrowHelper to Preconditions and make it public - we'll want to use ↵Jon Skeet2015-07-306-78/+99
| | | | | | | it from the generated code soon. Additionally, change it to return the value passed, and make it generic with a class constraint. A separate method doesn't have the class constraint, for more unusual scenarios.