misc other fields

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-25 00:11:10 -07:00
parent cf75b4fbe6
commit 68139bf670
2 changed files with 57 additions and 28 deletions

View File

@ -30,6 +30,9 @@ type Config struct {
Filename string `protobuf:"bytes,7,opt,name=filename,proto3" json:"filename,omitempty"`
Accounts []*Config_Account `protobuf:"bytes,8,rep,name=accounts,proto3" json:"accounts,omitempty"`
Counter int32 `protobuf:"varint,9,opt,name=counter,proto3" json:"counter,omitempty"`
Errors int32 `protobuf:"varint,10,opt,name=errors,proto3" json:"errors,omitempty"`
Crashes int32 `protobuf:"varint,11,opt,name=crashes,proto3" json:"crashes,omitempty"`
Crash string `protobuf:"bytes,12,opt,name=crash,proto3" json:"crash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -123,6 +126,27 @@ func (m *Config) GetCounter() int32 {
return 0
}
func (m *Config) GetErrors() int32 {
if m != nil {
return m.Errors
}
return 0
}
func (m *Config) GetCrashes() int32 {
if m != nil {
return m.Crashes
}
return 0
}
func (m *Config) GetCrash() string {
if m != nil {
return m.Crash
}
return ""
}
type Config_Account struct {
Nick string `protobuf:"bytes,1,opt,name=nick,proto3" json:"nick,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
@ -218,24 +242,26 @@ func init() {
func init() { proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) }
var fileDescriptor_3eaf2c85e69e9ea4 = []byte{
// 297 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x4b, 0x4e, 0xc3, 0x30,
0x10, 0x86, 0x95, 0xa6, 0x79, 0x4d, 0x59, 0x59, 0x08, 0x59, 0x05, 0xa1, 0x88, 0x55, 0x56, 0x59,
0xc0, 0x82, 0x35, 0x42, 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 0x6b, 0xb1,
0xd9, 0xae, 0x33, 0x6b, 0x3e, 0xe1, 0x3a, 0x1b, 0xb7, 0x8e, 0x67, 0xab, 0xcc, 0xa8, 0x03, 0x97,
0xe8, 0x26, 0x63, 0x0e, 0xec, 0x17, 0x63, 0xa5, 0xf5, 0xa2, 0xa6, 0xd6, 0xab, 0xf1, 0xfc, 0x47,
0x5b, 0xf4, 0x4f, 0x9b, 0x15, 0xa3, 0x4e, 0x95, 0x90, 0xd8, 0x8d, 0xb1, 0xbb, 0xaa, 0xd8, 0xed,
0x46, 0x35, 0x19, 0x94, 0x12, 0x31, 0xcc, 0x75, 0x8c, 0xff, 0xf9, 0xe9, 0x27, 0x00, 0x00, 0xff,
0xff, 0x15, 0x4b, 0x72, 0x6e, 0xf7, 0x01, 0x00, 0x00,
// 327 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x41, 0x4e, 0xf3, 0x30,
0x10, 0x85, 0x95, 0xb6, 0x49, 0x93, 0x69, 0x57, 0xd6, 0xaf, 0x5f, 0xa3, 0x82, 0x50, 0xc4, 0x2a,
0xab, 0x2c, 0x60, 0xc1, 0x1a, 0x21, 0xf6, 0xc8, 0x88, 0x03, 0x24, 0xa9, 0x9b, 0x58, 0x6d, 0xed,
0xca, 0x76, 0xd4, 0xb3, 0x70, 0x16, 0x2e, 0x87, 0x3c, 0xae, 0x4b, 0x60, 0xf7, 0xbe, 0x19, 0xfb,
0xc5, 0xef, 0x29, 0xb0, 0xee, 0xb4, 0xda, 0xc9, 0xbe, 0x3e, 0x19, 0xed, 0x34, 0x5b, 0x9d, 0xa5,
0x7b, 0xf3, 0xaa, 0x1d, 0x77, 0xf7, 0x9f, 0x0b, 0xc8, 0x5e, 0x68, 0xcb, 0x18, 0x2c, 0x3e, 0xde,
0x5f, 0x39, 0x26, 0x65, 0x52, 0x15, 0x9c, 0x34, 0xfb, 0x07, 0xe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0xfa, 0xd8, 0x48, 0x45, 0xdb, 0x8c, 0xb6, 0x93, 0x89, 0x7f, 0xdd, 0x49, 0x1b,
0x47, 0xe5, 0xa6, 0x9c, 0x74, 0x9b, 0xd1, 0xff, 0xf2, 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x4b,
0xdb, 0xa0, 0x1c, 0x3f, 0x02, 0x00, 0x00,
}

View File

@ -2,15 +2,18 @@ syntax = "proto3";
package witProtobuf;
message Config {
string USER = 1;
int32 width = 2;
int32 height = 3;
string hostname = 4;
bool debugging = 5;
bool debugtable = 6;
string filename = 7;
string USER = 1;
int32 width = 2;
int32 height = 3;
string hostname = 4;
bool debugging = 5;
bool debugtable = 6;
string filename = 7;
repeated Account accounts = 8;
int32 counter = 9;
int32 counter = 9;
int32 errors = 10;
int32 crashes = 11;
string crash = 12;
message Account {
string nick = 1;