Required
public class Required extends FieldValidatingOption<T> implements Logging
Content copied to clipboard
An option that makes a field required
.
If a required
field is missing, an error is produced.
Functions
Link copied to clipboard
Creates a Constraint for the given field based on the value of the option.
Link copied to clipboard
Returns
true
if this option exists for the specified field, false
otherwise.Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected DescriptorProtos.FieldOptions optionsFrom(Descriptors.FieldDescriptor object)
Content copied to clipboard
Link copied to clipboard
Returns a value of the option.
Link copied to clipboard