public static final class FloatRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder> implements FloatRulesOrBuilder
FloatRules describes the constraints applied to `float` values. These rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.Protobuf type
buf.validate.FloatRules| Modifier and Type | Method and Description |
|---|---|
FloatRules.Builder |
addAllIn(Iterable<? extends Float> values)
`in` requires the field value to be equal to one of the specified values.
|
FloatRules.Builder |
addAllNotIn(Iterable<? extends Float> values)
`in` requires the field value to not be equal to any of the specified
values.
|
FloatRules.Builder |
addIn(float value)
`in` requires the field value to be equal to one of the specified values.
|
FloatRules.Builder |
addNotIn(float value)
`in` requires the field value to not be equal to any of the specified
values.
|
FloatRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FloatRules |
build() |
FloatRules |
buildPartial() |
FloatRules.Builder |
clear() |
FloatRules.Builder |
clearConst()
`const` requires the field value to exactly match the specified value.
|
FloatRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FloatRules.Builder |
clearFinite()
`finite` requires the field value to be finite.
|
FloatRules.Builder |
clearGreaterThan() |
FloatRules.Builder |
clearGt()
`gt` requires the field value to be greater than the specified value
(exclusive).
|
FloatRules.Builder |
clearGte()
`gte` requires the field value to be greater than or equal to the specified
value (exclusive).
|
FloatRules.Builder |
clearIn()
`in` requires the field value to be equal to one of the specified values.
|
FloatRules.Builder |
clearLessThan() |
FloatRules.Builder |
clearLt()
`lt` requires the field value to be less than the specified value (field <
value).
|
FloatRules.Builder |
clearLte()
`lte` requires the field value to be less than or equal to the specified
value (field <= value).
|
FloatRules.Builder |
clearNotIn()
`in` requires the field value to not be equal to any of the specified
values.
|
FloatRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FloatRules.Builder |
clone() |
float |
getConst()
`const` requires the field value to exactly match the specified value.
|
FloatRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getFinite()
`finite` requires the field value to be finite.
|
FloatRules.GreaterThanCase |
getGreaterThanCase() |
float |
getGt()
`gt` requires the field value to be greater than the specified value
(exclusive).
|
float |
getGte()
`gte` requires the field value to be greater than or equal to the specified
value (exclusive).
|
float |
getIn(int index)
`in` requires the field value to be equal to one of the specified values.
|
int |
getInCount()
`in` requires the field value to be equal to one of the specified values.
|
List<Float> |
getInList()
`in` requires the field value to be equal to one of the specified values.
|
FloatRules.LessThanCase |
getLessThanCase() |
float |
getLt()
`lt` requires the field value to be less than the specified value (field <
value).
|
float |
getLte()
`lte` requires the field value to be less than or equal to the specified
value (field <= value).
|
float |
getNotIn(int index)
`in` requires the field value to not be equal to any of the specified
values.
|
int |
getNotInCount()
`in` requires the field value to not be equal to any of the specified
values.
|
List<Float> |
getNotInList()
`in` requires the field value to not be equal to any of the specified
values.
|
boolean |
hasConst()
`const` requires the field value to exactly match the specified value.
|
boolean |
hasGt()
`gt` requires the field value to be greater than the specified value
(exclusive).
|
boolean |
hasGte()
`gte` requires the field value to be greater than or equal to the specified
value (exclusive).
|
boolean |
hasLt()
`lt` requires the field value to be less than the specified value (field <
value).
|
boolean |
hasLte()
`lte` requires the field value to be less than or equal to the specified
value (field <= value).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
FloatRules.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FloatRules.Builder |
setConst(float value)
`const` requires the field value to exactly match the specified value.
|
FloatRules.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FloatRules.Builder |
setFinite(boolean value)
`finite` requires the field value to be finite.
|
FloatRules.Builder |
setGt(float value)
`gt` requires the field value to be greater than the specified value
(exclusive).
|
FloatRules.Builder |
setGte(float value)
`gte` requires the field value to be greater than or equal to the specified
value (exclusive).
|
FloatRules.Builder |
setIn(int index,
float value)
`in` requires the field value to be equal to one of the specified values.
|
FloatRules.Builder |
setLt(float value)
`lt` requires the field value to be less than the specified value (field <
value).
|
FloatRules.Builder |
setLte(float value)
`lte` requires the field value to be less than or equal to the specified
value (field <= value).
|
FloatRules.Builder |
setNotIn(int index,
float value)
`in` requires the field value to not be equal to any of the specified
values.
|
FloatRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FloatRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, isInitialized, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FloatRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FloatRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FloatRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public FloatRules.LessThanCase getLessThanCase()
getLessThanCase in interface FloatRulesOrBuilderpublic FloatRules.Builder clearLessThan()
public FloatRules.GreaterThanCase getGreaterThanCase()
getGreaterThanCase in interface FloatRulesOrBuilderpublic FloatRules.Builder clearGreaterThan()
public boolean hasConst()
`const` requires the field value to exactly match the specified value. If
the field value doesn't match, an error message is generated.
```proto
message MyFloat {
// value must equal 42.0
float value = 1 [(buf.validate.field).float.const = 42.0];
}
```
optional float const = 1 [json_name = "const", (.buf.validate.priv.field) = { ... }hasConst in interface FloatRulesOrBuilderpublic float getConst()
`const` requires the field value to exactly match the specified value. If
the field value doesn't match, an error message is generated.
```proto
message MyFloat {
// value must equal 42.0
float value = 1 [(buf.validate.field).float.const = 42.0];
}
```
optional float const = 1 [json_name = "const", (.buf.validate.priv.field) = { ... }getConst in interface FloatRulesOrBuilderpublic FloatRules.Builder setConst(float value)
`const` requires the field value to exactly match the specified value. If
the field value doesn't match, an error message is generated.
```proto
message MyFloat {
// value must equal 42.0
float value = 1 [(buf.validate.field).float.const = 42.0];
}
```
optional float const = 1 [json_name = "const", (.buf.validate.priv.field) = { ... }value - The const to set.public FloatRules.Builder clearConst()
`const` requires the field value to exactly match the specified value. If
the field value doesn't match, an error message is generated.
```proto
message MyFloat {
// value must equal 42.0
float value = 1 [(buf.validate.field).float.const = 42.0];
}
```
optional float const = 1 [json_name = "const", (.buf.validate.priv.field) = { ... }public boolean hasLt()
`lt` requires the field value to be less than the specified value (field <
value). If the field value is equal to or greater than the specified value,
an error message is generated.
```proto
message MyFloat {
// value must be less than 10.0
float value = 1 [(buf.validate.field).float.lt = 10.0];
}
```
float lt = 2 [json_name = "lt", (.buf.validate.priv.field) = { ... }hasLt in interface FloatRulesOrBuilderpublic float getLt()
`lt` requires the field value to be less than the specified value (field <
value). If the field value is equal to or greater than the specified value,
an error message is generated.
```proto
message MyFloat {
// value must be less than 10.0
float value = 1 [(buf.validate.field).float.lt = 10.0];
}
```
float lt = 2 [json_name = "lt", (.buf.validate.priv.field) = { ... }getLt in interface FloatRulesOrBuilderpublic FloatRules.Builder setLt(float value)
`lt` requires the field value to be less than the specified value (field <
value). If the field value is equal to or greater than the specified value,
an error message is generated.
```proto
message MyFloat {
// value must be less than 10.0
float value = 1 [(buf.validate.field).float.lt = 10.0];
}
```
float lt = 2 [json_name = "lt", (.buf.validate.priv.field) = { ... }value - The lt to set.public FloatRules.Builder clearLt()
`lt` requires the field value to be less than the specified value (field <
value). If the field value is equal to or greater than the specified value,
an error message is generated.
```proto
message MyFloat {
// value must be less than 10.0
float value = 1 [(buf.validate.field).float.lt = 10.0];
}
```
float lt = 2 [json_name = "lt", (.buf.validate.priv.field) = { ... }public boolean hasLte()
`lte` requires the field value to be less than or equal to the specified
value (field <= value). If the field value is greater than the specified
value, an error message is generated.
```proto
message MyFloat {
// value must be less than or equal to 10.0
float value = 1 [(buf.validate.field).float.lte = 10.0];
}
```
float lte = 3 [json_name = "lte", (.buf.validate.priv.field) = { ... }hasLte in interface FloatRulesOrBuilderpublic float getLte()
`lte` requires the field value to be less than or equal to the specified
value (field <= value). If the field value is greater than the specified
value, an error message is generated.
```proto
message MyFloat {
// value must be less than or equal to 10.0
float value = 1 [(buf.validate.field).float.lte = 10.0];
}
```
float lte = 3 [json_name = "lte", (.buf.validate.priv.field) = { ... }getLte in interface FloatRulesOrBuilderpublic FloatRules.Builder setLte(float value)
`lte` requires the field value to be less than or equal to the specified
value (field <= value). If the field value is greater than the specified
value, an error message is generated.
```proto
message MyFloat {
// value must be less than or equal to 10.0
float value = 1 [(buf.validate.field).float.lte = 10.0];
}
```
float lte = 3 [json_name = "lte", (.buf.validate.priv.field) = { ... }value - The lte to set.public FloatRules.Builder clearLte()
`lte` requires the field value to be less than or equal to the specified
value (field <= value). If the field value is greater than the specified
value, an error message is generated.
```proto
message MyFloat {
// value must be less than or equal to 10.0
float value = 1 [(buf.validate.field).float.lte = 10.0];
}
```
float lte = 3 [json_name = "lte", (.buf.validate.priv.field) = { ... }public boolean hasGt()
`gt` requires the field value to be greater than the specified value
(exclusive). If the value of `gt` is larger than a specified `lt` or
`lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than 5.0 [float.gt]
float value = 1 [(buf.validate.field).float.gt = 5.0];
// value must be greater than 5 and less than 10.0 [float.gt_lt]
float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
// value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
}
```
float gt = 4 [json_name = "gt", (.buf.validate.priv.field) = { ... }hasGt in interface FloatRulesOrBuilderpublic float getGt()
`gt` requires the field value to be greater than the specified value
(exclusive). If the value of `gt` is larger than a specified `lt` or
`lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than 5.0 [float.gt]
float value = 1 [(buf.validate.field).float.gt = 5.0];
// value must be greater than 5 and less than 10.0 [float.gt_lt]
float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
// value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
}
```
float gt = 4 [json_name = "gt", (.buf.validate.priv.field) = { ... }getGt in interface FloatRulesOrBuilderpublic FloatRules.Builder setGt(float value)
`gt` requires the field value to be greater than the specified value
(exclusive). If the value of `gt` is larger than a specified `lt` or
`lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than 5.0 [float.gt]
float value = 1 [(buf.validate.field).float.gt = 5.0];
// value must be greater than 5 and less than 10.0 [float.gt_lt]
float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
// value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
}
```
float gt = 4 [json_name = "gt", (.buf.validate.priv.field) = { ... }value - The gt to set.public FloatRules.Builder clearGt()
`gt` requires the field value to be greater than the specified value
(exclusive). If the value of `gt` is larger than a specified `lt` or
`lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than 5.0 [float.gt]
float value = 1 [(buf.validate.field).float.gt = 5.0];
// value must be greater than 5 and less than 10.0 [float.gt_lt]
float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
// value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
}
```
float gt = 4 [json_name = "gt", (.buf.validate.priv.field) = { ... }public boolean hasGte()
`gte` requires the field value to be greater than or equal to the specified
value (exclusive). If the value of `gte` is larger than a specified `lt`
or `lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than or equal to 5.0 [float.gte]
float value = 1 [(buf.validate.field).float.gte = 5.0];
// value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
// value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
}
```
float gte = 5 [json_name = "gte", (.buf.validate.priv.field) = { ... }hasGte in interface FloatRulesOrBuilderpublic float getGte()
`gte` requires the field value to be greater than or equal to the specified
value (exclusive). If the value of `gte` is larger than a specified `lt`
or `lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than or equal to 5.0 [float.gte]
float value = 1 [(buf.validate.field).float.gte = 5.0];
// value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
// value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
}
```
float gte = 5 [json_name = "gte", (.buf.validate.priv.field) = { ... }getGte in interface FloatRulesOrBuilderpublic FloatRules.Builder setGte(float value)
`gte` requires the field value to be greater than or equal to the specified
value (exclusive). If the value of `gte` is larger than a specified `lt`
or `lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than or equal to 5.0 [float.gte]
float value = 1 [(buf.validate.field).float.gte = 5.0];
// value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
// value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
}
```
float gte = 5 [json_name = "gte", (.buf.validate.priv.field) = { ... }value - The gte to set.public FloatRules.Builder clearGte()
`gte` requires the field value to be greater than or equal to the specified
value (exclusive). If the value of `gte` is larger than a specified `lt`
or `lte`, the range is reversed, and the field value must be outside the
specified range. If the field value doesn't meet the required conditions,
an error message is generated.
```proto
message MyFloat {
// value must be greater than or equal to 5.0 [float.gte]
float value = 1 [(buf.validate.field).float.gte = 5.0];
// value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
// value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
}
```
float gte = 5 [json_name = "gte", (.buf.validate.priv.field) = { ... }public List<Float> getInList()
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }getInList in interface FloatRulesOrBuilderpublic int getInCount()
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }getInCount in interface FloatRulesOrBuilderpublic float getIn(int index)
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }getIn in interface FloatRulesOrBuilderindex - The index of the element to return.public FloatRules.Builder setIn(int index, float value)
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }index - The index to set the value at.value - The in to set.public FloatRules.Builder addIn(float value)
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }value - The in to add.public FloatRules.Builder addAllIn(Iterable<? extends Float> values)
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }values - The in to add.public FloatRules.Builder clearIn()
`in` requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message
is generated.
```proto
message MyFloat {
// value must be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
}
```
repeated float in = 6 [json_name = "in", (.buf.validate.priv.field) = { ... }public List<Float> getNotInList()
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }getNotInList in interface FloatRulesOrBuilderpublic int getNotInCount()
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }getNotInCount in interface FloatRulesOrBuilderpublic float getNotIn(int index)
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }getNotIn in interface FloatRulesOrBuilderindex - The index of the element to return.public FloatRules.Builder setNotIn(int index, float value)
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }index - The index to set the value at.value - The notIn to set.public FloatRules.Builder addNotIn(float value)
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }value - The notIn to add.public FloatRules.Builder addAllNotIn(Iterable<? extends Float> values)
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }values - The notIn to add.public FloatRules.Builder clearNotIn()
`in` requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
```proto
message MyFloat {
// value must not be in list [1.0, 2.0, 3.0]
repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
}
```
repeated float not_in = 7 [json_name = "notIn", (.buf.validate.priv.field) = { ... }public boolean getFinite()
`finite` requires the field value to be finite. If the field value is infinite or NaN, an error message is generated.
bool finite = 8 [json_name = "finite", (.buf.validate.priv.field) = { ... }getFinite in interface FloatRulesOrBuilderpublic FloatRules.Builder setFinite(boolean value)
`finite` requires the field value to be finite. If the field value is infinite or NaN, an error message is generated.
bool finite = 8 [json_name = "finite", (.buf.validate.priv.field) = { ... }value - The finite to set.public FloatRules.Builder clearFinite()
`finite` requires the field value to be finite. If the field value is infinite or NaN, an error message is generated.
bool finite = 8 [json_name = "finite", (.buf.validate.priv.field) = { ... }public final FloatRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>public final FloatRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FloatRules.Builder>Copyright © 2024. All rights reserved.