Interface TimestampRulesOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TimestampRules, TimestampRules.Builder

public interface TimestampRulesOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Timestamp
    `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
    com.google.protobuf.TimestampOrBuilder
    `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
     
    com.google.protobuf.Timestamp
    `gt` requires the timestamp field value to be greater than the specified value (exclusive).
    com.google.protobuf.Timestamp
    `gte` requires the timestamp field value to be greater than or equal to the specified value (exclusive).
    com.google.protobuf.TimestampOrBuilder
    `gte` requires the timestamp field value to be greater than or equal to the specified value (exclusive).
    boolean
    `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.
    com.google.protobuf.TimestampOrBuilder
    `gt` requires the timestamp field value to be greater than the specified value (exclusive).
     
    com.google.protobuf.Timestamp
    requires the duration field value to be less than the specified value (field < value).
    com.google.protobuf.Timestamp
    requires the timestamp field value to be less than or equal to the specified value (field <= value).
    com.google.protobuf.TimestampOrBuilder
    requires the timestamp field value to be less than or equal to the specified value (field <= value).
    boolean
    `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.
    com.google.protobuf.TimestampOrBuilder
    requires the duration field value to be less than the specified value (field < value).
    com.google.protobuf.Duration
    `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
    com.google.protobuf.DurationOrBuilder
    `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
    boolean
    `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
    boolean
    `gt` requires the timestamp field value to be greater than the specified value (exclusive).
    boolean
    `gte` requires the timestamp field value to be greater than or equal to the specified value (exclusive).
    boolean
    `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.
    boolean
    requires the duration field value to be less than the specified value (field < value).
    boolean
    requires the timestamp field value to be less than or equal to the specified value (field <= value).
    boolean
    `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.
    boolean
    `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • hasConst

      boolean hasConst()
       `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
      
       ```proto
       message MyTimestamp {
         // value must equal 2023-05-03T10:00:00Z
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
       }
       ```
       
      optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the const field is set.
    • getConst

      com.google.protobuf.Timestamp getConst()
       `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
      
       ```proto
       message MyTimestamp {
         // value must equal 2023-05-03T10:00:00Z
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
       }
       ```
       
      optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.priv.field) = { ... }
      Returns:
      The const.
    • getConstOrBuilder

      com.google.protobuf.TimestampOrBuilder getConstOrBuilder()
       `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
      
       ```proto
       message MyTimestamp {
         // value must equal 2023-05-03T10:00:00Z
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
       }
       ```
       
      optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.priv.field) = { ... }
    • hasLt

      boolean hasLt()
       requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
      
       ```proto
       message MyDuration {
         // duration must be less than 'P3D' [duration.lt]
         google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
       }
       ```
       
      .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the lt field is set.
    • getLt

      com.google.protobuf.Timestamp getLt()
       requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
      
       ```proto
       message MyDuration {
         // duration must be less than 'P3D' [duration.lt]
         google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
       }
       ```
       
      .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.priv.field) = { ... }
      Returns:
      The lt.
    • getLtOrBuilder

      com.google.protobuf.TimestampOrBuilder getLtOrBuilder()
       requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
      
       ```proto
       message MyDuration {
         // duration must be less than 'P3D' [duration.lt]
         google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
       }
       ```
       
      .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.priv.field) = { ... }
    • hasLte

      boolean hasLte()
       requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
      
       ```proto
       message MyTimestamp {
         // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
       }
       ```
       
      .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the lte field is set.
    • getLte

      com.google.protobuf.Timestamp getLte()
       requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
      
       ```proto
       message MyTimestamp {
         // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
       }
       ```
       
      .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.priv.field) = { ... }
      Returns:
      The lte.
    • getLteOrBuilder

      com.google.protobuf.TimestampOrBuilder getLteOrBuilder()
       requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
      
       ```proto
       message MyTimestamp {
         // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
       }
       ```
       
      .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.priv.field) = { ... }
    • hasLtNow

      boolean hasLtNow()
       `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
      
       ```proto
       message MyTimestamp {
        // value must be less than now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
       }
       ```
       
      bool lt_now = 7 [json_name = "ltNow", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the ltNow field is set.
    • getLtNow

      boolean getLtNow()
       `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
      
       ```proto
       message MyTimestamp {
        // value must be less than now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
       }
       ```
       
      bool lt_now = 7 [json_name = "ltNow", (.buf.validate.priv.field) = { ... }
      Returns:
      The ltNow.
    • hasGt

      boolean hasGt()
       `gt` requires the timestamp 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 MyTimestamp {
         // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
      
         // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
         google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
      
         // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
         google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
       }
       ```
       
      .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the gt field is set.
    • getGt

      com.google.protobuf.Timestamp getGt()
       `gt` requires the timestamp 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 MyTimestamp {
         // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
      
         // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
         google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
      
         // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
         google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
       }
       ```
       
      .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.priv.field) = { ... }
      Returns:
      The gt.
    • getGtOrBuilder

      com.google.protobuf.TimestampOrBuilder getGtOrBuilder()
       `gt` requires the timestamp 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 MyTimestamp {
         // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
      
         // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
         google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
      
         // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
         google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
       }
       ```
       
      .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.priv.field) = { ... }
    • hasGte

      boolean hasGte()
       `gte` requires the timestamp 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 MyTimestamp {
         // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
      
         // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
         google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
      
         // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
         google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
       }
       ```
       
      .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the gte field is set.
    • getGte

      com.google.protobuf.Timestamp getGte()
       `gte` requires the timestamp 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 MyTimestamp {
         // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
      
         // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
         google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
      
         // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
         google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
       }
       ```
       
      .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.priv.field) = { ... }
      Returns:
      The gte.
    • getGteOrBuilder

      com.google.protobuf.TimestampOrBuilder getGteOrBuilder()
       `gte` requires the timestamp 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 MyTimestamp {
         // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
         google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
      
         // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
         google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
      
         // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
         google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
       }
       ```
       
      .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.priv.field) = { ... }
    • hasGtNow

      boolean hasGtNow()
       `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
      
       ```proto
       message MyTimestamp {
         // value must be greater than now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
       }
       ```
       
      bool gt_now = 8 [json_name = "gtNow", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the gtNow field is set.
    • getGtNow

      boolean getGtNow()
       `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
      
       ```proto
       message MyTimestamp {
         // value must be greater than now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
       }
       ```
       
      bool gt_now = 8 [json_name = "gtNow", (.buf.validate.priv.field) = { ... }
      Returns:
      The gtNow.
    • hasWithin

      boolean hasWithin()
       `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
      
       ```proto
       message MyTimestamp {
         // value must be within 1 hour of now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
       }
       ```
       
      optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.priv.field) = { ... }
      Returns:
      Whether the within field is set.
    • getWithin

      com.google.protobuf.Duration getWithin()
       `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
      
       ```proto
       message MyTimestamp {
         // value must be within 1 hour of now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
       }
       ```
       
      optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.priv.field) = { ... }
      Returns:
      The within.
    • getWithinOrBuilder

      com.google.protobuf.DurationOrBuilder getWithinOrBuilder()
       `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
      
       ```proto
       message MyTimestamp {
         // value must be within 1 hour of now
         google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
       }
       ```
       
      optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.priv.field) = { ... }
    • getLessThanCase

      TimestampRules.LessThanCase getLessThanCase()
    • getGreaterThanCase

      TimestampRules.GreaterThanCase getGreaterThanCase()