decodeMessage(decoder:)
duration.pb.swift:145mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
s13SwiftProtobuf07Google_B9_DurationV13decodeMessage7decoderyxz_tKAA7DecoderRzlF
What are these?6CKIL
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_Duration
A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like “day” or “month”. It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years.
protocol Decoder
Abstract protocol used by the generated code to deserialize data.
init()
init(floatLiteral value: 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(rounding timeInterval: TimeInterval, rule: FloatingPointRoundingRule = .toNearestOrAwayFromZero)
Creates a new Google_Protobuf_Duration
that is equal to the given TimeInterval
(measured in seconds), rounded to the nearest nanosecond according to the given rounding rule.
init(rounding duration: Duration, rule: FloatingPointRoundingRule = .toNearestOrAwayFromZero)
Creates a new Google_Protobuf_Duration
by rounding a Duration
to the nearest nanosecond according to the given rounding rule.
init(seconds: Int64 = 0, nanos: Int32 = 0)
Creates a new Google_Protobuf_Duration
equal to the given number of seconds and nanoseconds.
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
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 negative nanos
field. For durations of one second or more, a non-zero value for the nanos
field must be of the same sign as the seconds
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 { get }
The TimeInterval
(measured in seconds) equal to this duration.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_Duration, rhs: Google_Protobuf_Duration) -> Bool
func traverse<V>(visitor: inout V) throws where V : Visitor
typealias FloatLiteralType = Double
init(timeInterval: TimeInterval)
Creates a new Google_Protobuf_Duration
that is equal to the given TimeInterval
(measured in seconds), rounded to the nearest nanosecond.