Value

google.firestore.v1beta1. Value

Represents a Value.

Constructor

new Value(propertiesopt)

Constructs a new Value.

Parameters:
Name Type Attributes Description
properties google.firestore.v1beta1.IValue <optional>

Properties to set

Implements:
  • IValue

Members

arrayValue :google.firestore.v1beta1.IArrayValue|null|undefined

Value arrayValue.

booleanValue :boolean

Value booleanValue.

bytesValue :Uint8Array

Value bytesValue.

doubleValue :number

Value doubleValue.

geoPointValue :google.type.ILatLng|null|undefined

Value geoPointValue.

integerValue :number|string

Value integerValue.

mapValue :google.firestore.v1beta1.IMapValue|null|undefined

Value mapValue.

nullValue :google.protobuf.NullValue

Value nullValue.

referenceValue :string

Value referenceValue.

stringValue :string

Value stringValue.

timestampValue :google.protobuf.ITimestamp|null|undefined

Value timestampValue.

valueType :"nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue"|undefined

Value valueType.

Methods

(static) fromObject(object) → {google.firestore.v1beta1.Value}

Creates a Value 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 Value message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.firestore.v1beta1.Value

Value

options $protobuf.IConversionOptions <optional>

Conversion options

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

Converts this Value to JSON.