public static final class TimestampRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.Builder> implements TimestampRulesOrBuilder
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.Protobuf type
buf.validate.TimestampRules| Modifier and Type | Method and Description |
|---|---|
TimestampRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TimestampRules |
build() |
TimestampRules |
buildPartial() |
TimestampRules.Builder |
clear() |
TimestampRules.Builder |
clearConst()
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
TimestampRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TimestampRules.Builder |
clearGreaterThan() |
TimestampRules.Builder |
clearGt()
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
TimestampRules.Builder |
clearGte()
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
TimestampRules.Builder |
clearGtNow()
`gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.
|
TimestampRules.Builder |
clearLessThan() |
TimestampRules.Builder |
clearLt()
requires the duration field value to be less than the specified value (field < value).
|
TimestampRules.Builder |
clearLte()
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
TimestampRules.Builder |
clearLtNow()
`lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.
|
TimestampRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TimestampRules.Builder |
clearWithin()
`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
|
TimestampRules.Builder |
clone() |
com.google.protobuf.Timestamp |
getConst()
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
com.google.protobuf.Timestamp.Builder |
getConstBuilder()
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
com.google.protobuf.TimestampOrBuilder |
getConstOrBuilder()
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
TimestampRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TimestampRules.GreaterThanCase |
getGreaterThanCase() |
com.google.protobuf.Timestamp |
getGt()
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
com.google.protobuf.Timestamp.Builder |
getGtBuilder()
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
com.google.protobuf.Timestamp |
getGte()
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
com.google.protobuf.Timestamp.Builder |
getGteBuilder()
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
com.google.protobuf.TimestampOrBuilder |
getGteOrBuilder()
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
boolean |
getGtNow()
`gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.
|
com.google.protobuf.TimestampOrBuilder |
getGtOrBuilder()
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
TimestampRules.LessThanCase |
getLessThanCase() |
com.google.protobuf.Timestamp |
getLt()
requires the duration field value to be less than the specified value (field < value).
|
com.google.protobuf.Timestamp.Builder |
getLtBuilder()
requires the duration field value to be less than the specified value (field < value).
|
com.google.protobuf.Timestamp |
getLte()
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
com.google.protobuf.Timestamp.Builder |
getLteBuilder()
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
com.google.protobuf.TimestampOrBuilder |
getLteOrBuilder()
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
boolean |
getLtNow()
`lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.
|
com.google.protobuf.TimestampOrBuilder |
getLtOrBuilder()
requires the duration field value to be less than the specified value (field < value).
|
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.
|
com.google.protobuf.Duration.Builder |
getWithinBuilder()
`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 |
getWithinOrBuilder()
`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
|
boolean |
hasConst()
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
boolean |
hasGt()
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
boolean |
hasGte()
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
boolean |
hasGtNow()
`gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.
|
boolean |
hasLt()
requires the duration field value to be less than the specified value (field < value).
|
boolean |
hasLte()
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
boolean |
hasLtNow()
`lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.
|
boolean |
hasWithin()
`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
TimestampRules.Builder |
mergeConst(com.google.protobuf.Timestamp value)
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
TimestampRules.Builder |
mergeGt(com.google.protobuf.Timestamp value)
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
TimestampRules.Builder |
mergeGte(com.google.protobuf.Timestamp value)
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
TimestampRules.Builder |
mergeLt(com.google.protobuf.Timestamp value)
requires the duration field value to be less than the specified value (field < value).
|
TimestampRules.Builder |
mergeLte(com.google.protobuf.Timestamp value)
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
TimestampRules.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TimestampRules.Builder |
mergeWithin(com.google.protobuf.Duration value)
`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
|
TimestampRules.Builder |
setConst(com.google.protobuf.Timestamp.Builder builderForValue)
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
TimestampRules.Builder |
setConst(com.google.protobuf.Timestamp value)
`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.
|
TimestampRules.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TimestampRules.Builder |
setGt(com.google.protobuf.Timestamp.Builder builderForValue)
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
TimestampRules.Builder |
setGt(com.google.protobuf.Timestamp value)
`gt` requires the timestamp field value to be greater than the specified
value (exclusive).
|
TimestampRules.Builder |
setGte(com.google.protobuf.Timestamp.Builder builderForValue)
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
TimestampRules.Builder |
setGte(com.google.protobuf.Timestamp value)
`gte` requires the timestamp field value to be greater than or equal to the
specified value (exclusive).
|
TimestampRules.Builder |
setGtNow(boolean value)
`gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.
|
TimestampRules.Builder |
setLt(com.google.protobuf.Timestamp.Builder builderForValue)
requires the duration field value to be less than the specified value (field < value).
|
TimestampRules.Builder |
setLt(com.google.protobuf.Timestamp value)
requires the duration field value to be less than the specified value (field < value).
|
TimestampRules.Builder |
setLte(com.google.protobuf.Timestamp.Builder builderForValue)
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
TimestampRules.Builder |
setLte(com.google.protobuf.Timestamp value)
requires the timestamp field value to be less than or equal to the specified value (field <= value).
|
TimestampRules.Builder |
setLtNow(boolean value)
`lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.
|
TimestampRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TimestampRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TimestampRules.Builder |
setWithin(com.google.protobuf.Duration.Builder builderForValue)
`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
|
TimestampRules.Builder |
setWithin(com.google.protobuf.Duration value)
`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.
|
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<TimestampRules.Builder>public TimestampRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.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<TimestampRules.Builder>public TimestampRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TimestampRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TimestampRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TimestampRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.Builder>public TimestampRules.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<TimestampRules.Builder>public TimestampRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.Builder>public TimestampRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.Builder>public TimestampRules.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<TimestampRules.Builder>public TimestampRules.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<TimestampRules.Builder>public TimestampRules.LessThanCase getLessThanCase()
getLessThanCase in interface TimestampRulesOrBuilderpublic TimestampRules.Builder clearLessThan()
public TimestampRules.GreaterThanCase getGreaterThanCase()
getGreaterThanCase in interface TimestampRulesOrBuilderpublic TimestampRules.Builder clearGreaterThan()
public 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) = { ... }hasConst in interface TimestampRulesOrBuilderpublic 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) = { ... }getConst in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setConst(com.google.protobuf.Timestamp value)
`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) = { ... }public TimestampRules.Builder setConst(com.google.protobuf.Timestamp.Builder builderForValue)
`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) = { ... }public TimestampRules.Builder mergeConst(com.google.protobuf.Timestamp value)
`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) = { ... }public TimestampRules.Builder clearConst()
`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) = { ... }public com.google.protobuf.Timestamp.Builder getConstBuilder()
`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) = { ... }public 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) = { ... }getConstOrBuilder in interface TimestampRulesOrBuilderpublic 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) = { ... }hasLt in interface TimestampRulesOrBuilderpublic 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) = { ... }getLt in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setLt(com.google.protobuf.Timestamp value)
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) = { ... }public TimestampRules.Builder setLt(com.google.protobuf.Timestamp.Builder builderForValue)
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) = { ... }public TimestampRules.Builder mergeLt(com.google.protobuf.Timestamp value)
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) = { ... }public TimestampRules.Builder clearLt()
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) = { ... }public com.google.protobuf.Timestamp.Builder getLtBuilder()
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) = { ... }public 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) = { ... }getLtOrBuilder in interface TimestampRulesOrBuilderpublic 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) = { ... }hasLte in interface TimestampRulesOrBuilderpublic 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) = { ... }getLte in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setLte(com.google.protobuf.Timestamp value)
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) = { ... }public TimestampRules.Builder setLte(com.google.protobuf.Timestamp.Builder builderForValue)
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) = { ... }public TimestampRules.Builder mergeLte(com.google.protobuf.Timestamp value)
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) = { ... }public TimestampRules.Builder clearLte()
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) = { ... }public com.google.protobuf.Timestamp.Builder getLteBuilder()
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) = { ... }public 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) = { ... }getLteOrBuilder in interface TimestampRulesOrBuilderpublic 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) = { ... }hasLtNow in interface TimestampRulesOrBuilderpublic 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) = { ... }getLtNow in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setLtNow(boolean value)
`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) = { ... }value - The ltNow to set.public TimestampRules.Builder clearLtNow()
`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) = { ... }public 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) = { ... }hasGt in interface TimestampRulesOrBuilderpublic 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) = { ... }getGt in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setGt(com.google.protobuf.Timestamp value)
`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) = { ... }public TimestampRules.Builder setGt(com.google.protobuf.Timestamp.Builder builderForValue)
`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) = { ... }public TimestampRules.Builder mergeGt(com.google.protobuf.Timestamp value)
`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) = { ... }public TimestampRules.Builder clearGt()
`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) = { ... }public com.google.protobuf.Timestamp.Builder getGtBuilder()
`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) = { ... }public 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) = { ... }getGtOrBuilder in interface TimestampRulesOrBuilderpublic 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) = { ... }hasGte in interface TimestampRulesOrBuilderpublic 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) = { ... }getGte in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setGte(com.google.protobuf.Timestamp value)
`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) = { ... }public TimestampRules.Builder setGte(com.google.protobuf.Timestamp.Builder builderForValue)
`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) = { ... }public TimestampRules.Builder mergeGte(com.google.protobuf.Timestamp value)
`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) = { ... }public TimestampRules.Builder clearGte()
`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) = { ... }public com.google.protobuf.Timestamp.Builder getGteBuilder()
`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) = { ... }public 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) = { ... }getGteOrBuilder in interface TimestampRulesOrBuilderpublic 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) = { ... }hasGtNow in interface TimestampRulesOrBuilderpublic 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) = { ... }getGtNow in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setGtNow(boolean value)
`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) = { ... }value - The gtNow to set.public TimestampRules.Builder clearGtNow()
`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) = { ... }public 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) = { ... }hasWithin in interface TimestampRulesOrBuilderpublic 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) = { ... }getWithin in interface TimestampRulesOrBuilderpublic TimestampRules.Builder setWithin(com.google.protobuf.Duration value)
`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) = { ... }public TimestampRules.Builder setWithin(com.google.protobuf.Duration.Builder builderForValue)
`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) = { ... }public TimestampRules.Builder mergeWithin(com.google.protobuf.Duration value)
`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) = { ... }public TimestampRules.Builder clearWithin()
`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) = { ... }public com.google.protobuf.Duration.Builder getWithinBuilder()
`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) = { ... }public 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) = { ... }getWithinOrBuilder in interface TimestampRulesOrBuilderpublic final TimestampRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.Builder>public final TimestampRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampRules.Builder>Copyright © 2024. All rights reserved.