Uses of Class
com.google.protobuf.Timestamp
Packages that use Timestamp
Package
Description
-
Uses of Timestamp in com.google.protobuf
Methods in com.google.protobuf that return TimestampModifier and TypeMethodDescriptionTimestamp.Builder.build()
Timestamp.Builder.buildPartial()
static Timestamp
Timestamp.getDefaultInstance()
Timestamp.Builder.getDefaultInstanceForType()
Timestamp.getDefaultInstanceForType()
static Timestamp
Timestamp.parseDelimitedFrom
(InputStream input) static Timestamp
Timestamp.parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(byte[] data) static Timestamp
Timestamp.parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(com.google.protobuf.ByteString data) static Timestamp
Timestamp.parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(com.google.protobuf.CodedInputStream input) static Timestamp
Timestamp.parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(InputStream input) static Timestamp
Timestamp.parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timestamp
Timestamp.parseFrom
(ByteBuffer data) static Timestamp
Timestamp.parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) Methods in com.google.protobuf that return types with arguments of type TimestampModifier and TypeMethodDescriptioncom.google.protobuf.Parser
<Timestamp> Timestamp.getParserForType()
static com.google.protobuf.Parser
<Timestamp> Timestamp.parser()
Methods 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
Add a duration to a timestamp.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.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
Subtract a duration from a timestamp.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
Add a duration to a timestamp.static Duration
Calculate the difference between two timestamps.static Timestamp
Timestamps.checkValid
(Timestamp timestamp) Throws anIllegalArgumentException
if the givenTimestamp
is not valid.static int
Compares two timestamps.static boolean
Returns true if the givenTimestamp
is valid.static Timestamp
Subtract a duration from a timestamp.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. -
Uses of Timestamp in dev.enola.common.protobuf
Methods in dev.enola.common.protobuf that return TimestampMethods in dev.enola.common.protobuf with parameters of type TimestampModifier and TypeMethodDescriptionstatic long
Timestamps2.epochMillis
(Timestamp ts) static Instant
-
Uses of Timestamp in dev.enola.core.util.proto
Methods in dev.enola.core.util.proto that return TimestampModifier and TypeMethodDescriptionLog.Entry.Builder.getTs()
.google.protobuf.Timestamp ts = 1;
Log.Entry.getTs()
.google.protobuf.Timestamp ts = 1;
Log.EntryOrBuilder.getTs()
.google.protobuf.Timestamp ts = 1;
Methods in dev.enola.core.util.proto with parameters of type TimestampModifier and TypeMethodDescription.google.protobuf.Timestamp ts = 1;
.google.protobuf.Timestamp ts = 1;