Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/proto/google/protobuf/duration

Index

Interfaces

Type aliases

Variables

Type aliases

DeepPartial

DeepPartial<T>: T extends Builtin ? T : T extends infer U[] ? DeepPartial<U>[] : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {[ K in keyof T]: DeepPartial<T[K]> } : Partial<T>

Type parameters

  • T

Variables

Duration

Duration: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): Duration
  • encode: function
    • encode(message: Duration, writer?: Writer): Writer
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { nanos?: number; seconds?: number }): Duration
    • Parameters

      • object: { nanos?: number; seconds?: number }
        • Optional nanos?: number

          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.

        • Optional seconds?: number

          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

      Returns Duration

  • toJSON: function

Const protobufPackage

protobufPackage: "google.protobuf" = 'google.protobuf'

Generated using TypeDoc