Optional data: PartialMessage<MainCommand>from field: moosync.types.GetSongRequest get_song = 1;
from field: moosync.types.GetEntityRequest get_entity = 2;
from field: moosync.types.GetCurrentSongRequest get_current_song = 3;
from field: moosync.types.GetPlayerStateRequest get_player_state = 4;
from field: moosync.types.GetVolumeRequest get_volume = 5;
from field: moosync.types.GetTimeRequest get_time = 6;
from field: moosync.types.GetQueueRequest get_queue = 7;
from field: moosync.types.GetPreferenceRequest get_preference = 8;
from field: moosync.types.SetPreferenceRequest set_preference = 9;
from field: moosync.types.GetSecureRequest get_secure = 10;
from field: moosync.types.SetSecureRequest set_secure = 11;
from field: moosync.types.AddSongsRequest add_songs = 12;
from field: moosync.types.RemoveSongRequest remove_song = 13;
from field: moosync.types.UpdateSongRequest update_song = 14;
from field: moosync.types.AddPlaylistRequest add_playlist = 15;
from field: moosync.types.AddToPlaylistRequest add_to_playlist = 16;
from field: moosync.types.RegisterOauthRequest register_oauth = 17;
from field: moosync.types.OpenExternalUrlRequest open_external_url = 18;
from field: moosync.types.UpdateAccountsRequest update_accounts = 19;
from field: moosync.types.RegisterUserPreferenceRequest register_user_preference = 20;
from field: moosync.types.UnregisterUserPreferenceRequest unregister_user_preference = 21;
from field: moosync.types.ExtensionsUpdatedRequest extensions_updated = 22;
from field: moosync.types.GetAppVersionRequest get_app_version = 23;
Optional value?: undefinedfrom oneof moosync.types.MainCommand.command
Static Readonly fieldsStatic Readonly runtimeStatic Readonly typeCreate a deep copy.
Compare with a message of the same type. Note that this function disregards extensions and unknown fields.
Parse from binary data, merging fields.
Repeated fields are appended. Map entries are added, overwriting existing keys.
If a message field is already present, it will be merged with the new data.
Optional options: Partial<BinaryReadOptions>Parse a message from a JSON value.
Optional options: Partial<JsonReadOptions>Parse a message from a JSON string.
Optional options: Partial<JsonReadOptions>Retrieve the MessageType of this message - a singleton that represents the protobuf message declaration and provides metadata for reflection- based operations.
Serialize the message to binary data.
Optional options: Partial<BinaryWriteOptions>Protected toJSONOverride for serialization behavior. This will be invoked when calling JSON.stringify on this message (i.e. JSON.stringify(msg)).
Note that this will not serialize google.protobuf.Any with a packed message because the protobuf JSON format specifies that it needs to be unpacked, and this is only possible with a type registry to look up the message type. As a result, attempting to serialize a message with this type will throw an Error.
This method is protected because you should not need to invoke it directly -- instead use JSON.stringify or toJsonString for stringified JSON. Alternatively, if actual JSON is desired, you should use toJson.
Serialize the message to a JSON value, a JavaScript value that can be passed to JSON.stringify().
Optional options: Partial<JsonWriteOptions>Serialize the message to a JSON string.
Optional options: Partial<JsonWriteStringOptions>Static equalsStatic fromOptional options: Partial<BinaryReadOptions>Static fromOptional options: Partial<JsonReadOptions>Static fromOptional options: Partial<JsonReadOptions>
Generated
from message moosync.types.MainCommand