new RequestMessage(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 RequestCase :number
-
Properties:
Name Type Description REQUEST_NOT_SET
number SESSION_OPEN
number CREATE_ROOM
number JOIN_ROOM
number UPDATE_PROPERTY
number UPDATE_SYS_PROPERTY
number UPDATE_MASTER_CLIENT
number KICK_MEMBER
number EVENTS
number INTEREST_GROUPS
number JOIN_LOBBY
number
Methods
-
static deserializeBinary(bytes) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
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.game_protobuf_messages.proto.messages.RequestMessage}
-
Deserializes binary data (in protobuf wire format) from the given reader into the given message object.
Parameters:
Name Type Description msg
proto.game_protobuf_messages.proto.messages.RequestMessage 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.game_protobuf_messages.proto.messages.RequestMessage 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.game_protobuf_messages.proto.messages.RequestMessage The msg instance to transform. Returns:
Object -
clearCreateRoom() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearEvents() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearInterestGroups() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearJoinLobby() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearJoinRoom() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearKickMember() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearSessionOpen() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearUpdateMasterClient() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearUpdateProperty() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
clearUpdateSysProperty() → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Clears the message field making it undefined.
Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
getCreateRoom() → nullable {proto.game_protobuf_messages.proto.messages.CreateRoomRequest}
-
optional CreateRoomRequest create_room = 21;
-
getEvents() → nullable {proto.game_protobuf_messages.proto.messages.EventsRequest}
-
optional EventsRequest events = 27;
-
getI() → {number}
-
optional int32 i = 1;
Returns:
number -
getInterestGroups() → nullable {proto.game_protobuf_messages.proto.messages.InterestGroups}
-
optional InterestGroups interest_groups = 28;
-
getJoinLobby() → nullable {proto.game_protobuf_messages.proto.messages.JoinLobbyRequest}
-
optional JoinLobbyRequest join_lobby = 54;
-
getJoinRoom() → nullable {proto.game_protobuf_messages.proto.messages.JoinRoomRequest}
-
optional JoinRoomRequest join_room = 22;
-
getKickMember() → nullable {proto.game_protobuf_messages.proto.messages.KickMemberRequest}
-
optional KickMemberRequest kick_member = 26;
-
getRequestCase() → {proto.game_protobuf_messages.proto.messages.RequestMessage.RequestCase}
-
-
getSessionOpen() → nullable {proto.game_protobuf_messages.proto.messages.SessionOpenRequest}
-
optional SessionOpenRequest session_open = 20;
-
getUpdateMasterClient() → nullable {proto.game_protobuf_messages.proto.messages.UpdateMasterClientRequest}
-
optional UpdateMasterClientRequest update_master_client = 25;
-
getUpdateProperty() → nullable {proto.game_protobuf_messages.proto.messages.UpdatePropertyRequest}
-
optional UpdatePropertyRequest update_property = 23;
-
getUpdateSysProperty() → nullable {proto.game_protobuf_messages.proto.messages.UpdateSysPropertyRequest}
-
optional UpdateSysPropertyRequest update_sys_property = 24;
-
hasCreateRoom() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasEvents() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasInterestGroups() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasJoinLobby() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasJoinRoom() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasKickMember() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasSessionOpen() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasUpdateMasterClient() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasUpdateProperty() → {boolean}
-
Returns whether this field is set.
Returns:
boolean -
hasUpdateSysProperty() → {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 -
setCreateRoom(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.CreateRoomRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setEvents(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.EventsRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setI(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
number Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setInterestGroups(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.InterestGroups | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setJoinLobby(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.JoinLobbyRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setJoinRoom(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.JoinRoomRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setKickMember(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.KickMemberRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setSessionOpen(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.SessionOpenRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setUpdateMasterClient(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.UpdateMasterClientRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setUpdateProperty(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.UpdatePropertyRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - returns this -
setUpdateSysProperty(value) → non-null {proto.game_protobuf_messages.proto.messages.RequestMessage}
-
Parameters:
Name Type Description value
proto.game_protobuf_messages.proto.messages.UpdateSysPropertyRequest | undefined Returns:
proto.game_protobuf_messages.proto.messages.RequestMessage - 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