public final class TimestampValidation extends Object
TimestampValidation implements PGV validation for protobuf Timestamp fields.| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Timestamp |
currentTimestamp() |
static com.google.protobuf.Duration |
toDuration(long seconds,
long nanos)
Converts
seconds and nanos to a protobuf Duration. |
static com.google.protobuf.Timestamp |
toTimestamp(long seconds,
int nanos)
Converts
seconds and nanos to a protobuf Timestamp. |
static void |
within(String field,
com.google.protobuf.Timestamp value,
com.google.protobuf.Duration duration,
com.google.protobuf.Timestamp when) |
public static void within(String field, com.google.protobuf.Timestamp value, com.google.protobuf.Duration duration, com.google.protobuf.Timestamp when) throws ValidationException
ValidationExceptionpublic static com.google.protobuf.Timestamp toTimestamp(long seconds,
int nanos)
seconds and nanos to a protobuf Timestamp.public static com.google.protobuf.Duration toDuration(long seconds,
long nanos)
seconds and nanos to a protobuf Duration.public static com.google.protobuf.Timestamp currentTimestamp()
Copyright © 2022. All rights reserved.