I
I
impressive172020-08-24 09:40:44
go
impressive17, 2020-08-24 09:40:44

How can I make one of the two protobuf fields mandatory?

In protobuf, you can make a field required by using required. But how to impose the required property on two or more fields at once, so that it is mandatory to specify AT LEAST one of these fields.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WinPooh32, 2020-08-24
@impressive17

Oneof
Yes, and the question does not apply to Go.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question