Optional data: PartialMessage<MainCommandResponse>from field: moosync.types.GetSongResponse get_song = 1;
from field: moosync.types.GetEntityResponse get_entity = 2;
from field: moosync.types.GetCurrentSongResponse get_current_song = 3;
from field: moosync.types.GetPlayerStateResponse get_player_state = 4;
from field: moosync.types.GetVolumeResponse get_volume = 5;
from field: moosync.types.GetTimeResponse get_time = 6;
from field: moosync.types.GetQueueResponse get_queue = 7;
from field: moosync.types.GetPreferenceResponse get_preference = 8;
from field: moosync.types.SetPreferenceResponse set_preference = 9;
from field: moosync.types.GetSecureResponse get_secure = 10;
from field: moosync.types.SetSecureResponse set_secure = 11;
from field: moosync.types.AddSongsResponse add_songs = 12;
from field: moosync.types.RemoveSongResponse remove_song = 13;
from field: moosync.types.UpdateSongResponse update_song = 14;
from field: moosync.types.AddPlaylistResponse add_playlist = 15;
from field: moosync.types.AddToPlaylistResponse add_to_playlist = 16;
from field: moosync.types.RegisterOauthResponse register_oauth = 17;
from field: moosync.types.OpenExternalUrlResponse open_external_url = 18;
from field: moosync.types.UpdateAccountsResponse update_accounts = 19;
from field: moosync.types.RegisterUserPreferenceResponse register_user_preference = 20;
from field: moosync.types.UnregisterUserPreferenceResponse unregister_user_preference = 21;
from field: moosync.types.ExtensionsUpdatedResponse extensions_updated = 22;
from field: moosync.types.GetAppVersionResponse get_app_version = 23;
from field: moosync.types.Error error = 24;
Optional value?: undefinedfrom oneof moosync.types.MainCommandResponse.response
Static Readonly fieldsStatic Readonly runtimeStatic Readonly typeCreate a deep copy.
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.MainCommandResponse