aboutsummaryrefslogtreecommitdiff
path: root/protoc-gen-go
AgeCommit message (Collapse)Author
2015-02-09Support control of which linked plugins are executed.HEADgradle_1.3.1gradle_1.3.0-beta4gradle_1.3.0-beta3gradle_1.3.0-beta2gradle_1.3.0-beta1studio-master-releasestudio-1.4-releasestudio-1.3-releasemastermainDavid Symonds
2015-02-09Update comments, package declarations and syntax statements.David Symonds
2015-01-28Permit omission of a colon before a message-typed map value.David Symonds
2014-12-22Support map<k,v> protocol buffer fields.David Symonds
2014-11-28Support proto3.David Symonds
2014-11-28Regenerate descriptor.pb.go.David Symonds
2014-11-24Update URLs and paths to new location of the C++ protobuf code.David Symonds
2014-11-24Update URLs and import paths to new GitHub home.David Symonds
2014-10-28goprotobuf: Miscellaneous cleanups.David Symonds
No significant changes except for debuggers. LGTM=nigeltao R=nigeltao CC=golang-codereviews https://codereview.appspot.com/166720043
2014-10-12goprotobuf: Cause the descriptor proto to be imported as "descriptor".David Symonds
LGTM=gmlewis R=gmlewis CC=golang-codereviews https://codereview.appspot.com/160730043
2014-10-12goprotobuf: Generate JSON marshal/unmarshal methods for MessageSet.David Symonds
This only implements marshaling. Unmarshaling is much fiddlier, and it's not even clear that people care about that, so I'm punting it to a later date. LGTM=gmlewis R=gmlewis CC=golang-codereviews https://codereview.appspot.com/156950045
2014-10-12goprotobuf: Add method to extending message to get list of messages extended.David Symonds
LGTM=gmlewis R=gmlewis CC=golang-codereviews https://codereview.appspot.com/159790043
2014-08-12goprotobuf: Fix handling of empty string defaults for 'string' and 'bytes' ↵David Symonds
fields. This is a bit of an edge case. All other valid defaults appear as non-empty strings, but we need to distinguish [default=""] for string/bytes to uphold the SetDefaults contract. LGTM=djd R=djd CC=golang-codereviews https://codereview.appspot.com/125100044
2014-07-22goprotobuf: Split encoding of int32 and uint32 fields.David Symonds
int32 needs special handling; negative values need to be sign-extended, so need to be converted from uint32 back to int32 before converting to uint64 for the varint encoding step (yielding 10 bytes). uint32 is simpler and stays as just encoding the bit pattern, and thus never takes more than 5 bytes. This permits upgrading int32 fields to int64, and matches C++. LGTM=nigeltao R=nigeltao CC=golang-codereviews https://codereview.appspot.com/114190043
2014-07-22goprotobuf: Fix alias generation for enums.David Symonds
We were emitting an obsolete function and missing a couple of real methods. LGTM=nigeltao R=nigeltao CC=golang-codereviews https://codereview.appspot.com/111470043
2014-06-20goprotobuf: Required extensions don't make sense.David Symonds
LGTM=nigeltao R=nigeltao CC=golang-codereviews https://codereview.appspot.com/101370050
2014-04-14goprotobuf: Remove never-used import of encoding/json in generated code.David Symonds
It used to be used for a MarshalJSON method on enum types, but we no longer generate them. LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/85240045
2014-02-19goprotobuf: Include package docs from .proto in the generated package docs.David Symonds
These kinds of comments in .proto files usually aren't there but if they are then they are valuable to have in the generated code. LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/65860043
2014-01-13goprotobuf: Generate package docs.David Symonds
Most people won't see these, but they improve how proto packages are rendered by godoc. R=r CC=golang-codereviews https://codereview.appspot.com/51030043
2013-10-11goprotobuf: Remove MarshalJSON methods from generated enum types.David Symonds
This will results in JSON output using numbers for enum values, which is consistent with the default behaviour of other languages. UnmarshalJSON is left to handle both numeric and symbolic values. R=r CC=golang-dev https://codereview.appspot.com/14601045
2013-09-18goprotobuf: Make the default default of an enum field be the value of the ↵David Symonds
first enum value, not zero. This makes Go consistent with C++/Java/Python. Fixes #43. R=r CC=golang-dev https://codereview.appspot.com/13501049
2013-08-19goprotobuf: Fix documentation of minor edge case in CamelCase.David Symonds
Fixes #42. R=r CC=golang-dev https://codereview.appspot.com/12767050
2013-08-07goprotobuf: Fix handling of publicly imported enum types.David Symonds
R=r CC=golang-dev https://codereview.appspot.com/12436045
2013-07-26goprotobuf: Present comments in .proto files in the generated .pb.go.David Symonds
This doesn't use every comment, but just the ones that I thought would be most useful to someone reading the generated code, namely those attached to these things: - messages - message fields - enums - enum values R=r CC=golang-dev https://codereview.appspot.com/11889044
2013-07-26goprotobuf: Switch to using protobuf-2.5.0 as the baseline.David Symonds
Regenerating descriptor.pb.go also lays the path for using SourceCodeInfo in the code generator. R=r CC=golang-dev https://codereview.appspot.com/11893043
2013-06-20goprotobuf: Use already-allocated nested messages if they exist.David Symonds
This maintains the semantics that unmarshaling the concatenation of two encoded messages is equivalent to merging those messages. R=r CC=golang-dev https://codereview.appspot.com/10409046
2013-05-03goprotobuf: Allow groups to be treated as messages.David Symonds
R=r CC=golang-dev https://codereview.appspot.com/9117043
2013-03-23goprotobuf: Preserve unknown fields in groups, and generate repeated field ↵David Symonds
getters. Also make receiver names idiomatic. R=r CC=golang-dev https://codereview.appspot.com/7922045
2013-02-21goprotobuf: Minor internal change to track internal message indexes.David Symonds
R=adg CC=golang-dev https://codereview.appspot.com/7395047
2013-01-30goprotobuf: Repeated field getters.David Symonds
R=adg CC=golang-dev https://codereview.appspot.com/7225068
2012-12-20goprotobuf: Cache extension properties.David Symonds
Also add some struct field tags to work with go1.1. R=nigeltao CC=golang-dev https://codereview.appspot.com/6980045
2012-12-06goprotobuf: Missing test data from a previous CL.David Symonds
R=iant CC=golang-dev https://codereview.appspot.com/6883048
2012-12-06goprotobuf: Unexport a bunch of symbols in generator.go.David Symonds
R=iant CC=golang-dev https://codereview.appspot.com/6894046
2012-11-29goprotobuf: Use a standard redirecting AUTHORS and CONTRIBUTORS file.David Symonds
Correct copyright notice to "The Go Authors" throughout. R=rsc, bradfitz CC=golang-dev http://codereview.appspot.com/6845101
2012-11-07goprotobuf: Don't treat groups as messages.David Symonds
They no longer get XXX_unrecognized fields, nor satisfy the proto.Message interface. R=nigeltao, r CC=golang-dev http://codereview.appspot.com/6829043
2012-09-26goprotobuf: Track file and message indexes, and reserve Descriptor as a ↵David Symonds
message method name. R=r CC=golang-dev http://codereview.appspot.com/6568051
2012-09-24goprotobuf: Regenerate .pb.go files.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6552062
2012-09-18goprotobuf: Public import getters.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6525044
2012-08-30goprotobuf: Fix Marshal crash on typed nil.David Symonds
Also a bunch of other trivial updates. R=r CC=golang-dev http://codereview.appspot.com/6501064
2012-08-15goprotobuf: Small unimportant tidy-up.David Symonds
R=adg CC=golang-dev http://codereview.appspot.com/6464064
2012-08-15goprotobuf: Register unique names for encoding/json and math imports.David Symonds
R=adg CC=golang-dev http://codereview.appspot.com/6454155
2012-08-04goprotobuf: JSON helpers for enum types.David Symonds
R=r, rsc CC=golang-dev http://codereview.appspot.com/6458072
2012-08-03goprotobuf: Make regenerating prebuilt .pb.go files work again.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6458071
2012-07-20goprotobuf: Make Unmarshal reset the message before populating.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6351110
2012-07-02goprotobuf: Remove GetString (etc.) and generated enum NewT functions.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6356055
2012-06-28goprotobuf: Generate getters.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6369043
2012-06-28goprotobuf: Miscellaneous fixes.David Symonds
- Support single quoted strings. - Allow declaring import path to hint at a package name. R=r CC=golang-dev http://codereview.appspot.com/6366043
2012-06-14goprotobuf: Introduce new proto.Message type.David Symonds
Every generated protocol buffer type now implements the proto.Message interface, which means we can add some compile-time type safety throughout the API as well as drop a bunch of error cases. R=r, rsc CC=golang-dev http://codereview.appspot.com/6298073
2012-05-08goprotobuf: Better enum construction.David Symonds
R=r CC=golang-dev http://codereview.appspot.com/6188053
2012-05-05goprotobuf: Repeated extensions.David Symonds
Also picks up a tweak to the JSON tags of the XXX_ fields. R=r CC=golang-dev http://codereview.appspot.com/6175045