Uses of Class
com.google.protobuf.Duration
Packages that use Duration
-
Uses of Duration in com.google.protobuf
Fields in com.google.protobuf declared as DurationFields in com.google.protobuf with type parameters of type DurationMethods in com.google.protobuf that return DurationModifier and TypeMethodDescriptionstatic DurationDuration.getDefaultInstance()static DurationDuration.parseDelimitedFrom(InputStream input) static DurationDuration.parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static DurationDuration.parseFrom(byte[] data) static DurationDuration.parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static DurationDuration.parseFrom(ByteString data) static DurationDuration.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static DurationDuration.parseFrom(CodedInputStream input) static DurationDuration.parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static DurationDuration.parseFrom(InputStream input) static DurationDuration.parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static DurationDuration.parseFrom(ByteBuffer data) static DurationDuration.parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) Methods in com.google.protobuf that return types with arguments of type DurationMethods in com.google.protobuf with parameters of type DurationModifier and TypeMethodDescriptionstatic Duration.BuilderDuration.newBuilder(Duration prototype) -
Uses of Duration in com.google.protobuf.util
Fields in com.google.protobuf.util declared as DurationModifier and TypeFieldDescriptionstatic final DurationDurations.MAX_VALUEA constant holding the maximum validDuration, approximately+10,000years.static final DurationDurations.MIN_VALUEA constant holding the minimum validDuration, approximately-10,000years.static final DurationDurations.ZEROA constant holding the duration of zero.Methods in com.google.protobuf.util that return DurationModifier and TypeMethodDescriptionstatic DurationAdd two durations.static DurationCalculate the difference between two timestamps.static DurationDurations.checkNotNegative(Duration duration) Ensures that the givenDurationis not negative.static DurationDurations.checkPositive(Duration duration) Ensures that the givenDurationis positive.static DurationDurations.checkValid(Duration duration) Throws anIllegalArgumentExceptionif the givenDurationis not valid.static DurationDurations.checkValid(Duration.Builder durationBuilder) Builds the given builder and throws anIllegalArgumentExceptionif it is not valid.static DurationDurations.fromDays(long days) Create a Duration from the number of days.static DurationDurations.fromHours(long hours) Create a Duration from the number of hours.static DurationDurations.fromMicros(long microseconds) Create a Duration from the number of microseconds.static DurationDurations.fromMillis(long milliseconds) Create a Duration from the number of milliseconds.static DurationDurations.fromMinutes(long minutes) Create a Duration from the number of minutes.static DurationDurations.fromNanos(long nanoseconds) Create a Duration from the number of nanoseconds.static DurationDurations.fromSeconds(long seconds) Create a Duration from the number of seconds.(package private) static DurationDurations.normalizedDuration(long seconds, int nanos) static DurationParse a string to produce a duration.static DurationDurations.parseUnchecked(String value) Parses a string in RFC 3339 format into aDuration.static DurationSubtract a duration from another.Methods in com.google.protobuf.util that return types with arguments of type DurationModifier and TypeMethodDescriptionstatic Comparator<Duration> Durations.comparator()Returns aComparatorforDurations which sorts in increasing chronological order.Methods in com.google.protobuf.util with parameters of type DurationModifier and TypeMethodDescriptionstatic DurationAdd two durations.static TimestampAdd a duration to a timestamp.static DurationDurations.checkNotNegative(Duration duration) Ensures that the givenDurationis not negative.static DurationDurations.checkPositive(Duration duration) Ensures that the givenDurationis positive.static DurationDurations.checkValid(Duration duration) Throws anIllegalArgumentExceptionif the givenDurationis not valid.static intCompares two durations.intstatic booleanDurations.isNegative(Duration duration) Returns whether the givenDurationis negative or not.static booleanDurations.isPositive(Duration duration) Returns whether the givenDurationis positive or not.static booleanReturns true if the givenDurationis valid.static DurationSubtract a duration from another.static TimestampSubtract a duration from a timestamp.static longConvert a Duration to the number of days.static longConvert a Duration to the number of hours.static longConvert a Duration to the number of microseconds.static longConvert a Duration to the number of milliseconds.static longConvert a Duration to the number of minutes.static longConvert a Duration to the number of nanoseconds.static longConvert a Duration to the number of seconds.static doubleDurations.toSecondsAsDouble(Duration duration) Returns the number of seconds of the given duration as adouble.static StringConvert Duration to string format.