gapic-generator-ruby icon indicating copy to clipboard operation
gapic-generator-ruby copied to clipboard

Improve the proto docs to reflect the connection between the oneof fields

Open viacheslav-rostovtsev opened this issue 4 years ago • 1 comments

Protos allow some fields to be connected in what essentially are the oneof groups. Assigning one field in the group will essentially prevent others from being assigned and there might be more of these behaviours. Docs currently do not reflect that and they should.

viacheslav-rostovtsev avatar Jun 17 '20 19:06 viacheslav-rostovtsev

Also: document that proto3_optional fields have their has_foo? methods and that oneofs have to check presence via the oneof fields

viacheslav-rostovtsev avatar Jun 19 '20 01:06 viacheslav-rostovtsev