Skip to content
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

Add support for proto3 optional fields #25

Merged
merged 4 commits into from
May 11, 2021
Merged

Add support for proto3 optional fields #25

merged 4 commits into from
May 11, 2021

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented May 8, 2021

protoc v3.12.0 added support for the optional annotation to proto3 (see RC: https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0-rc1).

In order to support this, protoc-gen-star was updated to 0.5.3, and for running tests the grpc-tools gem was updated to 1.37.1.

Also adds clear_<field_name> methods for all fields and has_<field_name>? methods for optional fields.

Fixes #24.

@mdehoog mdehoog merged commit f1c4d9e into master May 11, 2021
@mdehoog mdehoog deleted the optional-support branch May 11, 2021 15:40
main.go Show resolved Hide resolved
main.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

add support for proto3 optional fields
3 participants