From ba0492bc38f4d52fe2f58d19c07c8325d0261420 Mon Sep 17 00:00:00 2001 From: RobDavenport Date: Sun, 21 Apr 2024 17:43:32 +0900 Subject: [PATCH] interface changes --- gamercade_interface/proto/game.proto | 7 ++++--- gamercade_interface/src/output/game.rs | 10 ++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gamercade_interface/proto/game.proto b/gamercade_interface/proto/game.proto index 54c235a..347c3e9 100644 --- a/gamercade_interface/proto/game.proto +++ b/gamercade_interface/proto/game.proto @@ -45,10 +45,11 @@ message GameInfoBasic { message GameInfoDetailed { GameInfoBasic basic_info = 1; - string long_description = 2; - repeated Author authors = 3; + optional string long_description = 2; + repeated GameAuthor authors = 3; } -message Author { +message GameAuthor { sfixed64 user_id = 1; + string title = 2; } diff --git a/gamercade_interface/src/output/game.rs b/gamercade_interface/src/output/game.rs index 8f5ca8b..9e1cec8 100644 --- a/gamercade_interface/src/output/game.rs +++ b/gamercade_interface/src/output/game.rs @@ -52,16 +52,18 @@ pub struct GameInfoBasic { pub struct GameInfoDetailed { #[prost(message, optional, tag = "1")] pub basic_info: ::core::option::Option, - #[prost(string, tag = "2")] - pub long_description: ::prost::alloc::string::String, + #[prost(string, optional, tag = "2")] + pub long_description: ::core::option::Option<::prost::alloc::string::String>, #[prost(message, repeated, tag = "3")] - pub authors: ::prost::alloc::vec::Vec, + pub authors: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct Author { +pub struct GameAuthor { #[prost(sfixed64, tag = "1")] pub user_id: i64, + #[prost(string, tag = "2")] + pub title: ::prost::alloc::string::String, } /// Generated client implementations. pub mod game_service_client {