I am new to Scala. Developing my first scala App with Akka-grpc.

I have defined my proto as below :

 message ApiRequest {
   string email = 1;
   string phone_number = 2;
   int32 size = 3;
 }

I want to validate my request parameters as here only email is mandatory, rest are optional parameters.

proto2 was having option as required/optional.

So, with proto3 what could be a good and efficient solution to validate those parameters.

Can case class be considered or mapping parameters to Map() and then validating using loop?

0 Answers