Instance Methodswift-protobuf 1.28.1SwiftProtobuf
traverse(visitor:)
duration.pb.swift:158func traverse<V>(visitor: inout V) throws where V : Visitor
Other members in extension
Typealiases
Type members
init(
) init(floatLiteral: Double
) Creates a new
Google_Protobuf_Duration
from a floating point literal that is interpreted as a duration in seconds, rounded to the nearest nanosecond.init(seconds: Int64, nanos: Int32
) Creates a new
Google_Protobuf_Duration
equal to the given number of seconds and nanoseconds.init(timeInterval: TimeInterval
) Creates a new
Google_Protobuf_Duration
that is equal to the givenTimeInterval
(measured in seconds), rounded to the nearest nanosecond.static let protoMessageName: String
static func == (lhs: Google_Protobuf_Duration, rhs: Google_Protobuf_Duration
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var nanos: Int32
Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0
seconds
field and a positive or negativenanos
field. For durations of one second or more, a non-zero value for thenanos
field must be of the same sign as theseconds
field. Must be from -999,999,999 to +999,999,999 inclusive.var seconds: Int64
Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
var timeInterval: TimeInterval
The
TimeInterval
(measured in seconds) equal to this duration.var unknownFields: UnknownStorage
func decodeMessage<D>(decoder: inout D
) throws