Uses of Class
com.google.protobuf.Timestamp
-
Packages that use Timestamp Package Description com.google.protobuf com.google.protobuf.util -
-
Uses of Timestamp in com.google.protobuf
Methods in com.google.protobuf that return Timestamp Modifier and Type Method Description TimestampTimestamp.Builder. build()TimestampTimestamp.Builder. buildPartial()static TimestampTimestamp. getDefaultInstance()TimestampTimestamp.Builder. getDefaultInstanceForType()TimestampTimestamp. getDefaultInstanceForType()static TimestampTimestamp. parseDelimitedFrom(java.io.InputStream input)static TimestampTimestamp. parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampTimestamp. parseFrom(byte[] data)static TimestampTimestamp. parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampTimestamp. parseFrom(com.google.protobuf.ByteString data)static TimestampTimestamp. parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampTimestamp. parseFrom(com.google.protobuf.CodedInputStream input)static TimestampTimestamp. parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampTimestamp. parseFrom(java.io.InputStream input)static TimestampTimestamp. parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimestampTimestamp. parseFrom(java.nio.ByteBuffer data)static TimestampTimestamp. parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Methods in com.google.protobuf that return types with arguments of type Timestamp Modifier and Type Method Description com.google.protobuf.Parser<Timestamp>Timestamp. getParserForType()static com.google.protobuf.Parser<Timestamp>Timestamp. parser()Methods in com.google.protobuf with parameters of type Timestamp Modifier and Type Method Description Timestamp.BuilderTimestamp.Builder. mergeFrom(Timestamp other)static Timestamp.BuilderTimestamp. newBuilder(Timestamp prototype) -
Uses of Timestamp in com.google.protobuf.util
Fields in com.google.protobuf.util declared as Timestamp Modifier and Type Field Description static TimestampTimestamps. EPOCHA constant holding theTimestampof epoch time,1970-01-01T00:00:00.000000000Z.static TimestampTimestamps. MAX_VALUEA constant holding the maximum validTimestamp,9999-12-31T23:59:59.999999999Z.static TimestampTimestamps. MIN_VALUEA constant holding the minimum validTimestamp,0001-01-01T00:00:00Z.Methods in com.google.protobuf.util that return Timestamp Modifier and Type Method Description static TimestampTimestamps. add(Timestamp start, Duration length)Add a duration to a timestamp.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 TimestampTimestamps. fromDate(java.util.Date date)Create 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.static TimestampTimestamps. now()Create aTimestampusing the best-available (in terms of precision) system clock.static TimestampTimestamps. parse(java.lang.String value)Parse from RFC 3339 date string to Timestamp.static TimestampTimestamps. parseUnchecked(java.lang.String value)Parses a string in RFC 3339 format into aTimestamp.static TimestampTimestamps. subtract(Timestamp start, Duration length)Subtract a duration from a timestamp.Methods in com.google.protobuf.util that return types with arguments of type Timestamp Modifier and Type Method Description static java.util.Comparator<Timestamp>Timestamps. comparator()Returns aComparatorforTimestampswhich sorts in increasing chronological order.Methods in com.google.protobuf.util with parameters of type Timestamp Modifier and Type Method Description static TimestampTimestamps. add(Timestamp start, Duration length)Add a duration to a timestamp.static DurationTimestamps. between(Timestamp from, Timestamp to)Calculate the difference between two timestamps.static TimestampTimestamps. checkValid(Timestamp timestamp)Throws anIllegalArgumentExceptionif the givenTimestampis not valid.static intTimestamps. compare(Timestamp x, Timestamp y)Compares two timestamps.static booleanTimestamps. isValid(Timestamp timestamp)Returns true if the givenTimestampis valid.static TimestampTimestamps. subtract(Timestamp start, Duration length)Subtract a duration from a timestamp.static longTimestamps. toMicros(Timestamp timestamp)Convert a Timestamp to the number of microseconds elapsed from the epoch.static longTimestamps. toMillis(Timestamp timestamp)Convert a Timestamp to the number of milliseconds elapsed from the epoch.static longTimestamps. toNanos(Timestamp timestamp)Convert a Timestamp to the number of nanoseconds elapsed from the epoch.static longTimestamps. toSeconds(Timestamp timestamp)Convert a Timestamp to the number of seconds elapsed from the epoch.static java.lang.StringTimestamps. toString(Timestamp timestamp)Convert Timestamp to RFC 3339 date string format.
-