Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and regenerate steamclient protobufs #327

Merged
merged 1 commit into from
Oct 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ message CMsgClientGamesPlayed {
optional string vr_hmd_vendor = 13;
optional string vr_hmd_model = 14;
optional uint32 launch_option_type = 15 [default = 0];
optional int32 primary_controller_type = 16 [default = -1];
optional string primary_steam_controller_serial = 17;
optional uint32 total_steam_controller_count = 18 [default = 0];
optional uint32 total_non_steam_controller_count = 19 [default = 0];
optional uint64 controller_workshop_file_id = 20 [default = 0];
}

repeated .CMsgClientGamesPlayed.GamePlayed games_played = 1;
Expand Down
26 changes: 8 additions & 18 deletions Resources/Protobufs/steamclient/steammessages_clientserver_2.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ message CMsgClientUCMAddScreenshot {
optional uint32 appid = 1;
optional string filename = 2;
optional string thumbname = 3;
optional string vr_filename = 14;
optional fixed32 rtime32_created = 4;
optional uint32 width = 5;
optional uint32 height = 6;
Expand Down Expand Up @@ -518,8 +519,9 @@ message CMsgClientEmailChangeResponse {
}

message CMsgClientGetCDNAuthToken {
optional uint32 app_id = 1;
optional uint32 depot_id = 1;
optional string host_name = 2;
optional uint32 app_id = 3;
}

message CMsgClientGetDepotDecryptionKey {
Expand All @@ -533,21 +535,6 @@ message CMsgClientGetDepotDecryptionKeyResponse {
optional bytes depot_encryption_key = 3;
}

message CMsgClientGetAppBetaPasswords {
optional uint32 app_id = 1;
}

message CMsgClientGetAppBetaPasswordsResponse {
message BetaPassword {
optional string betaname = 1;
optional string betapassword = 2;
}

optional int32 eresult = 1 [default = 2];
optional uint32 app_id = 2;
repeated .CMsgClientGetAppBetaPasswordsResponse.BetaPassword betapasswords = 3;
}

message CMsgClientCheckAppBetaPassword {
optional uint32 app_id = 1;
optional string betapassword = 2;
Expand All @@ -571,11 +558,14 @@ message CMsgClientUpdateAppJobReport {
optional string error_details = 5;
optional uint32 job_duration = 6;
optional uint32 files_validation_failed = 7;
optional uint64 bytes_downloaded = 8;
optional uint64 bytes_staged = 9;
optional uint64 job_bytes_downloaded = 8;
optional uint64 job_bytes_staged = 9;
optional uint64 bytes_comitted = 10;
optional uint32 start_app_state = 11;
optional fixed64 stats_machine_id = 12;
optional string branch_name = 13;
optional uint64 total_bytes_downloaded = 14;
optional uint64 total_bytes_staged = 15;
}

message CMsgClientDPContentStatsReport {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ message CInventory_CombineItemStacks_Request {
optional string desttimestamp = 6;
}

message CInventory_GetItemDefMeta_Request {
optional uint32 appid = 1;
}

message CInventory_GetItemDefMeta_Response {
optional uint32 modified = 1;
optional string digest = 2;
}

service Inventory {
option (service_description) = "A service that provides access to inventory";
rpc GetInventory (.CInventory_GetInventory_Request) returns (.CInventory_Response) {
Expand Down Expand Up @@ -116,4 +125,7 @@ service Inventory {
rpc CombineItemStacks (.CInventory_CombineItemStacks_Request) returns (.CInventory_Response) {
option (method_description) = "Combine two stacks of items";
}
rpc GetItemDefMeta (.CInventory_GetItemDefMeta_Request) returns (.CInventory_GetItemDefMeta_Response) {
option (method_description) = "Get metadata about the current item definition for this game.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ message PublishedFileDetails {
optional uint32 lifetime_subscriptions = 39;
optional uint32 lifetime_favorited = 40;
optional uint32 lifetime_followers = 41;
optional uint64 lifetime_playtime = 62;
optional uint64 lifetime_playtime_sessions = 63;
optional uint32 views = 42;
optional uint32 image_width = 43;
optional uint32 image_height = 44;
Expand Down Expand Up @@ -339,6 +341,7 @@ message CPublishedFile_QueryFiles_Request {
optional int32 language = 33 [default = 0, (description) = "Language to search in and also what gets returned. Defaults to English."];
repeated .CPublishedFile_QueryFiles_Request.KVTag required_kv_tags = 34 [(description) = "Required key-value tags to match on."];
optional bool totalonly = 16 [(description) = "(Optional) If true, only return the total number of files that satisfy this query."];
optional bool ids_only = 35 [(description) = "(Optional) If true, only return the published file ids of files that satisfy this query."];
optional bool return_vote_data = 17 [(description) = "Return vote data"];
optional bool return_tags = 18 [(description) = "Return tags in the file details"];
optional bool return_kv_tags = 19 [(description) = "Return key-value tags in the file details"];
Expand All @@ -354,6 +357,42 @@ message CPublishedFile_QueryFiles_Response {
repeated .PublishedFileDetails publishedfiledetails = 2 [(description) = "Each file details will be populated, depending on what return values were requested."];
}

message CPublishedFile_StartPlaytimeTracking_Request {
optional uint32 appid = 1;
repeated uint64 publishedfileids = 2;
}

message CPublishedFile_StartPlaytimeTracking_Response {
}

message CPublishedFile_StopPlaytimeTracking_Request {
optional uint32 appid = 1;
repeated uint64 publishedfileids = 2;
}

message CPublishedFile_StopPlaytimeTracking_Response {
}

message CPublishedFile_StopPlaytimeTrackingForAllAppItems_Request {
optional uint32 appid = 1;
}

message CPublishedFile_StopPlaytimeTrackingForAllAppItems_Response {
}

message CPublishedFile_SetPlaytimeForControllerConfigs_Request {
message ControllerConfigUsage {
optional uint64 publishedfileid = 1;
optional float seconds_active = 2;
}

optional uint32 appid = 1;
repeated .CPublishedFile_SetPlaytimeForControllerConfigs_Request.ControllerConfigUsage controller_config_usage = 2;
}

message CPublishedFile_SetPlaytimeForControllerConfigs_Response {
}

service PublishedFile {
option (service_description) = "A service to access published file data";
rpc Subscribe (.CPublishedFile_Subscribe_Request) returns (.CPublishedFile_Subscribe_Response) {
Expand Down Expand Up @@ -392,4 +431,16 @@ service PublishedFile {
rpc QueryFiles (.CPublishedFile_QueryFiles_Request) returns (.CPublishedFile_QueryFiles_Response) {
option (method_description) = "Performs a search query for published files";
}
rpc StartPlaytimeTracking (.CPublishedFile_StartPlaytimeTracking_Request) returns (.CPublishedFile_StartPlaytimeTracking_Response) {
option (method_description) = "Start usage tracking for a given set of published files";
}
rpc StopPlaytimeTracking (.CPublishedFile_StopPlaytimeTracking_Request) returns (.CPublishedFile_StopPlaytimeTracking_Response) {
option (method_description) = "Stops usage tracking for a given set of published files";
}
rpc StopPlaytimeTrackingForAllAppItems (.CPublishedFile_StopPlaytimeTrackingForAllAppItems_Request) returns (.CPublishedFile_StopPlaytimeTrackingForAllAppItems_Response) {
option (method_description) = "Stops usage tracking for all items currently tracked for the specified app";
}
rpc SetPlaytimeForControllerConfigs (.CPublishedFile_SetPlaytimeForControllerConfigs_Request) returns (.CPublishedFile_SetPlaytimeForControllerConfigs_Response) {
option (method_description) = "Stops usage tracking all controller configs for the given app and set the usage time for the for the given controller configs";
}
}
45 changes: 45 additions & 0 deletions SteamKit2/SteamKit2/Base/Generated/SteamMsgClientServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,51 @@ public uint launch_option_type
get { return _launch_option_type; }
set { _launch_option_type = value; }
}

private int _primary_controller_type = (int)-1;
[global::ProtoBuf.ProtoMember(16, IsRequired = false, Name=@"primary_controller_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int primary_controller_type
{
get { return _primary_controller_type; }
set { _primary_controller_type = value; }
}

private string _primary_steam_controller_serial = "";
[global::ProtoBuf.ProtoMember(17, IsRequired = false, Name=@"primary_steam_controller_serial", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string primary_steam_controller_serial
{
get { return _primary_steam_controller_serial; }
set { _primary_steam_controller_serial = value; }
}

private uint _total_steam_controller_count = (uint)0;
[global::ProtoBuf.ProtoMember(18, IsRequired = false, Name=@"total_steam_controller_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue((uint)0)]
public uint total_steam_controller_count
{
get { return _total_steam_controller_count; }
set { _total_steam_controller_count = value; }
}

private uint _total_non_steam_controller_count = (uint)0;
[global::ProtoBuf.ProtoMember(19, IsRequired = false, Name=@"total_non_steam_controller_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue((uint)0)]
public uint total_non_steam_controller_count
{
get { return _total_non_steam_controller_count; }
set { _total_non_steam_controller_count = value; }
}

private ulong _controller_workshop_file_id = (ulong)0;
[global::ProtoBuf.ProtoMember(20, IsRequired = false, Name=@"controller_workshop_file_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(@"0")]
public ulong controller_workshop_file_id
{
get { return _controller_workshop_file_id; }
set { _controller_workshop_file_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
Expand Down
Loading