Package com.validate
Class TimestampRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.validate.TimestampRules
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TimestampRulesOrBuilder,Serializable
public final class TimestampRules
extends com.google.protobuf.GeneratedMessageV3
implements TimestampRulesOrBuilder
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known typeProtobuf type
validate.TimestampRules- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known typeNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final com.google.protobuf.Parser<TimestampRules>Deprecated.static final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampgetConst()Const specifies that this field must be exactly the specified valuecom.google.protobuf.TimestampOrBuilderConst specifies that this field must be exactly the specified valuestatic TimestampRulesstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampgetGt()Gt specifies that this field must be greater than the specified value, exclusivecom.google.protobuf.TimestampgetGte()Gte specifies that this field must be greater than the specified value, inclusivecom.google.protobuf.TimestampOrBuilderGte specifies that this field must be greater than the specified value, inclusivebooleangetGtNow()GtNow specifies that this must be greater than the current time.com.google.protobuf.TimestampOrBuilderGt specifies that this field must be greater than the specified value, exclusivecom.google.protobuf.TimestampgetLt()Lt specifies that this field must be less than the specified value, exclusivecom.google.protobuf.TimestampgetLte()Lte specifies that this field must be less than the specified value, inclusivecom.google.protobuf.TimestampOrBuilderLte specifies that this field must be less than the specified value, inclusivebooleangetLtNow()LtNow specifies that this must be less than the current time.com.google.protobuf.TimestampOrBuilderLt specifies that this field must be less than the specified value, exclusivecom.google.protobuf.Parser<TimestampRules>booleanRequired specifies that this field must be setintcom.google.protobuf.DurationWithin specifies that this field must be within this duration of the current time.com.google.protobuf.DurationOrBuilderWithin specifies that this field must be within this duration of the current time.booleanhasConst()Const specifies that this field must be exactly the specified valuebooleanhasGt()Gt specifies that this field must be greater than the specified value, exclusivebooleanhasGte()Gte specifies that this field must be greater than the specified value, inclusivebooleanhasGtNow()GtNow specifies that this must be greater than the current time.inthashCode()booleanhasLt()Lt specifies that this field must be less than the specified value, exclusivebooleanhasLte()Lte specifies that this field must be less than the specified value, inclusivebooleanhasLtNow()LtNow specifies that this must be less than the current time.booleanRequired specifies that this field must be setbooleanWithin specifies that this field must be within this duration of the current time.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic TimestampRules.Builderstatic TimestampRules.BuildernewBuilder(TimestampRules prototype) protected TimestampRules.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TimestampRulesparseDelimitedFrom(InputStream input) static TimestampRulesparseDelimitedFrom(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(InputStream input) static TimestampRulesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TimestampRulesparseFrom(ByteBuffer data) static TimestampRulesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TimestampRules>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER- See Also:
-
CONST_FIELD_NUMBER
public static final int CONST_FIELD_NUMBER- See Also:
-
LT_FIELD_NUMBER
public static final int LT_FIELD_NUMBER- See Also:
-
LTE_FIELD_NUMBER
public static final int LTE_FIELD_NUMBER- See Also:
-
GT_FIELD_NUMBER
public static final int GT_FIELD_NUMBER- See Also:
-
GTE_FIELD_NUMBER
public static final int GTE_FIELD_NUMBER- See Also:
-
LT_NOW_FIELD_NUMBER
public static final int LT_NOW_FIELD_NUMBER- See Also:
-
GT_NOW_FIELD_NUMBER
public static final int GT_NOW_FIELD_NUMBER- See Also:
-
WITHIN_FIELD_NUMBER
public static final int WITHIN_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasRequired
public boolean hasRequired()Required specifies that this field must be set
optional bool required = 1 [json_name = "required"];- Specified by:
hasRequiredin interfaceTimestampRulesOrBuilder- Returns:
- Whether the required field is set.
-
getRequired
public boolean getRequired()Required specifies that this field must be set
optional bool required = 1 [json_name = "required"];- Specified by:
getRequiredin interfaceTimestampRulesOrBuilder- Returns:
- The required.
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional .google.protobuf.Timestamp const = 2 [json_name = "const"];- Specified by:
hasConstin interfaceTimestampRulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
public com.google.protobuf.Timestamp getConst()Const specifies that this field must be exactly the specified value
optional .google.protobuf.Timestamp const = 2 [json_name = "const"];- Specified by:
getConstin interfaceTimestampRulesOrBuilder- Returns:
- The const.
-
getConstOrBuilder
public com.google.protobuf.TimestampOrBuilder getConstOrBuilder()Const specifies that this field must be exactly the specified value
optional .google.protobuf.Timestamp const = 2 [json_name = "const"];- Specified by:
getConstOrBuilderin interfaceTimestampRulesOrBuilder
-
hasLt
public boolean hasLt()Lt specifies that this field must be less than the specified value, exclusive
optional .google.protobuf.Timestamp lt = 3 [json_name = "lt"];- Specified by:
hasLtin interfaceTimestampRulesOrBuilder- Returns:
- Whether the lt field is set.
-
getLt
public com.google.protobuf.Timestamp getLt()Lt specifies that this field must be less than the specified value, exclusive
optional .google.protobuf.Timestamp lt = 3 [json_name = "lt"];- Specified by:
getLtin interfaceTimestampRulesOrBuilder- Returns:
- The lt.
-
getLtOrBuilder
public com.google.protobuf.TimestampOrBuilder getLtOrBuilder()Lt specifies that this field must be less than the specified value, exclusive
optional .google.protobuf.Timestamp lt = 3 [json_name = "lt"];- Specified by:
getLtOrBuilderin interfaceTimestampRulesOrBuilder
-
hasLte
public boolean hasLte()Lte specifies that this field must be less than the specified value, inclusive
optional .google.protobuf.Timestamp lte = 4 [json_name = "lte"];- Specified by:
hasLtein interfaceTimestampRulesOrBuilder- Returns:
- Whether the lte field is set.
-
getLte
public com.google.protobuf.Timestamp getLte()Lte specifies that this field must be less than the specified value, inclusive
optional .google.protobuf.Timestamp lte = 4 [json_name = "lte"];- Specified by:
getLtein interfaceTimestampRulesOrBuilder- Returns:
- The lte.
-
getLteOrBuilder
public com.google.protobuf.TimestampOrBuilder getLteOrBuilder()Lte specifies that this field must be less than the specified value, inclusive
optional .google.protobuf.Timestamp lte = 4 [json_name = "lte"];- Specified by:
getLteOrBuilderin interfaceTimestampRulesOrBuilder
-
hasGt
public boolean hasGt()Gt specifies that this field must be greater than the specified value, exclusive
optional .google.protobuf.Timestamp gt = 5 [json_name = "gt"];- Specified by:
hasGtin interfaceTimestampRulesOrBuilder- Returns:
- Whether the gt field is set.
-
getGt
public com.google.protobuf.Timestamp getGt()Gt specifies that this field must be greater than the specified value, exclusive
optional .google.protobuf.Timestamp gt = 5 [json_name = "gt"];- Specified by:
getGtin interfaceTimestampRulesOrBuilder- Returns:
- The gt.
-
getGtOrBuilder
public com.google.protobuf.TimestampOrBuilder getGtOrBuilder()Gt specifies that this field must be greater than the specified value, exclusive
optional .google.protobuf.Timestamp gt = 5 [json_name = "gt"];- Specified by:
getGtOrBuilderin interfaceTimestampRulesOrBuilder
-
hasGte
public boolean hasGte()Gte specifies that this field must be greater than the specified value, inclusive
optional .google.protobuf.Timestamp gte = 6 [json_name = "gte"];- Specified by:
hasGtein interfaceTimestampRulesOrBuilder- Returns:
- Whether the gte field is set.
-
getGte
public com.google.protobuf.Timestamp getGte()Gte specifies that this field must be greater than the specified value, inclusive
optional .google.protobuf.Timestamp gte = 6 [json_name = "gte"];- Specified by:
getGtein interfaceTimestampRulesOrBuilder- Returns:
- The gte.
-
getGteOrBuilder
public com.google.protobuf.TimestampOrBuilder getGteOrBuilder()Gte specifies that this field must be greater than the specified value, inclusive
optional .google.protobuf.Timestamp gte = 6 [json_name = "gte"];- Specified by:
getGteOrBuilderin interfaceTimestampRulesOrBuilder
-
hasLtNow
public boolean hasLtNow()LtNow specifies that this must be less than the current time. LtNow can only be used with the Within rule.
optional bool lt_now = 7 [json_name = "ltNow"];- Specified by:
hasLtNowin interfaceTimestampRulesOrBuilder- Returns:
- Whether the ltNow field is set.
-
getLtNow
public boolean getLtNow()LtNow specifies that this must be less than the current time. LtNow can only be used with the Within rule.
optional bool lt_now = 7 [json_name = "ltNow"];- Specified by:
getLtNowin interfaceTimestampRulesOrBuilder- Returns:
- The ltNow.
-
hasGtNow
public boolean hasGtNow()GtNow specifies that this must be greater than the current time. GtNow can only be used with the Within rule.
optional bool gt_now = 8 [json_name = "gtNow"];- Specified by:
hasGtNowin interfaceTimestampRulesOrBuilder- Returns:
- Whether the gtNow field is set.
-
getGtNow
public boolean getGtNow()GtNow specifies that this must be greater than the current time. GtNow can only be used with the Within rule.
optional bool gt_now = 8 [json_name = "gtNow"];- Specified by:
getGtNowin interfaceTimestampRulesOrBuilder- Returns:
- The gtNow.
-
hasWithin
public boolean hasWithin()Within specifies that this field must be within this duration of the current time. This constraint can be used alone or with the LtNow and GtNow rules.
optional .google.protobuf.Duration within = 9 [json_name = "within"];- Specified by:
hasWithinin interfaceTimestampRulesOrBuilder- Returns:
- Whether the within field is set.
-
getWithin
public com.google.protobuf.Duration getWithin()Within specifies that this field must be within this duration of the current time. This constraint can be used alone or with the LtNow and GtNow rules.
optional .google.protobuf.Duration within = 9 [json_name = "within"];- Specified by:
getWithinin interfaceTimestampRulesOrBuilder- Returns:
- The within.
-
getWithinOrBuilder
public com.google.protobuf.DurationOrBuilder getWithinOrBuilder()Within specifies that this field must be within this duration of the current time. This constraint can be used alone or with the LtNow and GtNow rules.
optional .google.protobuf.Duration within = 9 [json_name = "within"];- Specified by:
getWithinOrBuilderin interfaceTimestampRulesOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- 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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimestampRules parseFrom(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
- Throws:
IOException
-
parseFrom
public static TimestampRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TimestampRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TimestampRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TimestampRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TimestampRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-