Commit Graph

  • 2fea9e168b Expose the gRPC code generation plugin. David Symonds 2016-03-21 09:39:39 +11:00
  • 62e4364d64 jsonpb: Accept both camelCase and orig_name as field names for oneof fields. David Symonds 2016-03-17 12:31:00 +11:00
  • 9951127104 Add support for decoding a stream of JSON objects. Nikki VonHollen 2016-03-10 21:13:00 +11:00
  • 0fd8c908d8 Switch use of strings.LastIndexByte to strings.LastIndex. David Symonds 2016-03-11 10:32:00 +11:00
  • b9504f2373 A few small bits of style modernisation, such as using append where it makes the code shorter and more natural. David Symonds 2016-03-09 11:48:00 +11:00
  • 750c6bd082 Generate the new go_package options for the WKTs. David Symonds 2016-03-09 13:15:09 +11:00
  • e3aaa3aa25 Add compatibility markers to grpc generated code. David Symonds 2016-03-09 11:28:00 +11:00
  • cde632b2df Use the zero value when decoding a map element that is missing its key or value. Michael Matloob 2016-03-08 09:25:00 +11:00
  • c75fbf01dc Implement new semantics for option go_package. David Symonds 2016-03-04 09:17:00 +11:00
  • 1cc4d6fa4a Support for google.protobuf.Any expansion in text marshaling and unmarshaling. Lev Shamardin 2016-03-04 03:50:00 +11:00
  • 552c7b9542 jsonpb: Handle Struct and NullValue WKTs. David Symonds 2016-02-26 12:45:00 +11:00
  • 2fc053c57e Generate Descriptor method for groups. David Symonds 2016-02-26 05:52:00 +11:00
  • 45760678a2 Generate a XXX_WellKnownType method for NullValue. David Symonds 2016-02-25 14:18:00 +11:00
  • c6184d34b2 jsonpb: Format and parse the WKTs in wrappers.proto. David Symonds 2016-02-25 11:12:00 +11:00
  • 3e847b4d77 Add remaining Go-supported WKTs to the list of types to generate XXX_WellKnownType for. David Symonds 2016-02-23 15:29:00 +11:00
  • 553c764c95 Generate XXX_WellKnownType method for recognised well-known types. David Symonds 2016-02-23 14:14:00 +11:00
  • 3c84672111 Add Timestamp helper funcs to the ptypes package. David Symonds 2016-02-22 08:49:41 +11:00
  • 127091107f Rearrange the well-known types package layout and API: David Symonds 2016-02-17 11:46:17 +11:00
  • 89238a3245 Add initial well-known types support package. David Symonds 2016-02-15 08:55:00 +11:00
  • b3392a2965 Configurable TextMarshaler for protos. Lev Shamardin 2016-02-09 22:30:00 +11:00
  • 0dfe8f3784 Add more well-known types: Struct, Timestamp and Wrappers. David Symonds 2016-02-11 12:39:55 +11:00
  • 8ea33d2512 Add well-known types. David Symonds 2016-02-10 15:40:45 +11:00
  • 001690d39b Switch jsonpb.Marshaler to use camelCase by default. David Symonds 2016-02-10 14:04:11 +11:00
  • d20896fc31 Add support for plumbing json_name from protoc through to proto.Properties. David Symonds 2016-02-10 10:39:21 +11:00
  • b982704f8b Extend the text format parser to allow concatenation of string literals in single quotes. Daniel Kraft 2016-02-02 18:33:00 +11:00
  • 45bba206dd jsonpb: Don't emit zero value proto3 fields by default. David Symonds 2016-01-29 08:30:00 +11:00
  • 6aaa8d4770 Adding repeated field data population example Zac Mullett 2016-01-24 20:11:55 +01:00
  • 5fc2294e65 Clarify jsonpb package docs. David Symonds 2016-01-21 14:29:00 +11:00
  • 2402d76f3d Add compatibility markers to proto generated code. David Symonds 2016-01-06 12:58:00 +11:00
  • 4df416cb47 Fix proto.Equal handling of proto3 bytes fields. David Symonds 2016-01-06 06:53:00 +11:00
  • 04eac41517 Update docs to mention the proto3 API differences. David Symonds 2016-01-05 11:20:00 +11:00
  • 68415e7123 Add some more Markdown annotations. David Symonds 2015-12-07 15:07:14 +11:00
  • 44fa767d23 By popular demand, rename README to README.md and make Markdown consistent. David Symonds 2015-12-07 15:02:57 +11:00
  • 0879490610 Generate sizer functions for oneofs. Damien Neil 2015-12-04 07:39:00 +11:00
  • 221834dcb8 Regenerate protos. David Symonds 2015-12-01 09:32:49 +11:00
  • 7c1e7ed8fe Fix unmarshaling code to properly handle multiple instances of the same extension appearing in the wire format. Prior to this change, multiple custom options would result in all but the first being discarded when processed using the proto.GetExtension() facilities. Erik McClenney 2015-11-26 05:32:00 +11:00
  • 8e6e0a5025 Document parameters in README Zellyn Hunter 2015-11-24 16:02:47 -05:00
  • 02ac84f19c Generate correct service name for gRPC services without a package name. David Symonds 2015-11-25 08:55:00 +11:00
  • 57346232f2 Remove a test that has outlived its usefulness. David Symonds 2015-11-16 10:08:30 +11:00
  • 4a63085a88 Add compressed file descriptor code generation. David Symonds 2015-11-16 09:40:00 +11:00
  • 8cf720c393 Unexport proto.MessageSet, and remove a bunch of its support. David Symonds 2015-11-13 15:34:00 +11:00
  • d3d78384b8 Expand proto.RegisterType mapping to record both directions (name <-> reflect.Type), and add two functions to access the mapping. David Symonds 2015-11-05 09:41:00 +11:00
  • a5e9c41ec3 Merge pull request #91 from tswast/plain Andrew Gerrand 2015-11-06 10:38:45 +11:00
  • a1dfa5ef89 Always import non-weak imported proto packages. David Symonds 2015-11-04 12:10:00 +11:00
  • a7f1e751cd Register all proto message types with a centralised registry. David Symonds 2015-11-02 15:31:00 +11:00
  • f9dd693112 jsonpb: Implementing marshaling of proto2 extensions. Juraj Stacho 2015-11-03 18:47:00 +11:00
  • e63abb1d34 Another minor performance improvement to the code generator. David Symonds 2015-11-04 09:37:32 +11:00
  • fb5d8f4847 Regenerate descriptor.pb.go to pick up FileDescriptorProto.json_name. David Symonds 2015-11-03 14:35:18 +11:00
  • f6bf928caf Various optimisations to protoc-gen-go. David Crawshaw 2015-11-03 10:33:08 +11:00
  • ea3f88094e Add headings to make clear how to get started. Tim Swast 2015-10-29 14:51:32 -07:00
  • efcaa340c1 Don't sort map keys when encoding a map field in wire format. David Symonds 2015-10-28 16:14:47 +11:00
  • 5baca1b631 Forward oneof marshal/unmarshal funcs through public imports. David Symonds 2015-10-23 13:49:00 +11:00
  • 8a5d8e8b13 jsonpb: Remove Marshaler.EnumsAsString. David Symonds 2015-10-22 13:41:57 +11:00
  • 9ebc6c4ed9 jsonpb: Disable Marshaler.EnumsAsString; it is now the default. David Symonds 2015-10-20 08:33:00 +11:00
  • 0ea3c033ce jsonpb: Introduce Marshaler.EnumsAsInts. David Symonds 2015-10-19 13:53:00 +11:00
  • 5d7f79bcf3 Fix jsonpb parsing of enums as names for proto3. David Symonds 2015-10-19 11:37:00 +11:00
  • deb4a5e3b1 Add support for repeated fields expressed using list notation, like ["a", "b", "c"]. Lorenzo Simionato 2015-10-09 07:39:00 +11:00
  • 3d2510a4dd Update gRPC codegen to match API update in grpc/grpc-go#370. David Symonds 2015-10-02 09:53:25 +10:00
  • 8081512d5b Ensure all field and method names are unique. Andrew Braunstein 2015-09-30 05:11:00 +10:00
  • 0c959e80d8 Fix dec_slice_packed_bool when bools are inefficiently encoded. David Symonds 2015-09-28 15:17:00 +10:00
  • eed5e538da Simplify some code. David Symonds 2015-09-18 16:09:00 +10:00
  • 8df8a93c67 Fix race in text formatting of oneof fields. David Symonds 2015-09-17 07:27:00 +10:00
  • 535a104686 Fix size of oneof fields when they are set to their zero value. David Symonds 2015-09-11 08:27:00 +10:00
  • 1dceb1a265 Minor refactoring of oneof enabling. David Symonds 2015-09-03 11:38:02 +10:00
  • 6a514e697f Make sure the package comment mentions all top-level messages. Dave Day 2015-09-01 15:46:00 +10:00
  • 9fa1be771c Fix oneof wrapper type name disambiguation check. David Symonds 2015-08-31 15:14:00 +10:00
  • 483e329c7a Unconditionally generate the name= part of the protobuf struct field tag. David Symonds 2015-08-28 10:37:00 +10:00
  • ef197e1a5f Add a oneof example to the test proto in the package document. Dave Day 2015-09-02 09:30:00 +10:00
  • 61b9593c6e Merge into existing oneofs that are set to the same type. David Symonds 2015-08-31 10:31:00 +10:00
  • a57d29119a Avoid panicking when text formatting a malformed oneof. David Symonds 2015-08-27 13:00:00 +10:00
  • 73ca790d13 Remove unreachable error checks. David Symonds 2015-08-26 10:48:00 +10:00
  • 1baed096cd Expose the thorny part of the oneof metadata interpretation. David Symonds 2015-08-25 15:42:00 +10:00
  • 6dfb160b27 Update Go version requirements and copy oneof info from lib.go. David Symonds 2015-09-01 09:45:27 +10:00
  • 09bcc3220e Allow make to run with non-GNU sed. Tamir Duberstein 2015-08-27 17:57:42 -04:00
  • 59b73b37c1 Implement oneof support. David Symonds 2015-08-24 13:22:02 +10:00
  • 1e35a3a79e Print out malformed generated code in a useful way. David Symonds 2015-08-13 15:55:00 +10:00
  • 21f8136f20 jsonpb: Fix spelling of Marshaler. David Symonds 2015-08-17 11:59:00 +10:00
  • 31db569afe jsonpb: Simplify JSON field name selection. David Symonds 2015-08-10 12:45:00 +10:00
  • 3fe63ce68c jsonpb: Reject unknown fields when parsing into a struct. David Symonds 2015-08-07 15:00:00 +10:00
  • 73aaaa9eb6 Only generate imports in GenerateImports, and move the var _ pkg.Blah lines to Generate time. David Symonds 2015-08-10 10:35:00 +10:00
  • 68c687dc49 Fix handling of RequiredNotSetError being returned by fields that implement Marshaler. David Symonds 2015-07-27 19:06:00 +10:00
  • 6683654b7a Sort numerically-keyed maps by numeric value. David Symonds 2015-07-25 20:00:00 +10:00
  • 0f7a9caded Rename structPointer_Map to structPointer_NewAt. David Symonds 2015-07-20 16:00:00 +10:00
  • ab974be44d Fix Merge (and Clone) for proto3. David Symonds 2015-07-07 21:13:00 -06:00
  • f78e6df161 Fix protoc-gen-go/Makefile to work under go1. David Symonds 2015-07-05 18:41:14 -06:00
  • 31f3218d0b Change how init functions are written in the generated Go. Dave Day 2015-07-03 12:03:00 +10:00
  • a1463b958e Check in generated .pb.go files for the jsonpb test proto. David Symonds 2015-07-04 11:16:38 +10:00
  • 67cbcadfc9 jsonpb: New package. Buck Clay 2015-07-01 11:17:11 +10:00
  • bafa7bc8ed More accurately report text parsing failures for invalid strings. David Symonds 2015-07-01 07:59:00 +10:00
  • aece6fb931 Return errors getting extensions when formatting text, rather than writing the error to stderr. David Symonds 2015-06-16 08:30:00 +10:00
  • 43447c37a4 Update README to reflect gRPC support. David Symonds 2015-06-16 08:36:59 +10:00
  • bf74a33812 Fix code generation for extensions of a publicly imported message. David Symonds 2015-06-16 07:13:00 +10:00
  • 95681cb43a Remove "optional" keyword in proto3 test file. David Symonds 2015-05-28 09:13:00 +10:00
  • 34a5f244f1 Behave gracefully when text formatting a map field with a nil value. David Symonds 2015-05-26 11:05:00 +10:00
  • c8ba1155c8 Add support for default values in proto extensions. David Symonds 2015-05-21 01:23:00 +10:00
  • cab84a3485 Return a descriptive error when a map field has a nil element. David Symonds 2015-05-19 09:29:00 +10:00
  • 16256d3ce6 Record the use of possibly-foreign enum types as map values. David Symonds 2015-05-18 10:08:00 +10:00
  • 39e27fc0f2 Add proto3.pb.go to the repo. I don't know why it was missing. David Symonds 2015-05-15 11:32:44 +10:00
  • 056d5ce64f Accept comma and semicolon characters in text format maps. David Symonds 2015-05-12 19:27:00 +10:00
  • b955ee181c Address a few lint suggestions. David Symonds 2015-05-02 04:05:00 +10:00