Package com.validate

Class FloatRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
com.validate.FloatRules.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FloatRulesOrBuilder, Cloneable
Enclosing class:
FloatRules

public static final class FloatRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder> implements FloatRulesOrBuilder
 FloatRules describes the constraints applied to `float` values
 
Protobuf type validate.FloatRules
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllIn(Iterable<? extends Float> values)
    In specifies that this field must be equal to one of the specified values
    addAllNotIn(Iterable<? extends Float> values)
    NotIn specifies that this field cannot be equal to one of the specified values
    addIn(float value)
    In specifies that this field must be equal to one of the specified values
    addNotIn(float value)
    NotIn specifies that this field cannot be equal to one of the specified values
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    Const specifies that this field must be exactly the specified value
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    Gt specifies that this field must be greater than the specified value, exclusive.
    Gte specifies that this field must be greater than or equal to the specified value, inclusive.
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    In specifies that this field must be equal to one of the specified values
    Lt specifies that this field must be less than the specified value, exclusive
    Lte specifies that this field must be less than or equal to the specified value, inclusive
    NotIn specifies that this field cannot be equal to one of the specified values
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
     
    float
    Const specifies that this field must be exactly the specified value
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    float
    Gt specifies that this field must be greater than the specified value, exclusive.
    float
    Gte specifies that this field must be greater than or equal to the specified value, inclusive.
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    float
    getIn(int index)
    In specifies that this field must be equal to one of the specified values
    int
    In specifies that this field must be equal to one of the specified values
    In specifies that this field must be equal to one of the specified values
    float
    Lt specifies that this field must be less than the specified value, exclusive
    float
    Lte specifies that this field must be less than or equal to the specified value, inclusive
    float
    getNotIn(int index)
    NotIn specifies that this field cannot be equal to one of the specified values
    int
    NotIn specifies that this field cannot be equal to one of the specified values
    NotIn specifies that this field cannot be equal to one of the specified values
    boolean
    Const specifies that this field must be exactly the specified value
    boolean
    Gt specifies that this field must be greater than the specified value, exclusive.
    boolean
    Gte specifies that this field must be greater than or equal to the specified value, inclusive.
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    boolean
    Lt specifies that this field must be less than the specified value, exclusive
    boolean
    Lte specifies that this field must be less than or equal to the specified value, inclusive
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setConst(float value)
    Const specifies that this field must be exactly the specified value
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setGt(float value)
    Gt specifies that this field must be greater than the specified value, exclusive.
    setGte(float value)
    Gte specifies that this field must be greater than or equal to the specified value, inclusive.
    setIgnoreEmpty(boolean value)
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    setIn(int index, float value)
    In specifies that this field must be equal to one of the specified values
    setLt(float value)
    Lt specifies that this field must be less than the specified value, exclusive
    setLte(float value)
    Lte specifies that this field must be less than or equal to the specified value, inclusive
    setNotIn(int index, float value)
    NotIn specifies that this field cannot be equal to one of the specified values
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.Builder<FloatRules.Builder>
    • clear

      public FloatRules.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.GeneratedMessageV3.Builder<FloatRules.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.GeneratedMessageV3.Builder<FloatRules.Builder>
    • getDefaultInstanceForType

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

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

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

      public FloatRules.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • setField

      public FloatRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • clearField

      public FloatRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • clearOneof

      public FloatRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • setRepeatedField

      public FloatRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • addRepeatedField

      public FloatRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • mergeFrom

      public FloatRules.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<FloatRules.Builder>
    • mergeFrom

      public FloatRules.Builder mergeFrom(FloatRules other)
    • isInitialized

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

      public FloatRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<FloatRules.Builder>
      Throws:
      IOException
    • hasConst

      public boolean hasConst()
       Const specifies that this field must be exactly the specified value
       
      optional float const = 1 [json_name = "const"];
      Specified by:
      hasConst in interface FloatRulesOrBuilder
      Returns:
      Whether the const field is set.
    • getConst

      public float getConst()
       Const specifies that this field must be exactly the specified value
       
      optional float const = 1 [json_name = "const"];
      Specified by:
      getConst in interface FloatRulesOrBuilder
      Returns:
      The const.
    • setConst

      public FloatRules.Builder setConst(float value)
       Const specifies that this field must be exactly the specified value
       
      optional float const = 1 [json_name = "const"];
      Parameters:
      value - The const to set.
      Returns:
      This builder for chaining.
    • clearConst

      public FloatRules.Builder clearConst()
       Const specifies that this field must be exactly the specified value
       
      optional float const = 1 [json_name = "const"];
      Returns:
      This builder for chaining.
    • hasLt

      public boolean hasLt()
       Lt specifies that this field must be less than the specified value,
       exclusive
       
      optional float lt = 2 [json_name = "lt"];
      Specified by:
      hasLt in interface FloatRulesOrBuilder
      Returns:
      Whether the lt field is set.
    • getLt

      public float getLt()
       Lt specifies that this field must be less than the specified value,
       exclusive
       
      optional float lt = 2 [json_name = "lt"];
      Specified by:
      getLt in interface FloatRulesOrBuilder
      Returns:
      The lt.
    • setLt

      public FloatRules.Builder setLt(float value)
       Lt specifies that this field must be less than the specified value,
       exclusive
       
      optional float lt = 2 [json_name = "lt"];
      Parameters:
      value - The lt to set.
      Returns:
      This builder for chaining.
    • clearLt

      public FloatRules.Builder clearLt()
       Lt specifies that this field must be less than the specified value,
       exclusive
       
      optional float lt = 2 [json_name = "lt"];
      Returns:
      This builder for chaining.
    • hasLte

      public boolean hasLte()
       Lte specifies that this field must be less than or equal to the
       specified value, inclusive
       
      optional float lte = 3 [json_name = "lte"];
      Specified by:
      hasLte in interface FloatRulesOrBuilder
      Returns:
      Whether the lte field is set.
    • getLte

      public float getLte()
       Lte specifies that this field must be less than or equal to the
       specified value, inclusive
       
      optional float lte = 3 [json_name = "lte"];
      Specified by:
      getLte in interface FloatRulesOrBuilder
      Returns:
      The lte.
    • setLte

      public FloatRules.Builder setLte(float value)
       Lte specifies that this field must be less than or equal to the
       specified value, inclusive
       
      optional float lte = 3 [json_name = "lte"];
      Parameters:
      value - The lte to set.
      Returns:
      This builder for chaining.
    • clearLte

      public FloatRules.Builder clearLte()
       Lte specifies that this field must be less than or equal to the
       specified value, inclusive
       
      optional float lte = 3 [json_name = "lte"];
      Returns:
      This builder for chaining.
    • hasGt

      public boolean hasGt()
       Gt specifies that this field must be greater than the specified value,
       exclusive. If the value of Gt is larger than a specified Lt or Lte, the
       range is reversed.
       
      optional float gt = 4 [json_name = "gt"];
      Specified by:
      hasGt in interface FloatRulesOrBuilder
      Returns:
      Whether the gt field is set.
    • getGt

      public float getGt()
       Gt specifies that this field must be greater than the specified value,
       exclusive. If the value of Gt is larger than a specified Lt or Lte, the
       range is reversed.
       
      optional float gt = 4 [json_name = "gt"];
      Specified by:
      getGt in interface FloatRulesOrBuilder
      Returns:
      The gt.
    • setGt

      public FloatRules.Builder setGt(float value)
       Gt specifies that this field must be greater than the specified value,
       exclusive. If the value of Gt is larger than a specified Lt or Lte, the
       range is reversed.
       
      optional float gt = 4 [json_name = "gt"];
      Parameters:
      value - The gt to set.
      Returns:
      This builder for chaining.
    • clearGt

      public FloatRules.Builder clearGt()
       Gt specifies that this field must be greater than the specified value,
       exclusive. If the value of Gt is larger than a specified Lt or Lte, the
       range is reversed.
       
      optional float gt = 4 [json_name = "gt"];
      Returns:
      This builder for chaining.
    • hasGte

      public boolean hasGte()
       Gte specifies that this field must be greater than or equal to the
       specified value, inclusive. If the value of Gte is larger than a
       specified Lt or Lte, the range is reversed.
       
      optional float gte = 5 [json_name = "gte"];
      Specified by:
      hasGte in interface FloatRulesOrBuilder
      Returns:
      Whether the gte field is set.
    • getGte

      public float getGte()
       Gte specifies that this field must be greater than or equal to the
       specified value, inclusive. If the value of Gte is larger than a
       specified Lt or Lte, the range is reversed.
       
      optional float gte = 5 [json_name = "gte"];
      Specified by:
      getGte in interface FloatRulesOrBuilder
      Returns:
      The gte.
    • setGte

      public FloatRules.Builder setGte(float value)
       Gte specifies that this field must be greater than or equal to the
       specified value, inclusive. If the value of Gte is larger than a
       specified Lt or Lte, the range is reversed.
       
      optional float gte = 5 [json_name = "gte"];
      Parameters:
      value - The gte to set.
      Returns:
      This builder for chaining.
    • clearGte

      public FloatRules.Builder clearGte()
       Gte specifies that this field must be greater than or equal to the
       specified value, inclusive. If the value of Gte is larger than a
       specified Lt or Lte, the range is reversed.
       
      optional float gte = 5 [json_name = "gte"];
      Returns:
      This builder for chaining.
    • getInList

      public List<Float> getInList()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Specified by:
      getInList in interface FloatRulesOrBuilder
      Returns:
      A list containing the in.
    • getInCount

      public int getInCount()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Specified by:
      getInCount in interface FloatRulesOrBuilder
      Returns:
      The count of in.
    • getIn

      public float getIn(int index)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Specified by:
      getIn in interface FloatRulesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The in at the given index.
    • setIn

      public FloatRules.Builder setIn(int index, float value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Parameters:
      index - The index to set the value at.
      value - The in to set.
      Returns:
      This builder for chaining.
    • addIn

      public FloatRules.Builder addIn(float value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Parameters:
      value - The in to add.
      Returns:
      This builder for chaining.
    • addAllIn

      public FloatRules.Builder addAllIn(Iterable<? extends Float> values)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Parameters:
      values - The in to add.
      Returns:
      This builder for chaining.
    • clearIn

      public FloatRules.Builder clearIn()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated float in = 6 [json_name = "in"];
      Returns:
      This builder for chaining.
    • getNotInList

      public List<Float> getNotInList()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Specified by:
      getNotInList in interface FloatRulesOrBuilder
      Returns:
      A list containing the notIn.
    • getNotInCount

      public int getNotInCount()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Specified by:
      getNotInCount in interface FloatRulesOrBuilder
      Returns:
      The count of notIn.
    • getNotIn

      public float getNotIn(int index)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Specified by:
      getNotIn in interface FloatRulesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notIn at the given index.
    • setNotIn

      public FloatRules.Builder setNotIn(int index, float value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Parameters:
      index - The index to set the value at.
      value - The notIn to set.
      Returns:
      This builder for chaining.
    • addNotIn

      public FloatRules.Builder addNotIn(float value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Parameters:
      value - The notIn to add.
      Returns:
      This builder for chaining.
    • addAllNotIn

      public FloatRules.Builder addAllNotIn(Iterable<? extends Float> values)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Parameters:
      values - The notIn to add.
      Returns:
      This builder for chaining.
    • clearNotIn

      public FloatRules.Builder clearNotIn()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated float not_in = 7 [json_name = "notIn"];
      Returns:
      This builder for chaining.
    • hasIgnoreEmpty

      public boolean hasIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 8 [json_name = "ignoreEmpty"];
      Specified by:
      hasIgnoreEmpty in interface FloatRulesOrBuilder
      Returns:
      Whether the ignoreEmpty field is set.
    • getIgnoreEmpty

      public boolean getIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 8 [json_name = "ignoreEmpty"];
      Specified by:
      getIgnoreEmpty in interface FloatRulesOrBuilder
      Returns:
      The ignoreEmpty.
    • setIgnoreEmpty

      public FloatRules.Builder setIgnoreEmpty(boolean value)
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 8 [json_name = "ignoreEmpty"];
      Parameters:
      value - The ignoreEmpty to set.
      Returns:
      This builder for chaining.
    • clearIgnoreEmpty

      public FloatRules.Builder clearIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 8 [json_name = "ignoreEmpty"];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final FloatRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>
    • mergeUnknownFields

      public final FloatRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>