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 Timestamp
Timestamp.getDefaultInstance()
static Timestamp
Timestamp.parseDelimitedFrom
(InputStream input) static Timestamp
Timestamp.parseDelimitedFrom
(InputStream input, ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(byte[] data) static Timestamp
Timestamp.parseFrom
(byte[] data, ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(ByteString data) static Timestamp
Timestamp.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(CodedInputStream input) static Timestamp
Timestamp.parseFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(InputStream input) static Timestamp
Timestamp.parseFrom
(InputStream input, ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(ByteBuffer data) static Timestamp
Timestamp.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.Builder
Timestamp.newBuilder
(Timestamp prototype) -
Uses of Timestamp in com.google.protobuf.util
Fields in com.google.protobuf.util declared as TimestampModifier and TypeFieldDescriptionstatic final Timestamp
Timestamps.EPOCH
A constant holding theTimestamp
of epoch time,1970-01-01T00:00:00.000000000Z
.static final Timestamp
Timestamps.MAX_VALUE
A constant holding the maximum validTimestamp
,9999-12-31T23:59:59.999999999Z
.static final Timestamp
Timestamps.MIN_VALUE
A constant holding the minimum validTimestamp
,0001-01-01T00:00:00Z
.Methods in com.google.protobuf.util that return TimestampModifier and TypeMethodDescriptionstatic Timestamp
Deprecated.Do not use this method for new code.static Timestamp
Timestamps.checkValid
(Timestamp timestamp) Throws anIllegalArgumentException
if the givenTimestamp
is not valid.static Timestamp
Timestamps.checkValid
(Timestamp.Builder timestampBuilder) Builds the given builder and throws anIllegalArgumentException
if it is not valid.static Timestamp
Create a Timestamp from aDate
.static Timestamp
Timestamps.fromMicros
(long microseconds) Create a Timestamp from the number of microseconds elapsed from the epoch.static Timestamp
Timestamps.fromMillis
(long milliseconds) Create a Timestamp from the number of milliseconds elapsed from the epoch.static Timestamp
Timestamps.fromNanos
(long nanoseconds) Create a Timestamp from the number of nanoseconds elapsed from the epoch.static Timestamp
Timestamps.fromSeconds
(long seconds) Create a Timestamp from the number of seconds elapsed from the epoch.(package private) static Timestamp
Timestamps.normalizedTimestamp
(long seconds, int nanos) static Timestamp
Timestamps.now()
Create aTimestamp
using the best-available (in terms of precision) system clock.static Timestamp
Parse from RFC 3339 date string to Timestamp.static Timestamp
Timestamps.parseUnchecked
(String value) Parses a string in RFC 3339 format into aTimestamp
.static Timestamp
Deprecated.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 aComparator
forTimestamps
which sorts in increasing chronological order.Methods in com.google.protobuf.util with parameters of type TimestampModifier and TypeMethodDescriptionstatic Timestamp
Deprecated.Do not use this method for new code.static Duration
Deprecated.Do not use this method for new code.static Timestamp
Timestamps.checkValid
(Timestamp timestamp) Throws anIllegalArgumentException
if the givenTimestamp
is not valid.static int
Compares two timestamps.int
static boolean
Returns true if the givenTimestamp
is valid.static Timestamp
Deprecated.Do not use this method for new code.static long
Convert a Timestamp to the number of microseconds elapsed from the epoch.static long
Convert a Timestamp to the number of milliseconds elapsed from the epoch.static long
Convert a Timestamp to the number of nanoseconds elapsed from the epoch.static long
Convert a Timestamp to the number of seconds elapsed from the epoch.static String
Convert Timestamp to RFC 3339 date string format.