Package com.validate

Class FieldRules

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.validate.FieldRules
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FieldRulesOrBuilder, Serializable

public final class FieldRules extends com.google.protobuf.GeneratedMessageV3 implements FieldRulesOrBuilder
 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 validate.FieldRules
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 FieldRules.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface FieldRulesOrBuilder
    • hasMessage

      public boolean hasMessage()
      optional .validate.MessageRules message = 17 [json_name = "message"];
      Specified by:
      hasMessage in interface FieldRulesOrBuilder
      Returns:
      Whether the message field is set.
    • getMessage

      public MessageRules getMessage()
      optional .validate.MessageRules message = 17 [json_name = "message"];
      Specified by:
      getMessage in interface FieldRulesOrBuilder
      Returns:
      The message.
    • getMessageOrBuilder

      public MessageRulesOrBuilder getMessageOrBuilder()
      optional .validate.MessageRules message = 17 [json_name = "message"];
      Specified by:
      getMessageOrBuilder in interface FieldRulesOrBuilder
    • hasFloat

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public TimestampRulesOrBuilder getTimestampOrBuilder()
      .validate.TimestampRules timestamp = 22 [json_name = "timestamp"];
      Specified by:
      getTimestampOrBuilder in interface FieldRulesOrBuilder
    • 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 FieldRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static FieldRules.Builder newBuilder()
    • newBuilder

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

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

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

      public static FieldRules getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<FieldRules> 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 FieldRules getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder