Is there any reason ptypes does not have all the well-known types? Missing files are:
If golang/protobuf is going to handle well-known types, I would argue it should include all of them, even if some of them seem less useful than others - to really address https://github.com/golang/protobuf/issues/50, it should do all of them I would think so there is no more fragmentation.
I only added the ones I thought might be used widely. And at least in the docs that I'm going off, only field_mask.proto is actually missing; the other three aren't "well-known types" in that sense.
I don't object to adding them, but I don't want to rush into it when there's not a compelling need. If the whole set gets moved elsewhere then there's just more churn.
Short: They almost never change, they do seem to all be considered well-known types, if the protos move it won't affect golang/protobuf, and deciding what end users will and will not want to use (when they are well-known types as google/protobuf defines them) will just lead to more fragmentation.
Long:
They've barely ever changed, and the main thing is that all of them seem to be considered well-known types:
In terms of golang/protobuf, I don't think these moving other places would affect anything, the regen script would just have to be updated. I'd say that if we're really going to say 50 is fixed (and I don't think anyone of us wants to revisit that issue any time soon), and if the ptypes package is the solution we want everyone to use, that we should stick with it and not have as much fragmentation. Otherwise, for example, if anyone is using those, we're back to splitting out locations for proto files that are in the same place, ie in https://github.com/peter-edge/pb/tree/master/go/google/protobuf (which does cover all the well-known types), it's going to be a mess.
Well, that only shows that the C# folk consider them WKTs. ;-)
But I'll yield for now. Stand by.
I figured everything here was a WKT. https://developers.google.com/protocol-buffers/docs/reference/google.protobuf
Although I've had no luck getting anyone to explain the philosophy/intent/extent of WKT's - apparently there are design docs but they're Google-internal :-/
Hey, how about it :)
Sorry for the silence. I got sidetracked.
I've come around to realising that this needs to be tackled as a whole, for all the protos in https://github.com/googleapis/googleapis (well, that plus the implicitly overlaid hierarchy of the WKTs). I'm thinking they'll all look like google.golang.org/apis/google/protobuf/timestamp and google.golang.org/apis/google/rpc/status and so on. But I've got to win over a few more people.
This is probably the 15 millionth time I've annoyed you with these links but happy to just transfer some of this, heh:
https://github.com/peter-edge/google-protobuf-go
https://github.com/peter-edge/googleapis-go
https://github.com/peter-edge/pb
Thanks, but actually doing it is the easy part. Deciding exactly what to do is the hard part.
Ya, heh.
On Thursday, March 24, 2016, David Symonds [email protected] wrote:
Thanks, but actually doing it is the easy part. Deciding exactly what to
do is the hard part.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/golang/protobuf/issues/143#issuecomment-201006371
I don't know that everyone wants googleapis. Lots of people use protobufs for non google things.
Yes, but the googleapis tree intentionally overlaps with the WKTs and imports them, and they're designed to be one logical tree (though they're in separate trees right now). The impact on people _only_ wanting the WKTs should only be some extra .proto and .pb.go files lying around.
Ya, just extra proto and pb files, for those who do not want to use them,
they don't need to import them
On Monday, April 11, 2016, David Symonds [email protected] wrote:
Yes, but the googleapis tree intentionally overlaps with the WKTs and
imports them, and they're designed to be one logical tree (though they're
in separate trees right now). The impact on people _only_ wanting the
WKTs should only be some extra .proto and .pb.go files lying around.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/golang/protobuf/issues/143#issuecomment-208543653
I guess so, but its quite sad.
At least this repo is being kept clean of other dependencies.
Hey @dsymonds how is the winning Googlers over game going? :)
Would be great to get the field_mask.proto type included. We are now using quite a bit in our application and then we would not have to manually include it anymore.
The googleapis tree is needed to generate the RESTful gateway for GRPC services:
https://github.com/gengo/grpc-gateway/tree/master/third_party/googleapis/google/api
See https://godoc.org/google.golang.org/genproto/protobuf
from godoc:
It is generated from these files:
google.golang.org/genproto/protobuf/api.proto
google.golang.org/genproto/protobuf/descriptor.proto
google.golang.org/genproto/protobuf/field_mask.proto
google.golang.org/genproto/protobuf/source_context.proto
google.golang.org/genproto/protobuf/type.proto
cc @okdave
Yes, this is now the home for the WKT. Eventually, we'd like to move the existing ptypes package over to this new repository, but we're unsure how to do this in a non-breaking way. (The type aliases proposal currently under discussion would help here.)
Most helpful comment
Would be great to get the
field_mask.prototype included. We are now using quite a bit in our application and then we would not have to manually include it anymore.