Package build.buf.validate
Class TimestampRules
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- build.buf.validate.TimestampRules
-
- All Implemented Interfaces:
TimestampRulesOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class TimestampRules extends com.google.protobuf.GeneratedMessage implements TimestampRulesOrBuilder
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
Protobuf typebuf.validate.TimestampRules- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimestampRules.BuilderTimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.static classTimestampRules.GreaterThanCasestatic classTimestampRules.LessThanCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONST_FIELD_NUMBERstatic intGT_FIELD_NUMBERstatic intGT_NOW_FIELD_NUMBERstatic intGTE_FIELD_NUMBERstatic intLT_FIELD_NUMBERstatic intLT_NOW_FIELD_NUMBERstatic intLTE_FIELD_NUMBERstatic intWITHIN_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)com.google.protobuf.TimestampgetConst()`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.com.google.protobuf.TimestampOrBuildergetConstOrBuilder()`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.static TimestampRulesgetDefaultInstance()TimestampRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()TimestampRules.GreaterThanCasegetGreaterThanCase()com.google.protobuf.TimestampgetGt()`gt` requires the timestamp field value to be greater than the specified value (exclusive).com.google.protobuf.TimestampgetGte()`gte` requires the timestamp field value to be greater than or equal to the specified value (exclusive).com.google.protobuf.TimestampOrBuildergetGteOrBuilder()`gte` requires the timestamp field value to be greater than or equal to the specified value (exclusive).booleangetGtNow()`gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.com.google.protobuf.TimestampOrBuildergetGtOrBuilder()`gt` requires the timestamp field value to be greater than the specified value (exclusive).TimestampRules.LessThanCasegetLessThanCase()com.google.protobuf.TimestampgetLt()requires the duration field value to be less than the specified value (field < value).com.google.protobuf.TimestampgetLte()requires the timestamp field value to be less than or equal to the specified value (field <= value).com.google.protobuf.TimestampOrBuildergetLteOrBuilder()requires the timestamp field value to be less than or equal to the specified value (field <= value).booleangetLtNow()`lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.com.google.protobuf.TimestampOrBuildergetLtOrBuilder()requires the duration field value to be less than the specified value (field < value).com.google.protobuf.Parser<TimestampRules>getParserForType()intgetSerializedSize()com.google.protobuf.DurationgetWithin()`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.com.google.protobuf.DurationOrBuildergetWithinOrBuilder()`within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time.booleanhasConst()`const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value.booleanhasGt()`gt` requires the timestamp field value to be greater than the specified value (exclusive).booleanhasGte()`gte` requires the timestamp field value to be greater than or equal to the specified value (exclusive).booleanhasGtNow()`gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time.inthashCode()booleanhasLt()requires the duration field value to be less than the specified value (field < value).booleanhasLte()requires the timestamp field value to be less than or equal to the specified value (field <= value).booleanhasLtNow()`lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time.booleanhasWithin()`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.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TimestampRules.BuildernewBuilder()static TimestampRules.BuildernewBuilder(TimestampRules prototype)TimestampRules.BuildernewBuilderForType()protected TimestampRules.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static TimestampRulesparseDelimitedFrom(java.io.InputStream input)static TimestampRulesparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampRulesparseFrom(byte[] data)static TimestampRulesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampRulesparseFrom(com.google.protobuf.ByteString data)static TimestampRulesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampRulesparseFrom(com.google.protobuf.CodedInputStream input)static TimestampRulesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampRulesparseFrom(java.io.InputStream input)static TimestampRulesparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampRulesparseFrom(java.nio.ByteBuffer data)static TimestampRulesparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TimestampRules>parser()TimestampRules.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CONST_FIELD_NUMBER
public static final int CONST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LT_FIELD_NUMBER
public static final int LT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LTE_FIELD_NUMBER
public static final int LTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LT_NOW_FIELD_NUMBER
public static final int LT_NOW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GT_FIELD_NUMBER
public static final int GT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GTE_FIELD_NUMBER
public static final int GTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GT_NOW_FIELD_NUMBER
public static final int GT_NOW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WITHIN_FIELD_NUMBER
public static final int WITHIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getLessThanCase
public TimestampRules.LessThanCase getLessThanCase()
- Specified by:
getLessThanCasein interfaceTimestampRulesOrBuilder
-
getGreaterThanCase
public TimestampRules.GreaterThanCase getGreaterThanCase()
- Specified by:
getGreaterThanCasein interfaceTimestampRulesOrBuilder
-
hasConst
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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasConstin interfaceTimestampRulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getConstin interfaceTimestampRulesOrBuilder- Returns:
- The const.
-
getConstOrBuilder
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 [(.buf.validate.priv.field) = { ... }- Specified by:
getConstOrBuilderin interfaceTimestampRulesOrBuilder
-
hasLt
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasLtin interfaceTimestampRulesOrBuilder- Returns:
- Whether the lt field is set.
-
getLt
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getLtin interfaceTimestampRulesOrBuilder- Returns:
- The lt.
-
getLtOrBuilder
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 [(.buf.validate.priv.field) = { ... }- Specified by:
getLtOrBuilderin interfaceTimestampRulesOrBuilder
-
hasLte
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasLtein interfaceTimestampRulesOrBuilder- Returns:
- Whether the lte field is set.
-
getLte
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getLtein interfaceTimestampRulesOrBuilder- Returns:
- The lte.
-
getLteOrBuilder
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 [(.buf.validate.priv.field) = { ... }- Specified by:
getLteOrBuilderin interfaceTimestampRulesOrBuilder
-
hasLtNow
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasLtNowin interfaceTimestampRulesOrBuilder- Returns:
- Whether the ltNow field is set.
-
getLtNow
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getLtNowin interfaceTimestampRulesOrBuilder- Returns:
- The ltNow.
-
hasGt
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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasGtin interfaceTimestampRulesOrBuilder- Returns:
- Whether the gt field is set.
-
getGt
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getGtin interfaceTimestampRulesOrBuilder- Returns:
- The gt.
-
getGtOrBuilder
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 [(.buf.validate.priv.field) = { ... }- Specified by:
getGtOrBuilderin interfaceTimestampRulesOrBuilder
-
hasGte
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasGtein interfaceTimestampRulesOrBuilder- Returns:
- Whether the gte field is set.
-
getGte
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getGtein interfaceTimestampRulesOrBuilder- Returns:
- The gte.
-
getGteOrBuilder
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 [(.buf.validate.priv.field) = { ... }- Specified by:
getGteOrBuilderin interfaceTimestampRulesOrBuilder
-
hasGtNow
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasGtNowin interfaceTimestampRulesOrBuilder- Returns:
- Whether the gtNow field is set.
-
getGtNow
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getGtNowin interfaceTimestampRulesOrBuilder- Returns:
- The gtNow.
-
hasWithin
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 [(.buf.validate.priv.field) = { ... }- Specified by:
hasWithinin interfaceTimestampRulesOrBuilder- Returns:
- Whether the within field is set.
-
getWithin
public 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 [(.buf.validate.priv.field) = { ... }- Specified by:
getWithinin interfaceTimestampRulesOrBuilder- Returns:
- The within.
-
getWithinOrBuilder
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 [(.buf.validate.priv.field) = { ... }- Specified by:
getWithinOrBuilderin interfaceTimestampRulesOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TimestampRules parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TimestampRules parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TimestampRules parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TimestampRules parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TimestampRules parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TimestampRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public TimestampRules.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TimestampRules.Builder newBuilder()
-
newBuilder
public static TimestampRules.Builder newBuilder(TimestampRules prototype)
-
toBuilder
public TimestampRules.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TimestampRules.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static TimestampRules getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TimestampRules> parser()
-
getParserForType
public com.google.protobuf.Parser<TimestampRules> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public TimestampRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-