Package build.buf.validate
Interface DurationRulesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DurationRules,DurationRules.Builder
public interface DurationRulesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.DurationgetConst()`const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.com.google.protobuf.DurationOrBuildergetConstOrBuilder()`const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.DurationRules.GreaterThanCasegetGreaterThanCase()com.google.protobuf.DurationgetGt()`gt` requires the duration field value to be greater than the specified value (exclusive).com.google.protobuf.DurationgetGte()`gte` requires the duration field value to be greater than or equal to the specified value (exclusive).com.google.protobuf.DurationOrBuildergetGteOrBuilder()`gte` requires the duration field value to be greater than or equal to the specified value (exclusive).com.google.protobuf.DurationOrBuildergetGtOrBuilder()`gt` requires the duration field value to be greater than the specified value (exclusive).com.google.protobuf.DurationgetIn(int index)`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.intgetInCount()`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.java.util.List<com.google.protobuf.Duration>getInList()`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.com.google.protobuf.DurationOrBuildergetInOrBuilder(int index)`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.java.util.List<? extends com.google.protobuf.DurationOrBuilder>getInOrBuilderList()`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.DurationRules.LessThanCasegetLessThanCase()com.google.protobuf.DurationgetLt()`lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, exclusive.com.google.protobuf.DurationgetLte()`lte` indicates that the field must be less than or equal to the specified value of the `google.protobuf.Duration` type, inclusive.com.google.protobuf.DurationOrBuildergetLteOrBuilder()`lte` indicates that the field must be less than or equal to the specified value of the `google.protobuf.Duration` type, inclusive.com.google.protobuf.DurationOrBuildergetLtOrBuilder()`lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, exclusive.com.google.protobuf.DurationgetNotIn(int index)`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type.intgetNotInCount()`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type.java.util.List<com.google.protobuf.Duration>getNotInList()`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type.com.google.protobuf.DurationOrBuildergetNotInOrBuilder(int index)`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type.java.util.List<? extends com.google.protobuf.DurationOrBuilder>getNotInOrBuilderList()`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type.booleanhasConst()`const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.booleanhasGt()`gt` requires the duration field value to be greater than the specified value (exclusive).booleanhasGte()`gte` requires the duration field value to be greater than or equal to the specified value (exclusive).booleanhasLt()`lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, exclusive.booleanhasLte()`lte` indicates that the field must be less than or equal to the specified value of the `google.protobuf.Duration` type, inclusive.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasConst
boolean hasConst()
`const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly. If the field's value deviates from the specified value, an error message will be generated. ```proto message MyDuration { // value must equal 5s google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; } ```optional .google.protobuf.Duration const = 2 [(.buf.validate.priv.field) = { ... }- Returns:
- Whether the const field is set.
-
getConst
com.google.protobuf.Duration getConst()
`const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly. If the field's value deviates from the specified value, an error message will be generated. ```proto message MyDuration { // value must equal 5s google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; } ```optional .google.protobuf.Duration const = 2 [(.buf.validate.priv.field) = { ... }- Returns:
- The const.
-
getConstOrBuilder
com.google.protobuf.DurationOrBuilder getConstOrBuilder()
`const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly. If the field's value deviates from the specified value, an error message will be generated. ```proto message MyDuration { // value must equal 5s google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; } ```optional .google.protobuf.Duration const = 2 [(.buf.validate.priv.field) = { ... }
-
hasLt
boolean hasLt()
`lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, exclusive. If the field's value is greater than or equal to the specified value, an error message will be generated. ```proto message MyDuration { // value must be less than 5s google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; } ```.google.protobuf.Duration lt = 3 [(.buf.validate.priv.field) = { ... }- Returns:
- Whether the lt field is set.
-
getLt
com.google.protobuf.Duration getLt()
`lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, exclusive. If the field's value is greater than or equal to the specified value, an error message will be generated. ```proto message MyDuration { // value must be less than 5s google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; } ```.google.protobuf.Duration lt = 3 [(.buf.validate.priv.field) = { ... }- Returns:
- The lt.
-
getLtOrBuilder
com.google.protobuf.DurationOrBuilder getLtOrBuilder()
`lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, exclusive. If the field's value is greater than or equal to the specified value, an error message will be generated. ```proto message MyDuration { // value must be less than 5s google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; } ```.google.protobuf.Duration lt = 3 [(.buf.validate.priv.field) = { ... }
-
hasLte
boolean hasLte()
`lte` indicates that the field must be less than or equal to the specified value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value, an error message will be generated. ```proto message MyDuration { // value must be less than or equal to 10s google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; } ```.google.protobuf.Duration lte = 4 [(.buf.validate.priv.field) = { ... }- Returns:
- Whether the lte field is set.
-
getLte
com.google.protobuf.Duration getLte()
`lte` indicates that the field must be less than or equal to the specified value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value, an error message will be generated. ```proto message MyDuration { // value must be less than or equal to 10s google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; } ```.google.protobuf.Duration lte = 4 [(.buf.validate.priv.field) = { ... }- Returns:
- The lte.
-
getLteOrBuilder
com.google.protobuf.DurationOrBuilder getLteOrBuilder()
`lte` indicates that the field must be less than or equal to the specified value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value, an error message will be generated. ```proto message MyDuration { // value must be less than or equal to 10s google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; } ```.google.protobuf.Duration lte = 4 [(.buf.validate.priv.field) = { ... }
-
hasGt
boolean hasGt()
`gt` requires the duration 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 MyDuration { // duration must be greater than 5s [duration.gt] google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }]; // duration must be greater than 5s and less than 10s [duration.gt_lt] google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }]; // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive] google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }]; } ```.google.protobuf.Duration gt = 5 [(.buf.validate.priv.field) = { ... }- Returns:
- Whether the gt field is set.
-
getGt
com.google.protobuf.Duration getGt()
`gt` requires the duration 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 MyDuration { // duration must be greater than 5s [duration.gt] google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }]; // duration must be greater than 5s and less than 10s [duration.gt_lt] google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }]; // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive] google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }]; } ```.google.protobuf.Duration gt = 5 [(.buf.validate.priv.field) = { ... }- Returns:
- The gt.
-
getGtOrBuilder
com.google.protobuf.DurationOrBuilder getGtOrBuilder()
`gt` requires the duration 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 MyDuration { // duration must be greater than 5s [duration.gt] google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }]; // duration must be greater than 5s and less than 10s [duration.gt_lt] google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }]; // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive] google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }]; } ```.google.protobuf.Duration gt = 5 [(.buf.validate.priv.field) = { ... }
-
hasGte
boolean hasGte()
`gte` requires the duration 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 MyDuration { // duration must be greater than or equal to 5s [duration.gte] google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }]; // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt] google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }]; // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive] google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }]; } ```.google.protobuf.Duration gte = 6 [(.buf.validate.priv.field) = { ... }- Returns:
- Whether the gte field is set.
-
getGte
com.google.protobuf.Duration getGte()
`gte` requires the duration 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 MyDuration { // duration must be greater than or equal to 5s [duration.gte] google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }]; // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt] google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }]; // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive] google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }]; } ```.google.protobuf.Duration gte = 6 [(.buf.validate.priv.field) = { ... }- Returns:
- The gte.
-
getGteOrBuilder
com.google.protobuf.DurationOrBuilder getGteOrBuilder()
`gte` requires the duration 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 MyDuration { // duration must be greater than or equal to 5s [duration.gte] google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }]; // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt] google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }]; // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive] google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }]; } ```.google.protobuf.Duration gte = 6 [(.buf.validate.priv.field) = { ... }
-
getInList
java.util.List<com.google.protobuf.Duration> getInList()
`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. If the field's value doesn't correspond to any of the specified values, an error message will be generated. ```proto message MyDuration { // value must be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration in = 7 [(.buf.validate.priv.field) = { ... }
-
getIn
com.google.protobuf.Duration getIn(int index)
`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. If the field's value doesn't correspond to any of the specified values, an error message will be generated. ```proto message MyDuration { // value must be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration in = 7 [(.buf.validate.priv.field) = { ... }
-
getInCount
int getInCount()
`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. If the field's value doesn't correspond to any of the specified values, an error message will be generated. ```proto message MyDuration { // value must be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration in = 7 [(.buf.validate.priv.field) = { ... }
-
getInOrBuilderList
java.util.List<? extends com.google.protobuf.DurationOrBuilder> getInOrBuilderList()
`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. If the field's value doesn't correspond to any of the specified values, an error message will be generated. ```proto message MyDuration { // value must be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration in = 7 [(.buf.validate.priv.field) = { ... }
-
getInOrBuilder
com.google.protobuf.DurationOrBuilder getInOrBuilder(int index)
`in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. If the field's value doesn't correspond to any of the specified values, an error message will be generated. ```proto message MyDuration { // value must be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration in = 7 [(.buf.validate.priv.field) = { ... }
-
getNotInList
java.util.List<com.google.protobuf.Duration> getNotInList()
`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type. If the field's value matches any of these values, an error message will be generated. ```proto message MyDuration { // value must not be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration not_in = 8 [(.buf.validate.priv.field) = { ... }
-
getNotIn
com.google.protobuf.Duration getNotIn(int index)
`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type. If the field's value matches any of these values, an error message will be generated. ```proto message MyDuration { // value must not be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration not_in = 8 [(.buf.validate.priv.field) = { ... }
-
getNotInCount
int getNotInCount()
`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type. If the field's value matches any of these values, an error message will be generated. ```proto message MyDuration { // value must not be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration not_in = 8 [(.buf.validate.priv.field) = { ... }
-
getNotInOrBuilderList
java.util.List<? extends com.google.protobuf.DurationOrBuilder> getNotInOrBuilderList()
`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type. If the field's value matches any of these values, an error message will be generated. ```proto message MyDuration { // value must not be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration not_in = 8 [(.buf.validate.priv.field) = { ... }
-
getNotInOrBuilder
com.google.protobuf.DurationOrBuilder getNotInOrBuilder(int index)
`not_in` denotes that the field must not be equal to any of the specified values of the `google.protobuf.Duration` type. If the field's value matches any of these values, an error message will be generated. ```proto message MyDuration { // value must not be in list [1s, 2s, 3s] google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; } ```repeated .google.protobuf.Duration not_in = 8 [(.buf.validate.priv.field) = { ... }
-
getLessThanCase
DurationRules.LessThanCase getLessThanCase()
-
getGreaterThanCase
DurationRules.GreaterThanCase getGreaterThanCase()
-
-