1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00
librespot/protocol/proto/profile_service.proto
Felix Prillwitz 2a574267ae
Update protobuf files (#1424)
* update protobuf definitions

* add additionally required proto files

* update version.rs

* adjust code to protobuf changes

* fix formatting

* apply suggestions, improve errors
2024-12-24 09:39:49 +01:00

35 lines
875 B
Protocol Buffer

// Extracted from: Spotify 1.2.52.442 (windows)
syntax = "proto3";
package spotify.profile_esperanto.proto.v1;
import "identity.proto";
option java_package = "spotify.profile_esperanto.proto";
option java_multiple_files = true;
option optimize_for = CODE_SIZE;
service ProfileService {
rpc GetProfiles(GetProfilesRequest) returns (GetProfilesResponse);
rpc SubscribeToProfiles(GetProfilesRequest) returns (stream GetProfilesResponse);
rpc ChangeDisplayName(ChangeDisplayNameRequest) returns (ChangeDisplayNameResponse);
}
message GetProfilesRequest {
repeated string usernames = 1;
}
message GetProfilesResponse {
repeated identity.v3.UserProfile profiles = 1;
int32 status_code = 2;
}
message ChangeDisplayNameRequest {
string username = 1;
string display_name = 2;
}
message ChangeDisplayNameResponse {
int32 status_code = 1;
}