create
Creates a new instance.
If the specified parameter is true
, a returned option always assumes a field to be required
, regardless of the field value. If the specified parameter is false
, a returned option checks the actual value.
Return
a new instance of the Required
option
Parameters
strict
specifies if a field is assumed to be a required one regardless of the actual Protobuf option value