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 NULLnumber BYTESnumber BYTEnumber SHORTnumber INTnumber LONGnumber BOOLnumber FLOATnumber DOUBLEnumber OBJECTnumber STRINGnumber MAPnumber ARRAYnumber -
static ValueCase :number
-
Properties:
Name Type Description VALUE_NOT_SETnumber INT_VALUEnumber LONG_INT_VALUEnumber BOOL_VALUEnumber STRING_VALUEnumber BYTES_VALUEnumber FLOAT_VALUEnumber DOUBLE_VALUEnumber
Methods
-
static deserializeBinary(bytes) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Deserializes binary data (in protobuf wire format).
Parameters:
Name Type Description bytesjspb.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 msgproto.cn.leancloud.play.proto.GenericCollectionValue The message object to deserialize into. readerjspb.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 messageproto.cn.leancloud.play.proto.GenericCollectionValue writerjspb.BinaryWriter -
static toObject(includeInstance, msgnon-null) → non-null {Object}
-
Static version of the {@see toObject} method.
Parameters:
Name Type Description includeInstanceboolean | undefined Deprecated. Whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration msgproto.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 valueboolean Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setBytesValue(valuenon-null) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuestring | Uint8Array Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setDoubleValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuenumber Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setFloatValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuenumber Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setIntValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuenumber Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setLongIntValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuenumber Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setObjectTypeId(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuenumber Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setStringValue(value) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valuestring Returns:
proto.cn.leancloud.play.proto.GenericCollectionValue - returns this -
setType(valuenon-null) → non-null {proto.cn.leancloud.play.proto.GenericCollectionValue}
-
Parameters:
Name Type Description valueproto.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_includeInstanceboolean <optional>
Deprecated. whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration Returns:
Object