From 107f164180f3cd49f9ad79f648f1994eb146fc73 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 31 Jul 2023 19:54:31 +0300 Subject: [PATCH] Fix field type --- libgm/gmproto/settings.pb.go | 22 +++++++++++----------- libgm/gmproto/settings.pb.raw | 6 +++--- libgm/gmproto/settings.proto | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libgm/gmproto/settings.pb.go b/libgm/gmproto/settings.pb.go index 2fcd7d4..4102efb 100644 --- a/libgm/gmproto/settings.pb.go +++ b/libgm/gmproto/settings.pb.go @@ -27,14 +27,14 @@ type Settings struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - OpCodeData *SomeData `protobuf:"bytes,3,opt,name=opCodeData,proto3" json:"opCodeData,omitempty"` - RcsSettings *RCSSettings `protobuf:"bytes,4,opt,name=rcsSettings,proto3" json:"rcsSettings,omitempty"` - BugleVersion string `protobuf:"bytes,5,opt,name=bugleVersion,proto3" json:"bugleVersion,omitempty"` - Bool1 bool `protobuf:"varint,7,opt,name=bool1,proto3" json:"bool1,omitempty"` - BoolFields2 *BooleanFields2 `protobuf:"bytes,8,opt,name=boolFields2,proto3" json:"boolFields2,omitempty"` - EmptyString string `protobuf:"bytes,9,opt,name=emptyString,proto3" json:"emptyString,omitempty"` - BoolFields3 *BooleanFields3 `protobuf:"bytes,10,opt,name=boolFields3,proto3" json:"boolFields3,omitempty"` + Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + OpCodeData *SomeData `protobuf:"bytes,3,opt,name=opCodeData,proto3" json:"opCodeData,omitempty"` + RcsSettings *RCSSettings `protobuf:"bytes,4,opt,name=rcsSettings,proto3" json:"rcsSettings,omitempty"` + BugleVersion string `protobuf:"bytes,5,opt,name=bugleVersion,proto3" json:"bugleVersion,omitempty"` + Bool1 bool `protobuf:"varint,7,opt,name=bool1,proto3" json:"bool1,omitempty"` + BoolFields2 *BooleanFields2 `protobuf:"bytes,8,opt,name=boolFields2,proto3" json:"boolFields2,omitempty"` + MysteriousBytes []byte `protobuf:"bytes,9,opt,name=mysteriousBytes,proto3" json:"mysteriousBytes,omitempty"` + BoolFields3 *BooleanFields3 `protobuf:"bytes,10,opt,name=boolFields3,proto3" json:"boolFields3,omitempty"` } func (x *Settings) Reset() { @@ -111,11 +111,11 @@ func (x *Settings) GetBoolFields2() *BooleanFields2 { return nil } -func (x *Settings) GetEmptyString() string { +func (x *Settings) GetMysteriousBytes() []byte { if x != nil { - return x.EmptyString + return x.MysteriousBytes } - return "" + return nil } func (x *Settings) GetBoolFields3() *BooleanFields3 { diff --git a/libgm/gmproto/settings.pb.raw b/libgm/gmproto/settings.pb.raw index d2b7859..1da60c0 100644 --- a/libgm/gmproto/settings.pb.raw +++ b/libgm/gmproto/settings.pb.raw @@ -1,5 +1,5 @@ -settings.protosettings"ï +settings.protosettings"÷ Settings" data ( 2.settings.DataRdata2 @@ -8,8 +8,8 @@ opCodeData7 rcsSettings ( 2.settings.RCSSettingsR rcsSettings" bugleVersion ( R bugleVersion bool1 (Rbool1: - boolFields2 ( 2.settings.BooleanFields2R boolFields2 - emptyString ( R emptyString: + boolFields2 ( 2.settings.BooleanFields2R boolFields2( +mysteriousBytes ( RmysteriousBytes: boolFields3 ( 2.settings.BooleanFields3R boolFields3"£ Data. diff --git a/libgm/gmproto/settings.proto b/libgm/gmproto/settings.proto index 51a2da7..9f263c1 100644 --- a/libgm/gmproto/settings.proto +++ b/libgm/gmproto/settings.proto @@ -11,7 +11,7 @@ message Settings { string bugleVersion = 5; bool bool1 = 7; BooleanFields2 boolFields2 = 8; - string emptyString = 9; + bytes mysteriousBytes = 9; BooleanFields3 boolFields3 = 10; }