new GenericCollectionValue(opt_dataopt)
Generated by JsPbCodeGenerator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opt_data |
Array |
<optional> |
Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid. |
Extends
- jspb.Message
Members
-
static displayName
-
-
static Type :number
-
Properties:
Name Type Description NULL
number BYTES
number BYTE
number SHORT
number INT
number LONG
number BOOL
number FLOAT
number DOUBLE
number OBJECT
number STRING
number MAP
number ARRAY
number -
static ValueCase :number
-
Properties:
Name Type Description VALUE_NOT_SET
number INT_VALUE
number LONG_INT_VALUE
number BOOL_VALUE
number STRING_VALUE
number BYTES_VALUE
number FLOAT_VALUE
number DOUBLE_VALUE
number
Methods
-
static deserializeBinary(bytes) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Deserializes binary data (in protobuf wire format).
Parameters:
Name Type Description bytes
jspb.ByteSource The bytes to deserialize. -
static deserializeBinaryFromReader(msgnon-null, readernon-null) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Deserializes binary data (in protobuf wire format) from the given reader into the given message object.
Parameters:
Name Type Description msg
proto.cn.leancloud.play.proto.GenericCollectionValue The message object to deserialize into. reader
jspb.BinaryReader The BinaryReader to use. -
static serializeBinaryToWriter(messagenon-null, writernon-null)
-
Serializes the given message to binary data (in protobuf wire format), writing to the given BinaryWriter.
Parameters:
Name Type Description message
proto.cn.leancloud.play.proto.GenericCollectionValue writer
jspb.BinaryWriter -
static toObject(includeInstance, msgnon-null) → non-null {Object}
-
Static version of the {@see toObject} method.
Parameters:
Name Type Description includeInstance
boolean | undefined Deprecated. Whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration msg
proto.cn.leancloud.play.proto.GenericCollectionValue The msg instance to transform. Returns:
Object -
clearBoolValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
clearBytesValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
clearDoubleValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
clearFloatValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
clearIntValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
clearLongIntValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
clearStringValue() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Clears the field making it undefined.
Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
getBoolValue() → {boolean}
-
optional bool bool_value = 4;
Returns:
boolean -
getBytesValue() → non-null {string|Uint8Array}
-
optional bytes bytes_value = 6;
Returns:
string | Uint8Array -
getBytesValue_asB64() → {string}
-
optional bytes bytes_value = 6; This is a type-conversion wrapper around `getBytesValue()`
Returns:
string -
getBytesValue_asU8() → non-null {Uint8Array}
-
optional bytes bytes_value = 6; Note that Uint8Array is not supported on all browsers.
Returns:
Uint8Array -
getDoubleValue() → {number}
-
optional double double_value = 8;
Returns:
number -
getFloatValue() → {number}
-
optional float float_value = 7;
Returns:
number -
getIntValue() → {number}
-
optional int32 int_value = 2;
Returns:
number -
getLongIntValue() → {number}
-
optional int64 long_int_value = 3;
Returns:
number -
getObjectTypeId() → {number}
-
optional int32 object_type_id = 9;
Returns:
number -
getStringValue() → {string}
-
optional string string_value = 5;
Returns:
string -
getType() → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue.Type}
-
optional Type type = 1;
-
getValueCase() → {proto.cn.leancloud.play.proto.GenericCollectionValue.ValueCase}
-
-
hasBoolValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasBytesValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasDoubleValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasFloatValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasIntValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasLongIntValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasStringValue() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
serializeBinary() → non-null {Uint8Array}
-
Serializes the message to binary data (in protobuf wire format).
Returns:
Uint8Array -
setBoolValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
boolean Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setBytesValue(valuenon-null) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
string | Uint8Array Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setDoubleValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
number Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setFloatValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
number Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setIntValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
number Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setLongIntValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
number Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setObjectTypeId(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
number Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setStringValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
string Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setType(valuenon-null) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description value
proto.cn.leancloud.play.proto.GenericCollectionValue.Type Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
toObject(opt_includeInstanceopt) → non-null {Object}
-
Creates an object representation of this proto. Field names that are reserved in JavaScript and will be renamed to pb_name. Optional fields that are not set will be set to undefined. To access a reserved field use, foo.pb_
, eg, foo.pb_default. For the list of reserved names please see: net/proto2/compiler/js/internal/generator.cc#kKeyword. Parameters:
Name Type Attributes Description opt_includeInstance
boolean <optional>
Deprecated. whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration Returns:
Object