-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing well-known types? #143
Comments
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 |
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 notifications@github.com wrote:
|
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, On Monday, April 11, 2016, David Symonds notifications@github.com wrote:
|
I guess so, but its quite sad. |
Hey @dsymonds how is the winning Googlers over game going? :) |
Would be great to get the |
The googleapis tree is needed to generate the RESTful gateway for GRPC services: |
See https://godoc.org/google.golang.org/genproto/protobuf from godoc: It is generated from these files: google.golang.org/genproto/protobuf/api.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.) |
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 #50, it should do all of them I would think so there is no more fragmentation.
The text was updated successfully, but these errors were encountered: