Top Deprecated
Protocol Buffers [Util] 3.7.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
com.google.protobuf.util.TimeUtil.getCurrentTime()

Use Timestamps.fromMillis(System.currentTimeMillis()) instead.

com.google.protobuf.util.TimeUtil.getEpoch()

Use Timestamps.fromMillis(0) instead.

Returns:

A Duration parsed from the string.
com.google.protobuf.util.TimeUtil.parseDuration
(String value)

Use Durations#parse instead.

Returns:

A Timestamp parsed from the string.
com.google.protobuf.util.TimeUtil.parseTimestamp
(String value)

Use Timestamps#parse instead.

Returns:

The string representation of the given timestamp.
com.google.protobuf.util.TimeUtil.toString
(Timestamp timestamp)

Use Timestamps#toString instead.

Returns:

The string representation of the given duration.
com.google.protobuf.util.TimeUtil.toString
(Duration duration)

Use Durations#toString instead.