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

Duration nanos.

nanos

Duration nanos.

nanos

Duration nanos.

seconds

Duration seconds.

seconds

Duration seconds.

seconds

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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
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

Returns:
Type Description
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

Returns:
Type Description
Object.<string, *>

Plain object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Duration nanos.

nanos

Duration nanos.

nanos

Duration nanos.

seconds

Duration seconds.

seconds

Duration seconds.

seconds

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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
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

Returns:
Type Description
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

Returns:
Type Description
Object.<string, *>

Plain object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Duration nanos.

nanos

Duration nanos.

nanos

Duration nanos.

seconds

Duration seconds.

seconds

Duration seconds.

seconds

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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
google.protobuf.Duration

Duration

(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

Returns:
Type Description
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

Returns:
Type Description
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

Returns:
Type Description
Object.<string, *>

Plain object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Converts this Duration to JSON.

Returns:
Type Description
Object.<string, *>

JSON object