Class Validate.DoubleRules.Builder

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

    public static final class Validate.DoubleRules.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Validate.DoubleRules.Builder>
    implements Validate.DoubleRulesOrBuilder
     DoubleRules describes the constraints applied to `double` values
     
    Protobuf type validate.DoubleRules
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitField0_  
      private double const_  
      private double gt_  
      private double gte_  
      private boolean ignoreEmpty_  
      private com.google.protobuf.Internal.DoubleList in_  
      private double lt_  
      private double lte_  
      private com.google.protobuf.Internal.DoubleList notIn_  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Builder()  
      private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Validate.DoubleRules.Builder addAllIn​(java.lang.Iterable<? extends java.lang.Double> values)
      In specifies that this field must be equal to one of the specified values
      Validate.DoubleRules.Builder addAllNotIn​(java.lang.Iterable<? extends java.lang.Double> values)
      NotIn specifies that this field cannot be equal to one of the specified values
      Validate.DoubleRules.Builder addIn​(double value)
      In specifies that this field must be equal to one of the specified values
      Validate.DoubleRules.Builder addNotIn​(double value)
      NotIn specifies that this field cannot be equal to one of the specified values
      Validate.DoubleRules build()  
      Validate.DoubleRules buildPartial()  
      private void buildPartial0​(Validate.DoubleRules result)  
      Validate.DoubleRules.Builder clear()  
      Validate.DoubleRules.Builder clearConst()
      Const specifies that this field must be exactly the specified value
      Validate.DoubleRules.Builder clearGt()
      Gt specifies that this field must be greater than the specified value, exclusive.
      Validate.DoubleRules.Builder clearGte()
      Gte specifies that this field must be greater than or equal to the specified value, inclusive.
      Validate.DoubleRules.Builder clearIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      Validate.DoubleRules.Builder clearIn()
      In specifies that this field must be equal to one of the specified values
      Validate.DoubleRules.Builder clearLt()
      Lt specifies that this field must be less than the specified value, exclusive
      Validate.DoubleRules.Builder clearLte()
      Lte specifies that this field must be less than or equal to the specified value, inclusive
      Validate.DoubleRules.Builder clearNotIn()
      NotIn specifies that this field cannot be equal to one of the specified values
      private void ensureInIsMutable()  
      private void ensureInIsMutable​(int capacity)  
      private void ensureNotInIsMutable()  
      private void ensureNotInIsMutable​(int capacity)  
      double getConst()
      Const specifies that this field must be exactly the specified value
      Validate.DoubleRules getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      double getGt()
      Gt specifies that this field must be greater than the specified value, exclusive.
      double getGte()
      Gte specifies that this field must be greater than or equal to the specified value, inclusive.
      boolean getIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      double getIn​(int index)
      In specifies that this field must be equal to one of the specified values
      int getInCount()
      In specifies that this field must be equal to one of the specified values
      java.util.List<java.lang.Double> getInList()
      In specifies that this field must be equal to one of the specified values
      double getLt()
      Lt specifies that this field must be less than the specified value, exclusive
      double getLte()
      Lte specifies that this field must be less than or equal to the specified value, inclusive
      double getNotIn​(int index)
      NotIn specifies that this field cannot be equal to one of the specified values
      int getNotInCount()
      NotIn specifies that this field cannot be equal to one of the specified values
      java.util.List<java.lang.Double> getNotInList()
      NotIn specifies that this field cannot be equal to one of the specified values
      boolean hasConst()
      Const specifies that this field must be exactly the specified value
      boolean hasGt()
      Gt specifies that this field must be greater than the specified value, exclusive.
      boolean hasGte()
      Gte specifies that this field must be greater than or equal to the specified value, inclusive.
      boolean hasIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      boolean hasLt()
      Lt specifies that this field must be less than the specified value, exclusive
      boolean hasLte()
      Lte specifies that this field must be less than or equal to the specified value, inclusive
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Validate.DoubleRules.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Validate.DoubleRules.Builder mergeFrom​(com.google.protobuf.Message other)  
      Validate.DoubleRules.Builder mergeFrom​(Validate.DoubleRules other)  
      Validate.DoubleRules.Builder setConst​(double value)
      Const specifies that this field must be exactly the specified value
      Validate.DoubleRules.Builder setGt​(double value)
      Gt specifies that this field must be greater than the specified value, exclusive.
      Validate.DoubleRules.Builder setGte​(double value)
      Gte specifies that this field must be greater than or equal to the specified value, inclusive.
      Validate.DoubleRules.Builder setIgnoreEmpty​(boolean value)
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      Validate.DoubleRules.Builder setIn​(int index, double value)
      In specifies that this field must be equal to one of the specified values
      Validate.DoubleRules.Builder setLt​(double value)
      Lt specifies that this field must be less than the specified value, exclusive
      Validate.DoubleRules.Builder setLte​(double value)
      Lte specifies that this field must be less than or equal to the specified value, inclusive
      Validate.DoubleRules.Builder setNotIn​(int index, double value)
      NotIn specifies that this field cannot be equal to one of the specified values
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
    • Field Detail

      • bitField0_

        private int bitField0_
      • const_

        private double const_
      • lt_

        private double lt_
      • lte_

        private double lte_
      • gt_

        private double gt_
      • gte_

        private double gte_
      • in_

        private com.google.protobuf.Internal.DoubleList in_
      • notIn_

        private com.google.protobuf.Internal.DoubleList notIn_
      • ignoreEmpty_

        private boolean ignoreEmpty_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • 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<Validate.DoubleRules.Builder>
      • clear

        public Validate.DoubleRules.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<Validate.DoubleRules.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<Validate.DoubleRules.Builder>
      • getDefaultInstanceForType

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

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

        public Validate.DoubleRules buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Validate.DoubleRules.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<Validate.DoubleRules.Builder>
        Throws:
        java.io.IOException
      • hasConst

        public boolean hasConst()
         Const specifies that this field must be exactly the specified value
         
        optional double const = 1;
        Specified by:
        hasConst in interface Validate.DoubleRulesOrBuilder
        Returns:
        Whether the const field is set.
      • getConst

        public double getConst()
         Const specifies that this field must be exactly the specified value
         
        optional double const = 1;
        Specified by:
        getConst in interface Validate.DoubleRulesOrBuilder
        Returns:
        The const.
      • setConst

        public Validate.DoubleRules.Builder setConst​(double value)
         Const specifies that this field must be exactly the specified value
         
        optional double const = 1;
        Parameters:
        value - The const to set.
        Returns:
        This builder for chaining.
      • clearConst

        public Validate.DoubleRules.Builder clearConst()
         Const specifies that this field must be exactly the specified value
         
        optional double const = 1;
        Returns:
        This builder for chaining.
      • hasLt

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

        public double getLt()
         Lt specifies that this field must be less than the specified value,
         exclusive
         
        optional double lt = 2;
        Specified by:
        getLt in interface Validate.DoubleRulesOrBuilder
        Returns:
        The lt.
      • setLt

        public Validate.DoubleRules.Builder setLt​(double value)
         Lt specifies that this field must be less than the specified value,
         exclusive
         
        optional double lt = 2;
        Parameters:
        value - The lt to set.
        Returns:
        This builder for chaining.
      • clearLt

        public Validate.DoubleRules.Builder clearLt()
         Lt specifies that this field must be less than the specified value,
         exclusive
         
        optional double lt = 2;
        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 double lte = 3;
        Specified by:
        hasLte in interface Validate.DoubleRulesOrBuilder
        Returns:
        Whether the lte field is set.
      • getLte

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

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

        public Validate.DoubleRules.Builder clearLte()
         Lte specifies that this field must be less than or equal to the
         specified value, inclusive
         
        optional double lte = 3;
        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 double gt = 4;
        Specified by:
        hasGt in interface Validate.DoubleRulesOrBuilder
        Returns:
        Whether the gt field is set.
      • getGt

        public double 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 double gt = 4;
        Specified by:
        getGt in interface Validate.DoubleRulesOrBuilder
        Returns:
        The gt.
      • setGt

        public Validate.DoubleRules.Builder setGt​(double 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 double gt = 4;
        Parameters:
        value - The gt to set.
        Returns:
        This builder for chaining.
      • clearGt

        public Validate.DoubleRules.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 double gt = 4;
        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 double gte = 5;
        Specified by:
        hasGte in interface Validate.DoubleRulesOrBuilder
        Returns:
        Whether the gte field is set.
      • getGte

        public double 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 double gte = 5;
        Specified by:
        getGte in interface Validate.DoubleRulesOrBuilder
        Returns:
        The gte.
      • setGte

        public Validate.DoubleRules.Builder setGte​(double 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 double gte = 5;
        Parameters:
        value - The gte to set.
        Returns:
        This builder for chaining.
      • clearGte

        public Validate.DoubleRules.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 double gte = 5;
        Returns:
        This builder for chaining.
      • ensureInIsMutable

        private void ensureInIsMutable()
      • ensureInIsMutable

        private void ensureInIsMutable​(int capacity)
      • getInList

        public java.util.List<java.lang.Double> getInList()
         In specifies that this field must be equal to one of the specified
         values
         
        repeated double in = 6;
        Specified by:
        getInList in interface Validate.DoubleRulesOrBuilder
        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 double in = 6;
        Specified by:
        getInCount in interface Validate.DoubleRulesOrBuilder
        Returns:
        The count of in.
      • getIn

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

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

        public Validate.DoubleRules.Builder addIn​(double value)
         In specifies that this field must be equal to one of the specified
         values
         
        repeated double in = 6;
        Parameters:
        value - The in to add.
        Returns:
        This builder for chaining.
      • addAllIn

        public Validate.DoubleRules.Builder addAllIn​(java.lang.Iterable<? extends java.lang.Double> values)
         In specifies that this field must be equal to one of the specified
         values
         
        repeated double in = 6;
        Parameters:
        values - The in to add.
        Returns:
        This builder for chaining.
      • clearIn

        public Validate.DoubleRules.Builder clearIn()
         In specifies that this field must be equal to one of the specified
         values
         
        repeated double in = 6;
        Returns:
        This builder for chaining.
      • ensureNotInIsMutable

        private void ensureNotInIsMutable()
      • ensureNotInIsMutable

        private void ensureNotInIsMutable​(int capacity)
      • getNotInList

        public java.util.List<java.lang.Double> getNotInList()
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated double not_in = 7;
        Specified by:
        getNotInList in interface Validate.DoubleRulesOrBuilder
        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 double not_in = 7;
        Specified by:
        getNotInCount in interface Validate.DoubleRulesOrBuilder
        Returns:
        The count of notIn.
      • getNotIn

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

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

        public Validate.DoubleRules.Builder addNotIn​(double value)
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated double not_in = 7;
        Parameters:
        value - The notIn to add.
        Returns:
        This builder for chaining.
      • addAllNotIn

        public Validate.DoubleRules.Builder addAllNotIn​(java.lang.Iterable<? extends java.lang.Double> values)
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated double not_in = 7;
        Parameters:
        values - The notIn to add.
        Returns:
        This builder for chaining.
      • clearNotIn

        public Validate.DoubleRules.Builder clearNotIn()
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated double not_in = 7;
        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;
        Specified by:
        hasIgnoreEmpty in interface Validate.DoubleRulesOrBuilder
        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;
        Specified by:
        getIgnoreEmpty in interface Validate.DoubleRulesOrBuilder
        Returns:
        The ignoreEmpty.
      • setIgnoreEmpty

        public Validate.DoubleRules.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;
        Parameters:
        value - The ignoreEmpty to set.
        Returns:
        This builder for chaining.
      • clearIgnoreEmpty

        public Validate.DoubleRules.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;
        Returns:
        This builder for chaining.