Class Validate.TimestampRules

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Validate.TimestampRulesOrBuilder, java.io.Serializable
    Enclosing class:
    Validate

    public static final class Validate.TimestampRules
    extends com.google.protobuf.GeneratedMessage
    implements Validate.TimestampRulesOrBuilder
     TimestampRules describe the constraints applied exclusively to the
     `google.protobuf.Timestamp` well-known type
     
    Protobuf type validate.TimestampRules
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Validate.TimestampRules.Builder
      TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type
      • 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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

        com.google.protobuf.AbstractMessage.BuilderParent
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TimestampRules()  
      private TimestampRules​(com.google.protobuf.GeneratedMessage.Builder<?> builder)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      com.google.protobuf.Timestamp getConst()
      Const specifies that this field must be exactly the specified value
      com.google.protobuf.TimestampOrBuilder getConstOrBuilder()
      Const specifies that this field must be exactly the specified value
      static Validate.TimestampRules getDefaultInstance()  
      Validate.TimestampRules getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Timestamp getGt()
      Gt specifies that this field must be greater than the specified value, exclusive
      com.google.protobuf.Timestamp getGte()
      Gte specifies that this field must be greater than the specified value, inclusive
      com.google.protobuf.TimestampOrBuilder getGteOrBuilder()
      Gte specifies that this field must be greater than the specified value, inclusive
      boolean getGtNow()
      GtNow specifies that this must be greater than the current time.
      com.google.protobuf.TimestampOrBuilder getGtOrBuilder()
      Gt specifies that this field must be greater than the specified value, exclusive
      com.google.protobuf.Timestamp getLt()
      Lt specifies that this field must be less than the specified value, exclusive
      com.google.protobuf.Timestamp getLte()
      Lte specifies that this field must be less than the specified value, inclusive
      com.google.protobuf.TimestampOrBuilder getLteOrBuilder()
      Lte specifies that this field must be less than the specified value, inclusive
      boolean getLtNow()
      LtNow specifies that this must be less than the current time.
      com.google.protobuf.TimestampOrBuilder getLtOrBuilder()
      Lt specifies that this field must be less than the specified value, exclusive
      com.google.protobuf.Parser<Validate.TimestampRules> getParserForType()  
      boolean getRequired()
      Required specifies that this field must be set
      int getSerializedSize()  
      com.google.protobuf.Duration getWithin()
      Within specifies that this field must be within this duration of the current time.
      com.google.protobuf.DurationOrBuilder getWithinOrBuilder()
      Within specifies that this field must be within this duration of the current time.
      boolean hasConst()
      Const specifies that this field must be exactly the specified value
      boolean hasGt()
      Gt specifies that this field must be greater than the specified value, exclusive
      boolean hasGte()
      Gte specifies that this field must be greater than the specified value, inclusive
      boolean hasGtNow()
      GtNow specifies that this must be greater than the current time.
      int hashCode()  
      boolean hasLt()
      Lt specifies that this field must be less than the specified value, exclusive
      boolean hasLte()
      Lte specifies that this field must be less than the specified value, inclusive
      boolean hasLtNow()
      LtNow specifies that this must be less than the current time.
      boolean hasRequired()
      Required specifies that this field must be set
      boolean hasWithin()
      Within specifies that this field must be within this duration of the current time.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Validate.TimestampRules.Builder newBuilder()  
      static Validate.TimestampRules.Builder newBuilder​(Validate.TimestampRules prototype)  
      Validate.TimestampRules.Builder newBuilderForType()  
      protected Validate.TimestampRules.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)  
      static Validate.TimestampRules parseDelimitedFrom​(java.io.InputStream input)  
      static Validate.TimestampRules parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.TimestampRules parseFrom​(byte[] data)  
      static Validate.TimestampRules parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.TimestampRules parseFrom​(com.google.protobuf.ByteString data)  
      static Validate.TimestampRules parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.TimestampRules parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Validate.TimestampRules parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.TimestampRules parseFrom​(java.io.InputStream input)  
      static Validate.TimestampRules parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.TimestampRules parseFrom​(java.nio.ByteBuffer data)  
      static Validate.TimestampRules parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Validate.TimestampRules> parser()  
      Validate.TimestampRules.Builder toBuilder()  
      void writeTo​(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
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Field Detail

      • bitField0_

        private int bitField0_
      • required_

        private boolean required_
      • const_

        private com.google.protobuf.Timestamp const_
      • lt_

        private com.google.protobuf.Timestamp lt_
      • lte_

        private com.google.protobuf.Timestamp lte_
      • gt_

        private com.google.protobuf.Timestamp gt_
      • gte_

        private com.google.protobuf.Timestamp gte_
      • ltNow_

        private boolean ltNow_
      • gtNow_

        private boolean gtNow_
      • within_

        private com.google.protobuf.Duration within_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • TimestampRules

        private TimestampRules​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • TimestampRules

        private TimestampRules()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasRequired

        public boolean hasRequired()
         Required specifies that this field must be set
         
        optional bool required = 1;
        Specified by:
        hasRequired in interface Validate.TimestampRulesOrBuilder
        Returns:
        Whether the required field is set.
      • getRequired

        public boolean getRequired()
         Required specifies that this field must be set
         
        optional bool required = 1;
        Specified by:
        getRequired in interface Validate.TimestampRulesOrBuilder
        Returns:
        The required.
      • hasConst

        public boolean hasConst()
         Const specifies that this field must be exactly the specified value
         
        optional .google.protobuf.Timestamp const = 2;
        Specified by:
        hasConst in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getConst in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getConstOrBuilder in interface Validate.TimestampRulesOrBuilder
      • hasLt

        public boolean hasLt()
         Lt specifies that this field must be less than the specified value,
         exclusive
         
        optional .google.protobuf.Timestamp lt = 3;
        Specified by:
        hasLt in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getLt in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getLtOrBuilder in interface Validate.TimestampRulesOrBuilder
      • hasLte

        public boolean hasLte()
         Lte specifies that this field must be less than the specified value,
         inclusive
         
        optional .google.protobuf.Timestamp lte = 4;
        Specified by:
        hasLte in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getLte in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getLteOrBuilder in interface Validate.TimestampRulesOrBuilder
      • hasGt

        public boolean hasGt()
         Gt specifies that this field must be greater than the specified value,
         exclusive
         
        optional .google.protobuf.Timestamp gt = 5;
        Specified by:
        hasGt in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getGt in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getGtOrBuilder in interface Validate.TimestampRulesOrBuilder
      • hasGte

        public boolean hasGte()
         Gte specifies that this field must be greater than the specified value,
         inclusive
         
        optional .google.protobuf.Timestamp gte = 6;
        Specified by:
        hasGte in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getGte in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getGteOrBuilder in interface Validate.TimestampRulesOrBuilder
      • 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;
        Specified by:
        hasLtNow in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getLtNow in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        hasGtNow in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getGtNow in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        hasWithin in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getWithin in interface Validate.TimestampRulesOrBuilder
        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;
        Specified by:
        getWithinOrBuilder in interface Validate.TimestampRulesOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Validate.TimestampRules parseFrom​(java.nio.ByteBuffer data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(java.nio.ByteBuffer data,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(com.google.protobuf.ByteString data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.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 Validate.TimestampRules parseFrom​(byte[] data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(byte[] data,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(java.io.InputStream input)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(java.io.InputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Validate.TimestampRules parseDelimitedFrom​(java.io.InputStream input)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Validate.TimestampRules parseDelimitedFrom​(java.io.InputStream input,
                                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(com.google.protobuf.CodedInputStream input)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Validate.TimestampRules parseFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Validate.TimestampRules.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Validate.TimestampRules.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Validate.TimestampRules.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<Validate.TimestampRules> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public Validate.TimestampRules getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder