Uses of Class
com.google.protobuf.Timestamp
Packages that use Timestamp
-
Uses of Timestamp in com.google.protobuf
Fields in com.google.protobuf declared as TimestampFields in com.google.protobuf with type parameters of type TimestampMethods in com.google.protobuf that return TimestampModifier and TypeMethodDescriptionstatic TimestampTimestamp.getDefaultInstance()static TimestampTimestamp.parseDelimitedFrom(InputStream input) static TimestampTimestamp.parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static TimestampTimestamp.parseFrom(byte[] data) static TimestampTimestamp.parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static TimestampTimestamp.parseFrom(ByteString data) static TimestampTimestamp.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static TimestampTimestamp.parseFrom(CodedInputStream input) static TimestampTimestamp.parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static TimestampTimestamp.parseFrom(InputStream input) static TimestampTimestamp.parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static TimestampTimestamp.parseFrom(ByteBuffer data) static TimestampTimestamp.parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) Methods in com.google.protobuf that return types with arguments of type TimestampMethods in com.google.protobuf with parameters of type TimestampModifier and TypeMethodDescriptionstatic Timestamp.BuilderTimestamp.newBuilder(Timestamp prototype) -
Uses of Timestamp in com.google.protobuf.util
Fields in com.google.protobuf.util declared as TimestampModifier and TypeFieldDescriptionstatic final TimestampTimestamps.EPOCHA constant holding theTimestampof epoch time,1970-01-01T00:00:00.000000000Z.static final TimestampTimestamps.MAX_VALUEA constant holding the maximum validTimestamp,9999-12-31T23:59:59.999999999Z.static final TimestampTimestamps.MIN_VALUEA constant holding the minimum validTimestamp,0001-01-01T00:00:00Z.Methods in com.google.protobuf.util that return TimestampModifier and TypeMethodDescriptionstatic TimestampDeprecated.Do not use this method for new code.static TimestampTimestamps.checkValid(Timestamp timestamp) Throws anIllegalArgumentExceptionif the givenTimestampis not valid.static TimestampTimestamps.checkValid(Timestamp.Builder timestampBuilder) Builds the given builder and throws anIllegalArgumentExceptionif it is not valid.static TimestampCreate a Timestamp from aDate.static TimestampTimestamps.fromMicros(long microseconds) Create a Timestamp from the number of microseconds elapsed from the epoch.static TimestampTimestamps.fromMillis(long milliseconds) Create a Timestamp from the number of milliseconds elapsed from the epoch.static TimestampTimestamps.fromNanos(long nanoseconds) Create a Timestamp from the number of nanoseconds elapsed from the epoch.static TimestampTimestamps.fromSeconds(long seconds) Create a Timestamp from the number of seconds elapsed from the epoch.(package private) static TimestampTimestamps.normalizedTimestamp(long seconds, int nanos) static TimestampTimestamps.now()Create aTimestampusing the best-available (in terms of precision) system clock.static TimestampParse from RFC 3339 date string to Timestamp.static TimestampTimestamps.parseUnchecked(String value) Parses a string in RFC 3339 format into aTimestamp.static TimestampDeprecated.Do not use this method for new code.Methods in com.google.protobuf.util that return types with arguments of type TimestampModifier and TypeMethodDescriptionstatic Comparator<Timestamp> Timestamps.comparator()Returns aComparatorforTimestampswhich sorts in increasing chronological order.Methods in com.google.protobuf.util with parameters of type TimestampModifier and TypeMethodDescriptionstatic TimestampDeprecated.Do not use this method for new code.static DurationDeprecated.Do not use this method for new code.static TimestampTimestamps.checkValid(Timestamp timestamp) Throws anIllegalArgumentExceptionif the givenTimestampis not valid.static intCompares two timestamps.intstatic booleanReturns true if the givenTimestampis valid.static TimestampDeprecated.Do not use this method for new code.static longConvert a Timestamp to the number of microseconds elapsed from the epoch.static longConvert a Timestamp to the number of milliseconds elapsed from the epoch.static longConvert a Timestamp to the number of nanoseconds elapsed from the epoch.static longConvert a Timestamp to the number of seconds elapsed from the epoch.static StringConvert Timestamp to RFC 3339 date string format.