All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.buf.validate.DurationRulesOrBuilder Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: buf/validate/validate.proto
// Protobuf Java Version: 4.28.1

package build.buf.validate;

public interface DurationRulesOrBuilder extends
    // @@protoc_insertion_point(interface_extends:buf.validate.DurationRules)
    com.google.protobuf.MessageOrBuilder {

  /**
   * 
   * `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 [json_name = "const", (.buf.validate.priv.field) = { ... } * @return Whether the const field is set. */ 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 [json_name = "const", (.buf.validate.priv.field) = { ... } * @return The const. */ 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 [json_name = "const", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getConstOrBuilder(); /** *
   * `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 [json_name = "lt", (.buf.validate.priv.field) = { ... } * @return Whether the lt field is set. */ 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 [json_name = "lt", (.buf.validate.priv.field) = { ... } * @return The lt. */ 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 [json_name = "lt", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getLtOrBuilder(); /** *
   * `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 [json_name = "lte", (.buf.validate.priv.field) = { ... } * @return Whether the lte field is set. */ 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 [json_name = "lte", (.buf.validate.priv.field) = { ... } * @return The lte. */ 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 [json_name = "lte", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getLteOrBuilder(); /** *
   * `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 [json_name = "gt", (.buf.validate.priv.field) = { ... } * @return Whether the gt field is set. */ 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 [json_name = "gt", (.buf.validate.priv.field) = { ... } * @return The gt. */ 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 [json_name = "gt", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getGtOrBuilder(); /** *
   * `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 [json_name = "gte", (.buf.validate.priv.field) = { ... } * @return Whether the gte field is set. */ 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 [json_name = "gte", (.buf.validate.priv.field) = { ... } * @return The gte. */ 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 [json_name = "gte", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getGteOrBuilder(); /** *
   * `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 [json_name = "in", (.buf.validate.priv.field) = { ... } */ java.util.List 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 [json_name = "in", (.buf.validate.priv.field) = { ... } */ 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 [json_name = "in", (.buf.validate.priv.field) = { ... } */ 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 [json_name = "in", (.buf.validate.priv.field) = { ... } */ java.util.List 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 [json_name = "in", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getInOrBuilder( 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 [json_name = "notIn", (.buf.validate.priv.field) = { ... } */ java.util.List 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 [json_name = "notIn", (.buf.validate.priv.field) = { ... } */ 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 [json_name = "notIn", (.buf.validate.priv.field) = { ... } */ 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 [json_name = "notIn", (.buf.validate.priv.field) = { ... } */ java.util.List 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 [json_name = "notIn", (.buf.validate.priv.field) = { ... } */ com.google.protobuf.DurationOrBuilder getNotInOrBuilder( int index); build.buf.validate.DurationRules.LessThanCase getLessThanCase(); build.buf.validate.DurationRules.GreaterThanCase getGreaterThanCase(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy