Fix field type

This commit is contained in:
Tulir Asokan 2023-07-31 19:54:31 +03:00
parent 8b8ac305bb
commit 107f164180
3 changed files with 15 additions and 15 deletions

View file

@ -27,14 +27,14 @@ type Settings struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,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"` OpCodeData *SomeData `protobuf:"bytes,3,opt,name=opCodeData,proto3" json:"opCodeData,omitempty"`
RcsSettings *RCSSettings `protobuf:"bytes,4,opt,name=rcsSettings,proto3" json:"rcsSettings,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"` BugleVersion string `protobuf:"bytes,5,opt,name=bugleVersion,proto3" json:"bugleVersion,omitempty"`
Bool1 bool `protobuf:"varint,7,opt,name=bool1,proto3" json:"bool1,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"` BoolFields2 *BooleanFields2 `protobuf:"bytes,8,opt,name=boolFields2,proto3" json:"boolFields2,omitempty"`
EmptyString string `protobuf:"bytes,9,opt,name=emptyString,proto3" json:"emptyString,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"` BoolFields3 *BooleanFields3 `protobuf:"bytes,10,opt,name=boolFields3,proto3" json:"boolFields3,omitempty"`
} }
func (x *Settings) Reset() { func (x *Settings) Reset() {
@ -111,11 +111,11 @@ func (x *Settings) GetBoolFields2() *BooleanFields2 {
return nil return nil
} }
func (x *Settings) GetEmptyString() string { func (x *Settings) GetMysteriousBytes() []byte {
if x != nil { if x != nil {
return x.EmptyString return x.MysteriousBytes
} }
return "" return nil
} }
func (x *Settings) GetBoolFields3() *BooleanFields3 { func (x *Settings) GetBoolFields3() *BooleanFields3 {

View file

@ -1,5 +1,5 @@
settings.protosettings"ï settings.protosettings"÷
Settings" Settings"
data ( 2.settings.DataRdata2 data ( 2.settings.DataRdata2
@ -8,8 +8,8 @@ opCodeData7
rcsSettings ( 2.settings.RCSSettingsR rcsSettings" rcsSettings ( 2.settings.RCSSettingsR rcsSettings"
bugleVersion ( R bugleVersion bugleVersion ( R bugleVersion
bool1 (Rbool1: bool1 (Rbool1:
boolFields2 ( 2.settings.BooleanFields2R boolFields2 boolFields2 ( 2.settings.BooleanFields2R boolFields2(
emptyString ( R emptyString: mysteriousBytes ( RmysteriousBytes:
boolFields3 boolFields3
( 2.settings.BooleanFields3R boolFields3"£ ( 2.settings.BooleanFields3R boolFields3"£
Data. Data.

View file

@ -11,7 +11,7 @@ message Settings {
string bugleVersion = 5; string bugleVersion = 5;
bool bool1 = 7; bool bool1 = 7;
BooleanFields2 boolFields2 = 8; BooleanFields2 boolFields2 = 8;
string emptyString = 9; bytes mysteriousBytes = 9;
BooleanFields3 boolFields3 = 10; BooleanFields3 boolFields3 = 10;
} }