Class FieldConstraints.Builder

  • All Implemented Interfaces:
    FieldConstraintsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    FieldConstraints

    public static final class FieldConstraints.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<FieldConstraints.Builder>
    implements FieldConstraintsOrBuilder
     FieldRules encapsulates the rules for each type of field. Depending on the
     field, the correct set should be used to ensure proper validations.
     
    Protobuf type buf.validate.FieldConstraints
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FieldConstraints.Builder>
      • clear

        public FieldConstraints.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<FieldConstraints.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FieldConstraints.Builder>
      • getDefaultInstanceForType

        public FieldConstraints getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public FieldConstraints build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FieldConstraints buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public FieldConstraints.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FieldConstraints.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FieldConstraints.Builder>
      • mergeFrom

        public FieldConstraints.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FieldConstraints.Builder>
        Throws:
        java.io.IOException
      • getCelList

        public java.util.List<Constraint> getCelList()
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
        Specified by:
        getCelList in interface FieldConstraintsOrBuilder
      • getCelCount

        public int getCelCount()
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
        Specified by:
        getCelCount in interface FieldConstraintsOrBuilder
      • getCel

        public Constraint getCel​(int index)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
        Specified by:
        getCel in interface FieldConstraintsOrBuilder
      • setCel

        public FieldConstraints.Builder setCel​(int index,
                                               Constraint value)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • setCel

        public FieldConstraints.Builder setCel​(int index,
                                               Constraint.Builder builderForValue)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • addCel

        public FieldConstraints.Builder addCel​(Constraint value)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • addCel

        public FieldConstraints.Builder addCel​(int index,
                                               Constraint value)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • addCel

        public FieldConstraints.Builder addCel​(Constraint.Builder builderForValue)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • addCel

        public FieldConstraints.Builder addCel​(int index,
                                               Constraint.Builder builderForValue)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • addAllCel

        public FieldConstraints.Builder addAllCel​(java.lang.Iterable<? extends Constraint> values)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • clearCel

        public FieldConstraints.Builder clearCel()
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • removeCel

        public FieldConstraints.Builder removeCel​(int index)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • getCelBuilder

        public Constraint.Builder getCelBuilder​(int index)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • getCelOrBuilder

        public ConstraintOrBuilder getCelOrBuilder​(int index)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
        Specified by:
        getCelOrBuilder in interface FieldConstraintsOrBuilder
      • getCelOrBuilderList

        public java.util.List<? extends ConstraintOrBuilder> getCelOrBuilderList()
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
        Specified by:
        getCelOrBuilderList in interface FieldConstraintsOrBuilder
      • addCelBuilder

        public Constraint.Builder addCelBuilder()
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • addCelBuilder

        public Constraint.Builder addCelBuilder​(int index)
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • getCelBuilderList

        public java.util.List<Constraint.Builder> getCelBuilderList()
         `cel` is a repeated field used to represent a textual expression
         in the Common Expression Language (CEL) syntax. For more information on
         CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
        
         ```proto
         message MyMessage {
         // The field `value` must be greater than 42.
         optional int32 value = 1 [(buf.validate.field).cel = {
         id: "my_message.value",
         message: "value must be greater than 42",
         expression: "this > 42",
         }];
         }
         ```
         
        repeated .buf.validate.Constraint cel = 23;
      • getSkipped

        public boolean getSkipped()
         `skipped` is an optional boolean attribute that specifies that the
         validation rules of this field should not be evaluated. If skipped is set to
         true, any validation rules set for the field will be ignored.
        
         ```proto
         message MyMessage {
         // The field `value` must not be set.
         optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
         }
         ```
         
        bool skipped = 24;
        Specified by:
        getSkipped in interface FieldConstraintsOrBuilder
        Returns:
        The skipped.
      • setSkipped

        public FieldConstraints.Builder setSkipped​(boolean value)
         `skipped` is an optional boolean attribute that specifies that the
         validation rules of this field should not be evaluated. If skipped is set to
         true, any validation rules set for the field will be ignored.
        
         ```proto
         message MyMessage {
         // The field `value` must not be set.
         optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
         }
         ```
         
        bool skipped = 24;
        Parameters:
        value - The skipped to set.
        Returns:
        This builder for chaining.
      • clearSkipped

        public FieldConstraints.Builder clearSkipped()
         `skipped` is an optional boolean attribute that specifies that the
         validation rules of this field should not be evaluated. If skipped is set to
         true, any validation rules set for the field will be ignored.
        
         ```proto
         message MyMessage {
         // The field `value` must not be set.
         optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
         }
         ```
         
        bool skipped = 24;
        Returns:
        This builder for chaining.
      • getRequired

        public boolean getRequired()
         If `required` is true, the field must be populated. Field presence can be
         described as "serialized in the wire format," which follows the following rules:
        
         - the following "nullable" fields must be explicitly set to be considered present:
         - singular message fields (may be their empty value)
         - member fields of a oneof (may be their default value)
         - proto3 optional fields (may be their default value)
         - proto2 scalar fields
         - proto3 scalar fields must be non-zero to be considered present
         - repeated and map fields must be non-empty to be considered present
        
         ```proto
         message MyMessage {
         // The field `value` must be set to a non-null value.
         optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
         }
         ```
         
        bool required = 25;
        Specified by:
        getRequired in interface FieldConstraintsOrBuilder
        Returns:
        The required.
      • setRequired

        public FieldConstraints.Builder setRequired​(boolean value)
         If `required` is true, the field must be populated. Field presence can be
         described as "serialized in the wire format," which follows the following rules:
        
         - the following "nullable" fields must be explicitly set to be considered present:
         - singular message fields (may be their empty value)
         - member fields of a oneof (may be their default value)
         - proto3 optional fields (may be their default value)
         - proto2 scalar fields
         - proto3 scalar fields must be non-zero to be considered present
         - repeated and map fields must be non-empty to be considered present
        
         ```proto
         message MyMessage {
         // The field `value` must be set to a non-null value.
         optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
         }
         ```
         
        bool required = 25;
        Parameters:
        value - The required to set.
        Returns:
        This builder for chaining.
      • clearRequired

        public FieldConstraints.Builder clearRequired()
         If `required` is true, the field must be populated. Field presence can be
         described as "serialized in the wire format," which follows the following rules:
        
         - the following "nullable" fields must be explicitly set to be considered present:
         - singular message fields (may be their empty value)
         - member fields of a oneof (may be their default value)
         - proto3 optional fields (may be their default value)
         - proto2 scalar fields
         - proto3 scalar fields must be non-zero to be considered present
         - repeated and map fields must be non-empty to be considered present
        
         ```proto
         message MyMessage {
         // The field `value` must be set to a non-null value.
         optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
         }
         ```
         
        bool required = 25;
        Returns:
        This builder for chaining.
      • getIgnoreEmpty

        public boolean getIgnoreEmpty()
         If `ignore_empty` is true and applied to a non-nullable field (see
         `required` for more details), validation is skipped on the field if it is
         the default or empty value. Adding `ignore_empty` to a "nullable" field is
         a noop as these unset fields already skip validation (with the exception
         of `required`).
        
         ```proto
         message MyRepeated {
         // The field `value` min_len rule is only applied if the field isn't empty.
         repeated string value = 1 [
         (buf.validate.field).ignore_empty = true,
         (buf.validate.field).min_len = 5
         ];
         }
         ```
         
        bool ignore_empty = 26;
        Specified by:
        getIgnoreEmpty in interface FieldConstraintsOrBuilder
        Returns:
        The ignoreEmpty.
      • setIgnoreEmpty

        public FieldConstraints.Builder setIgnoreEmpty​(boolean value)
         If `ignore_empty` is true and applied to a non-nullable field (see
         `required` for more details), validation is skipped on the field if it is
         the default or empty value. Adding `ignore_empty` to a "nullable" field is
         a noop as these unset fields already skip validation (with the exception
         of `required`).
        
         ```proto
         message MyRepeated {
         // The field `value` min_len rule is only applied if the field isn't empty.
         repeated string value = 1 [
         (buf.validate.field).ignore_empty = true,
         (buf.validate.field).min_len = 5
         ];
         }
         ```
         
        bool ignore_empty = 26;
        Parameters:
        value - The ignoreEmpty to set.
        Returns:
        This builder for chaining.
      • clearIgnoreEmpty

        public FieldConstraints.Builder clearIgnoreEmpty()
         If `ignore_empty` is true and applied to a non-nullable field (see
         `required` for more details), validation is skipped on the field if it is
         the default or empty value. Adding `ignore_empty` to a "nullable" field is
         a noop as these unset fields already skip validation (with the exception
         of `required`).
        
         ```proto
         message MyRepeated {
         // The field `value` min_len rule is only applied if the field isn't empty.
         repeated string value = 1 [
         (buf.validate.field).ignore_empty = true,
         (buf.validate.field).min_len = 5
         ];
         }
         ```
         
        bool ignore_empty = 26;
        Returns:
        This builder for chaining.
      • hasFloat

        public boolean hasFloat()
         Scalar Field Types
         
        .buf.validate.FloatRules float = 1;
        Specified by:
        hasFloat in interface FieldConstraintsOrBuilder
        Returns:
        Whether the float field is set.
      • getFloatBuilder

        public FloatRules.Builder getFloatBuilder()
         Scalar Field Types
         
        .buf.validate.FloatRules float = 1;
      • hasDouble

        public boolean hasDouble()
        .buf.validate.DoubleRules double = 2;
        Specified by:
        hasDouble in interface FieldConstraintsOrBuilder
        Returns:
        Whether the double field is set.
      • getDoubleBuilder

        public DoubleRules.Builder getDoubleBuilder()
        .buf.validate.DoubleRules double = 2;
      • hasInt32

        public boolean hasInt32()
        .buf.validate.Int32Rules int32 = 3;
        Specified by:
        hasInt32 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the int32 field is set.
      • getInt32Builder

        public Int32Rules.Builder getInt32Builder()
        .buf.validate.Int32Rules int32 = 3;
      • hasInt64

        public boolean hasInt64()
        .buf.validate.Int64Rules int64 = 4;
        Specified by:
        hasInt64 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the int64 field is set.
      • getInt64Builder

        public Int64Rules.Builder getInt64Builder()
        .buf.validate.Int64Rules int64 = 4;
      • hasUint32

        public boolean hasUint32()
        .buf.validate.UInt32Rules uint32 = 5;
        Specified by:
        hasUint32 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the uint32 field is set.
      • getUint32Builder

        public UInt32Rules.Builder getUint32Builder()
        .buf.validate.UInt32Rules uint32 = 5;
      • hasUint64

        public boolean hasUint64()
        .buf.validate.UInt64Rules uint64 = 6;
        Specified by:
        hasUint64 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the uint64 field is set.
      • getUint64Builder

        public UInt64Rules.Builder getUint64Builder()
        .buf.validate.UInt64Rules uint64 = 6;
      • hasSint32

        public boolean hasSint32()
        .buf.validate.SInt32Rules sint32 = 7;
        Specified by:
        hasSint32 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the sint32 field is set.
      • getSint32Builder

        public SInt32Rules.Builder getSint32Builder()
        .buf.validate.SInt32Rules sint32 = 7;
      • hasSint64

        public boolean hasSint64()
        .buf.validate.SInt64Rules sint64 = 8;
        Specified by:
        hasSint64 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the sint64 field is set.
      • getSint64Builder

        public SInt64Rules.Builder getSint64Builder()
        .buf.validate.SInt64Rules sint64 = 8;
      • hasFixed32

        public boolean hasFixed32()
        .buf.validate.Fixed32Rules fixed32 = 9;
        Specified by:
        hasFixed32 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the fixed32 field is set.
      • getFixed32Builder

        public Fixed32Rules.Builder getFixed32Builder()
        .buf.validate.Fixed32Rules fixed32 = 9;
      • hasFixed64

        public boolean hasFixed64()
        .buf.validate.Fixed64Rules fixed64 = 10;
        Specified by:
        hasFixed64 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the fixed64 field is set.
      • getFixed64Builder

        public Fixed64Rules.Builder getFixed64Builder()
        .buf.validate.Fixed64Rules fixed64 = 10;
      • hasSfixed32

        public boolean hasSfixed32()
        .buf.validate.SFixed32Rules sfixed32 = 11;
        Specified by:
        hasSfixed32 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the sfixed32 field is set.
      • getSfixed32Builder

        public SFixed32Rules.Builder getSfixed32Builder()
        .buf.validate.SFixed32Rules sfixed32 = 11;
      • hasSfixed64

        public boolean hasSfixed64()
        .buf.validate.SFixed64Rules sfixed64 = 12;
        Specified by:
        hasSfixed64 in interface FieldConstraintsOrBuilder
        Returns:
        Whether the sfixed64 field is set.
      • getSfixed64Builder

        public SFixed64Rules.Builder getSfixed64Builder()
        .buf.validate.SFixed64Rules sfixed64 = 12;
      • hasBool

        public boolean hasBool()
        .buf.validate.BoolRules bool = 13;
        Specified by:
        hasBool in interface FieldConstraintsOrBuilder
        Returns:
        Whether the bool field is set.
      • getBoolBuilder

        public BoolRules.Builder getBoolBuilder()
        .buf.validate.BoolRules bool = 13;
      • hasString

        public boolean hasString()
        .buf.validate.StringRules string = 14;
        Specified by:
        hasString in interface FieldConstraintsOrBuilder
        Returns:
        Whether the string field is set.
      • getStringBuilder

        public StringRules.Builder getStringBuilder()
        .buf.validate.StringRules string = 14;
      • hasBytes

        public boolean hasBytes()
        .buf.validate.BytesRules bytes = 15;
        Specified by:
        hasBytes in interface FieldConstraintsOrBuilder
        Returns:
        Whether the bytes field is set.
      • getBytesBuilder

        public BytesRules.Builder getBytesBuilder()
        .buf.validate.BytesRules bytes = 15;
      • hasEnum

        public boolean hasEnum()
         Complex Field Types
         
        .buf.validate.EnumRules enum = 16;
        Specified by:
        hasEnum in interface FieldConstraintsOrBuilder
        Returns:
        Whether the enum field is set.
      • getEnumBuilder

        public EnumRules.Builder getEnumBuilder()
         Complex Field Types
         
        .buf.validate.EnumRules enum = 16;
      • hasRepeated

        public boolean hasRepeated()
        .buf.validate.RepeatedRules repeated = 18;
        Specified by:
        hasRepeated in interface FieldConstraintsOrBuilder
        Returns:
        Whether the repeated field is set.
      • getRepeatedBuilder

        public RepeatedRules.Builder getRepeatedBuilder()
        .buf.validate.RepeatedRules repeated = 18;
      • hasMap

        public boolean hasMap()
        .buf.validate.MapRules map = 19;
        Specified by:
        hasMap in interface FieldConstraintsOrBuilder
        Returns:
        Whether the map field is set.
      • getMapBuilder

        public MapRules.Builder getMapBuilder()
        .buf.validate.MapRules map = 19;
      • hasAny

        public boolean hasAny()
         Well-Known Field Types
         
        .buf.validate.AnyRules any = 20;
        Specified by:
        hasAny in interface FieldConstraintsOrBuilder
        Returns:
        Whether the any field is set.
      • getAnyBuilder

        public AnyRules.Builder getAnyBuilder()
         Well-Known Field Types
         
        .buf.validate.AnyRules any = 20;
      • hasDuration

        public boolean hasDuration()
        .buf.validate.DurationRules duration = 21;
        Specified by:
        hasDuration in interface FieldConstraintsOrBuilder
        Returns:
        Whether the duration field is set.
      • getDurationBuilder

        public DurationRules.Builder getDurationBuilder()
        .buf.validate.DurationRules duration = 21;
      • hasTimestamp

        public boolean hasTimestamp()
        .buf.validate.TimestampRules timestamp = 22;
        Specified by:
        hasTimestamp in interface FieldConstraintsOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestampBuilder

        public TimestampRules.Builder getTimestampBuilder()
        .buf.validate.TimestampRules timestamp = 22;