Duration

google.protobuf. Duration

Represents a Duration.

Constructor

new Duration(propertiesopt)

Constructs a new Duration.

Parameters:
Name Type Attributes Description
properties google.protobuf.IDuration <optional>

Properties to set

Implements:
  • IDuration

Members

nanos :number

Duration nanos.

nanos :number

Duration nanos.

nanos :number

Duration nanos.

seconds :number|string

Duration seconds.

seconds :number|string

Duration seconds.

seconds :number|string

Duration seconds.

Methods

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

google.protobuf. Duration

Represents a Duration.

Constructor

new Duration(propertiesopt)

Constructs a new Duration.

Parameters:
Name Type Attributes Description
properties google.protobuf.IDuration <optional>

Properties to set

Implements:
  • IDuration

Members

nanos :number

Duration nanos.

nanos :number

Duration nanos.

nanos :number

Duration nanos.

seconds :number|string

Duration seconds.

seconds :number|string

Duration seconds.

seconds :number|string

Duration seconds.

Methods

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

google.protobuf. Duration

Represents a Duration.

Constructor

new Duration(propertiesopt)

Constructs a new Duration.

Parameters:
Name Type Attributes Description
properties google.protobuf.IDuration <optional>

Properties to set

Implements:
  • IDuration

Members

nanos :number

Duration nanos.

nanos :number

Duration nanos.

nanos :number

Duration nanos.

seconds :number|string

Duration seconds.

seconds :number|string

Duration seconds.

seconds :number|string

Duration seconds.

Methods

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) fromObject(object) → {google.protobuf.Duration}

Creates a Duration message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Duration message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.protobuf.Duration

Duration

options $protobuf.IConversionOptions <optional>

Conversion options

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.

toJSON() → {Object.<string, *>}

Converts this Duration to JSON.