Class FieldConstraints

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
build.buf.validate.FieldConstraints
All Implemented Interfaces:
FieldConstraintsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class FieldConstraints extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getTypeCase

      public FieldConstraints.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface FieldConstraintsOrBuilder
    • getCelList

      public List<Constraint> getCelList()
       `Constraint` 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 [json_name = "cel"];
      Specified by:
      getCelList in interface FieldConstraintsOrBuilder
    • getCelOrBuilderList

      public List<? extends ConstraintOrBuilder> getCelOrBuilderList()
       `Constraint` 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 [json_name = "cel"];
      Specified by:
      getCelOrBuilderList in interface FieldConstraintsOrBuilder
    • getCelCount

      public int getCelCount()
       `Constraint` 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 [json_name = "cel"];
      Specified by:
      getCelCount in interface FieldConstraintsOrBuilder
    • getCel

      public Constraint getCel(int index)
       `Constraint` 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 [json_name = "cel"];
      Specified by:
      getCel in interface FieldConstraintsOrBuilder
    • getCelOrBuilder

      public ConstraintOrBuilder getCelOrBuilder(int index)
       `Constraint` 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 [json_name = "cel"];
      Specified by:
      getCelOrBuilder in interface FieldConstraintsOrBuilder
    • 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 [json_name = "skipped"];
      Specified by:
      getSkipped in interface FieldConstraintsOrBuilder
      Returns:
      The skipped.
    • getRequired

      public boolean getRequired()
      `required` is an optional boolean attribute that specifies that
      this field must be set. If required is set to true, the field value must
      not be empty; otherwise, an error message will be generated.
      
      ```proto
      message MyMessage {
        // The field `value` must be set.
        optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
      }
      ```
       
      bool required = 25 [json_name = "required"];
      Specified by:
      getRequired in interface FieldConstraintsOrBuilder
      Returns:
      The required.
    • getIgnoreEmpty

      public boolean getIgnoreEmpty()
      `ignore_empty` specifies that the validation rules of this field should be
      evaluated only if the field isn't empty. If the field is empty, no validation
      rules are applied.
      
      ```proto
      message MyRepeated {
        // The field `value` validation rules should be evaluated only if the field isn't empty.
        repeated string value = 1 [(buf.validate.field).ignore_empty = true];
      }
      ```
       
      bool ignore_empty = 26 [json_name = "ignoreEmpty"];
      Specified by:
      getIgnoreEmpty in interface FieldConstraintsOrBuilder
      Returns:
      The ignoreEmpty.
    • hasFloat

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

      public FloatRules getFloat()
       Scalar Field Types
       
      .buf.validate.FloatRules float = 1 [json_name = "float"];
      Specified by:
      getFloat in interface FieldConstraintsOrBuilder
      Returns:
      The float.
    • getFloatOrBuilder

      public FloatRulesOrBuilder getFloatOrBuilder()
       Scalar Field Types
       
      .buf.validate.FloatRules float = 1 [json_name = "float"];
      Specified by:
      getFloatOrBuilder in interface FieldConstraintsOrBuilder
    • hasDouble

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

      public DoubleRules getDouble()
      .buf.validate.DoubleRules double = 2 [json_name = "double"];
      Specified by:
      getDouble in interface FieldConstraintsOrBuilder
      Returns:
      The double.
    • getDoubleOrBuilder

      public DoubleRulesOrBuilder getDoubleOrBuilder()
      .buf.validate.DoubleRules double = 2 [json_name = "double"];
      Specified by:
      getDoubleOrBuilder in interface FieldConstraintsOrBuilder
    • hasInt32

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

      public Int32Rules getInt32()
      .buf.validate.Int32Rules int32 = 3 [json_name = "int32"];
      Specified by:
      getInt32 in interface FieldConstraintsOrBuilder
      Returns:
      The int32.
    • getInt32OrBuilder

      public Int32RulesOrBuilder getInt32OrBuilder()
      .buf.validate.Int32Rules int32 = 3 [json_name = "int32"];
      Specified by:
      getInt32OrBuilder in interface FieldConstraintsOrBuilder
    • hasInt64

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

      public Int64Rules getInt64()
      .buf.validate.Int64Rules int64 = 4 [json_name = "int64"];
      Specified by:
      getInt64 in interface FieldConstraintsOrBuilder
      Returns:
      The int64.
    • getInt64OrBuilder

      public Int64RulesOrBuilder getInt64OrBuilder()
      .buf.validate.Int64Rules int64 = 4 [json_name = "int64"];
      Specified by:
      getInt64OrBuilder in interface FieldConstraintsOrBuilder
    • hasUint32

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

      public UInt32Rules getUint32()
      .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];
      Specified by:
      getUint32 in interface FieldConstraintsOrBuilder
      Returns:
      The uint32.
    • getUint32OrBuilder

      public UInt32RulesOrBuilder getUint32OrBuilder()
      .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];
      Specified by:
      getUint32OrBuilder in interface FieldConstraintsOrBuilder
    • hasUint64

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

      public UInt64Rules getUint64()
      .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];
      Specified by:
      getUint64 in interface FieldConstraintsOrBuilder
      Returns:
      The uint64.
    • getUint64OrBuilder

      public UInt64RulesOrBuilder getUint64OrBuilder()
      .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];
      Specified by:
      getUint64OrBuilder in interface FieldConstraintsOrBuilder
    • hasSint32

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

      public SInt32Rules getSint32()
      .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];
      Specified by:
      getSint32 in interface FieldConstraintsOrBuilder
      Returns:
      The sint32.
    • getSint32OrBuilder

      public SInt32RulesOrBuilder getSint32OrBuilder()
      .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];
      Specified by:
      getSint32OrBuilder in interface FieldConstraintsOrBuilder
    • hasSint64

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

      public SInt64Rules getSint64()
      .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];
      Specified by:
      getSint64 in interface FieldConstraintsOrBuilder
      Returns:
      The sint64.
    • getSint64OrBuilder

      public SInt64RulesOrBuilder getSint64OrBuilder()
      .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];
      Specified by:
      getSint64OrBuilder in interface FieldConstraintsOrBuilder
    • hasFixed32

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

      public Fixed32Rules getFixed32()
      .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];
      Specified by:
      getFixed32 in interface FieldConstraintsOrBuilder
      Returns:
      The fixed32.
    • getFixed32OrBuilder

      public Fixed32RulesOrBuilder getFixed32OrBuilder()
      .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];
      Specified by:
      getFixed32OrBuilder in interface FieldConstraintsOrBuilder
    • hasFixed64

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

      public Fixed64Rules getFixed64()
      .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];
      Specified by:
      getFixed64 in interface FieldConstraintsOrBuilder
      Returns:
      The fixed64.
    • getFixed64OrBuilder

      public Fixed64RulesOrBuilder getFixed64OrBuilder()
      .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];
      Specified by:
      getFixed64OrBuilder in interface FieldConstraintsOrBuilder
    • hasSfixed32

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

      public SFixed32Rules getSfixed32()
      .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];
      Specified by:
      getSfixed32 in interface FieldConstraintsOrBuilder
      Returns:
      The sfixed32.
    • getSfixed32OrBuilder

      public SFixed32RulesOrBuilder getSfixed32OrBuilder()
      .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];
      Specified by:
      getSfixed32OrBuilder in interface FieldConstraintsOrBuilder
    • hasSfixed64

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

      public SFixed64Rules getSfixed64()
      .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];
      Specified by:
      getSfixed64 in interface FieldConstraintsOrBuilder
      Returns:
      The sfixed64.
    • getSfixed64OrBuilder

      public SFixed64RulesOrBuilder getSfixed64OrBuilder()
      .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];
      Specified by:
      getSfixed64OrBuilder in interface FieldConstraintsOrBuilder
    • hasBool

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

      public BoolRules getBool()
      .buf.validate.BoolRules bool = 13 [json_name = "bool"];
      Specified by:
      getBool in interface FieldConstraintsOrBuilder
      Returns:
      The bool.
    • getBoolOrBuilder

      public BoolRulesOrBuilder getBoolOrBuilder()
      .buf.validate.BoolRules bool = 13 [json_name = "bool"];
      Specified by:
      getBoolOrBuilder in interface FieldConstraintsOrBuilder
    • hasString

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

      public StringRules getString()
      .buf.validate.StringRules string = 14 [json_name = "string"];
      Specified by:
      getString in interface FieldConstraintsOrBuilder
      Returns:
      The string.
    • getStringOrBuilder

      public StringRulesOrBuilder getStringOrBuilder()
      .buf.validate.StringRules string = 14 [json_name = "string"];
      Specified by:
      getStringOrBuilder in interface FieldConstraintsOrBuilder
    • hasBytes

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

      public BytesRules getBytes()
      .buf.validate.BytesRules bytes = 15 [json_name = "bytes"];
      Specified by:
      getBytes in interface FieldConstraintsOrBuilder
      Returns:
      The bytes.
    • getBytesOrBuilder

      public BytesRulesOrBuilder getBytesOrBuilder()
      .buf.validate.BytesRules bytes = 15 [json_name = "bytes"];
      Specified by:
      getBytesOrBuilder in interface FieldConstraintsOrBuilder
    • hasEnum

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

      public EnumRules getEnum()
       Complex Field Types
       
      .buf.validate.EnumRules enum = 16 [json_name = "enum"];
      Specified by:
      getEnum in interface FieldConstraintsOrBuilder
      Returns:
      The enum.
    • getEnumOrBuilder

      public EnumRulesOrBuilder getEnumOrBuilder()
       Complex Field Types
       
      .buf.validate.EnumRules enum = 16 [json_name = "enum"];
      Specified by:
      getEnumOrBuilder in interface FieldConstraintsOrBuilder
    • hasRepeated

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

      public RepeatedRules getRepeated()
      .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];
      Specified by:
      getRepeated in interface FieldConstraintsOrBuilder
      Returns:
      The repeated.
    • getRepeatedOrBuilder

      public RepeatedRulesOrBuilder getRepeatedOrBuilder()
      .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];
      Specified by:
      getRepeatedOrBuilder in interface FieldConstraintsOrBuilder
    • hasMap

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

      public MapRules getMap()
      .buf.validate.MapRules map = 19 [json_name = "map"];
      Specified by:
      getMap in interface FieldConstraintsOrBuilder
      Returns:
      The map.
    • getMapOrBuilder

      public MapRulesOrBuilder getMapOrBuilder()
      .buf.validate.MapRules map = 19 [json_name = "map"];
      Specified by:
      getMapOrBuilder in interface FieldConstraintsOrBuilder
    • hasAny

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

      public AnyRules getAny()
       Well-Known Field Types
       
      .buf.validate.AnyRules any = 20 [json_name = "any"];
      Specified by:
      getAny in interface FieldConstraintsOrBuilder
      Returns:
      The any.
    • getAnyOrBuilder

      public AnyRulesOrBuilder getAnyOrBuilder()
       Well-Known Field Types
       
      .buf.validate.AnyRules any = 20 [json_name = "any"];
      Specified by:
      getAnyOrBuilder in interface FieldConstraintsOrBuilder
    • hasDuration

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

      public DurationRules getDuration()
      .buf.validate.DurationRules duration = 21 [json_name = "duration"];
      Specified by:
      getDuration in interface FieldConstraintsOrBuilder
      Returns:
      The duration.
    • getDurationOrBuilder

      public DurationRulesOrBuilder getDurationOrBuilder()
      .buf.validate.DurationRules duration = 21 [json_name = "duration"];
      Specified by:
      getDurationOrBuilder in interface FieldConstraintsOrBuilder
    • hasTimestamp

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

      public TimestampRules getTimestamp()
      .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];
      Specified by:
      getTimestamp in interface FieldConstraintsOrBuilder
      Returns:
      The timestamp.
    • getTimestampOrBuilder

      public TimestampRulesOrBuilder getTimestampOrBuilder()
      .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];
      Specified by:
      getTimestampOrBuilder in interface FieldConstraintsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FieldConstraints parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FieldConstraints parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FieldConstraints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FieldConstraints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FieldConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FieldConstraints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FieldConstraints parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FieldConstraints parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FieldConstraints parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FieldConstraints parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static FieldConstraints.Builder newBuilder()
    • newBuilder

      public static FieldConstraints.Builder newBuilder(FieldConstraints prototype)
    • toBuilder

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

      protected FieldConstraints.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static FieldConstraints getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FieldConstraints> parser()
    • getParserForType

      public com.google.protobuf.Parser<FieldConstraints> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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