-
Notifications
You must be signed in to change notification settings - Fork 31
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
Conversion functions for google.type.*? #706
Comments
Hi, sorry we haven't gotten to this. For general conversion utility methods, I wonder if it makes more sense for them to go into the google-protobuf gem itself. Perhaps here: https://github.com/protocolbuffers/protobuf/blob/main/ruby/lib/google/protobuf/well_known_types.rb. That way it would be available to any user of protobuf. The gapic-common gem in this repository is kind of specific to Google API client libraries, and generally has utility methods that are used internally by the code generator or the generated clients, or that are present for backward compatibility with earlier clients. Adding things here might not reach a wide audience, as the gem isn't meant to be used directly by end users. |
@dazuma https://github.com/protocolbuffers/protobuf/blob/75d31befc6475178d6c4cd920602c9709e714519/ruby/lib/google/protobuf/well_known_types.rb#L74-L93 is exactly what I needed. Thank you! |
@dazuma I realized that I personally need utility functions for |
Oh, I see. |
Superseded by googleapis/common-protos-ruby#114. |
Hello, I'm not really sure where to report but here I go.
There are helper functions that convert ruby objects and proto messages e.g.,
Gapic::Protobuf.timestamp_to_time
. Are there equivalent functions forgoogle.type.*
. For example, I need a conversion function that conversGoogle::Type::Date
toDate
and vice versa.Thank you.
The text was updated successfully, but these errors were encountered: