diff --git a/AUTHORS b/AUTHORS index 78d9c1e..2cde0f6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,3 +3,4 @@ Manfred Touron <94029+moul@users.noreply.github.com> Manfred Touron +Renovate Bot diff --git a/api/sgtm.proto b/api/sgtm.proto index 580eb6f..a29d9fc 100644 --- a/api/sgtm.proto +++ b/api/sgtm.proto @@ -30,10 +30,10 @@ message Status { message Register { message Request { - string email = 10 [(go.field.options) = {tags: 'gorm:"size:255;not null;index:,unique"'}]; - string username = 11 [(go.field.options) = {tags: 'gorm:"size:32;not null;default:\'\'"'}]; - string firstname = 12 [(go.field.options) = {tags: 'gorm:"size:255;not null;default:\'\'"'}]; - string lastname = 13 [(go.field.options) = {tags: 'gorm:"size:255;not null;default:\'\'"'}]; + string email = 10; + string slug = 11; + string firstname = 12; + string lastname = 13; } message Response { User user = 1; @@ -56,6 +56,19 @@ message PostList { /// Models +/* +╔══════════════╗ ╔══════════════╗ +║ Post ║ ║ User ║ +║ ║ ║ ║ +║ Author ║ ║ Email ║ +║ Title ║ ║ Slug ║ +║ Slug ║────║ Name ║ +║ ReplyTo ║ ║ ║ +║ ForkOf ║ ║ ║ +║ Kind ║ ║ ║ +╚══════════════╝ ╚══════════════╝ + */ + message User { int64 id = 1 [(go.field.options) = {name: 'ID', tags: 'gorm:"primary_key"'}]; int64 created_at = 2 [(go.field.options) = {tags: 'gorm:"autocreatetime:nano"'}]; @@ -63,9 +76,13 @@ message User { int64 deleted_at = 4; string email = 10 [(go.field.options) = {tags: 'gorm:"size:255;not null;index:,unique"'}]; - string username = 11 [(go.field.options) = {tags: 'gorm:"size:32;not null;default:\'\'"'}]; + string slug = 11 [(go.field.options) = {tags: 'gorm:"size:32;not null;default:\'\'"'}]; string firstname = 12 [(go.field.options) = {tags: 'gorm:"size:255;not null;default:\'\'"'}]; string lastname = 13 [(go.field.options) = {tags: 'gorm:"size:255;not null;default:\'\'"'}]; + // bio + // timezone + // location + // avatar } message Post { @@ -74,6 +91,19 @@ message Post { int64 updated_at = 3 [(go.field.options) = {tags: 'gorm:"autoupdatetime:nano"'}]; int64 deleted_at = 4; - User user = 10; - int64 user_id = 11 [(go.field.options) = {name: 'UserID'}]; + User author = 10; + int64 author_id = 11 [(go.field.options) = {name: 'AuthorID'}]; + string title = 12; + string slug = 13; + int64 thread_post_id = 14 [(go.field.options) = {name: 'ThreadPostID'}]; + Post thread_post = 15; + int64 reply_to_id = 16 [(go.field.options) = {name: 'ReplyToID'}]; + Post reply_to = 17; + Kind kind = 18; + + enum Kind { + Unknown = 0; + Post = 1; + Comment = 2; + } } diff --git a/gen.sum b/gen.sum index 9ccf176..8db294d 100644 --- a/gen.sum +++ b/gen.sum @@ -1,2 +1,2 @@ 3c759a52c992517ba41fe8b27d51e4704e8ab80b Makefile -dd8d46f72532b4883761936936116c1e93a47e94 ./api/sgtm.proto +bc89bb4fa0662005e650784929a9e1a48c098007 ./api/sgtm.proto diff --git a/go.sum b/go.sum index c43ce77..1bc4fec 100644 --- a/go.sum +++ b/go.sum @@ -7,8 +7,6 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alta/protopatch v0.0.0-20200625224233-3948e4f364d5 h1:gypx3TTaUxvKo0oU2kqUx1ThiA+hpj3nXwDai9+/Ufc= -github.com/alta/protopatch v0.0.0-20200625224233-3948e4f364d5/go.mod h1:HXJRgQ8KH43H398kvLjYVfRJ2qhmsWuw1tXs/JolOlo= github.com/alta/protopatch v0.0.0-20200626224044-476e721b7775 h1://p5bjjSu8R9sr4WWXX9JzuX2PATby88jav3fNJSWSY= github.com/alta/protopatch v0.0.0-20200626224044-476e721b7775/go.mod h1:VjEhmdGPImOJJNfuOpyJ0X5hL8ByRXQNUA7UOyiMGAE= github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y= @@ -291,8 +289,7 @@ golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200308013534-11ec41452d41 h1:9Di9iYgOt9ThCipBxChBVhgNipDoE5mxO84rQV7D0FE= golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200617212913-87be026d3888 h1:RhVvG5xCyGuE1Y6VrAtr0GLMLS36XSD6OF8LIIVB8No= -golang.org/x/tools v0.0.0-20200617212913-87be026d3888/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200626032829-bcbc01e07a20 h1:q+ysxVHVQNTVHgzwjuk4ApAILRbfOLARfnEaqCIBR6A= golang.org/x/tools v0.0.0-20200626032829-bcbc01e07a20/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -319,8 +316,7 @@ google.golang.org/grpc v1.29.1 h1:EC2SB8S04d2r73uptxphDSUG+kTKVgjRPF+N3xpxRB4= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0 h1:M5a8xTlYTxwMn5ZFkwhRabsygDY5G8TYLyQDBxJNAxE= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v0.0.0-20200617041141-9a465503579e h1:580RpKFLO8Xra4cgj3UmFukvMmMosqUNse1x6E6hwL8= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v0.0.0-20200617041141-9a465503579e/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v0.0.0-20200626030347-424195440776 h1:pQdN2GCyXwNoWsCd0IPtYDDCTLiGjNyYIJ3qcZCxNYI= google.golang.org/grpc/cmd/protoc-gen-go-grpc v0.0.0-20200626030347-424195440776/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/grpc/examples v0.0.0-20200626030347-424195440776 h1:KptVG3kkyYx1GS1+J2Y8e8MmRajMTizPEs1XEbRUayM= google.golang.org/grpc/examples v0.0.0-20200626030347-424195440776/go.mod h1:5j1uub0jRGhRiSghIlrThmBUgcgLXOVJQ/l1getT4uo= diff --git a/pkg/sgtm/api.go b/pkg/sgtm/api.go index d1345a6..e4e67b9 100644 --- a/pkg/sgtm/api.go +++ b/pkg/sgtm/api.go @@ -12,16 +12,16 @@ import ( func (svc *Service) Register(ctx context.Context, input *sgtmpb.Register_Request) (*sgtmpb.Register_Response, error) { fmt.Println(godev.PrettyJSON(input)) - if input == nil || input.Email == "" || input.Username == "" { + if input == nil || input.Email == "" || input.Slug == "" { return nil, fmt.Errorf("missing required fields") } - // FIXME: generate username if empty + // FIXME: generate slug if empty // FIXME: captcha // FIXME: validate valid email // FIXME: activity -> register (in a transaction) user := sgtmpb.User{ - Username: input.Username, + Slug: input.Slug, Email: input.Email, Firstname: input.Firstname, Lastname: input.Lastname, diff --git a/pkg/sgtm/api_test.go b/pkg/sgtm/api_test.go index 5535fce..b4aeb09 100644 --- a/pkg/sgtm/api_test.go +++ b/pkg/sgtm/api_test.go @@ -24,17 +24,17 @@ func TestServiceRegister(t *testing.T) { }{ {"nil", nil, nil, true}, {"empty", &sgtmpb.Register_Request{}, nil, true}, - {"no-email", &sgtmpb.Register_Request{Username: "moul", Firstname: "Manfred", Lastname: "Touron"}, nil, true}, - {"no-username", &sgtmpb.Register_Request{Email: "m@42.am", Firstname: "Manfred", Lastname: "Touron"}, nil, true}, + {"no-email", &sgtmpb.Register_Request{Slug: "moul", Firstname: "Manfred", Lastname: "Touron"}, nil, true}, + {"no-slug", &sgtmpb.Register_Request{Email: "m@42.am", Firstname: "Manfred", Lastname: "Touron"}, nil, true}, { "manfred", - &sgtmpb.Register_Request{Username: "moul", Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am"}, - &sgtmpb.Register_Response{User: &sgtmpb.User{Username: "moul", Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am"}}, + &sgtmpb.Register_Request{Slug: "moul", Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am"}, + &sgtmpb.Register_Response{User: &sgtmpb.User{Slug: "moul", Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am"}}, false, }, { "manfred.bis", - &sgtmpb.Register_Request{Username: "moul", Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am"}, + &sgtmpb.Register_Request{Slug: "moul", Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am"}, nil, true, }, diff --git a/pkg/sgtm/db_test.go b/pkg/sgtm/db_test.go index 280f04e..dad7367 100644 --- a/pkg/sgtm/db_test.go +++ b/pkg/sgtm/db_test.go @@ -25,25 +25,25 @@ func TestDBUserCreate(t *testing.T) { },*/ { "manfred", - &sgtmpb.User{Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am", Username: "moul"}, - &sgtmpb.User{Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am", Username: "moul"}, + &sgtmpb.User{Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am", Slug: "moul"}, + &sgtmpb.User{Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am", Slug: "moul"}, false, }, { "manfred2", - &sgtmpb.User{Firstname: "Manfred2", Lastname: "Touron2", Email: "m@42.am2", Username: "moul2"}, - &sgtmpb.User{Firstname: "Manfred2", Lastname: "Touron2", Email: "m@42.am2", Username: "moul2"}, + &sgtmpb.User{Firstname: "Manfred2", Lastname: "Touron2", Email: "m@42.am2", Slug: "moul2"}, + &sgtmpb.User{Firstname: "Manfred2", Lastname: "Touron2", Email: "m@42.am2", Slug: "moul2"}, false, }, { "manfred:again", - &sgtmpb.User{Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am", Username: "moul"}, + &sgtmpb.User{Firstname: "Manfred", Lastname: "Touron", Email: "m@42.am", Slug: "moul"}, nil, true, }, { "manfred2:again", - &sgtmpb.User{Firstname: "Manfred2", Lastname: "Touron2", Email: "m@42.am2", Username: "moul2"}, + &sgtmpb.User{Firstname: "Manfred2", Lastname: "Touron2", Email: "m@42.am2", Slug: "moul2"}, nil, true, }, diff --git a/pkg/sgtmpb/sgtm.pb.go b/pkg/sgtmpb/sgtm.pb.go index 19583c4..e45912e 100644 --- a/pkg/sgtmpb/sgtm.pb.go +++ b/pkg/sgtmpb/sgtm.pb.go @@ -28,6 +28,55 @@ const ( // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 +type Post_Kind int32 + +const ( + Post_Unknown Post_Kind = 0 + Post_Post Post_Kind = 1 + Post_Comment Post_Kind = 2 +) + +// Enum value maps for Post_Kind. +var ( + Post_Kind_name = map[int32]string{ + 0: "Unknown", + 1: "Post", + 2: "Comment", + } + Post_Kind_value = map[string]int32{ + "Unknown": 0, + "Post": 1, + "Comment": 2, + } +) + +func (x Post_Kind) Enum() *Post_Kind { + p := new(Post_Kind) + *p = x + return p +} + +func (x Post_Kind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Post_Kind) Descriptor() protoreflect.EnumDescriptor { + return file_sgtm_proto_enumTypes[0].Descriptor() +} + +func (Post_Kind) Type() protoreflect.EnumType { + return &file_sgtm_proto_enumTypes[0] +} + +func (x Post_Kind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Post_Kind.Descriptor instead. +func (Post_Kind) EnumDescriptor() ([]byte, []int) { + return file_sgtm_proto_rawDescGZIP(), []int{6, 0} +} + type Ping struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -228,7 +277,7 @@ type User struct { UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" gorm:"autoupdatetime:nano"` DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty" gorm:"size:255;not null;index:,unique"` - Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty" gorm:"size:32;not null;default:''"` + Slug string `protobuf:"bytes,11,opt,name=slug,proto3" json:"slug,omitempty" gorm:"size:32;not null;default:''"` Firstname string `protobuf:"bytes,12,opt,name=firstname,proto3" json:"firstname,omitempty" gorm:"size:255;not null;default:''"` Lastname string `protobuf:"bytes,13,opt,name=lastname,proto3" json:"lastname,omitempty" gorm:"size:255;not null;default:''"` } @@ -300,9 +349,9 @@ func (x *User) GetEmail() string { return "" } -func (x *User) GetUsername() string { +func (x *User) GetSlug() string { if x != nil { - return x.Username + return x.Slug } return "" } @@ -326,12 +375,19 @@ type Post struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` - CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" gorm:"autocreatetime:nano"` - UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" gorm:"autoupdatetime:nano"` - DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` - User *User `protobuf:"bytes,10,opt,name=user,proto3" json:"user,omitempty"` - UserID int64 `protobuf:"varint,11,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` + CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" gorm:"autocreatetime:nano"` + UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" gorm:"autoupdatetime:nano"` + DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + Author *User `protobuf:"bytes,10,opt,name=author,proto3" json:"author,omitempty"` + AuthorID int64 `protobuf:"varint,11,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` + Title string `protobuf:"bytes,12,opt,name=title,proto3" json:"title,omitempty"` + Slug string `protobuf:"bytes,13,opt,name=slug,proto3" json:"slug,omitempty"` + ThreadPostID int64 `protobuf:"varint,14,opt,name=thread_post_id,json=threadPostId,proto3" json:"thread_post_id,omitempty"` + ThreadPost *Post `protobuf:"bytes,15,opt,name=thread_post,json=threadPost,proto3" json:"thread_post,omitempty"` + ReplyToID int64 `protobuf:"varint,16,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"` + ReplyTo *Post `protobuf:"bytes,17,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"` + Kind Post_Kind `protobuf:"varint,18,opt,name=kind,proto3,enum=sgtm.Post_Kind" json:"kind,omitempty"` } func (x *Post) Reset() { @@ -394,20 +450,69 @@ func (x *Post) GetDeletedAt() int64 { return 0 } -func (x *Post) GetUser() *User { +func (x *Post) GetAuthor() *User { if x != nil { - return x.User + return x.Author } return nil } -func (x *Post) GetUserID() int64 { +func (x *Post) GetAuthorID() int64 { if x != nil { - return x.UserID + return x.AuthorID } return 0 } +func (x *Post) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Post) GetSlug() string { + if x != nil { + return x.Slug + } + return "" +} + +func (x *Post) GetThreadPostID() int64 { + if x != nil { + return x.ThreadPostID + } + return 0 +} + +func (x *Post) GetThreadPost() *Post { + if x != nil { + return x.ThreadPost + } + return nil +} + +func (x *Post) GetReplyToID() int64 { + if x != nil { + return x.ReplyToID + } + return 0 +} + +func (x *Post) GetReplyTo() *Post { + if x != nil { + return x.ReplyTo + } + return nil +} + +func (x *Post) GetKind() Post_Kind { + if x != nil { + return x.Kind + } + return Post_Unknown +} + type Ping_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -582,10 +687,10 @@ type Register_Request struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty" gorm:"size:255;not null;index:,unique"` - Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty" gorm:"size:32;not null;default:''"` - Firstname string `protobuf:"bytes,12,opt,name=firstname,proto3" json:"firstname,omitempty" gorm:"size:255;not null;default:''"` - Lastname string `protobuf:"bytes,13,opt,name=lastname,proto3" json:"lastname,omitempty" gorm:"size:255;not null;default:''"` + Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` + Slug string `protobuf:"bytes,11,opt,name=slug,proto3" json:"slug,omitempty"` + Firstname string `protobuf:"bytes,12,opt,name=firstname,proto3" json:"firstname,omitempty"` + Lastname string `protobuf:"bytes,13,opt,name=lastname,proto3" json:"lastname,omitempty"` } func (x *Register_Request) Reset() { @@ -627,9 +732,9 @@ func (x *Register_Request) GetEmail() string { return "" } -func (x *Register_Request) GetUsername() string { +func (x *Register_Request) GetSlug() string { if x != nil { - return x.Username + return x.Slug } return "" } @@ -879,116 +984,124 @@ var file_sgtm_proto_rawDesc = []byte{ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a, 0x08, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0xa7, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x2d, 0xca, 0xb5, 0x03, 0x29, 0xa2, 0x01, 0x26, 0x67, 0x6f, 0x72, 0x6d, 0x3a, - 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, - 0x6c, 0x6c, 0x3b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x2c, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x22, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x45, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xca, 0xb5, 0x03, 0x25, + 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x08, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x6d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x12, 0x1c, 0x0a, 0x09, + 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, + 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, + 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x2a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x22, 0x43, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x09, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x43, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x6f, + 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, + 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x22, 0xee, 0x03, 0x0a, + 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x42, 0x1d, 0xca, 0xb5, 0x03, 0x19, 0x0a, 0x02, 0x49, 0x44, 0xa2, 0x01, 0x12, 0x67, 0x6f, + 0x72, 0x6d, 0x3a, 0x22, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x22, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, 0x03, 0x1d, 0xa2, 0x01, + 0x1a, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, 0x03, 0x1d, + 0xa2, 0x01, 0x1a, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x43, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xca, 0xb5, 0x03, 0x29, 0xa2, 0x01, 0x26, 0x67, + 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, 0x6f, + 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x2c, 0x75, 0x6e, + 0x69, 0x71, 0x75, 0x65, 0x22, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3d, 0x0a, 0x04, + 0x73, 0x6c, 0x75, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xca, 0xb5, 0x03, 0x25, 0xa2, 0x01, 0x22, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x33, 0x32, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x48, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x2a, 0xca, 0xb5, 0x03, 0x26, 0xa2, 0x01, 0x23, 0x67, 0x6f, 0x72, 0x6d, 0x3a, - 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, - 0x6c, 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x09, - 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x6c, 0x61, 0x73, - 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xca, 0xb5, 0x03, - 0x26, 0xa2, 0x01, 0x23, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, - 0x35, 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, - 0x65, 0x1a, 0x2a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, - 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, - 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x43, 0x0a, - 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x20, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x22, 0x43, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x09, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, - 0x52, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x22, 0xf6, 0x03, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, - 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x1d, 0xca, 0xb5, - 0x03, 0x19, 0x0a, 0x02, 0x49, 0x44, 0xa2, 0x01, 0x12, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x40, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, 0x03, 0x1d, 0xa2, 0x01, 0x1a, 0x67, 0x6f, 0x72, 0x6d, - 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, - 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, - 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, 0x03, 0x1d, 0xa2, 0x01, 0x1a, 0x67, 0x6f, - 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, - 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x12, 0x43, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2d, 0xca, 0xb5, 0x03, 0x29, 0xa2, 0x01, 0x26, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, - 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, - 0x6c, 0x3b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x2c, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x22, - 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x45, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xca, 0xb5, 0x03, 0x25, 0xa2, - 0x01, 0x22, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x33, 0x32, 0x3b, - 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x3a, 0x27, 0x27, 0x22, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x48, - 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2a, 0xca, 0xb5, 0x03, 0x26, 0xa2, 0x01, 0x23, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, - 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, - 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x09, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xca, 0xb5, 0x03, 0x26, - 0xa2, 0x01, 0x23, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, - 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x9f, 0x02, 0x0a, 0x04, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x1d, 0xca, 0xb5, 0x03, 0x19, 0x0a, 0x02, 0x49, 0x44, 0xa2, - 0x01, 0x12, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, - 0x6b, 0x65, 0x79, 0x22, 0x52, 0x02, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, - 0x03, 0x1d, 0xa2, 0x01, 0x1a, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, - 0xca, 0xb5, 0x03, 0x1d, 0xa2, 0x01, 0x1a, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, - 0x6f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, - 0x22, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x04, 0x75, - 0x73, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x07, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0c, 0xca, 0xb5, - 0x03, 0x08, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x32, 0xa6, 0x03, 0x0a, 0x06, 0x57, 0x65, 0x62, 0x41, 0x50, 0x49, 0x12, 0x58, 0x0a, - 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x73, 0x67, 0x74, 0x6d, - 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x12, 0x55, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, - 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x67, - 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x55, - 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x73, 0x67, 0x74, - 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x50, 0x6f, 0x73, - 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x2e, - 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x13, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x4d, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x73, - 0x67, 0x74, 0x6d, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x19, 0x5a, 0x17, 0x6d, - 0x6f, 0x75, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x73, 0x67, 0x74, 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x73, 0x67, 0x74, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x12, 0x48, 0x0a, 0x09, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, + 0xca, 0xb5, 0x03, 0x26, 0xa2, 0x01, 0x23, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, + 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x3a, 0x27, 0x27, 0x22, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xca, 0xb5, 0x03, 0x26, 0xa2, 0x01, 0x23, + 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x3a, 0x32, 0x35, 0x35, 0x3b, 0x6e, + 0x6f, 0x74, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x3a, + 0x27, 0x27, 0x22, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe3, 0x04, + 0x0a, 0x04, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x42, 0x1d, 0xca, 0xb5, 0x03, 0x19, 0x0a, 0x02, 0x49, 0x44, 0xa2, 0x01, 0x12, 0x67, + 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, + 0x22, 0x52, 0x02, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, 0x03, 0x1d, 0xa2, + 0x01, 0x1a, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, 0x09, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x21, 0xca, 0xb5, 0x03, + 0x1d, 0xa2, 0x01, 0x1a, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x6e, 0x61, 0x6e, 0x6f, 0x22, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x42, + 0x0e, 0xca, 0xb5, 0x03, 0x0a, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x49, 0x44, 0x52, + 0x08, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, + 0x6c, 0x75, 0x67, 0x12, 0x38, 0x0a, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x70, 0x6f, + 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x42, 0x12, 0xca, 0xb5, 0x03, + 0x0e, 0x0a, 0x0c, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x52, + 0x0c, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, + 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x0a, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0b, 0x72, 0x65, + 0x70, 0x6c, 0x79, 0x5f, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x42, + 0x0f, 0xca, 0xb5, 0x03, 0x0b, 0x0a, 0x09, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x54, 0x6f, 0x49, 0x44, + 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x54, 0x6f, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x08, 0x72, + 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x74, 0x6f, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, + 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x79, + 0x54, 0x6f, 0x12, 0x23, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x0f, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x2e, 0x4b, 0x69, 0x6e, + 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x2a, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, + 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, + 0x50, 0x6f, 0x73, 0x74, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x10, 0x02, 0x32, 0xa6, 0x03, 0x0a, 0x06, 0x57, 0x65, 0x62, 0x41, 0x50, 0x49, 0x12, 0x58, + 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x73, 0x67, 0x74, + 0x6d, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x12, 0x55, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, + 0x67, 0x74, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x55, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x73, 0x67, + 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x50, 0x6f, + 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x12, + 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, + 0x0c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x4d, 0x0a, + 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x2e, 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, + 0x73, 0x67, 0x74, 0x6d, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x19, 0x5a, 0x17, + 0x6d, 0x6f, 0x75, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x73, 0x67, 0x74, 0x6d, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x73, 0x67, 0x74, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1003,46 +1116,51 @@ func file_sgtm_proto_rawDescGZIP() []byte { return file_sgtm_proto_rawDescData } +var file_sgtm_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_sgtm_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_sgtm_proto_goTypes = []interface{}{ - (*Ping)(nil), // 0: sgtm.Ping - (*Status)(nil), // 1: sgtm.Status - (*Register)(nil), // 2: sgtm.Register - (*UserList)(nil), // 3: sgtm.UserList - (*PostList)(nil), // 4: sgtm.PostList - (*User)(nil), // 5: sgtm.User - (*Post)(nil), // 6: sgtm.Post - (*Ping_Request)(nil), // 7: sgtm.Ping.Request - (*Ping_Response)(nil), // 8: sgtm.Ping.Response - (*Status_Request)(nil), // 9: sgtm.Status.Request - (*Status_Response)(nil), // 10: sgtm.Status.Response - (*Register_Request)(nil), // 11: sgtm.Register.Request - (*Register_Response)(nil), // 12: sgtm.Register.Response - (*UserList_Request)(nil), // 13: sgtm.UserList.Request - (*UserList_Response)(nil), // 14: sgtm.UserList.Response - (*PostList_Request)(nil), // 15: sgtm.PostList.Request - (*PostList_Response)(nil), // 16: sgtm.PostList.Response + (Post_Kind)(0), // 0: sgtm.Post.Kind + (*Ping)(nil), // 1: sgtm.Ping + (*Status)(nil), // 2: sgtm.Status + (*Register)(nil), // 3: sgtm.Register + (*UserList)(nil), // 4: sgtm.UserList + (*PostList)(nil), // 5: sgtm.PostList + (*User)(nil), // 6: sgtm.User + (*Post)(nil), // 7: sgtm.Post + (*Ping_Request)(nil), // 8: sgtm.Ping.Request + (*Ping_Response)(nil), // 9: sgtm.Ping.Response + (*Status_Request)(nil), // 10: sgtm.Status.Request + (*Status_Response)(nil), // 11: sgtm.Status.Response + (*Register_Request)(nil), // 12: sgtm.Register.Request + (*Register_Response)(nil), // 13: sgtm.Register.Response + (*UserList_Request)(nil), // 14: sgtm.UserList.Request + (*UserList_Response)(nil), // 15: sgtm.UserList.Response + (*PostList_Request)(nil), // 16: sgtm.PostList.Request + (*PostList_Response)(nil), // 17: sgtm.PostList.Response } var file_sgtm_proto_depIdxs = []int32{ - 5, // 0: sgtm.Post.user:type_name -> sgtm.User - 5, // 1: sgtm.Register.Response.user:type_name -> sgtm.User - 5, // 2: sgtm.UserList.Response.users:type_name -> sgtm.User - 6, // 3: sgtm.PostList.Response.posts:type_name -> sgtm.Post - 11, // 4: sgtm.WebAPI.Register:input_type -> sgtm.Register.Request - 13, // 5: sgtm.WebAPI.UserList:input_type -> sgtm.UserList.Request - 15, // 6: sgtm.WebAPI.PostList:input_type -> sgtm.PostList.Request - 7, // 7: sgtm.WebAPI.Ping:input_type -> sgtm.Ping.Request - 9, // 8: sgtm.WebAPI.Status:input_type -> sgtm.Status.Request - 12, // 9: sgtm.WebAPI.Register:output_type -> sgtm.Register.Response - 14, // 10: sgtm.WebAPI.UserList:output_type -> sgtm.UserList.Response - 16, // 11: sgtm.WebAPI.PostList:output_type -> sgtm.PostList.Response - 8, // 12: sgtm.WebAPI.Ping:output_type -> sgtm.Ping.Response - 10, // 13: sgtm.WebAPI.Status:output_type -> sgtm.Status.Response - 9, // [9:14] is the sub-list for method output_type - 4, // [4:9] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 6, // 0: sgtm.Post.author:type_name -> sgtm.User + 7, // 1: sgtm.Post.thread_post:type_name -> sgtm.Post + 7, // 2: sgtm.Post.reply_to:type_name -> sgtm.Post + 0, // 3: sgtm.Post.kind:type_name -> sgtm.Post.Kind + 6, // 4: sgtm.Register.Response.user:type_name -> sgtm.User + 6, // 5: sgtm.UserList.Response.users:type_name -> sgtm.User + 7, // 6: sgtm.PostList.Response.posts:type_name -> sgtm.Post + 12, // 7: sgtm.WebAPI.Register:input_type -> sgtm.Register.Request + 14, // 8: sgtm.WebAPI.UserList:input_type -> sgtm.UserList.Request + 16, // 9: sgtm.WebAPI.PostList:input_type -> sgtm.PostList.Request + 8, // 10: sgtm.WebAPI.Ping:input_type -> sgtm.Ping.Request + 10, // 11: sgtm.WebAPI.Status:input_type -> sgtm.Status.Request + 13, // 12: sgtm.WebAPI.Register:output_type -> sgtm.Register.Response + 15, // 13: sgtm.WebAPI.UserList:output_type -> sgtm.UserList.Response + 17, // 14: sgtm.WebAPI.PostList:output_type -> sgtm.PostList.Response + 9, // 15: sgtm.WebAPI.Ping:output_type -> sgtm.Ping.Response + 11, // 16: sgtm.WebAPI.Status:output_type -> sgtm.Status.Response + 12, // [12:17] is the sub-list for method output_type + 7, // [7:12] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_sgtm_proto_init() } @@ -1261,13 +1379,14 @@ func file_sgtm_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sgtm_proto_rawDesc, - NumEnums: 0, + NumEnums: 1, NumMessages: 17, NumExtensions: 0, NumServices: 1, }, GoTypes: file_sgtm_proto_goTypes, DependencyIndexes: file_sgtm_proto_depIdxs, + EnumInfos: file_sgtm_proto_enumTypes, MessageInfos: file_sgtm_proto_msgTypes, }.Build() File_sgtm_proto = out.File