From e5b07bac0013a7323f3a0c588d9eb197fa94cb5c Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 1 Jul 2021 09:35:36 +0700 Subject: [PATCH 1/2] update package of proto file --- auth/auth.pb.go | 289 ++++--- go.mod | 7 +- go.sum | 75 +- phonebook/phonebook.pb.go | 1687 +++++++++++++++++++++++-------------- phonebook/phonebook.proto | 2 + userpost/userpost.pb.go | 1646 +++++++++++++++++++++++------------- userpost/userpost.proto | 2 + video/video.pb.go | 1503 +++++++++++++++++++++------------ video/video.proto | 2 + 9 files changed, 3293 insertions(+), 1920 deletions(-) diff --git a/auth/auth.pb.go b/auth/auth.pb.go index cb8684b..9fd5a71 100644 --- a/auth/auth.pb.go +++ b/auth/auth.pb.go @@ -1,155 +1,246 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.15.8 // source: auth.proto package auth import ( context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type RequestDecodeToken struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RequestDecodeToken) Reset() { *m = RequestDecodeToken{} } -func (m *RequestDecodeToken) String() string { return proto.CompactTextString(m) } -func (*RequestDecodeToken) ProtoMessage() {} -func (*RequestDecodeToken) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{0} +func (x *RequestDecodeToken) Reset() { + *x = RequestDecodeToken{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RequestDecodeToken) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestDecodeToken.Unmarshal(m, b) -} -func (m *RequestDecodeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestDecodeToken.Marshal(b, m, deterministic) -} -func (m *RequestDecodeToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestDecodeToken.Merge(m, src) -} -func (m *RequestDecodeToken) XXX_Size() int { - return xxx_messageInfo_RequestDecodeToken.Size(m) -} -func (m *RequestDecodeToken) XXX_DiscardUnknown() { - xxx_messageInfo_RequestDecodeToken.DiscardUnknown(m) +func (x *RequestDecodeToken) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RequestDecodeToken proto.InternalMessageInfo +func (*RequestDecodeToken) ProtoMessage() {} -type ResponsesDecodeToken struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - RoleLabel string `protobuf:"bytes,3,opt,name=role_label,json=roleLabel,proto3" json:"role_label,omitempty"` - LastLoginAt string `protobuf:"bytes,4,opt,name=last_login_at,json=lastLoginAt,proto3" json:"last_login_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResponsesDecodeToken) Reset() { *m = ResponsesDecodeToken{} } -func (m *ResponsesDecodeToken) String() string { return proto.CompactTextString(m) } -func (*ResponsesDecodeToken) ProtoMessage() {} -func (*ResponsesDecodeToken) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{1} +func (x *RequestDecodeToken) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ResponsesDecodeToken) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResponsesDecodeToken.Unmarshal(m, b) +// Deprecated: Use RequestDecodeToken.ProtoReflect.Descriptor instead. +func (*RequestDecodeToken) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{0} } -func (m *ResponsesDecodeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResponsesDecodeToken.Marshal(b, m, deterministic) + +type ResponsesDecodeToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + RoleLabel string `protobuf:"bytes,3,opt,name=role_label,json=roleLabel,proto3" json:"role_label,omitempty"` + LastLoginAt string `protobuf:"bytes,4,opt,name=last_login_at,json=lastLoginAt,proto3" json:"last_login_at,omitempty"` } -func (m *ResponsesDecodeToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponsesDecodeToken.Merge(m, src) + +func (x *ResponsesDecodeToken) Reset() { + *x = ResponsesDecodeToken{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ResponsesDecodeToken) XXX_Size() int { - return xxx_messageInfo_ResponsesDecodeToken.Size(m) + +func (x *ResponsesDecodeToken) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResponsesDecodeToken) XXX_DiscardUnknown() { - xxx_messageInfo_ResponsesDecodeToken.DiscardUnknown(m) + +func (*ResponsesDecodeToken) ProtoMessage() {} + +func (x *ResponsesDecodeToken) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResponsesDecodeToken proto.InternalMessageInfo +// Deprecated: Use ResponsesDecodeToken.ProtoReflect.Descriptor instead. +func (*ResponsesDecodeToken) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{1} +} -func (m *ResponsesDecodeToken) GetId() int64 { - if m != nil { - return m.Id +func (x *ResponsesDecodeToken) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *ResponsesDecodeToken) GetUsername() string { - if m != nil { - return m.Username +func (x *ResponsesDecodeToken) GetUsername() string { + if x != nil { + return x.Username } return "" } -func (m *ResponsesDecodeToken) GetRoleLabel() string { - if m != nil { - return m.RoleLabel +func (x *ResponsesDecodeToken) GetRoleLabel() string { + if x != nil { + return x.RoleLabel } return "" } -func (m *ResponsesDecodeToken) GetLastLoginAt() string { - if m != nil { - return m.LastLoginAt +func (x *ResponsesDecodeToken) GetLastLoginAt() string { + if x != nil { + return x.LastLoginAt } return "" } -func init() { - proto.RegisterType((*RequestDecodeToken)(nil), "auth.RequestDecodeToken") - proto.RegisterType((*ResponsesDecodeToken)(nil), "auth.ResponsesDecodeToken") +var File_auth_proto protoreflect.FileDescriptor + +var file_auth_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x61, 0x75, + 0x74, 0x68, 0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, + 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x22, 0x0a, 0x0d, + 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x74, + 0x32, 0x52, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, + 0x43, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, + 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x1a, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2e, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("auth.proto", fileDescriptor_8bbd6f3875b0e874) } +var ( + file_auth_proto_rawDescOnce sync.Once + file_auth_proto_rawDescData = file_auth_proto_rawDesc +) -var fileDescriptor_8bbd6f3875b0e874 = []byte{ - // 212 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x3f, 0x4b, 0xc6, 0x30, - 0x10, 0xc6, 0x49, 0xdf, 0x17, 0xb5, 0x57, 0x74, 0x08, 0x1d, 0x42, 0x41, 0x28, 0x9d, 0x3a, 0x45, - 0xd0, 0x4f, 0x50, 0x75, 0x70, 0xe8, 0x14, 0x9c, 0x5c, 0x4a, 0x6a, 0x0e, 0x5b, 0x8c, 0x49, 0xcd, - 0x9f, 0x8f, 0xe0, 0xf7, 0x96, 0x04, 0x94, 0x42, 0xb7, 0xbb, 0xdf, 0xef, 0x86, 0xe7, 0x39, 0x00, - 0x19, 0xc3, 0xc2, 0x37, 0x67, 0x83, 0xa5, 0xe7, 0x34, 0x77, 0x35, 0x50, 0x81, 0xdf, 0x11, 0x7d, - 0x78, 0xc6, 0x77, 0xab, 0xf0, 0xd5, 0x7e, 0xa2, 0xe9, 0x7e, 0x08, 0xd4, 0x02, 0xfd, 0x66, 0x8d, - 0x47, 0xbf, 0x13, 0xf4, 0x06, 0x8a, 0x55, 0x31, 0xd2, 0x92, 0xfe, 0x24, 0x8a, 0x55, 0xd1, 0x06, - 0xae, 0xa2, 0x47, 0x67, 0xe4, 0x17, 0xb2, 0xa2, 0x25, 0x7d, 0x29, 0xfe, 0x77, 0x7a, 0x0b, 0xe0, - 0xac, 0xc6, 0x49, 0xcb, 0x19, 0x35, 0x3b, 0x65, 0x5b, 0x26, 0x32, 0x26, 0x40, 0x3b, 0xb8, 0xd6, - 0xd2, 0x87, 0x49, 0xdb, 0x8f, 0xd5, 0x4c, 0x32, 0xb0, 0x73, 0xbe, 0xa8, 0x12, 0x1c, 0x13, 0x1b, - 0xc2, 0xbd, 0x80, 0x6a, 0x88, 0x61, 0x79, 0x91, 0x46, 0x69, 0x74, 0xf4, 0x09, 0xaa, 0x7d, 0x18, - 0xc6, 0x73, 0x9d, 0x63, 0xfe, 0xa6, 0xf9, 0x33, 0xc7, 0x0a, 0x8f, 0xe5, 0xdb, 0x25, 0xe7, 0x77, - 0xc9, 0xcf, 0x17, 0xf9, 0x13, 0x0f, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x68, 0x82, 0x10, - 0x17, 0x01, 0x00, 0x00, +func file_auth_proto_rawDescGZIP() []byte { + file_auth_proto_rawDescOnce.Do(func() { + file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData) + }) + return file_auth_proto_rawDescData +} + +var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_auth_proto_goTypes = []interface{}{ + (*RequestDecodeToken)(nil), // 0: auth.RequestDecodeToken + (*ResponsesDecodeToken)(nil), // 1: auth.ResponsesDecodeToken +} +var file_auth_proto_depIdxs = []int32{ + 0, // 0: auth.AuthHandler.DecodeToken:input_type -> auth.RequestDecodeToken + 1, // 1: auth.AuthHandler.DecodeToken:output_type -> auth.ResponsesDecodeToken + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_auth_proto_init() } +func file_auth_proto_init() { + if File_auth_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestDecodeToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponsesDecodeToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_auth_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_auth_proto_goTypes, + DependencyIndexes: file_auth_proto_depIdxs, + MessageInfos: file_auth_proto_msgTypes, + }.Build() + File_auth_proto = out.File + file_auth_proto_rawDesc = nil + file_auth_proto_goTypes = nil + file_auth_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // AuthHandlerClient is the client API for AuthHandler service. // @@ -159,10 +250,10 @@ type AuthHandlerClient interface { } type authHandlerClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewAuthHandlerClient(cc *grpc.ClientConn) AuthHandlerClient { +func NewAuthHandlerClient(cc grpc.ClientConnInterface) AuthHandlerClient { return &authHandlerClient{cc} } @@ -184,7 +275,7 @@ type AuthHandlerServer interface { type UnimplementedAuthHandlerServer struct { } -func (*UnimplementedAuthHandlerServer) DecodeToken(ctx context.Context, req *RequestDecodeToken) (*ResponsesDecodeToken, error) { +func (*UnimplementedAuthHandlerServer) DecodeToken(context.Context, *RequestDecodeToken) (*ResponsesDecodeToken, error) { return nil, status.Errorf(codes.Unimplemented, "method DecodeToken not implemented") } diff --git a/go.mod b/go.mod index a0418c3..1ee2369 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,9 @@ module github.com/sapawarga/proto-file go 1.14 require ( - github.com/golang/protobuf v1.4.3 - google.golang.org/grpc v1.36.0 + golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect + golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 // indirect + google.golang.org/grpc v1.39.0 + google.golang.org/protobuf v1.27.1 ) diff --git a/go.sum b/go.sum index 3590a63..8267a9e 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,26 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= @@ -19,56 +28,100 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 h1:s1jFTXJryg4a1mew7xv03VZD8N9XjxFhk1o4Js4WvPQ= +google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.36.0 h1:o1bcQ6imQMIOpdrO3SWf2z5RV72WbDwdXuK0MDlc8As= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0 h1:Klz8I9kdtkIN6EpHHUOMLCYhTn/2WAe5a0s1hcBkdTI= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -77,9 +130,13 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/phonebook/phonebook.pb.go b/phonebook/phonebook.pb.go index 67e44bf..64a30f5 100644 --- a/phonebook/phonebook.pb.go +++ b/phonebook/phonebook.pb.go @@ -1,1045 +1,1446 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.15.8 // source: phonebook.proto package phonebook import ( context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type GetListRequest struct { - Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` - RegencyId int64 `protobuf:"varint,2,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - DistrictId int64 `protobuf:"varint,3,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` - VillageId int64 `protobuf:"varint,4,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` - Status *NullInt64 `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` - Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` - Page int64 `protobuf:"varint,7,opt,name=page,proto3" json:"page,omitempty"` - Longitude string `protobuf:"bytes,8,opt,name=longitude,proto3" json:"longitude,omitempty"` - Latitude string `protobuf:"bytes,9,opt,name=latitude,proto3" json:"latitude,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetListRequest) Reset() { *m = GetListRequest{} } -func (m *GetListRequest) String() string { return proto.CompactTextString(m) } -func (*GetListRequest) ProtoMessage() {} -func (*GetListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetListRequest.Unmarshal(m, b) + Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` + RegencyId int64 `protobuf:"varint,2,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + DistrictId int64 `protobuf:"varint,3,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` + VillageId int64 `protobuf:"varint,4,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` + Status *NullInt64 `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` + Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` + Page int64 `protobuf:"varint,7,opt,name=page,proto3" json:"page,omitempty"` + Longitude string `protobuf:"bytes,8,opt,name=longitude,proto3" json:"longitude,omitempty"` + Latitude string `protobuf:"bytes,9,opt,name=latitude,proto3" json:"latitude,omitempty"` } -func (m *GetListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetListRequest.Marshal(b, m, deterministic) -} -func (m *GetListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetListRequest.Merge(m, src) + +func (x *GetListRequest) Reset() { + *x = GetListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetListRequest) XXX_Size() int { - return xxx_messageInfo_GetListRequest.Size(m) + +func (x *GetListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetListRequest.DiscardUnknown(m) + +func (*GetListRequest) ProtoMessage() {} + +func (x *GetListRequest) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetListRequest proto.InternalMessageInfo +// Deprecated: Use GetListRequest.ProtoReflect.Descriptor instead. +func (*GetListRequest) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{0} +} -func (m *GetListRequest) GetSearch() string { - if m != nil { - return m.Search +func (x *GetListRequest) GetSearch() string { + if x != nil { + return x.Search } return "" } -func (m *GetListRequest) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *GetListRequest) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *GetListRequest) GetDistrictId() int64 { - if m != nil { - return m.DistrictId +func (x *GetListRequest) GetDistrictId() int64 { + if x != nil { + return x.DistrictId } return 0 } -func (m *GetListRequest) GetVillageId() int64 { - if m != nil { - return m.VillageId +func (x *GetListRequest) GetVillageId() int64 { + if x != nil { + return x.VillageId } return 0 } -func (m *GetListRequest) GetStatus() *NullInt64 { - if m != nil { - return m.Status +func (x *GetListRequest) GetStatus() *NullInt64 { + if x != nil { + return x.Status } return nil } -func (m *GetListRequest) GetLimit() int64 { - if m != nil { - return m.Limit +func (x *GetListRequest) GetLimit() int64 { + if x != nil { + return x.Limit } return 0 } -func (m *GetListRequest) GetPage() int64 { - if m != nil { - return m.Page +func (x *GetListRequest) GetPage() int64 { + if x != nil { + return x.Page } return 0 } -func (m *GetListRequest) GetLongitude() string { - if m != nil { - return m.Longitude +func (x *GetListRequest) GetLongitude() string { + if x != nil { + return x.Longitude } return "" } -func (m *GetListRequest) GetLatitude() string { - if m != nil { - return m.Latitude +func (x *GetListRequest) GetLatitude() string { + if x != nil { + return x.Latitude } return "" } type GetListResponse struct { - Data []*PhoneBook `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetListResponse) Reset() { *m = GetListResponse{} } -func (m *GetListResponse) String() string { return proto.CompactTextString(m) } -func (*GetListResponse) ProtoMessage() {} -func (*GetListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{1} + Data []*PhoneBook `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *GetListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetListResponse.Unmarshal(m, b) -} -func (m *GetListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetListResponse.Marshal(b, m, deterministic) -} -func (m *GetListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetListResponse.Merge(m, src) +func (x *GetListResponse) Reset() { + *x = GetListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetListResponse) XXX_Size() int { - return xxx_messageInfo_GetListResponse.Size(m) + +func (x *GetListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetListResponse.DiscardUnknown(m) + +func (*GetListResponse) ProtoMessage() {} + +func (x *GetListResponse) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetListResponse proto.InternalMessageInfo +// Deprecated: Use GetListResponse.ProtoReflect.Descriptor instead. +func (*GetListResponse) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{1} +} -func (m *GetListResponse) GetData() []*PhoneBook { - if m != nil { - return m.Data +func (x *GetListResponse) GetData() []*PhoneBook { + if x != nil { + return x.Data } return nil } -func (m *GetListResponse) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *GetListResponse) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type Metadata struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{2} + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` } -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Metadata.Unmarshal(m, b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Metadata) XXX_Size() int { - return xxx_messageInfo_Metadata.Size(m) + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Metadata proto.InternalMessageInfo +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{2} +} -func (m *Metadata) GetPage() int64 { - if m != nil { - return m.Page +func (x *Metadata) GetPage() int64 { + if x != nil { + return x.Page } return 0 } -func (m *Metadata) GetTotal() int64 { - if m != nil { - return m.Total +func (x *Metadata) GetTotal() int64 { + if x != nil { + return x.Total } return 0 } type PhoneBook struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - PhoneNumbers string `protobuf:"bytes,2,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` - Latitude string `protobuf:"bytes,6,opt,name=latitude,proto3" json:"latitude,omitempty"` - Longitude string `protobuf:"bytes,7,opt,name=longitude,proto3" json:"longitude,omitempty"` - Status int64 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` - Category string `protobuf:"bytes,9,opt,name=category,proto3" json:"category,omitempty"` - Distance string `protobuf:"bytes,10,opt,name=distance,proto3" json:"distance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PhoneBook) Reset() { *m = PhoneBook{} } -func (m *PhoneBook) String() string { return proto.CompactTextString(m) } -func (*PhoneBook) ProtoMessage() {} -func (*PhoneBook) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{3} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PhoneBook) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneBook.Unmarshal(m, b) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + PhoneNumbers string `protobuf:"bytes,2,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` + Latitude string `protobuf:"bytes,6,opt,name=latitude,proto3" json:"latitude,omitempty"` + Longitude string `protobuf:"bytes,7,opt,name=longitude,proto3" json:"longitude,omitempty"` + Status int64 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` + Category string `protobuf:"bytes,9,opt,name=category,proto3" json:"category,omitempty"` + Distance string `protobuf:"bytes,10,opt,name=distance,proto3" json:"distance,omitempty"` } -func (m *PhoneBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneBook.Marshal(b, m, deterministic) -} -func (m *PhoneBook) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneBook.Merge(m, src) + +func (x *PhoneBook) Reset() { + *x = PhoneBook{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PhoneBook) XXX_Size() int { - return xxx_messageInfo_PhoneBook.Size(m) + +func (x *PhoneBook) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PhoneBook) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneBook.DiscardUnknown(m) + +func (*PhoneBook) ProtoMessage() {} + +func (x *PhoneBook) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PhoneBook proto.InternalMessageInfo +// Deprecated: Use PhoneBook.ProtoReflect.Descriptor instead. +func (*PhoneBook) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{3} +} -func (m *PhoneBook) GetId() int64 { - if m != nil { - return m.Id +func (x *PhoneBook) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *PhoneBook) GetPhoneNumbers() string { - if m != nil { - return m.PhoneNumbers +func (x *PhoneBook) GetPhoneNumbers() string { + if x != nil { + return x.PhoneNumbers } return "" } -func (m *PhoneBook) GetDescription() string { - if m != nil { - return m.Description +func (x *PhoneBook) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *PhoneBook) GetName() string { - if m != nil { - return m.Name +func (x *PhoneBook) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *PhoneBook) GetAddress() string { - if m != nil { - return m.Address +func (x *PhoneBook) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *PhoneBook) GetLatitude() string { - if m != nil { - return m.Latitude +func (x *PhoneBook) GetLatitude() string { + if x != nil { + return x.Latitude } return "" } -func (m *PhoneBook) GetLongitude() string { - if m != nil { - return m.Longitude +func (x *PhoneBook) GetLongitude() string { + if x != nil { + return x.Longitude } return "" } -func (m *PhoneBook) GetStatus() int64 { - if m != nil { - return m.Status +func (x *PhoneBook) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *PhoneBook) GetCategory() string { - if m != nil { - return m.Category +func (x *PhoneBook) GetCategory() string { + if x != nil { + return x.Category } return "" } -func (m *PhoneBook) GetDistance() string { - if m != nil { - return m.Distance +func (x *PhoneBook) GetDistance() string { + if x != nil { + return x.Distance } return "" } type GetDetailRequest struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDetailRequest) Reset() { *m = GetDetailRequest{} } -func (m *GetDetailRequest) String() string { return proto.CompactTextString(m) } -func (*GetDetailRequest) ProtoMessage() {} -func (*GetDetailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{4} + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *GetDetailRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDetailRequest.Unmarshal(m, b) -} -func (m *GetDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDetailRequest.Marshal(b, m, deterministic) -} -func (m *GetDetailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDetailRequest.Merge(m, src) +func (x *GetDetailRequest) Reset() { + *x = GetDetailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDetailRequest) XXX_Size() int { - return xxx_messageInfo_GetDetailRequest.Size(m) + +func (x *GetDetailRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDetailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDetailRequest.DiscardUnknown(m) + +func (*GetDetailRequest) ProtoMessage() {} + +func (x *GetDetailRequest) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDetailRequest proto.InternalMessageInfo +// Deprecated: Use GetDetailRequest.ProtoReflect.Descriptor instead. +func (*GetDetailRequest) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{4} +} -func (m *GetDetailRequest) GetId() int64 { - if m != nil { - return m.Id +func (x *GetDetailRequest) GetId() int64 { + if x != nil { + return x.Id } return 0 } type GetDetailResponse struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - PhoneNumbers string `protobuf:"bytes,2,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` - Latitude string `protobuf:"bytes,6,opt,name=latitude,proto3" json:"latitude,omitempty"` - Longitude string `protobuf:"bytes,7,opt,name=longitude,proto3" json:"longitude,omitempty"` - Status int64 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` - CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - CategoryId int64 `protobuf:"varint,11,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - CategoryName string `protobuf:"bytes,12,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` - Distance string `protobuf:"bytes,13,opt,name=distance,proto3" json:"distance,omitempty"` - RegencyId int64 `protobuf:"varint,14,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - RegencyName string `protobuf:"bytes,15,opt,name=regency_name,json=regencyName,proto3" json:"regency_name,omitempty"` - DistrictId int64 `protobuf:"varint,16,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` - DistrictName string `protobuf:"bytes,17,opt,name=district_name,json=districtName,proto3" json:"district_name,omitempty"` - VillageId int64 `protobuf:"varint,18,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` - VillageName string `protobuf:"bytes,19,opt,name=village_name,json=villageName,proto3" json:"village_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDetailResponse) Reset() { *m = GetDetailResponse{} } -func (m *GetDetailResponse) String() string { return proto.CompactTextString(m) } -func (*GetDetailResponse) ProtoMessage() {} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + PhoneNumbers string `protobuf:"bytes,2,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` + Latitude string `protobuf:"bytes,6,opt,name=latitude,proto3" json:"latitude,omitempty"` + Longitude string `protobuf:"bytes,7,opt,name=longitude,proto3" json:"longitude,omitempty"` + Status int64 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + CategoryId int64 `protobuf:"varint,11,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + CategoryName string `protobuf:"bytes,12,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` + Distance string `protobuf:"bytes,13,opt,name=distance,proto3" json:"distance,omitempty"` + RegencyId int64 `protobuf:"varint,14,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + RegencyName string `protobuf:"bytes,15,opt,name=regency_name,json=regencyName,proto3" json:"regency_name,omitempty"` + DistrictId int64 `protobuf:"varint,16,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` + DistrictName string `protobuf:"bytes,17,opt,name=district_name,json=districtName,proto3" json:"district_name,omitempty"` + VillageId int64 `protobuf:"varint,18,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` + VillageName string `protobuf:"bytes,19,opt,name=village_name,json=villageName,proto3" json:"village_name,omitempty"` +} + +func (x *GetDetailResponse) Reset() { + *x = GetDetailResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDetailResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDetailResponse) ProtoMessage() {} + +func (x *GetDetailResponse) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDetailResponse.ProtoReflect.Descriptor instead. func (*GetDetailResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{5} -} - -func (m *GetDetailResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDetailResponse.Unmarshal(m, b) -} -func (m *GetDetailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDetailResponse.Marshal(b, m, deterministic) + return file_phonebook_proto_rawDescGZIP(), []int{5} } -func (m *GetDetailResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDetailResponse.Merge(m, src) -} -func (m *GetDetailResponse) XXX_Size() int { - return xxx_messageInfo_GetDetailResponse.Size(m) -} -func (m *GetDetailResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDetailResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetDetailResponse proto.InternalMessageInfo -func (m *GetDetailResponse) GetId() int64 { - if m != nil { - return m.Id +func (x *GetDetailResponse) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *GetDetailResponse) GetPhoneNumbers() string { - if m != nil { - return m.PhoneNumbers +func (x *GetDetailResponse) GetPhoneNumbers() string { + if x != nil { + return x.PhoneNumbers } return "" } -func (m *GetDetailResponse) GetDescription() string { - if m != nil { - return m.Description +func (x *GetDetailResponse) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *GetDetailResponse) GetName() string { - if m != nil { - return m.Name +func (x *GetDetailResponse) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *GetDetailResponse) GetAddress() string { - if m != nil { - return m.Address +func (x *GetDetailResponse) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *GetDetailResponse) GetLatitude() string { - if m != nil { - return m.Latitude +func (x *GetDetailResponse) GetLatitude() string { + if x != nil { + return x.Latitude } return "" } -func (m *GetDetailResponse) GetLongitude() string { - if m != nil { - return m.Longitude +func (x *GetDetailResponse) GetLongitude() string { + if x != nil { + return x.Longitude } return "" } -func (m *GetDetailResponse) GetStatus() int64 { - if m != nil { - return m.Status +func (x *GetDetailResponse) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *GetDetailResponse) GetCreatedAt() string { - if m != nil { - return m.CreatedAt +func (x *GetDetailResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt } return "" } -func (m *GetDetailResponse) GetUpdatedAt() string { - if m != nil { - return m.UpdatedAt +func (x *GetDetailResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt } return "" } -func (m *GetDetailResponse) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *GetDetailResponse) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } -func (m *GetDetailResponse) GetCategoryName() string { - if m != nil { - return m.CategoryName +func (x *GetDetailResponse) GetCategoryName() string { + if x != nil { + return x.CategoryName } return "" } -func (m *GetDetailResponse) GetDistance() string { - if m != nil { - return m.Distance +func (x *GetDetailResponse) GetDistance() string { + if x != nil { + return x.Distance } return "" } -func (m *GetDetailResponse) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *GetDetailResponse) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *GetDetailResponse) GetRegencyName() string { - if m != nil { - return m.RegencyName +func (x *GetDetailResponse) GetRegencyName() string { + if x != nil { + return x.RegencyName } return "" } -func (m *GetDetailResponse) GetDistrictId() int64 { - if m != nil { - return m.DistrictId +func (x *GetDetailResponse) GetDistrictId() int64 { + if x != nil { + return x.DistrictId } return 0 } -func (m *GetDetailResponse) GetDistrictName() string { - if m != nil { - return m.DistrictName +func (x *GetDetailResponse) GetDistrictName() string { + if x != nil { + return x.DistrictName } return "" } -func (m *GetDetailResponse) GetVillageId() int64 { - if m != nil { - return m.VillageId +func (x *GetDetailResponse) GetVillageId() int64 { + if x != nil { + return x.VillageId } return 0 } -func (m *GetDetailResponse) GetVillageName() string { - if m != nil { - return m.VillageName +func (x *GetDetailResponse) GetVillageName() string { + if x != nil { + return x.VillageName } return "" } type AddPhonebookRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - PhoneNumbers string `protobuf:"bytes,2,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - RegencyId int64 `protobuf:"varint,5,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - DistrictId int64 `protobuf:"varint,6,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` - VillageId int64 `protobuf:"varint,7,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` - Latitude string `protobuf:"bytes,8,opt,name=latitude,proto3" json:"latitude,omitempty"` - Longitude string `protobuf:"bytes,9,opt,name=longitude,proto3" json:"longitude,omitempty"` - CoverImagePath string `protobuf:"bytes,10,opt,name=cover_image_path,json=coverImagePath,proto3" json:"cover_image_path,omitempty"` - Status int64 `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"` - CategoryId int64 `protobuf:"varint,12,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddPhonebookRequest) Reset() { *m = AddPhonebookRequest{} } -func (m *AddPhonebookRequest) String() string { return proto.CompactTextString(m) } -func (*AddPhonebookRequest) ProtoMessage() {} -func (*AddPhonebookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{6} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AddPhonebookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddPhonebookRequest.Unmarshal(m, b) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PhoneNumbers string `protobuf:"bytes,2,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + RegencyId int64 `protobuf:"varint,5,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + DistrictId int64 `protobuf:"varint,6,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` + VillageId int64 `protobuf:"varint,7,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` + Latitude string `protobuf:"bytes,8,opt,name=latitude,proto3" json:"latitude,omitempty"` + Longitude string `protobuf:"bytes,9,opt,name=longitude,proto3" json:"longitude,omitempty"` + CoverImagePath string `protobuf:"bytes,10,opt,name=cover_image_path,json=coverImagePath,proto3" json:"cover_image_path,omitempty"` + Status int64 `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"` + CategoryId int64 `protobuf:"varint,12,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` } -func (m *AddPhonebookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddPhonebookRequest.Marshal(b, m, deterministic) -} -func (m *AddPhonebookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddPhonebookRequest.Merge(m, src) + +func (x *AddPhonebookRequest) Reset() { + *x = AddPhonebookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AddPhonebookRequest) XXX_Size() int { - return xxx_messageInfo_AddPhonebookRequest.Size(m) + +func (x *AddPhonebookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddPhonebookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddPhonebookRequest.DiscardUnknown(m) + +func (*AddPhonebookRequest) ProtoMessage() {} + +func (x *AddPhonebookRequest) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddPhonebookRequest proto.InternalMessageInfo +// Deprecated: Use AddPhonebookRequest.ProtoReflect.Descriptor instead. +func (*AddPhonebookRequest) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{6} +} -func (m *AddPhonebookRequest) GetName() string { - if m != nil { - return m.Name +func (x *AddPhonebookRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *AddPhonebookRequest) GetPhoneNumbers() string { - if m != nil { - return m.PhoneNumbers +func (x *AddPhonebookRequest) GetPhoneNumbers() string { + if x != nil { + return x.PhoneNumbers } return "" } -func (m *AddPhonebookRequest) GetAddress() string { - if m != nil { - return m.Address +func (x *AddPhonebookRequest) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *AddPhonebookRequest) GetDescription() string { - if m != nil { - return m.Description +func (x *AddPhonebookRequest) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *AddPhonebookRequest) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *AddPhonebookRequest) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *AddPhonebookRequest) GetDistrictId() int64 { - if m != nil { - return m.DistrictId +func (x *AddPhonebookRequest) GetDistrictId() int64 { + if x != nil { + return x.DistrictId } return 0 } -func (m *AddPhonebookRequest) GetVillageId() int64 { - if m != nil { - return m.VillageId +func (x *AddPhonebookRequest) GetVillageId() int64 { + if x != nil { + return x.VillageId } return 0 } -func (m *AddPhonebookRequest) GetLatitude() string { - if m != nil { - return m.Latitude +func (x *AddPhonebookRequest) GetLatitude() string { + if x != nil { + return x.Latitude } return "" } -func (m *AddPhonebookRequest) GetLongitude() string { - if m != nil { - return m.Longitude +func (x *AddPhonebookRequest) GetLongitude() string { + if x != nil { + return x.Longitude } return "" } -func (m *AddPhonebookRequest) GetCoverImagePath() string { - if m != nil { - return m.CoverImagePath +func (x *AddPhonebookRequest) GetCoverImagePath() string { + if x != nil { + return x.CoverImagePath } return "" } -func (m *AddPhonebookRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *AddPhonebookRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *AddPhonebookRequest) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *AddPhonebookRequest) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } type StatusResponse struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StatusResponse) Reset() { *m = StatusResponse{} } -func (m *StatusResponse) String() string { return proto.CompactTextString(m) } -func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{7} + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *StatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatusResponse.Unmarshal(m, b) -} -func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) -} -func (m *StatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusResponse.Merge(m, src) +func (x *StatusResponse) Reset() { + *x = StatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StatusResponse) XXX_Size() int { - return xxx_messageInfo_StatusResponse.Size(m) + +func (x *StatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatusResponse.DiscardUnknown(m) + +func (*StatusResponse) ProtoMessage() {} + +func (x *StatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StatusResponse proto.InternalMessageInfo +// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. +func (*StatusResponse) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{7} +} -func (m *StatusResponse) GetCode() string { - if m != nil { - return m.Code +func (x *StatusResponse) GetCode() string { + if x != nil { + return x.Code } return "" } -func (m *StatusResponse) GetMessage() string { - if m != nil { - return m.Message +func (x *StatusResponse) GetMessage() string { + if x != nil { + return x.Message } return "" } type UpdatePhonebookRequest struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - PhoneNumbers string `protobuf:"bytes,3,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - RegencyId int64 `protobuf:"varint,6,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - DistrictId int64 `protobuf:"varint,7,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` - VillageId int64 `protobuf:"varint,8,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` - Latitude string `protobuf:"bytes,9,opt,name=latitude,proto3" json:"latitude,omitempty"` - Longitude string `protobuf:"bytes,10,opt,name=longitude,proto3" json:"longitude,omitempty"` - CoverImagePath string `protobuf:"bytes,11,opt,name=cover_image_path,json=coverImagePath,proto3" json:"cover_image_path,omitempty"` - Status *NullInt64 `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` - CategoryId int64 `protobuf:"varint,13,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdatePhonebookRequest) Reset() { *m = UpdatePhonebookRequest{} } -func (m *UpdatePhonebookRequest) String() string { return proto.CompactTextString(m) } -func (*UpdatePhonebookRequest) ProtoMessage() {} -func (*UpdatePhonebookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{8} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UpdatePhonebookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdatePhonebookRequest.Unmarshal(m, b) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + PhoneNumbers string `protobuf:"bytes,3,opt,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + RegencyId int64 `protobuf:"varint,6,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + DistrictId int64 `protobuf:"varint,7,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` + VillageId int64 `protobuf:"varint,8,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` + Latitude string `protobuf:"bytes,9,opt,name=latitude,proto3" json:"latitude,omitempty"` + Longitude string `protobuf:"bytes,10,opt,name=longitude,proto3" json:"longitude,omitempty"` + CoverImagePath string `protobuf:"bytes,11,opt,name=cover_image_path,json=coverImagePath,proto3" json:"cover_image_path,omitempty"` + Status *NullInt64 `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` + CategoryId int64 `protobuf:"varint,13,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` } -func (m *UpdatePhonebookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdatePhonebookRequest.Marshal(b, m, deterministic) -} -func (m *UpdatePhonebookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdatePhonebookRequest.Merge(m, src) + +func (x *UpdatePhonebookRequest) Reset() { + *x = UpdatePhonebookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdatePhonebookRequest) XXX_Size() int { - return xxx_messageInfo_UpdatePhonebookRequest.Size(m) + +func (x *UpdatePhonebookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdatePhonebookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdatePhonebookRequest.DiscardUnknown(m) + +func (*UpdatePhonebookRequest) ProtoMessage() {} + +func (x *UpdatePhonebookRequest) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdatePhonebookRequest proto.InternalMessageInfo +// Deprecated: Use UpdatePhonebookRequest.ProtoReflect.Descriptor instead. +func (*UpdatePhonebookRequest) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{8} +} -func (m *UpdatePhonebookRequest) GetId() int64 { - if m != nil { - return m.Id +func (x *UpdatePhonebookRequest) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *UpdatePhonebookRequest) GetName() string { - if m != nil { - return m.Name +func (x *UpdatePhonebookRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *UpdatePhonebookRequest) GetPhoneNumbers() string { - if m != nil { - return m.PhoneNumbers +func (x *UpdatePhonebookRequest) GetPhoneNumbers() string { + if x != nil { + return x.PhoneNumbers } return "" } -func (m *UpdatePhonebookRequest) GetAddress() string { - if m != nil { - return m.Address +func (x *UpdatePhonebookRequest) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *UpdatePhonebookRequest) GetDescription() string { - if m != nil { - return m.Description +func (x *UpdatePhonebookRequest) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *UpdatePhonebookRequest) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *UpdatePhonebookRequest) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *UpdatePhonebookRequest) GetDistrictId() int64 { - if m != nil { - return m.DistrictId +func (x *UpdatePhonebookRequest) GetDistrictId() int64 { + if x != nil { + return x.DistrictId } return 0 } -func (m *UpdatePhonebookRequest) GetVillageId() int64 { - if m != nil { - return m.VillageId +func (x *UpdatePhonebookRequest) GetVillageId() int64 { + if x != nil { + return x.VillageId } return 0 } -func (m *UpdatePhonebookRequest) GetLatitude() string { - if m != nil { - return m.Latitude +func (x *UpdatePhonebookRequest) GetLatitude() string { + if x != nil { + return x.Latitude } return "" } -func (m *UpdatePhonebookRequest) GetLongitude() string { - if m != nil { - return m.Longitude +func (x *UpdatePhonebookRequest) GetLongitude() string { + if x != nil { + return x.Longitude } return "" } -func (m *UpdatePhonebookRequest) GetCoverImagePath() string { - if m != nil { - return m.CoverImagePath +func (x *UpdatePhonebookRequest) GetCoverImagePath() string { + if x != nil { + return x.CoverImagePath } return "" } -func (m *UpdatePhonebookRequest) GetStatus() *NullInt64 { - if m != nil { - return m.Status +func (x *UpdatePhonebookRequest) GetStatus() *NullInt64 { + if x != nil { + return x.Status } return nil } -func (m *UpdatePhonebookRequest) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *UpdatePhonebookRequest) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } type NullString struct { - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - IsNull bool `protobuf:"varint,2,opt,name=is_null,json=isNull,proto3" json:"is_null,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NullString) Reset() { *m = NullString{} } -func (m *NullString) String() string { return proto.CompactTextString(m) } -func (*NullString) ProtoMessage() {} -func (*NullString) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{9} + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + IsNull bool `protobuf:"varint,2,opt,name=is_null,json=isNull,proto3" json:"is_null,omitempty"` } -func (m *NullString) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NullString.Unmarshal(m, b) -} -func (m *NullString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NullString.Marshal(b, m, deterministic) -} -func (m *NullString) XXX_Merge(src proto.Message) { - xxx_messageInfo_NullString.Merge(m, src) +func (x *NullString) Reset() { + *x = NullString{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NullString) XXX_Size() int { - return xxx_messageInfo_NullString.Size(m) + +func (x *NullString) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NullString) XXX_DiscardUnknown() { - xxx_messageInfo_NullString.DiscardUnknown(m) + +func (*NullString) ProtoMessage() {} + +func (x *NullString) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NullString proto.InternalMessageInfo +// Deprecated: Use NullString.ProtoReflect.Descriptor instead. +func (*NullString) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{9} +} -func (m *NullString) GetValue() string { - if m != nil { - return m.Value +func (x *NullString) GetValue() string { + if x != nil { + return x.Value } return "" } -func (m *NullString) GetIsNull() bool { - if m != nil { - return m.IsNull +func (x *NullString) GetIsNull() bool { + if x != nil { + return x.IsNull } return false } type NullInt64 struct { - Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - IsNull bool `protobuf:"varint,2,opt,name=is_null,json=isNull,proto3" json:"is_null,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NullInt64) Reset() { *m = NullInt64{} } -func (m *NullInt64) String() string { return proto.CompactTextString(m) } -func (*NullInt64) ProtoMessage() {} -func (*NullInt64) Descriptor() ([]byte, []int) { - return fileDescriptor_34db5399df65ad55, []int{10} + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + IsNull bool `protobuf:"varint,2,opt,name=is_null,json=isNull,proto3" json:"is_null,omitempty"` } -func (m *NullInt64) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NullInt64.Unmarshal(m, b) -} -func (m *NullInt64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NullInt64.Marshal(b, m, deterministic) -} -func (m *NullInt64) XXX_Merge(src proto.Message) { - xxx_messageInfo_NullInt64.Merge(m, src) +func (x *NullInt64) Reset() { + *x = NullInt64{} + if protoimpl.UnsafeEnabled { + mi := &file_phonebook_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NullInt64) XXX_Size() int { - return xxx_messageInfo_NullInt64.Size(m) + +func (x *NullInt64) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NullInt64) XXX_DiscardUnknown() { - xxx_messageInfo_NullInt64.DiscardUnknown(m) + +func (*NullInt64) ProtoMessage() {} + +func (x *NullInt64) ProtoReflect() protoreflect.Message { + mi := &file_phonebook_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NullInt64 proto.InternalMessageInfo +// Deprecated: Use NullInt64.ProtoReflect.Descriptor instead. +func (*NullInt64) Descriptor() ([]byte, []int) { + return file_phonebook_proto_rawDescGZIP(), []int{10} +} -func (m *NullInt64) GetValue() int64 { - if m != nil { - return m.Value +func (x *NullInt64) GetValue() int64 { + if x != nil { + return x.Value } return 0 } -func (m *NullInt64) GetIsNull() bool { - if m != nil { - return m.IsNull +func (x *NullInt64) GetIsNull() bool { + if x != nil { + return x.IsNull } return false } -func init() { - proto.RegisterType((*GetListRequest)(nil), "phonebook.GetListRequest") - proto.RegisterType((*GetListResponse)(nil), "phonebook.GetListResponse") - proto.RegisterType((*Metadata)(nil), "phonebook.Metadata") - proto.RegisterType((*PhoneBook)(nil), "phonebook.PhoneBook") - proto.RegisterType((*GetDetailRequest)(nil), "phonebook.GetDetailRequest") - proto.RegisterType((*GetDetailResponse)(nil), "phonebook.GetDetailResponse") - proto.RegisterType((*AddPhonebookRequest)(nil), "phonebook.AddPhonebookRequest") - proto.RegisterType((*StatusResponse)(nil), "phonebook.StatusResponse") - proto.RegisterType((*UpdatePhonebookRequest)(nil), "phonebook.UpdatePhonebookRequest") - proto.RegisterType((*NullString)(nil), "phonebook.NullString") - proto.RegisterType((*NullInt64)(nil), "phonebook.NullInt64") -} - -func init() { proto.RegisterFile("phonebook.proto", fileDescriptor_34db5399df65ad55) } - -var fileDescriptor_34db5399df65ad55 = []byte{ - // 888 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x56, 0xe2, 0xfc, 0x78, 0x4e, 0xd2, 0xa4, 0x3b, 0xad, 0x8a, 0x09, 0xbb, 0x90, 0x7a, 0x6f, - 0x72, 0x81, 0x16, 0x69, 0x59, 0x71, 0x01, 0x12, 0xa2, 0x68, 0xc5, 0x62, 0x09, 0x4a, 0xe5, 0x15, - 0xd7, 0xd1, 0xd4, 0x33, 0x4a, 0x47, 0xeb, 0xd8, 0xc1, 0x1e, 0x57, 0xea, 0x35, 0x12, 0xef, 0x00, - 0x2f, 0xc1, 0xcb, 0xf0, 0x40, 0x68, 0xfe, 0x5c, 0x7b, 0x12, 0x9c, 0x5e, 0x73, 0x37, 0xf3, 0x9d, - 0x33, 0xc7, 0x73, 0xce, 0xf7, 0x9d, 0x33, 0x86, 0xf9, 0xee, 0x2e, 0xcf, 0xd8, 0x6d, 0x9e, 0x7f, - 0x78, 0xb5, 0x2b, 0x72, 0x91, 0x63, 0x54, 0x03, 0xe1, 0x9f, 0x7d, 0x98, 0xbd, 0x63, 0xe2, 0x27, - 0x5e, 0x8a, 0x98, 0xfd, 0x56, 0xb1, 0x52, 0xe0, 0x0b, 0x18, 0x95, 0x8c, 0x14, 0xc9, 0x5d, 0xd0, - 0x5b, 0xf6, 0x56, 0x28, 0x36, 0x3b, 0xfc, 0x02, 0xa0, 0x60, 0x1b, 0x96, 0x25, 0x0f, 0x6b, 0x4e, - 0x83, 0xfe, 0xb2, 0xb7, 0xf2, 0x62, 0x64, 0x90, 0x88, 0xe2, 0xcf, 0x60, 0x42, 0x79, 0x29, 0x0a, - 0x9e, 0x08, 0x69, 0xf7, 0x94, 0x1d, 0x2c, 0x14, 0x51, 0x79, 0xfe, 0x9e, 0xa7, 0x29, 0xd9, 0x30, - 0x69, 0x1f, 0xe8, 0xf3, 0x06, 0x89, 0x28, 0xfe, 0x1c, 0x46, 0xa5, 0x20, 0xa2, 0x2a, 0x83, 0xe1, - 0xb2, 0xb7, 0x9a, 0xbc, 0x3e, 0x7f, 0xf5, 0x78, 0xed, 0xeb, 0x2a, 0x4d, 0xa3, 0x4c, 0x7c, 0xf5, - 0x26, 0x36, 0x3e, 0xf8, 0x1c, 0x86, 0x29, 0xdf, 0x72, 0x11, 0x8c, 0x54, 0x1c, 0xbd, 0xc1, 0x18, - 0x06, 0x3b, 0xb2, 0x61, 0xc1, 0x58, 0x81, 0x6a, 0x8d, 0x9f, 0x03, 0x4a, 0xf3, 0x6c, 0xc3, 0x45, - 0x45, 0x59, 0xe0, 0xab, 0x8c, 0x1e, 0x01, 0xbc, 0x00, 0x3f, 0x25, 0x42, 0x1b, 0x91, 0x32, 0xd6, - 0xfb, 0x30, 0x85, 0x79, 0x5d, 0x9a, 0x72, 0x97, 0x67, 0x25, 0xc3, 0x2b, 0x18, 0x50, 0x22, 0x48, - 0xd0, 0x5b, 0x7a, 0xce, 0x15, 0x6f, 0xe4, 0xea, 0xfb, 0x3c, 0xff, 0x10, 0x2b, 0x0f, 0xfc, 0x05, - 0xf8, 0x5b, 0x26, 0x88, 0xf2, 0xee, 0xab, 0x84, 0xce, 0x1a, 0xde, 0x3f, 0x1b, 0x53, 0x5c, 0x3b, - 0x85, 0x6f, 0xc0, 0xb7, 0x68, 0x9d, 0x47, 0xaf, 0x91, 0xc7, 0x39, 0x0c, 0x45, 0x2e, 0x48, 0x6a, - 0x2a, 0xaf, 0x37, 0xe1, 0x5f, 0x7d, 0x40, 0xf5, 0xa7, 0xf1, 0x0c, 0xfa, 0x9c, 0x9a, 0x53, 0x7d, - 0x4e, 0xf1, 0x4b, 0x38, 0x51, 0xdf, 0x5c, 0x67, 0xd5, 0xf6, 0x96, 0x15, 0xa5, 0x3a, 0x8b, 0xe2, - 0xa9, 0x02, 0xaf, 0x35, 0x86, 0x97, 0x30, 0xa1, 0xac, 0x4c, 0x0a, 0xbe, 0x13, 0x3c, 0xcf, 0x14, - 0x71, 0x28, 0x6e, 0x42, 0xf2, 0x3a, 0x19, 0xd9, 0x32, 0xc5, 0x19, 0x8a, 0xd5, 0x1a, 0x07, 0x30, - 0x26, 0x94, 0x16, 0xac, 0xd4, 0x7c, 0xa1, 0xd8, 0x6e, 0x5b, 0x25, 0x1d, 0xb5, 0x4b, 0xda, 0x26, - 0x63, 0xec, 0x92, 0x71, 0x51, 0x4b, 0xc0, 0x57, 0x29, 0x58, 0xb2, 0x17, 0xe0, 0x27, 0x44, 0xb0, - 0x4d, 0x5e, 0x3c, 0x58, 0x92, 0xec, 0x5e, 0xda, 0xa4, 0xc6, 0x48, 0x96, 0xb0, 0x00, 0xb4, 0xcd, - 0xee, 0xc3, 0x10, 0x4e, 0xdf, 0x31, 0xf1, 0x96, 0x09, 0xc2, 0x53, 0xab, 0x6e, 0xa7, 0x44, 0xe1, - 0x3f, 0x03, 0x78, 0xd6, 0x70, 0x32, 0x3c, 0xff, 0x4f, 0x0b, 0xf9, 0x02, 0x20, 0x29, 0x18, 0x11, - 0x8c, 0xae, 0x89, 0x30, 0xa5, 0x44, 0x06, 0xb9, 0x12, 0xd2, 0x5c, 0xed, 0xa8, 0x35, 0xeb, 0x6a, - 0x22, 0x83, 0x5c, 0x09, 0xd9, 0xe1, 0xb6, 0xec, 0xb2, 0x83, 0x27, 0xba, 0xc3, 0x2d, 0x14, 0xa9, - 0x2a, 0xd5, 0x0e, 0x2a, 0xcf, 0xa9, 0xae, 0x92, 0x05, 0xaf, 0x65, 0xbe, 0x4d, 0xc2, 0x4e, 0xda, - 0x84, 0x39, 0x23, 0x66, 0xe6, 0x8e, 0x98, 0x4b, 0x98, 0x5a, 0xb3, 0x0a, 0x3f, 0xd7, 0x15, 0x36, - 0x98, 0x8a, 0xee, 0x4c, 0xa1, 0xd3, 0xbd, 0x29, 0xf4, 0x12, 0x4e, 0x6a, 0x07, 0x15, 0xe4, 0x99, - 0xbe, 0xa3, 0x05, 0x55, 0x94, 0xf6, 0xa8, 0xc2, 0xee, 0xa8, 0xba, 0x84, 0xa9, 0x35, 0xab, 0x10, - 0x67, 0xfa, 0x1e, 0x06, 0x93, 0x11, 0xc2, 0x3f, 0x3c, 0x38, 0xbb, 0xa2, 0xf4, 0xc6, 0x76, 0xbc, - 0x95, 0x9f, 0x55, 0x40, 0xaf, 0xa1, 0x80, 0x27, 0x89, 0xab, 0x21, 0x13, 0xaf, 0x2d, 0x13, 0x47, - 0x76, 0x83, 0x7d, 0xd9, 0xb5, 0xcb, 0x3a, 0x3c, 0x32, 0xb9, 0x47, 0x47, 0x26, 0xf7, 0xd8, 0x2d, - 0x47, 0x53, 0xa7, 0x7e, 0x97, 0x4e, 0x91, 0xab, 0xd3, 0x15, 0x9c, 0x26, 0xf9, 0x3d, 0x2b, 0xd6, - 0x7c, 0x2b, 0x83, 0xef, 0x88, 0xb8, 0x33, 0xb2, 0x9b, 0x29, 0x3c, 0x92, 0xf0, 0x0d, 0x11, 0x77, - 0x0d, 0x45, 0x4f, 0x5a, 0x8a, 0x76, 0x34, 0x39, 0x75, 0x35, 0x19, 0x7e, 0x0b, 0xb3, 0xf7, 0xca, - 0xb5, 0xee, 0x6d, 0x0c, 0x83, 0x24, 0xa7, 0x35, 0x05, 0x72, 0x2d, 0xab, 0xbb, 0x65, 0x65, 0x29, - 0x67, 0xae, 0x2e, 0xbe, 0xdd, 0x86, 0x7f, 0x7b, 0x70, 0xf1, 0xab, 0x6a, 0x81, 0x3d, 0x2e, 0xdd, - 0x21, 0x61, 0xb9, 0xed, 0x77, 0x71, 0xeb, 0x75, 0x73, 0x3b, 0xe8, 0xe4, 0x76, 0x78, 0x8c, 0xdb, - 0xd1, 0x11, 0x6e, 0xc7, 0x47, 0xb8, 0xf5, 0xbb, 0xb8, 0x45, 0x5d, 0xdc, 0xc2, 0x53, 0xb8, 0x9d, - 0x1c, 0xe4, 0xf6, 0xf1, 0xe5, 0x9f, 0x3e, 0xe1, 0xe5, 0x77, 0x18, 0x3f, 0xd9, 0x63, 0xfc, 0x1b, - 0x00, 0x79, 0xea, 0xbd, 0x28, 0x78, 0xb6, 0x91, 0xcf, 0xe6, 0x3d, 0x49, 0x2b, 0x4b, 0xb7, 0xde, - 0xe0, 0x8f, 0x60, 0xcc, 0xcb, 0x75, 0x56, 0xa5, 0xfa, 0x39, 0xf5, 0xe3, 0x11, 0x2f, 0xe5, 0xa1, - 0xf0, 0x6b, 0x40, 0xf5, 0x27, 0xdb, 0x67, 0xbd, 0x63, 0x67, 0x5f, 0xff, 0xee, 0xc1, 0x69, 0xfd, - 0x16, 0xff, 0x48, 0x32, 0x9a, 0xb2, 0x02, 0x7f, 0x07, 0x63, 0xf3, 0x13, 0x81, 0x3f, 0x6e, 0xe4, - 0xd5, 0xfe, 0xe7, 0x5a, 0x2c, 0x0e, 0x99, 0x8c, 0x5e, 0x7f, 0x00, 0x54, 0x3f, 0x50, 0xf8, 0x93, - 0xb6, 0x63, 0xeb, 0x6d, 0x5b, 0x3c, 0x3f, 0x6c, 0x34, 0x71, 0x22, 0x98, 0x36, 0x27, 0x12, 0xfe, - 0xb4, 0xe1, 0x7d, 0x60, 0x54, 0x2d, 0x9a, 0xd7, 0x75, 0x5a, 0xe8, 0x17, 0x98, 0x3b, 0x3d, 0x81, - 0x2f, 0x1b, 0xde, 0x87, 0xfb, 0xa5, 0x2b, 0x60, 0x04, 0xf3, 0xb7, 0x2c, 0x65, 0xcd, 0x80, 0x9d, - 0x99, 0xfe, 0x77, 0xa8, 0xdb, 0x91, 0xfa, 0xc7, 0xfd, 0xf2, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x3d, 0x4e, 0x0e, 0xd4, 0xf6, 0x0a, 0x00, 0x00, +var File_phonebook_proto protoreflect.FileDescriptor + +var file_phonebook_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x99, 0x02, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x6c, 0x6c, 0x61, + 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x6c, + 0x6c, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, + 0x6f, 0x6b, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x6c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x68, 0x6f, 0x6e, + 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, + 0x6f, 0x6f, 0x6b, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x34, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x9a, 0x02, 0x0a, + 0x09, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, + 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, + 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, + 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x22, 0x0a, 0x10, 0x47, 0x65, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd4, 0x04, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x6f, 0x6e, + 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, + 0x74, 0x75, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, + 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, + 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, + 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x74, + 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, + 0x0d, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x49, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x86, 0x03, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x68, 0x6f, 0x6e, + 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x49, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x50, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, + 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x3e, 0x0a, + 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xaf, 0x03, + 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, + 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x6e, + 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x4e, 0x75, 0x6c, + 0x6c, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, + 0x3b, 0x0a, 0x0a, 0x4e, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x22, 0x3a, 0x0a, 0x09, + 0x4e, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x32, 0x83, 0x03, 0x0a, 0x10, 0x50, 0x68, 0x6f, + 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x40, 0x0a, + 0x07, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, + 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x46, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1b, 0x2e, 0x70, + 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x68, 0x6f, 0x6e, + 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x50, 0x68, + 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, + 0x6f, 0x6f, 0x6b, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, + 0x6f, 0x6f, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x68, 0x6f, 0x6e, + 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, + 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x68, 0x6f, + 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x1b, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, + 0x6f, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0e, + 0x5a, 0x0c, 0x2e, 0x2e, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_phonebook_proto_rawDescOnce sync.Once + file_phonebook_proto_rawDescData = file_phonebook_proto_rawDesc +) + +func file_phonebook_proto_rawDescGZIP() []byte { + file_phonebook_proto_rawDescOnce.Do(func() { + file_phonebook_proto_rawDescData = protoimpl.X.CompressGZIP(file_phonebook_proto_rawDescData) + }) + return file_phonebook_proto_rawDescData +} + +var file_phonebook_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_phonebook_proto_goTypes = []interface{}{ + (*GetListRequest)(nil), // 0: phonebook.GetListRequest + (*GetListResponse)(nil), // 1: phonebook.GetListResponse + (*Metadata)(nil), // 2: phonebook.Metadata + (*PhoneBook)(nil), // 3: phonebook.PhoneBook + (*GetDetailRequest)(nil), // 4: phonebook.GetDetailRequest + (*GetDetailResponse)(nil), // 5: phonebook.GetDetailResponse + (*AddPhonebookRequest)(nil), // 6: phonebook.AddPhonebookRequest + (*StatusResponse)(nil), // 7: phonebook.StatusResponse + (*UpdatePhonebookRequest)(nil), // 8: phonebook.UpdatePhonebookRequest + (*NullString)(nil), // 9: phonebook.NullString + (*NullInt64)(nil), // 10: phonebook.NullInt64 +} +var file_phonebook_proto_depIdxs = []int32{ + 10, // 0: phonebook.GetListRequest.status:type_name -> phonebook.NullInt64 + 3, // 1: phonebook.GetListResponse.data:type_name -> phonebook.PhoneBook + 2, // 2: phonebook.GetListResponse.metadata:type_name -> phonebook.Metadata + 10, // 3: phonebook.UpdatePhonebookRequest.status:type_name -> phonebook.NullInt64 + 0, // 4: phonebook.PhoneBookHandler.GetList:input_type -> phonebook.GetListRequest + 4, // 5: phonebook.PhoneBookHandler.GetDetail:input_type -> phonebook.GetDetailRequest + 6, // 6: phonebook.PhoneBookHandler.AddPhonebook:input_type -> phonebook.AddPhonebookRequest + 8, // 7: phonebook.PhoneBookHandler.UpdatePhonebook:input_type -> phonebook.UpdatePhonebookRequest + 4, // 8: phonebook.PhoneBookHandler.DeletePhonebook:input_type -> phonebook.GetDetailRequest + 1, // 9: phonebook.PhoneBookHandler.GetList:output_type -> phonebook.GetListResponse + 5, // 10: phonebook.PhoneBookHandler.GetDetail:output_type -> phonebook.GetDetailResponse + 7, // 11: phonebook.PhoneBookHandler.AddPhonebook:output_type -> phonebook.StatusResponse + 7, // 12: phonebook.PhoneBookHandler.UpdatePhonebook:output_type -> phonebook.StatusResponse + 7, // 13: phonebook.PhoneBookHandler.DeletePhonebook:output_type -> phonebook.StatusResponse + 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 +} + +func init() { file_phonebook_proto_init() } +func file_phonebook_proto_init() { + if File_phonebook_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_phonebook_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PhoneBook); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddPhonebookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePhonebookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NullString); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_phonebook_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NullInt64); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_phonebook_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_phonebook_proto_goTypes, + DependencyIndexes: file_phonebook_proto_depIdxs, + MessageInfos: file_phonebook_proto_msgTypes, + }.Build() + File_phonebook_proto = out.File + file_phonebook_proto_rawDesc = nil + file_phonebook_proto_goTypes = nil + file_phonebook_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // PhoneBookHandlerClient is the client API for PhoneBookHandler service. // @@ -1053,10 +1454,10 @@ type PhoneBookHandlerClient interface { } type phoneBookHandlerClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewPhoneBookHandlerClient(cc *grpc.ClientConn) PhoneBookHandlerClient { +func NewPhoneBookHandlerClient(cc grpc.ClientConnInterface) PhoneBookHandlerClient { return &phoneBookHandlerClient{cc} } @@ -1118,19 +1519,19 @@ type PhoneBookHandlerServer interface { type UnimplementedPhoneBookHandlerServer struct { } -func (*UnimplementedPhoneBookHandlerServer) GetList(ctx context.Context, req *GetListRequest) (*GetListResponse, error) { +func (*UnimplementedPhoneBookHandlerServer) GetList(context.Context, *GetListRequest) (*GetListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented") } -func (*UnimplementedPhoneBookHandlerServer) GetDetail(ctx context.Context, req *GetDetailRequest) (*GetDetailResponse, error) { +func (*UnimplementedPhoneBookHandlerServer) GetDetail(context.Context, *GetDetailRequest) (*GetDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDetail not implemented") } -func (*UnimplementedPhoneBookHandlerServer) AddPhonebook(ctx context.Context, req *AddPhonebookRequest) (*StatusResponse, error) { +func (*UnimplementedPhoneBookHandlerServer) AddPhonebook(context.Context, *AddPhonebookRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPhonebook not implemented") } -func (*UnimplementedPhoneBookHandlerServer) UpdatePhonebook(ctx context.Context, req *UpdatePhonebookRequest) (*StatusResponse, error) { +func (*UnimplementedPhoneBookHandlerServer) UpdatePhonebook(context.Context, *UpdatePhonebookRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePhonebook not implemented") } -func (*UnimplementedPhoneBookHandlerServer) DeletePhonebook(ctx context.Context, req *GetDetailRequest) (*StatusResponse, error) { +func (*UnimplementedPhoneBookHandlerServer) DeletePhonebook(context.Context, *GetDetailRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePhonebook not implemented") } diff --git a/phonebook/phonebook.proto b/phonebook/phonebook.proto index 21d3c4d..1ff25f2 100644 --- a/phonebook/phonebook.proto +++ b/phonebook/phonebook.proto @@ -1,5 +1,7 @@ syntax = "proto3"; package phonebook; +option go_package="../phonebook"; + service PhoneBookHandler { rpc GetList(GetListRequest) returns (GetListResponse); diff --git a/userpost/userpost.pb.go b/userpost/userpost.pb.go index 7c303c4..8ac2c70 100644 --- a/userpost/userpost.pb.go +++ b/userpost/userpost.pb.go @@ -1,266 +1,302 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.15.8 // source: userpost.proto package userpost import ( context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ByID struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ByID) Reset() { *m = ByID{} } -func (m *ByID) String() string { return proto.CompactTextString(m) } -func (*ByID) ProtoMessage() {} -func (*ByID) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{0} + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *ByID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ByID.Unmarshal(m, b) -} -func (m *ByID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ByID.Marshal(b, m, deterministic) -} -func (m *ByID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ByID.Merge(m, src) +func (x *ByID) Reset() { + *x = ByID{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ByID) XXX_Size() int { - return xxx_messageInfo_ByID.Size(m) + +func (x *ByID) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ByID) XXX_DiscardUnknown() { - xxx_messageInfo_ByID.DiscardUnknown(m) + +func (*ByID) ProtoMessage() {} + +func (x *ByID) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ByID proto.InternalMessageInfo +// Deprecated: Use ByID.ProtoReflect.Descriptor instead. +func (*ByID) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{0} +} -func (m *ByID) GetId() int64 { - if m != nil { - return m.Id +func (x *ByID) GetId() int64 { + if x != nil { + return x.Id } return 0 } type GetListUserPostRequest struct { - ActivityName string `protobuf:"bytes,1,opt,name=activity_name,json=activityName,proto3" json:"activity_name,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` - Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - Page int64 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"` - Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` - SortBy string `protobuf:"bytes,7,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - OrderBy string `protobuf:"bytes,8,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetListUserPostRequest) Reset() { *m = GetListUserPostRequest{} } -func (m *GetListUserPostRequest) String() string { return proto.CompactTextString(m) } -func (*GetListUserPostRequest) ProtoMessage() {} -func (*GetListUserPostRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{1} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetListUserPostRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetListUserPostRequest.Unmarshal(m, b) + ActivityName string `protobuf:"bytes,1,opt,name=activity_name,json=activityName,proto3" json:"activity_name,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` + Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + Page int64 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"` + Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` + SortBy string `protobuf:"bytes,7,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + OrderBy string `protobuf:"bytes,8,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } -func (m *GetListUserPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetListUserPostRequest.Marshal(b, m, deterministic) -} -func (m *GetListUserPostRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetListUserPostRequest.Merge(m, src) + +func (x *GetListUserPostRequest) Reset() { + *x = GetListUserPostRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetListUserPostRequest) XXX_Size() int { - return xxx_messageInfo_GetListUserPostRequest.Size(m) + +func (x *GetListUserPostRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetListUserPostRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetListUserPostRequest.DiscardUnknown(m) + +func (*GetListUserPostRequest) ProtoMessage() {} + +func (x *GetListUserPostRequest) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetListUserPostRequest proto.InternalMessageInfo +// Deprecated: Use GetListUserPostRequest.ProtoReflect.Descriptor instead. +func (*GetListUserPostRequest) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{1} +} -func (m *GetListUserPostRequest) GetActivityName() string { - if m != nil { - return m.ActivityName +func (x *GetListUserPostRequest) GetActivityName() string { + if x != nil { + return x.ActivityName } return "" } -func (m *GetListUserPostRequest) GetUsername() string { - if m != nil { - return m.Username +func (x *GetListUserPostRequest) GetUsername() string { + if x != nil { + return x.Username } return "" } -func (m *GetListUserPostRequest) GetCategory() string { - if m != nil { - return m.Category +func (x *GetListUserPostRequest) GetCategory() string { + if x != nil { + return x.Category } return "" } -func (m *GetListUserPostRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *GetListUserPostRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *GetListUserPostRequest) GetPage() int64 { - if m != nil { - return m.Page +func (x *GetListUserPostRequest) GetPage() int64 { + if x != nil { + return x.Page } return 0 } -func (m *GetListUserPostRequest) GetLimit() int64 { - if m != nil { - return m.Limit +func (x *GetListUserPostRequest) GetLimit() int64 { + if x != nil { + return x.Limit } return 0 } -func (m *GetListUserPostRequest) GetSortBy() string { - if m != nil { - return m.SortBy +func (x *GetListUserPostRequest) GetSortBy() string { + if x != nil { + return x.SortBy } return "" } -func (m *GetListUserPostRequest) GetOrderBy() string { - if m != nil { - return m.OrderBy +func (x *GetListUserPostRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy } return "" } type GetListUserPostResponse struct { - Data []*UserPost `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetListUserPostResponse) Reset() { *m = GetListUserPostResponse{} } -func (m *GetListUserPostResponse) String() string { return proto.CompactTextString(m) } -func (*GetListUserPostResponse) ProtoMessage() {} -func (*GetListUserPostResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{2} + Data []*UserPost `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *GetListUserPostResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetListUserPostResponse.Unmarshal(m, b) -} -func (m *GetListUserPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetListUserPostResponse.Marshal(b, m, deterministic) -} -func (m *GetListUserPostResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetListUserPostResponse.Merge(m, src) +func (x *GetListUserPostResponse) Reset() { + *x = GetListUserPostResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetListUserPostResponse) XXX_Size() int { - return xxx_messageInfo_GetListUserPostResponse.Size(m) + +func (x *GetListUserPostResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetListUserPostResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetListUserPostResponse.DiscardUnknown(m) + +func (*GetListUserPostResponse) ProtoMessage() {} + +func (x *GetListUserPostResponse) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetListUserPostResponse proto.InternalMessageInfo +// Deprecated: Use GetListUserPostResponse.ProtoReflect.Descriptor instead. +func (*GetListUserPostResponse) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{2} +} -func (m *GetListUserPostResponse) GetData() []*UserPost { - if m != nil { - return m.Data +func (x *GetListUserPostResponse) GetData() []*UserPost { + if x != nil { + return x.Data } return nil } -func (m *GetListUserPostResponse) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *GetListUserPostResponse) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type Metadata struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - TotalPage int64 `protobuf:"varint,3,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{3} + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + TotalPage int64 `protobuf:"varint,3,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` } -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Metadata.Unmarshal(m, b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Metadata) XXX_Size() int { - return xxx_messageInfo_Metadata.Size(m) + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Metadata proto.InternalMessageInfo +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{3} +} -func (m *Metadata) GetPage() int64 { - if m != nil { - return m.Page +func (x *Metadata) GetPage() int64 { + if x != nil { + return x.Page } return 0 } -func (m *Metadata) GetTotal() int64 { - if m != nil { - return m.Total +func (x *Metadata) GetTotal() int64 { + if x != nil { + return x.Total } return 0 } -func (m *Metadata) GetTotalPage() int64 { - if m != nil { - return m.TotalPage +func (x *Metadata) GetTotalPage() int64 { + if x != nil { + return x.TotalPage } return 0 } type UserPost struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"` @@ -275,703 +311,1095 @@ type UserPost struct { Actor *Actor `protobuf:"bytes,12,opt,name=actor,proto3" json:"actor,omitempty"` CreatedAt string `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *UserPost) Reset() { *m = UserPost{} } -func (m *UserPost) String() string { return proto.CompactTextString(m) } -func (*UserPost) ProtoMessage() {} -func (*UserPost) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{4} +func (x *UserPost) Reset() { + *x = UserPost{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserPost) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserPost.Unmarshal(m, b) -} -func (m *UserPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserPost.Marshal(b, m, deterministic) -} -func (m *UserPost) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserPost.Merge(m, src) +func (x *UserPost) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserPost) XXX_Size() int { - return xxx_messageInfo_UserPost.Size(m) -} -func (m *UserPost) XXX_DiscardUnknown() { - xxx_messageInfo_UserPost.DiscardUnknown(m) + +func (*UserPost) ProtoMessage() {} + +func (x *UserPost) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserPost proto.InternalMessageInfo +// Deprecated: Use UserPost.ProtoReflect.Descriptor instead. +func (*UserPost) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{4} +} -func (m *UserPost) GetId() int64 { - if m != nil { - return m.Id +func (x *UserPost) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *UserPost) GetTitle() string { - if m != nil { - return m.Title +func (x *UserPost) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *UserPost) GetTag() string { - if m != nil { - return m.Tag +func (x *UserPost) GetTag() string { + if x != nil { + return x.Tag } return "" } -func (m *UserPost) GetImagePath() string { - if m != nil { - return m.ImagePath +func (x *UserPost) GetImagePath() string { + if x != nil { + return x.ImagePath } return "" } -func (m *UserPost) GetImages() string { - if m != nil { - return m.Images +func (x *UserPost) GetImages() string { + if x != nil { + return x.Images } return "" } -func (m *UserPost) GetLastUserPostCommentId() int64 { - if m != nil { - return m.LastUserPostCommentId +func (x *UserPost) GetLastUserPostCommentId() int64 { + if x != nil { + return x.LastUserPostCommentId } return 0 } -func (m *UserPost) GetLastComment() *Comment { - if m != nil { - return m.LastComment +func (x *UserPost) GetLastComment() *Comment { + if x != nil { + return x.LastComment } return nil } -func (m *UserPost) GetLikesCount() int64 { - if m != nil { - return m.LikesCount +func (x *UserPost) GetLikesCount() int64 { + if x != nil { + return x.LikesCount } return 0 } -func (m *UserPost) GetIsLiked() bool { - if m != nil { - return m.IsLiked +func (x *UserPost) GetIsLiked() bool { + if x != nil { + return x.IsLiked } return false } -func (m *UserPost) GetCommentCounts() int64 { - if m != nil { - return m.CommentCounts +func (x *UserPost) GetCommentCounts() int64 { + if x != nil { + return x.CommentCounts } return 0 } -func (m *UserPost) GetStatus() int64 { - if m != nil { - return m.Status +func (x *UserPost) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *UserPost) GetActor() *Actor { - if m != nil { - return m.Actor +func (x *UserPost) GetActor() *Actor { + if x != nil { + return x.Actor } return nil } -func (m *UserPost) GetCreatedAt() string { - if m != nil { - return m.CreatedAt +func (x *UserPost) GetCreatedAt() string { + if x != nil { + return x.CreatedAt } return "" } -func (m *UserPost) GetUpdatedAt() string { - if m != nil { - return m.UpdatedAt +func (x *UserPost) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt } return "" } type Comment struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - UserPostId int64 `protobuf:"varint,2,opt,name=user_post_id,json=userPostId,proto3" json:"user_post_id,omitempty"` - Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` - CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - CreatedBy *Actor `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedBy *Actor `protobuf:"bytes,7,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Comment) Reset() { *m = Comment{} } -func (m *Comment) String() string { return proto.CompactTextString(m) } -func (*Comment) ProtoMessage() {} -func (*Comment) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{5} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Comment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Comment.Unmarshal(m, b) -} -func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Comment.Marshal(b, m, deterministic) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + UserPostId int64 `protobuf:"varint,2,opt,name=user_post_id,json=userPostId,proto3" json:"user_post_id,omitempty"` + Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` + CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + CreatedBy *Actor `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedBy *Actor `protobuf:"bytes,7,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } -func (m *Comment) XXX_Merge(src proto.Message) { - xxx_messageInfo_Comment.Merge(m, src) + +func (x *Comment) Reset() { + *x = Comment{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Comment) XXX_Size() int { - return xxx_messageInfo_Comment.Size(m) + +func (x *Comment) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Comment) XXX_DiscardUnknown() { - xxx_messageInfo_Comment.DiscardUnknown(m) + +func (*Comment) ProtoMessage() {} + +func (x *Comment) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Comment proto.InternalMessageInfo +// Deprecated: Use Comment.ProtoReflect.Descriptor instead. +func (*Comment) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{5} +} -func (m *Comment) GetId() int64 { - if m != nil { - return m.Id +func (x *Comment) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *Comment) GetUserPostId() int64 { - if m != nil { - return m.UserPostId +func (x *Comment) GetUserPostId() int64 { + if x != nil { + return x.UserPostId } return 0 } -func (m *Comment) GetComment() string { - if m != nil { - return m.Comment +func (x *Comment) GetComment() string { + if x != nil { + return x.Comment } return "" } -func (m *Comment) GetCreatedAt() string { - if m != nil { - return m.CreatedAt +func (x *Comment) GetCreatedAt() string { + if x != nil { + return x.CreatedAt } return "" } -func (m *Comment) GetUpdatedAt() string { - if m != nil { - return m.UpdatedAt +func (x *Comment) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt } return "" } -func (m *Comment) GetCreatedBy() *Actor { - if m != nil { - return m.CreatedBy +func (x *Comment) GetCreatedBy() *Actor { + if x != nil { + return x.CreatedBy } return nil } -func (m *Comment) GetUpdatedBy() *Actor { - if m != nil { - return m.UpdatedBy +func (x *Comment) GetUpdatedBy() *Actor { + if x != nil { + return x.UpdatedBy } return nil } type Actor struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - PhotoUrl string `protobuf:"bytes,3,opt,name=photo_url,json=photoUrl,proto3" json:"photo_url,omitempty"` - Role int64 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"` - Regency string `protobuf:"bytes,5,opt,name=regency,proto3" json:"regency,omitempty"` - District string `protobuf:"bytes,6,opt,name=district,proto3" json:"district,omitempty"` - Village string `protobuf:"bytes,7,opt,name=village,proto3" json:"village,omitempty"` - Rw string `protobuf:"bytes,8,opt,name=rw,proto3" json:"rw,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Actor) Reset() { *m = Actor{} } -func (m *Actor) String() string { return proto.CompactTextString(m) } -func (*Actor) ProtoMessage() {} -func (*Actor) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{6} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Actor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Actor.Unmarshal(m, b) -} -func (m *Actor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Actor.Marshal(b, m, deterministic) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + PhotoUrl string `protobuf:"bytes,3,opt,name=photo_url,json=photoUrl,proto3" json:"photo_url,omitempty"` + Role int64 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"` + Regency string `protobuf:"bytes,5,opt,name=regency,proto3" json:"regency,omitempty"` + District string `protobuf:"bytes,6,opt,name=district,proto3" json:"district,omitempty"` + Village string `protobuf:"bytes,7,opt,name=village,proto3" json:"village,omitempty"` + Rw string `protobuf:"bytes,8,opt,name=rw,proto3" json:"rw,omitempty"` } -func (m *Actor) XXX_Merge(src proto.Message) { - xxx_messageInfo_Actor.Merge(m, src) + +func (x *Actor) Reset() { + *x = Actor{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Actor) XXX_Size() int { - return xxx_messageInfo_Actor.Size(m) + +func (x *Actor) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Actor) XXX_DiscardUnknown() { - xxx_messageInfo_Actor.DiscardUnknown(m) + +func (*Actor) ProtoMessage() {} + +func (x *Actor) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Actor proto.InternalMessageInfo +// Deprecated: Use Actor.ProtoReflect.Descriptor instead. +func (*Actor) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{6} +} -func (m *Actor) GetId() int64 { - if m != nil { - return m.Id +func (x *Actor) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *Actor) GetName() string { - if m != nil { - return m.Name +func (x *Actor) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Actor) GetPhotoUrl() string { - if m != nil { - return m.PhotoUrl +func (x *Actor) GetPhotoUrl() string { + if x != nil { + return x.PhotoUrl } return "" } -func (m *Actor) GetRole() int64 { - if m != nil { - return m.Role +func (x *Actor) GetRole() int64 { + if x != nil { + return x.Role } return 0 } -func (m *Actor) GetRegency() string { - if m != nil { - return m.Regency +func (x *Actor) GetRegency() string { + if x != nil { + return x.Regency } return "" } -func (m *Actor) GetDistrict() string { - if m != nil { - return m.District +func (x *Actor) GetDistrict() string { + if x != nil { + return x.District } return "" } -func (m *Actor) GetVillage() string { - if m != nil { - return m.Village +func (x *Actor) GetVillage() string { + if x != nil { + return x.Village } return "" } -func (m *Actor) GetRw() string { - if m != nil { - return m.Rw +func (x *Actor) GetRw() string { + if x != nil { + return x.Rw } return "" } type CreateNewPostRequest struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Images []*Image `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"` - Tags string `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"` - Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateNewPostRequest) Reset() { *m = CreateNewPostRequest{} } -func (m *CreateNewPostRequest) String() string { return proto.CompactTextString(m) } -func (*CreateNewPostRequest) ProtoMessage() {} -func (*CreateNewPostRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{7} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateNewPostRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateNewPostRequest.Unmarshal(m, b) + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Images []*Image `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"` + Tags string `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"` + Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` } -func (m *CreateNewPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateNewPostRequest.Marshal(b, m, deterministic) -} -func (m *CreateNewPostRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateNewPostRequest.Merge(m, src) + +func (x *CreateNewPostRequest) Reset() { + *x = CreateNewPostRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateNewPostRequest) XXX_Size() int { - return xxx_messageInfo_CreateNewPostRequest.Size(m) + +func (x *CreateNewPostRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateNewPostRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateNewPostRequest.DiscardUnknown(m) + +func (*CreateNewPostRequest) ProtoMessage() {} + +func (x *CreateNewPostRequest) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateNewPostRequest proto.InternalMessageInfo +// Deprecated: Use CreateNewPostRequest.ProtoReflect.Descriptor instead. +func (*CreateNewPostRequest) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{7} +} -func (m *CreateNewPostRequest) GetTitle() string { - if m != nil { - return m.Title +func (x *CreateNewPostRequest) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *CreateNewPostRequest) GetImages() []*Image { - if m != nil { - return m.Images +func (x *CreateNewPostRequest) GetImages() []*Image { + if x != nil { + return x.Images } return nil } -func (m *CreateNewPostRequest) GetTags() string { - if m != nil { - return m.Tags +func (x *CreateNewPostRequest) GetTags() string { + if x != nil { + return x.Tags } return "" } -func (m *CreateNewPostRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *CreateNewPostRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } type Image struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Image) Reset() { *m = Image{} } -func (m *Image) String() string { return proto.CompactTextString(m) } -func (*Image) ProtoMessage() {} -func (*Image) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{8} + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } -func (m *Image) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Image.Unmarshal(m, b) -} -func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Image.Marshal(b, m, deterministic) -} -func (m *Image) XXX_Merge(src proto.Message) { - xxx_messageInfo_Image.Merge(m, src) +func (x *Image) Reset() { + *x = Image{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Image) XXX_Size() int { - return xxx_messageInfo_Image.Size(m) + +func (x *Image) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Image) XXX_DiscardUnknown() { - xxx_messageInfo_Image.DiscardUnknown(m) + +func (*Image) ProtoMessage() {} + +func (x *Image) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Image proto.InternalMessageInfo +// Deprecated: Use Image.ProtoReflect.Descriptor instead. +func (*Image) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{8} +} -func (m *Image) GetPath() string { - if m != nil { - return m.Path +func (x *Image) GetPath() string { + if x != nil { + return x.Path } return "" } type StatusResponse struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StatusResponse) Reset() { *m = StatusResponse{} } -func (m *StatusResponse) String() string { return proto.CompactTextString(m) } -func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{9} + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *StatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatusResponse.Unmarshal(m, b) -} -func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) -} -func (m *StatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusResponse.Merge(m, src) +func (x *StatusResponse) Reset() { + *x = StatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StatusResponse) XXX_Size() int { - return xxx_messageInfo_StatusResponse.Size(m) + +func (x *StatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatusResponse.DiscardUnknown(m) + +func (*StatusResponse) ProtoMessage() {} + +func (x *StatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StatusResponse proto.InternalMessageInfo +// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. +func (*StatusResponse) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{9} +} -func (m *StatusResponse) GetCode() string { - if m != nil { - return m.Code +func (x *StatusResponse) GetCode() string { + if x != nil { + return x.Code } return "" } -func (m *StatusResponse) GetMessage() string { - if m != nil { - return m.Message +func (x *StatusResponse) GetMessage() string { + if x != nil { + return x.Message } return "" } type UpdateUserPostRequest struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UpdateUserPostRequest) Reset() { *m = UpdateUserPostRequest{} } -func (m *UpdateUserPostRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserPostRequest) ProtoMessage() {} -func (*UpdateUserPostRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{10} + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` } -func (m *UpdateUserPostRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserPostRequest.Unmarshal(m, b) -} -func (m *UpdateUserPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserPostRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserPostRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserPostRequest.Merge(m, src) +func (x *UpdateUserPostRequest) Reset() { + *x = UpdateUserPostRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateUserPostRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserPostRequest.Size(m) + +func (x *UpdateUserPostRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateUserPostRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserPostRequest.DiscardUnknown(m) + +func (*UpdateUserPostRequest) ProtoMessage() {} + +func (x *UpdateUserPostRequest) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateUserPostRequest proto.InternalMessageInfo +// Deprecated: Use UpdateUserPostRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserPostRequest) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{10} +} -func (m *UpdateUserPostRequest) GetId() int64 { - if m != nil { - return m.Id +func (x *UpdateUserPostRequest) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *UpdateUserPostRequest) GetTitle() string { - if m != nil { - return m.Title +func (x *UpdateUserPostRequest) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *UpdateUserPostRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *UpdateUserPostRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } type CommentsResponse struct { - Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommentsResponse) Reset() { *m = CommentsResponse{} } -func (m *CommentsResponse) String() string { return proto.CompactTextString(m) } -func (*CommentsResponse) ProtoMessage() {} -func (*CommentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{11} + Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` } -func (m *CommentsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommentsResponse.Unmarshal(m, b) -} -func (m *CommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommentsResponse.Marshal(b, m, deterministic) -} -func (m *CommentsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommentsResponse.Merge(m, src) +func (x *CommentsResponse) Reset() { + *x = CommentsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommentsResponse) XXX_Size() int { - return xxx_messageInfo_CommentsResponse.Size(m) + +func (x *CommentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommentsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommentsResponse.DiscardUnknown(m) + +func (*CommentsResponse) ProtoMessage() {} + +func (x *CommentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommentsResponse proto.InternalMessageInfo +// Deprecated: Use CommentsResponse.ProtoReflect.Descriptor instead. +func (*CommentsResponse) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{11} +} -func (m *CommentsResponse) GetComments() []*Comment { - if m != nil { - return m.Comments +func (x *CommentsResponse) GetComments() []*Comment { + if x != nil { + return x.Comments } return nil } type CreateCommentRequest struct { - UserPostId int64 `protobuf:"varint,1,opt,name=user_post_id,json=userPostId,proto3" json:"user_post_id,omitempty"` - Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` - Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateCommentRequest) Reset() { *m = CreateCommentRequest{} } -func (m *CreateCommentRequest) String() string { return proto.CompactTextString(m) } -func (*CreateCommentRequest) ProtoMessage() {} -func (*CreateCommentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_44fc5843c1f19ec4, []int{12} + UserPostId int64 `protobuf:"varint,1,opt,name=user_post_id,json=userPostId,proto3" json:"user_post_id,omitempty"` + Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` + Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` } -func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateCommentRequest.Unmarshal(m, b) -} -func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateCommentRequest.Marshal(b, m, deterministic) -} -func (m *CreateCommentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateCommentRequest.Merge(m, src) +func (x *CreateCommentRequest) Reset() { + *x = CreateCommentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_userpost_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateCommentRequest) XXX_Size() int { - return xxx_messageInfo_CreateCommentRequest.Size(m) + +func (x *CreateCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateCommentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateCommentRequest.DiscardUnknown(m) + +func (*CreateCommentRequest) ProtoMessage() {} + +func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_userpost_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateCommentRequest proto.InternalMessageInfo +// Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead. +func (*CreateCommentRequest) Descriptor() ([]byte, []int) { + return file_userpost_proto_rawDescGZIP(), []int{12} +} -func (m *CreateCommentRequest) GetUserPostId() int64 { - if m != nil { - return m.UserPostId +func (x *CreateCommentRequest) GetUserPostId() int64 { + if x != nil { + return x.UserPostId } return 0 } -func (m *CreateCommentRequest) GetComment() string { - if m != nil { - return m.Comment +func (x *CreateCommentRequest) GetComment() string { + if x != nil { + return x.Comment } return "" } -func (m *CreateCommentRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *CreateCommentRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func init() { - proto.RegisterType((*ByID)(nil), "userpost.ByID") - proto.RegisterType((*GetListUserPostRequest)(nil), "userpost.GetListUserPostRequest") - proto.RegisterType((*GetListUserPostResponse)(nil), "userpost.GetListUserPostResponse") - proto.RegisterType((*Metadata)(nil), "userpost.Metadata") - proto.RegisterType((*UserPost)(nil), "userpost.UserPost") - proto.RegisterType((*Comment)(nil), "userpost.Comment") - proto.RegisterType((*Actor)(nil), "userpost.Actor") - proto.RegisterType((*CreateNewPostRequest)(nil), "userpost.CreateNewPostRequest") - proto.RegisterType((*Image)(nil), "userpost.Image") - proto.RegisterType((*StatusResponse)(nil), "userpost.StatusResponse") - proto.RegisterType((*UpdateUserPostRequest)(nil), "userpost.UpdateUserPostRequest") - proto.RegisterType((*CommentsResponse)(nil), "userpost.CommentsResponse") - proto.RegisterType((*CreateCommentRequest)(nil), "userpost.CreateCommentRequest") -} - -func init() { proto.RegisterFile("userpost.proto", fileDescriptor_44fc5843c1f19ec4) } - -var fileDescriptor_44fc5843c1f19ec4 = []byte{ - // 958 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0x06, 0xf5, 0x63, 0x49, 0x23, 0x5b, 0x4e, 0x36, 0xb1, 0xc3, 0x28, 0x68, 0xa3, 0xb2, 0x48, - 0xeb, 0x4b, 0x7d, 0x70, 0x0b, 0xb4, 0x97, 0x16, 0x90, 0x6c, 0x20, 0x15, 0x90, 0x1f, 0x83, 0xa9, - 0x7b, 0xe8, 0x85, 0x58, 0x93, 0x0b, 0x79, 0x5b, 0x4a, 0x54, 0x76, 0x47, 0x36, 0x78, 0xec, 0x7b, - 0xf5, 0x05, 0xfa, 0x26, 0x05, 0x7a, 0xec, 0x0b, 0x14, 0x3b, 0xdc, 0x25, 0x25, 0x5a, 0x16, 0x7a, - 0xe8, 0x6d, 0xe7, 0x6f, 0xf9, 0xcd, 0x7c, 0x33, 0xb3, 0x84, 0xc1, 0x4a, 0x0b, 0xb5, 0xcc, 0x34, - 0x9e, 0x2e, 0x55, 0x86, 0x19, 0xeb, 0x3a, 0x39, 0x38, 0x86, 0xd6, 0x24, 0x9f, 0x5e, 0xb0, 0x01, - 0x34, 0x64, 0xe2, 0x7b, 0x23, 0xef, 0xa4, 0x19, 0x36, 0x64, 0x12, 0xfc, 0xed, 0xc1, 0xf1, 0x6b, - 0x81, 0x6f, 0xa4, 0xc6, 0x2b, 0x2d, 0xd4, 0x65, 0xa6, 0x31, 0x14, 0x1f, 0x57, 0x42, 0x23, 0xfb, - 0x1c, 0x0e, 0x78, 0x8c, 0xf2, 0x56, 0x62, 0x1e, 0x2d, 0xf8, 0x5c, 0x50, 0x54, 0x2f, 0xdc, 0x77, - 0xca, 0x77, 0x7c, 0x2e, 0xd8, 0x10, 0xe8, 0x1b, 0x64, 0x6f, 0x90, 0xbd, 0x94, 0x8d, 0x2d, 0xe6, - 0x28, 0x66, 0x99, 0xca, 0xfd, 0x66, 0x61, 0x73, 0x32, 0x3b, 0x86, 0x3d, 0x8d, 0x1c, 0x57, 0xda, - 0x6f, 0x11, 0x16, 0x2b, 0x31, 0x06, 0xad, 0x25, 0x9f, 0x09, 0xbf, 0x4d, 0x5a, 0x3a, 0xb3, 0xa7, - 0xd0, 0x4e, 0xe5, 0x5c, 0xa2, 0xbf, 0x47, 0xca, 0x42, 0x60, 0xcf, 0xa0, 0xa3, 0x33, 0x85, 0xd1, - 0x75, 0xee, 0x77, 0xe8, 0xf2, 0x3d, 0x23, 0x4e, 0x72, 0xf6, 0x1c, 0xba, 0x99, 0x4a, 0x84, 0x32, - 0x96, 0x2e, 0x59, 0x3a, 0x24, 0x4f, 0xf2, 0xe0, 0x23, 0x3c, 0xbb, 0x97, 0xac, 0x5e, 0x66, 0x0b, - 0x2d, 0xd8, 0x17, 0xd0, 0x4a, 0x38, 0x72, 0xdf, 0x1b, 0x35, 0x4f, 0xfa, 0x67, 0xec, 0xb4, 0xac, - 0x64, 0xe9, 0x49, 0x76, 0x76, 0x0a, 0xdd, 0xb9, 0x40, 0x4e, 0xbe, 0x26, 0xe1, 0x0d, 0xdf, 0xb7, - 0xd6, 0x12, 0x96, 0x3e, 0xc1, 0x07, 0xe8, 0x3a, 0x6d, 0x99, 0x9c, 0xb7, 0x99, 0x1c, 0x66, 0xc8, - 0x53, 0xba, 0xac, 0x19, 0x16, 0x02, 0xfb, 0x04, 0x80, 0x0e, 0x11, 0xf9, 0x37, 0xc9, 0xd4, 0x23, - 0xcd, 0x25, 0x9f, 0x89, 0xe0, 0xcf, 0x26, 0x74, 0x1d, 0xae, 0x3a, 0xa5, 0x74, 0xa3, 0xc4, 0xd4, - 0xf1, 0x51, 0x08, 0xec, 0x11, 0x34, 0x91, 0xcf, 0x2c, 0x0f, 0xe6, 0x68, 0xbe, 0x21, 0xe7, 0x7c, - 0x26, 0xa2, 0x25, 0xc7, 0x1b, 0xa2, 0xa1, 0x17, 0xf6, 0x48, 0x73, 0xc9, 0xf1, 0xc6, 0x30, 0x44, - 0x82, 0x26, 0x2e, 0x7a, 0xa1, 0x95, 0xd8, 0x77, 0xf0, 0x3c, 0xe5, 0x1a, 0x23, 0x93, 0x74, 0x64, - 0xb2, 0x8e, 0xe2, 0x6c, 0x3e, 0x17, 0x0b, 0x8c, 0x64, 0x62, 0x19, 0x3a, 0x32, 0x0e, 0x0e, 0xdf, - 0x79, 0x61, 0x9d, 0x26, 0xec, 0x1b, 0xd8, 0xa7, 0x48, 0xeb, 0x4f, 0xb4, 0xf5, 0xcf, 0x1e, 0x57, - 0xe5, 0xb3, 0xae, 0x61, 0xdf, 0xb8, 0x59, 0x81, 0xbd, 0x84, 0x7e, 0x2a, 0x7f, 0x13, 0x3a, 0x8a, - 0xb3, 0xd5, 0x02, 0x89, 0xd1, 0x66, 0x08, 0xa4, 0x3a, 0x37, 0x1a, 0xc3, 0xb7, 0xd4, 0x91, 0x51, - 0x24, 0x7e, 0x6f, 0xe4, 0x9d, 0x74, 0xc3, 0x8e, 0xd4, 0x6f, 0x8c, 0xc8, 0x5e, 0xc1, 0xc0, 0x81, - 0xa3, 0x68, 0xed, 0x03, 0x85, 0x1f, 0x58, 0x2d, 0x5d, 0xa0, 0xd7, 0x9a, 0xb1, 0xbf, 0xd1, 0x8c, - 0xaf, 0xa0, 0xcd, 0x63, 0xcc, 0x94, 0xbf, 0x4f, 0x48, 0x0f, 0x2b, 0xa4, 0x63, 0xa3, 0x0e, 0x0b, - 0xab, 0x29, 0x64, 0xac, 0x04, 0x47, 0x91, 0x44, 0x1c, 0xfd, 0x83, 0xa2, 0x90, 0x56, 0x33, 0x46, - 0x63, 0x5e, 0x2d, 0x13, 0x67, 0x1e, 0x14, 0x66, 0xab, 0x19, 0x63, 0xf0, 0x8f, 0x07, 0x1d, 0x97, - 0x6b, 0x9d, 0xca, 0x11, 0xec, 0x57, 0x65, 0x96, 0x89, 0xed, 0x11, 0x58, 0xd9, 0xd2, 0x4e, 0x13, - 0xe6, 0x43, 0xc7, 0x95, 0xb3, 0xa0, 0xd6, 0x89, 0x35, 0x54, 0xad, 0xdd, 0xa8, 0xda, 0x35, 0x54, - 0xec, 0xb4, 0x8a, 0xbe, 0xce, 0x89, 0xd6, 0x2d, 0xf9, 0xbb, 0xeb, 0x26, 0xb9, 0xf1, 0x77, 0xd7, - 0xd9, 0x81, 0xdc, 0xe6, 0x6f, 0x5d, 0x26, 0x79, 0xf0, 0x87, 0x07, 0x6d, 0x52, 0xde, 0xcb, 0x99, - 0x41, 0x6b, 0x6d, 0x9b, 0xd0, 0x99, 0xbd, 0x80, 0xde, 0xf2, 0x26, 0xc3, 0x2c, 0x5a, 0xa9, 0xd4, - 0xad, 0x12, 0x52, 0x5c, 0xa9, 0xd4, 0x04, 0xa8, 0x2c, 0x15, 0x76, 0x91, 0xd0, 0xd9, 0x94, 0x45, - 0x89, 0x99, 0x58, 0xc4, 0xb9, 0x4d, 0xcd, 0x89, 0x66, 0x29, 0x25, 0x52, 0xa3, 0x92, 0x71, 0xb1, - 0x4f, 0x7a, 0x61, 0x29, 0x9b, 0xa8, 0x5b, 0x99, 0xa6, 0x66, 0xe4, 0x8a, 0x95, 0xe2, 0x44, 0x03, - 0x52, 0xdd, 0xd9, 0x6d, 0xd2, 0x50, 0x77, 0xc1, 0xef, 0x1e, 0x3c, 0x3d, 0xa7, 0xe4, 0xdf, 0x89, - 0xbb, 0xf5, 0xa5, 0x59, 0x0e, 0x9f, 0xb7, 0x3e, 0x7c, 0x5f, 0x96, 0xb3, 0xd4, 0xa0, 0xf5, 0xb2, - 0x56, 0x99, 0xa9, 0xd1, 0x97, 0xc3, 0xc5, 0xa0, 0x85, 0x7c, 0xa6, 0x6d, 0x8e, 0x74, 0x7e, 0x68, - 0x55, 0x06, 0x2f, 0xa0, 0x4d, 0xc1, 0xc5, 0x5a, 0xc1, 0x1b, 0xfb, 0x49, 0x3a, 0x07, 0x3f, 0xc0, - 0xe0, 0x03, 0xb9, 0x95, 0x0b, 0x8e, 0x41, 0x2b, 0xce, 0x12, 0x07, 0x8c, 0xce, 0x26, 0xe1, 0xb9, - 0xd0, 0xda, 0x24, 0x5c, 0x94, 0xdb, 0x89, 0xc1, 0x15, 0x1c, 0x5d, 0x11, 0x59, 0xf5, 0x57, 0xe1, - 0xbf, 0x6d, 0x9b, 0x0a, 0x73, 0x73, 0x03, 0xf3, 0x18, 0x1e, 0xd9, 0x5e, 0xaf, 0x80, 0x7d, 0x05, - 0x5d, 0xdb, 0xb3, 0xda, 0x6e, 0xdf, 0x2d, 0x2b, 0xa1, 0x74, 0x09, 0x7e, 0x75, 0x95, 0x77, 0x26, - 0x0b, 0xac, 0x3e, 0x2b, 0xde, 0xae, 0x59, 0x69, 0x6c, 0xce, 0xca, 0x03, 0x70, 0xcf, 0xfe, 0x6a, - 0xc1, 0xa1, 0x2b, 0xc0, 0x8f, 0x7c, 0x91, 0xa4, 0x42, 0xb1, 0x9f, 0xe1, 0xb0, 0xf6, 0x86, 0xb0, - 0x51, 0x85, 0x77, 0xfb, 0x5b, 0x3a, 0xfc, 0x6c, 0x87, 0x87, 0x2d, 0xc3, 0xb7, 0xf0, 0xf8, 0xb5, - 0xc0, 0x0b, 0x81, 0x5c, 0xa6, 0xd5, 0x6e, 0xaf, 0xe2, 0xcc, 0xf3, 0x3d, 0xdc, 0xf2, 0x2e, 0xb1, - 0x29, 0x1c, 0x6c, 0xb4, 0x22, 0xfb, 0x74, 0xad, 0x7c, 0x5b, 0x7a, 0x74, 0xe8, 0x57, 0xf6, 0x5a, - 0x8f, 0x5c, 0xc2, 0x93, 0x82, 0xf5, 0x42, 0xff, 0x5e, 0xfd, 0x44, 0x6c, 0xbe, 0x5c, 0xfb, 0xea, - 0xb6, 0xa6, 0xd8, 0x71, 0xe3, 0xf7, 0x54, 0x2d, 0xc7, 0x79, 0xf1, 0x0b, 0x52, 0xcb, 0x69, 0x78, - 0x8f, 0xed, 0x2a, 0xbc, 0xcc, 0xcd, 0x6d, 0xc8, 0x7b, 0xb9, 0x6d, 0x76, 0xc1, 0x0e, 0x24, 0xbf, - 0xc0, 0x93, 0x5a, 0xe9, 0x27, 0xf9, 0x5b, 0xf1, 0xff, 0x70, 0x37, 0x86, 0x23, 0xf3, 0xe0, 0xbc, - 0x57, 0x17, 0x52, 0x9b, 0x87, 0xe8, 0x41, 0xfe, 0x1e, 0x84, 0x77, 0xbd, 0x47, 0x7f, 0x6c, 0x5f, - 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x84, 0x97, 0x85, 0xad, 0xc3, 0x09, 0x00, 0x00, +var File_userpost_proto protoreflect.FileDescriptor + +var file_userpost_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x08, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x22, 0x16, 0x0a, 0x04, 0x42, 0x79, + 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, + 0x69, 0x64, 0x22, 0xeb, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, + 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, + 0x22, 0x71, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, + 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x22, 0x53, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, + 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x61, 0x67, 0x65, 0x22, 0xc9, 0x03, 0x0a, 0x08, 0x55, 0x73, 0x65, + 0x72, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, + 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x34, + 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, + 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x6b, 0x65, 0x73, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x69, 0x6b, 0x65, 0x73, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x6c, 0x69, 0x6b, 0x65, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x4c, 0x69, 0x6b, 0x65, 0x64, + 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x25, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x22, 0xf3, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2e, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x2e, 0x0a, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0xbc, 0x01, 0x0a, 0x05, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x68, 0x6f, 0x74, + 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x68, 0x6f, + 0x74, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x72, 0x77, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x72, 0x77, 0x22, 0x81, 0x01, 0x0a, 0x14, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, + 0x6f, 0x73, 0x74, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x1b, 0x0a, + 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x3e, 0x0a, 0x0e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x55, 0x0a, 0x15, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x41, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, + 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x22, 0x6a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x32, 0xe8, 0x04, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x72, 0x12, 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, + 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x74, 0x12, 0x0e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x42, 0x79, 0x49, + 0x44, 0x1a, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, + 0x74, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, + 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x50, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x4f, 0x72, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, + 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, + 0x6f, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x42, 0x79, 0x49, 0x44, 0x12, 0x0e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, + 0x2e, 0x42, 0x79, 0x49, 0x44, 0x1a, 0x1a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, + 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x13, + 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x42, + 0x79, 0x4d, 0x65, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x47, + 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, + 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x15, 0x4c, 0x69, 0x6b, 0x65, + 0x4f, 0x72, 0x44, 0x69, 0x73, 0x6c, 0x69, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x74, 0x12, 0x0e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x42, 0x79, 0x49, + 0x44, 0x1a, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, + 0x2e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 0x6f, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_userpost_proto_rawDescOnce sync.Once + file_userpost_proto_rawDescData = file_userpost_proto_rawDesc +) + +func file_userpost_proto_rawDescGZIP() []byte { + file_userpost_proto_rawDescOnce.Do(func() { + file_userpost_proto_rawDescData = protoimpl.X.CompressGZIP(file_userpost_proto_rawDescData) + }) + return file_userpost_proto_rawDescData +} + +var file_userpost_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_userpost_proto_goTypes = []interface{}{ + (*ByID)(nil), // 0: userpost.ByID + (*GetListUserPostRequest)(nil), // 1: userpost.GetListUserPostRequest + (*GetListUserPostResponse)(nil), // 2: userpost.GetListUserPostResponse + (*Metadata)(nil), // 3: userpost.Metadata + (*UserPost)(nil), // 4: userpost.UserPost + (*Comment)(nil), // 5: userpost.Comment + (*Actor)(nil), // 6: userpost.Actor + (*CreateNewPostRequest)(nil), // 7: userpost.CreateNewPostRequest + (*Image)(nil), // 8: userpost.Image + (*StatusResponse)(nil), // 9: userpost.StatusResponse + (*UpdateUserPostRequest)(nil), // 10: userpost.UpdateUserPostRequest + (*CommentsResponse)(nil), // 11: userpost.CommentsResponse + (*CreateCommentRequest)(nil), // 12: userpost.CreateCommentRequest +} +var file_userpost_proto_depIdxs = []int32{ + 4, // 0: userpost.GetListUserPostResponse.data:type_name -> userpost.UserPost + 3, // 1: userpost.GetListUserPostResponse.metadata:type_name -> userpost.Metadata + 5, // 2: userpost.UserPost.last_comment:type_name -> userpost.Comment + 6, // 3: userpost.UserPost.actor:type_name -> userpost.Actor + 6, // 4: userpost.Comment.created_by:type_name -> userpost.Actor + 6, // 5: userpost.Comment.updated_by:type_name -> userpost.Actor + 8, // 6: userpost.CreateNewPostRequest.images:type_name -> userpost.Image + 5, // 7: userpost.CommentsResponse.comments:type_name -> userpost.Comment + 1, // 8: userpost.UserPostHandler.GetListUserPost:input_type -> userpost.GetListUserPostRequest + 0, // 9: userpost.UserPostHandler.GetDetailUserPost:input_type -> userpost.ByID + 7, // 10: userpost.UserPostHandler.CreateNewPost:input_type -> userpost.CreateNewPostRequest + 10, // 11: userpost.UserPostHandler.UpdateStatusOrTitle:input_type -> userpost.UpdateUserPostRequest + 0, // 12: userpost.UserPostHandler.GetCommentsByID:input_type -> userpost.ByID + 12, // 13: userpost.UserPostHandler.CreateComment:input_type -> userpost.CreateCommentRequest + 1, // 14: userpost.UserPostHandler.GetListUserPostByMe:input_type -> userpost.GetListUserPostRequest + 0, // 15: userpost.UserPostHandler.LikeOrDislikeUserPost:input_type -> userpost.ByID + 2, // 16: userpost.UserPostHandler.GetListUserPost:output_type -> userpost.GetListUserPostResponse + 4, // 17: userpost.UserPostHandler.GetDetailUserPost:output_type -> userpost.UserPost + 9, // 18: userpost.UserPostHandler.CreateNewPost:output_type -> userpost.StatusResponse + 9, // 19: userpost.UserPostHandler.UpdateStatusOrTitle:output_type -> userpost.StatusResponse + 11, // 20: userpost.UserPostHandler.GetCommentsByID:output_type -> userpost.CommentsResponse + 9, // 21: userpost.UserPostHandler.CreateComment:output_type -> userpost.StatusResponse + 2, // 22: userpost.UserPostHandler.GetListUserPostByMe:output_type -> userpost.GetListUserPostResponse + 9, // 23: userpost.UserPostHandler.LikeOrDislikeUserPost:output_type -> userpost.StatusResponse + 16, // [16:24] is the sub-list for method output_type + 8, // [8:16] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_userpost_proto_init() } +func file_userpost_proto_init() { + if File_userpost_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_userpost_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ByID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetListUserPostRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetListUserPostResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserPost); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Comment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Actor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNewPostRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Image); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserPostRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommentsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_userpost_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateCommentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_userpost_proto_rawDesc, + NumEnums: 0, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_userpost_proto_goTypes, + DependencyIndexes: file_userpost_proto_depIdxs, + MessageInfos: file_userpost_proto_msgTypes, + }.Build() + File_userpost_proto = out.File + file_userpost_proto_rawDesc = nil + file_userpost_proto_goTypes = nil + file_userpost_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // UserPostHandlerClient is the client API for UserPostHandler service. // @@ -988,10 +1416,10 @@ type UserPostHandlerClient interface { } type userPostHandlerClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewUserPostHandlerClient(cc *grpc.ClientConn) UserPostHandlerClient { +func NewUserPostHandlerClient(cc grpc.ClientConnInterface) UserPostHandlerClient { return &userPostHandlerClient{cc} } @@ -1083,28 +1511,28 @@ type UserPostHandlerServer interface { type UnimplementedUserPostHandlerServer struct { } -func (*UnimplementedUserPostHandlerServer) GetListUserPost(ctx context.Context, req *GetListUserPostRequest) (*GetListUserPostResponse, error) { +func (*UnimplementedUserPostHandlerServer) GetListUserPost(context.Context, *GetListUserPostRequest) (*GetListUserPostResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetListUserPost not implemented") } -func (*UnimplementedUserPostHandlerServer) GetDetailUserPost(ctx context.Context, req *ByID) (*UserPost, error) { +func (*UnimplementedUserPostHandlerServer) GetDetailUserPost(context.Context, *ByID) (*UserPost, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDetailUserPost not implemented") } -func (*UnimplementedUserPostHandlerServer) CreateNewPost(ctx context.Context, req *CreateNewPostRequest) (*StatusResponse, error) { +func (*UnimplementedUserPostHandlerServer) CreateNewPost(context.Context, *CreateNewPostRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNewPost not implemented") } -func (*UnimplementedUserPostHandlerServer) UpdateStatusOrTitle(ctx context.Context, req *UpdateUserPostRequest) (*StatusResponse, error) { +func (*UnimplementedUserPostHandlerServer) UpdateStatusOrTitle(context.Context, *UpdateUserPostRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateStatusOrTitle not implemented") } -func (*UnimplementedUserPostHandlerServer) GetCommentsByID(ctx context.Context, req *ByID) (*CommentsResponse, error) { +func (*UnimplementedUserPostHandlerServer) GetCommentsByID(context.Context, *ByID) (*CommentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCommentsByID not implemented") } -func (*UnimplementedUserPostHandlerServer) CreateComment(ctx context.Context, req *CreateCommentRequest) (*StatusResponse, error) { +func (*UnimplementedUserPostHandlerServer) CreateComment(context.Context, *CreateCommentRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateComment not implemented") } -func (*UnimplementedUserPostHandlerServer) GetListUserPostByMe(ctx context.Context, req *GetListUserPostRequest) (*GetListUserPostResponse, error) { +func (*UnimplementedUserPostHandlerServer) GetListUserPostByMe(context.Context, *GetListUserPostRequest) (*GetListUserPostResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetListUserPostByMe not implemented") } -func (*UnimplementedUserPostHandlerServer) LikeOrDislikeUserPost(ctx context.Context, req *ByID) (*StatusResponse, error) { +func (*UnimplementedUserPostHandlerServer) LikeOrDislikeUserPost(context.Context, *ByID) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LikeOrDislikeUserPost not implemented") } diff --git a/userpost/userpost.proto b/userpost/userpost.proto index 5f31a40..e7160a4 100644 --- a/userpost/userpost.proto +++ b/userpost/userpost.proto @@ -1,5 +1,7 @@ syntax = "proto3"; package userpost; +option go_package="../userpost"; + service UserPostHandler { rpc GetListUserPost(GetListUserPostRequest) returns (GetListUserPostResponse); diff --git a/video/video.pb.go b/video/video.pb.go index 5938803..2b94943 100644 --- a/video/video.pb.go +++ b/video/video.pb.go @@ -1,881 +1,1268 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.15.8 // source: video.proto package video import ( context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type GetListVideoRequest struct { - RegencyId int64 `protobuf:"varint,1,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetListVideoRequest) Reset() { *m = GetListVideoRequest{} } -func (m *GetListVideoRequest) String() string { return proto.CompactTextString(m) } -func (*GetListVideoRequest) ProtoMessage() {} -func (*GetListVideoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{0} + RegencyId int64 `protobuf:"varint,1,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` } -func (m *GetListVideoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetListVideoRequest.Unmarshal(m, b) -} -func (m *GetListVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetListVideoRequest.Marshal(b, m, deterministic) -} -func (m *GetListVideoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetListVideoRequest.Merge(m, src) +func (x *GetListVideoRequest) Reset() { + *x = GetListVideoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetListVideoRequest) XXX_Size() int { - return xxx_messageInfo_GetListVideoRequest.Size(m) + +func (x *GetListVideoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetListVideoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetListVideoRequest.DiscardUnknown(m) + +func (*GetListVideoRequest) ProtoMessage() {} + +func (x *GetListVideoRequest) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetListVideoRequest proto.InternalMessageInfo +// Deprecated: Use GetListVideoRequest.ProtoReflect.Descriptor instead. +func (*GetListVideoRequest) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{0} +} -func (m *GetListVideoRequest) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *GetListVideoRequest) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *GetListVideoRequest) GetPage() int64 { - if m != nil { - return m.Page +func (x *GetListVideoRequest) GetPage() int64 { + if x != nil { + return x.Page } return 0 } type GetListVideoResponse struct { - Data []*VideoList `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetListVideoResponse) Reset() { *m = GetListVideoResponse{} } -func (m *GetListVideoResponse) String() string { return proto.CompactTextString(m) } -func (*GetListVideoResponse) ProtoMessage() {} -func (*GetListVideoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{1} + Data []*VideoList `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *GetListVideoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetListVideoResponse.Unmarshal(m, b) -} -func (m *GetListVideoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetListVideoResponse.Marshal(b, m, deterministic) -} -func (m *GetListVideoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetListVideoResponse.Merge(m, src) +func (x *GetListVideoResponse) Reset() { + *x = GetListVideoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetListVideoResponse) XXX_Size() int { - return xxx_messageInfo_GetListVideoResponse.Size(m) + +func (x *GetListVideoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetListVideoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetListVideoResponse.DiscardUnknown(m) + +func (*GetListVideoResponse) ProtoMessage() {} + +func (x *GetListVideoResponse) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetListVideoResponse proto.InternalMessageInfo +// Deprecated: Use GetListVideoResponse.ProtoReflect.Descriptor instead. +func (*GetListVideoResponse) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{1} +} -func (m *GetListVideoResponse) GetData() []*VideoList { - if m != nil { - return m.Data +func (x *GetListVideoResponse) GetData() []*VideoList { + if x != nil { + return x.Data } return nil } -func (m *GetListVideoResponse) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *GetListVideoResponse) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type VideoList struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` - VideoUrl string `protobuf:"bytes,5,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` - RegencyId int64 `protobuf:"varint,6,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` - CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - CreatedBy int64 `protobuf:"varint,10,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedBy int64 `protobuf:"varint,11,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VideoList) Reset() { *m = VideoList{} } -func (m *VideoList) String() string { return proto.CompactTextString(m) } -func (*VideoList) ProtoMessage() {} -func (*VideoList) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{2} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VideoList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VideoList.Unmarshal(m, b) -} -func (m *VideoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VideoList.Marshal(b, m, deterministic) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` + VideoUrl string `protobuf:"bytes,5,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` + RegencyId int64 `protobuf:"varint,6,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` + CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + CreatedBy int64 `protobuf:"varint,10,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedBy int64 `protobuf:"varint,11,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } -func (m *VideoList) XXX_Merge(src proto.Message) { - xxx_messageInfo_VideoList.Merge(m, src) + +func (x *VideoList) Reset() { + *x = VideoList{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VideoList) XXX_Size() int { - return xxx_messageInfo_VideoList.Size(m) + +func (x *VideoList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VideoList) XXX_DiscardUnknown() { - xxx_messageInfo_VideoList.DiscardUnknown(m) + +func (*VideoList) ProtoMessage() {} + +func (x *VideoList) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VideoList proto.InternalMessageInfo +// Deprecated: Use VideoList.ProtoReflect.Descriptor instead. +func (*VideoList) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{2} +} -func (m *VideoList) GetId() int64 { - if m != nil { - return m.Id +func (x *VideoList) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *VideoList) GetTitle() string { - if m != nil { - return m.Title +func (x *VideoList) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *VideoList) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *VideoList) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } -func (m *VideoList) GetSource() string { - if m != nil { - return m.Source +func (x *VideoList) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *VideoList) GetVideoUrl() string { - if m != nil { - return m.VideoUrl +func (x *VideoList) GetVideoUrl() string { + if x != nil { + return x.VideoUrl } return "" } -func (m *VideoList) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *VideoList) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *VideoList) GetStatus() int64 { - if m != nil { - return m.Status +func (x *VideoList) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *VideoList) GetCreatedAt() string { - if m != nil { - return m.CreatedAt +func (x *VideoList) GetCreatedAt() string { + if x != nil { + return x.CreatedAt } return "" } -func (m *VideoList) GetUpdatedAt() string { - if m != nil { - return m.UpdatedAt +func (x *VideoList) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt } return "" } -func (m *VideoList) GetCreatedBy() int64 { - if m != nil { - return m.CreatedBy +func (x *VideoList) GetCreatedBy() int64 { + if x != nil { + return x.CreatedBy } return 0 } -func (m *VideoList) GetUpdatedBy() int64 { - if m != nil { - return m.UpdatedBy +func (x *VideoList) GetUpdatedBy() int64 { + if x != nil { + return x.UpdatedBy } return 0 } type Metadata struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - TotalPage int64 `protobuf:"varint,2,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` - Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{3} + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + TotalPage int64 `protobuf:"varint,2,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` } -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Metadata.Unmarshal(m, b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Metadata) XXX_Size() int { - return xxx_messageInfo_Metadata.Size(m) + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Metadata proto.InternalMessageInfo +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{3} +} -func (m *Metadata) GetPage() int64 { - if m != nil { - return m.Page +func (x *Metadata) GetPage() int64 { + if x != nil { + return x.Page } return 0 } -func (m *Metadata) GetTotalPage() int64 { - if m != nil { - return m.TotalPage +func (x *Metadata) GetTotalPage() int64 { + if x != nil { + return x.TotalPage } return 0 } -func (m *Metadata) GetTotal() int64 { - if m != nil { - return m.Total +func (x *Metadata) GetTotal() int64 { + if x != nil { + return x.Total } return 0 } type RequestID struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestID) Reset() { *m = RequestID{} } -func (m *RequestID) String() string { return proto.CompactTextString(m) } -func (*RequestID) ProtoMessage() {} -func (*RequestID) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{4} + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *RequestID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestID.Unmarshal(m, b) -} -func (m *RequestID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestID.Marshal(b, m, deterministic) -} -func (m *RequestID) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestID.Merge(m, src) +func (x *RequestID) Reset() { + *x = RequestID{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RequestID) XXX_Size() int { - return xxx_messageInfo_RequestID.Size(m) + +func (x *RequestID) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestID) XXX_DiscardUnknown() { - xxx_messageInfo_RequestID.DiscardUnknown(m) + +func (*RequestID) ProtoMessage() {} + +func (x *RequestID) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RequestID proto.InternalMessageInfo +// Deprecated: Use RequestID.ProtoReflect.Descriptor instead. +func (*RequestID) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{4} +} -func (m *RequestID) GetId() int64 { - if m != nil { - return m.Id +func (x *RequestID) GetId() int64 { + if x != nil { + return x.Id } return 0 } type GetDetailVideoResponse struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - CategoryName string `protobuf:"bytes,4,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` - Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` - VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` - RegencyId int64 `protobuf:"varint,7,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - RegencyName string `protobuf:"bytes,8,opt,name=regency_name,json=regencyName,proto3" json:"regency_name,omitempty"` - Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` - CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - CreatedBy int64 `protobuf:"varint,12,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedBy int64 `protobuf:"varint,13,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDetailVideoResponse) Reset() { *m = GetDetailVideoResponse{} } -func (m *GetDetailVideoResponse) String() string { return proto.CompactTextString(m) } -func (*GetDetailVideoResponse) ProtoMessage() {} -func (*GetDetailVideoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{5} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDetailVideoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDetailVideoResponse.Unmarshal(m, b) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + CategoryName string `protobuf:"bytes,4,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` + Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` + VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` + RegencyId int64 `protobuf:"varint,7,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + RegencyName string `protobuf:"bytes,8,opt,name=regency_name,json=regencyName,proto3" json:"regency_name,omitempty"` + Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` + CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + CreatedBy int64 `protobuf:"varint,12,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedBy int64 `protobuf:"varint,13,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } -func (m *GetDetailVideoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDetailVideoResponse.Marshal(b, m, deterministic) -} -func (m *GetDetailVideoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDetailVideoResponse.Merge(m, src) + +func (x *GetDetailVideoResponse) Reset() { + *x = GetDetailVideoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDetailVideoResponse) XXX_Size() int { - return xxx_messageInfo_GetDetailVideoResponse.Size(m) + +func (x *GetDetailVideoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDetailVideoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDetailVideoResponse.DiscardUnknown(m) + +func (*GetDetailVideoResponse) ProtoMessage() {} + +func (x *GetDetailVideoResponse) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDetailVideoResponse proto.InternalMessageInfo +// Deprecated: Use GetDetailVideoResponse.ProtoReflect.Descriptor instead. +func (*GetDetailVideoResponse) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{5} +} -func (m *GetDetailVideoResponse) GetId() int64 { - if m != nil { - return m.Id +func (x *GetDetailVideoResponse) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *GetDetailVideoResponse) GetTitle() string { - if m != nil { - return m.Title +func (x *GetDetailVideoResponse) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *GetDetailVideoResponse) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *GetDetailVideoResponse) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } -func (m *GetDetailVideoResponse) GetCategoryName() string { - if m != nil { - return m.CategoryName +func (x *GetDetailVideoResponse) GetCategoryName() string { + if x != nil { + return x.CategoryName } return "" } -func (m *GetDetailVideoResponse) GetSource() string { - if m != nil { - return m.Source +func (x *GetDetailVideoResponse) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *GetDetailVideoResponse) GetVideoUrl() string { - if m != nil { - return m.VideoUrl +func (x *GetDetailVideoResponse) GetVideoUrl() string { + if x != nil { + return x.VideoUrl } return "" } -func (m *GetDetailVideoResponse) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *GetDetailVideoResponse) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *GetDetailVideoResponse) GetRegencyName() string { - if m != nil { - return m.RegencyName +func (x *GetDetailVideoResponse) GetRegencyName() string { + if x != nil { + return x.RegencyName } return "" } -func (m *GetDetailVideoResponse) GetStatus() int64 { - if m != nil { - return m.Status +func (x *GetDetailVideoResponse) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } -func (m *GetDetailVideoResponse) GetCreatedAt() string { - if m != nil { - return m.CreatedAt +func (x *GetDetailVideoResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt } return "" } -func (m *GetDetailVideoResponse) GetUpdatedAt() string { - if m != nil { - return m.UpdatedAt +func (x *GetDetailVideoResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt } return "" } -func (m *GetDetailVideoResponse) GetCreatedBy() int64 { - if m != nil { - return m.CreatedBy +func (x *GetDetailVideoResponse) GetCreatedBy() int64 { + if x != nil { + return x.CreatedBy } return 0 } -func (m *GetDetailVideoResponse) GetUpdatedBy() int64 { - if m != nil { - return m.UpdatedBy +func (x *GetDetailVideoResponse) GetUpdatedBy() int64 { + if x != nil { + return x.UpdatedBy } return 0 } type NonRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *NonRequest) Reset() { *m = NonRequest{} } -func (m *NonRequest) String() string { return proto.CompactTextString(m) } -func (*NonRequest) ProtoMessage() {} -func (*NonRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{6} +func (x *NonRequest) Reset() { + *x = NonRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NonRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NonRequest.Unmarshal(m, b) -} -func (m *NonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NonRequest.Marshal(b, m, deterministic) -} -func (m *NonRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NonRequest.Merge(m, src) -} -func (m *NonRequest) XXX_Size() int { - return xxx_messageInfo_NonRequest.Size(m) -} -func (m *NonRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NonRequest.DiscardUnknown(m) +func (x *NonRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_NonRequest proto.InternalMessageInfo +func (*NonRequest) ProtoMessage() {} -type GetStatisticVideoResponse struct { - Data []*VideoStatistic `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *NonRequest) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GetStatisticVideoResponse) Reset() { *m = GetStatisticVideoResponse{} } -func (m *GetStatisticVideoResponse) String() string { return proto.CompactTextString(m) } -func (*GetStatisticVideoResponse) ProtoMessage() {} -func (*GetStatisticVideoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{7} +// Deprecated: Use NonRequest.ProtoReflect.Descriptor instead. +func (*NonRequest) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{6} } -func (m *GetStatisticVideoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetStatisticVideoResponse.Unmarshal(m, b) -} -func (m *GetStatisticVideoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetStatisticVideoResponse.Marshal(b, m, deterministic) +type GetStatisticVideoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*VideoStatistic `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` } -func (m *GetStatisticVideoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStatisticVideoResponse.Merge(m, src) + +func (x *GetStatisticVideoResponse) Reset() { + *x = GetStatisticVideoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetStatisticVideoResponse) XXX_Size() int { - return xxx_messageInfo_GetStatisticVideoResponse.Size(m) + +func (x *GetStatisticVideoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetStatisticVideoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetStatisticVideoResponse.DiscardUnknown(m) + +func (*GetStatisticVideoResponse) ProtoMessage() {} + +func (x *GetStatisticVideoResponse) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetStatisticVideoResponse proto.InternalMessageInfo +// Deprecated: Use GetStatisticVideoResponse.ProtoReflect.Descriptor instead. +func (*GetStatisticVideoResponse) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{7} +} -func (m *GetStatisticVideoResponse) GetData() []*VideoStatistic { - if m != nil { - return m.Data +func (x *GetStatisticVideoResponse) GetData() []*VideoStatistic { + if x != nil { + return x.Data } return nil } type VideoStatistic struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VideoStatistic) Reset() { *m = VideoStatistic{} } -func (m *VideoStatistic) String() string { return proto.CompactTextString(m) } -func (*VideoStatistic) ProtoMessage() {} -func (*VideoStatistic) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{8} + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` } -func (m *VideoStatistic) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VideoStatistic.Unmarshal(m, b) -} -func (m *VideoStatistic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VideoStatistic.Marshal(b, m, deterministic) -} -func (m *VideoStatistic) XXX_Merge(src proto.Message) { - xxx_messageInfo_VideoStatistic.Merge(m, src) +func (x *VideoStatistic) Reset() { + *x = VideoStatistic{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VideoStatistic) XXX_Size() int { - return xxx_messageInfo_VideoStatistic.Size(m) + +func (x *VideoStatistic) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VideoStatistic) XXX_DiscardUnknown() { - xxx_messageInfo_VideoStatistic.DiscardUnknown(m) + +func (*VideoStatistic) ProtoMessage() {} + +func (x *VideoStatistic) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VideoStatistic proto.InternalMessageInfo +// Deprecated: Use VideoStatistic.ProtoReflect.Descriptor instead. +func (*VideoStatistic) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{8} +} -func (m *VideoStatistic) GetId() int64 { - if m != nil { - return m.Id +func (x *VideoStatistic) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *VideoStatistic) GetName() string { - if m != nil { - return m.Name +func (x *VideoStatistic) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *VideoStatistic) GetCount() int64 { - if m != nil { - return m.Count +func (x *VideoStatistic) GetCount() int64 { + if x != nil { + return x.Count } return 0 } type CreateVideoRequest struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - RegencyId int64 `protobuf:"varint,4,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - VideoUrl string `protobuf:"bytes,5,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` - Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateVideoRequest) Reset() { *m = CreateVideoRequest{} } -func (m *CreateVideoRequest) String() string { return proto.CompactTextString(m) } -func (*CreateVideoRequest) ProtoMessage() {} -func (*CreateVideoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{9} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateVideoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateVideoRequest.Unmarshal(m, b) + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + RegencyId int64 `protobuf:"varint,4,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + VideoUrl string `protobuf:"bytes,5,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` + Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` } -func (m *CreateVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateVideoRequest.Marshal(b, m, deterministic) -} -func (m *CreateVideoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateVideoRequest.Merge(m, src) + +func (x *CreateVideoRequest) Reset() { + *x = CreateVideoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateVideoRequest) XXX_Size() int { - return xxx_messageInfo_CreateVideoRequest.Size(m) + +func (x *CreateVideoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateVideoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateVideoRequest.DiscardUnknown(m) + +func (*CreateVideoRequest) ProtoMessage() {} + +func (x *CreateVideoRequest) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateVideoRequest proto.InternalMessageInfo +// Deprecated: Use CreateVideoRequest.ProtoReflect.Descriptor instead. +func (*CreateVideoRequest) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{9} +} -func (m *CreateVideoRequest) GetTitle() string { - if m != nil { - return m.Title +func (x *CreateVideoRequest) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *CreateVideoRequest) GetSource() string { - if m != nil { - return m.Source +func (x *CreateVideoRequest) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *CreateVideoRequest) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *CreateVideoRequest) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } -func (m *CreateVideoRequest) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *CreateVideoRequest) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *CreateVideoRequest) GetVideoUrl() string { - if m != nil { - return m.VideoUrl +func (x *CreateVideoRequest) GetVideoUrl() string { + if x != nil { + return x.VideoUrl } return "" } -func (m *CreateVideoRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *CreateVideoRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } type UpdateVideoRequest struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` - CategoryId int64 `protobuf:"varint,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - RegencyId int64 `protobuf:"varint,5,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` - VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` - Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateVideoRequest) Reset() { *m = UpdateVideoRequest{} } -func (m *UpdateVideoRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateVideoRequest) ProtoMessage() {} -func (*UpdateVideoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{10} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UpdateVideoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateVideoRequest.Unmarshal(m, b) + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + CategoryId int64 `protobuf:"varint,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + RegencyId int64 `protobuf:"varint,5,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` + Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` } -func (m *UpdateVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateVideoRequest.Marshal(b, m, deterministic) -} -func (m *UpdateVideoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateVideoRequest.Merge(m, src) + +func (x *UpdateVideoRequest) Reset() { + *x = UpdateVideoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateVideoRequest) XXX_Size() int { - return xxx_messageInfo_UpdateVideoRequest.Size(m) + +func (x *UpdateVideoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateVideoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateVideoRequest.DiscardUnknown(m) + +func (*UpdateVideoRequest) ProtoMessage() {} + +func (x *UpdateVideoRequest) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateVideoRequest proto.InternalMessageInfo +// Deprecated: Use UpdateVideoRequest.ProtoReflect.Descriptor instead. +func (*UpdateVideoRequest) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{10} +} -func (m *UpdateVideoRequest) GetId() int64 { - if m != nil { - return m.Id +func (x *UpdateVideoRequest) GetId() int64 { + if x != nil { + return x.Id } return 0 } -func (m *UpdateVideoRequest) GetTitle() string { - if m != nil { - return m.Title +func (x *UpdateVideoRequest) GetTitle() string { + if x != nil { + return x.Title } return "" } -func (m *UpdateVideoRequest) GetSource() string { - if m != nil { - return m.Source +func (x *UpdateVideoRequest) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *UpdateVideoRequest) GetCategoryId() int64 { - if m != nil { - return m.CategoryId +func (x *UpdateVideoRequest) GetCategoryId() int64 { + if x != nil { + return x.CategoryId } return 0 } -func (m *UpdateVideoRequest) GetRegencyId() int64 { - if m != nil { - return m.RegencyId +func (x *UpdateVideoRequest) GetRegencyId() int64 { + if x != nil { + return x.RegencyId } return 0 } -func (m *UpdateVideoRequest) GetVideoUrl() string { - if m != nil { - return m.VideoUrl +func (x *UpdateVideoRequest) GetVideoUrl() string { + if x != nil { + return x.VideoUrl } return "" } -func (m *UpdateVideoRequest) GetStatus() int64 { - if m != nil { - return m.Status +func (x *UpdateVideoRequest) GetStatus() int64 { + if x != nil { + return x.Status } return 0 } type StatusResponse struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StatusResponse) Reset() { *m = StatusResponse{} } -func (m *StatusResponse) String() string { return proto.CompactTextString(m) } -func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0ad4ea8866efb1e3, []int{11} + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *StatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatusResponse.Unmarshal(m, b) -} -func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) -} -func (m *StatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusResponse.Merge(m, src) +func (x *StatusResponse) Reset() { + *x = StatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_video_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StatusResponse) XXX_Size() int { - return xxx_messageInfo_StatusResponse.Size(m) + +func (x *StatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatusResponse.DiscardUnknown(m) + +func (*StatusResponse) ProtoMessage() {} + +func (x *StatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_video_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StatusResponse proto.InternalMessageInfo +// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. +func (*StatusResponse) Descriptor() ([]byte, []int) { + return file_video_proto_rawDescGZIP(), []int{11} +} -func (m *StatusResponse) GetCode() string { - if m != nil { - return m.Code +func (x *StatusResponse) GetCode() string { + if x != nil { + return x.Code } return "" } -func (m *StatusResponse) GetMessage() string { - if m != nil { - return m.Message +func (x *StatusResponse) GetMessage() string { + if x != nil { + return x.Message } return "" } -func init() { - proto.RegisterType((*GetListVideoRequest)(nil), "video.GetListVideoRequest") - proto.RegisterType((*GetListVideoResponse)(nil), "video.GetListVideoResponse") - proto.RegisterType((*VideoList)(nil), "video.VideoList") - proto.RegisterType((*Metadata)(nil), "video.Metadata") - proto.RegisterType((*RequestID)(nil), "video.RequestID") - proto.RegisterType((*GetDetailVideoResponse)(nil), "video.GetDetailVideoResponse") - proto.RegisterType((*NonRequest)(nil), "video.NonRequest") - proto.RegisterType((*GetStatisticVideoResponse)(nil), "video.GetStatisticVideoResponse") - proto.RegisterType((*VideoStatistic)(nil), "video.VideoStatistic") - proto.RegisterType((*CreateVideoRequest)(nil), "video.CreateVideoRequest") - proto.RegisterType((*UpdateVideoRequest)(nil), "video.UpdateVideoRequest") - proto.RegisterType((*StatusResponse)(nil), "video.StatusResponse") -} - -func init() { proto.RegisterFile("video.proto", fileDescriptor_0ad4ea8866efb1e3) } - -var fileDescriptor_0ad4ea8866efb1e3 = []byte{ - // 696 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x96, 0x13, 0xc7, 0x8d, 0xc7, 0x6e, 0xa0, 0x4b, 0xa9, 0xdc, 0x54, 0x15, 0xc5, 0x70, 0x28, - 0x42, 0xea, 0xa1, 0x48, 0x1c, 0x41, 0x2d, 0x15, 0x69, 0x11, 0x54, 0xc8, 0x55, 0xb9, 0x46, 0x5b, - 0x7b, 0x15, 0x59, 0x72, 0xec, 0x60, 0xaf, 0x41, 0x79, 0x0a, 0x9e, 0x81, 0xa7, 0x40, 0xe2, 0x05, - 0x78, 0x2d, 0xe4, 0xd9, 0x5d, 0xff, 0x25, 0x71, 0x39, 0x70, 0xdb, 0xf9, 0xf5, 0xce, 0x7c, 0xdf, - 0xcc, 0x1a, 0xac, 0x6f, 0x61, 0xc0, 0x92, 0x93, 0x45, 0x9a, 0xf0, 0x84, 0x0c, 0x50, 0x70, 0x2f, - 0xe1, 0xd1, 0x84, 0xf1, 0x8f, 0x61, 0xc6, 0xbf, 0x14, 0xb2, 0xc7, 0xbe, 0xe6, 0x2c, 0xe3, 0xe4, - 0x10, 0x20, 0x65, 0x33, 0x16, 0xfb, 0xcb, 0x69, 0x18, 0x38, 0xda, 0x91, 0x76, 0xdc, 0xf7, 0x4c, - 0xa9, 0xb9, 0x0a, 0x08, 0x01, 0x7d, 0x41, 0x67, 0xcc, 0xe9, 0xa1, 0x01, 0xcf, 0x6e, 0x08, 0xbb, - 0xcd, 0x4c, 0xd9, 0x22, 0x89, 0x33, 0x46, 0x9e, 0x83, 0x1e, 0x50, 0x4e, 0x1d, 0xed, 0xa8, 0x7f, - 0x6c, 0x9d, 0x3e, 0x3c, 0x11, 0x97, 0x40, 0x9f, 0xc2, 0xd9, 0x43, 0x2b, 0x79, 0x09, 0xc3, 0x39, - 0xe3, 0x14, 0x3d, 0x8b, 0xac, 0xd6, 0xe9, 0x03, 0xe9, 0xf9, 0x49, 0xaa, 0xbd, 0xd2, 0xc1, 0xfd, - 0xdd, 0x03, 0xb3, 0x4c, 0x40, 0x46, 0xd0, 0x2b, 0xef, 0xd8, 0x0b, 0x03, 0xb2, 0x0b, 0x03, 0x1e, - 0xf2, 0x48, 0xdc, 0xce, 0xf4, 0x84, 0x40, 0x9e, 0x80, 0xe5, 0x53, 0xce, 0x66, 0x49, 0x8a, 0x25, - 0xf5, 0xd1, 0x1d, 0x94, 0xea, 0x2a, 0x20, 0x7b, 0x60, 0x64, 0x49, 0x9e, 0xfa, 0xcc, 0xd1, 0x31, - 0x4e, 0x4a, 0xe4, 0x00, 0x4c, 0xbc, 0xc8, 0x34, 0x4f, 0x23, 0x67, 0x80, 0xa6, 0x21, 0x2a, 0x6e, - 0xd3, 0xa8, 0xd5, 0x27, 0xa3, 0xdd, 0xa7, 0x22, 0x27, 0xa7, 0x3c, 0xcf, 0x9c, 0x2d, 0x34, 0x49, - 0xa9, 0x08, 0xf3, 0x53, 0x46, 0x39, 0x0b, 0xa6, 0x94, 0x3b, 0x43, 0x4c, 0x6a, 0x4a, 0xcd, 0x19, - 0x76, 0x3f, 0x5f, 0x04, 0xca, 0x6c, 0x0a, 0xb3, 0xd4, 0x08, 0xb3, 0x8a, 0xbe, 0x5b, 0x3a, 0x20, - 0x3e, 0x2a, 0x35, 0xe7, 0xcb, 0x7a, 0xf4, 0xdd, 0xd2, 0xb1, 0x84, 0x59, 0x6a, 0xce, 0x97, 0xee, - 0x0d, 0x0c, 0x55, 0x4b, 0x4b, 0x1c, 0xb5, 0x0a, 0xc7, 0x22, 0x9c, 0x27, 0x9c, 0x46, 0xd3, 0x1a, - 0xc2, 0x26, 0x6a, 0x3e, 0x17, 0xe6, 0xa2, 0xbb, 0x85, 0x20, 0x3b, 0x28, 0x04, 0xf7, 0x00, 0x4c, - 0x49, 0x9d, 0xab, 0x8b, 0x36, 0x20, 0xee, 0x8f, 0x3e, 0xec, 0x4d, 0x18, 0xbf, 0x60, 0x9c, 0x86, - 0x51, 0x93, 0x1c, 0xff, 0x09, 0xbb, 0x67, 0xb0, 0x5d, 0x3a, 0xc4, 0x74, 0xae, 0x20, 0xb4, 0x95, - 0xf2, 0x9a, 0xce, 0x59, 0x0d, 0xe0, 0xc1, 0x66, 0x80, 0x8d, 0x4e, 0x80, 0xb7, 0xda, 0x00, 0x3f, - 0x05, 0x5b, 0x99, 0xf1, 0xbb, 0x02, 0x4a, 0x4b, 0xea, 0xca, 0xcf, 0x0a, 0x0e, 0x98, 0x1d, 0x1c, - 0x80, 0x6e, 0x0e, 0x58, 0xdd, 0x1c, 0xb0, 0xbb, 0x39, 0xb0, 0xdd, 0xe6, 0x80, 0x0d, 0x70, 0x9d, - 0xc4, 0x12, 0x31, 0xf7, 0x3d, 0xec, 0x4f, 0x18, 0xbf, 0xe1, 0x94, 0x87, 0x19, 0x0f, 0xfd, 0x26, - 0x42, 0x2f, 0x1a, 0xe3, 0xfb, 0xb8, 0x3e, 0xbe, 0x65, 0x84, 0x98, 0x61, 0xf7, 0x03, 0x8c, 0x9a, - 0xfa, 0x15, 0x78, 0x09, 0xe8, 0xd8, 0x26, 0x81, 0x2e, 0x9e, 0x0b, 0xc8, 0xfd, 0x24, 0x8f, 0xb9, - 0x22, 0x14, 0x0a, 0xee, 0x2f, 0x0d, 0xc8, 0x3b, 0x2c, 0xa7, 0xb1, 0x97, 0x4a, 0x7e, 0x68, 0x75, - 0x7e, 0x54, 0xc8, 0xf6, 0x1a, 0xc8, 0xde, 0xcb, 0x9b, 0x26, 0xba, 0x7a, 0x1b, 0xdd, 0xce, 0xd1, - 0xaf, 0x70, 0x35, 0xea, 0xb8, 0xba, 0x7f, 0x34, 0x20, 0xb7, 0xd8, 0xe9, 0xc6, 0xcd, 0xff, 0x8d, - 0xe9, 0x55, 0x25, 0xfd, 0xae, 0x4a, 0xf4, 0x7b, 0x2a, 0x19, 0x74, 0x56, 0x62, 0x6c, 0xac, 0xa4, - 0xb1, 0xa5, 0xdc, 0x37, 0x30, 0xba, 0xc1, 0x53, 0x49, 0x06, 0x02, 0xba, 0x9f, 0x04, 0xaa, 0xfb, - 0x78, 0x26, 0x0e, 0x6c, 0xcd, 0x59, 0x96, 0xa9, 0x65, 0x61, 0x7a, 0x4a, 0x3c, 0xfd, 0xd9, 0x07, - 0x1b, 0x7b, 0x70, 0x49, 0xe3, 0x20, 0x62, 0x29, 0x99, 0x80, 0x5d, 0x7f, 0x22, 0xc8, 0x58, 0xb2, - 0x69, 0xcd, 0x0b, 0x34, 0x3e, 0x58, 0x6b, 0x93, 0xf7, 0x38, 0x83, 0x51, 0x73, 0xa1, 0x10, 0xf5, - 0xae, 0x94, 0x5b, 0x68, 0x7c, 0x58, 0x25, 0x58, 0xb7, 0x79, 0x2e, 0x61, 0x67, 0x85, 0xf4, 0x64, - 0x47, 0xc6, 0x54, 0xc3, 0x31, 0x3e, 0xaa, 0xd2, 0x6c, 0x98, 0x90, 0x73, 0x18, 0x09, 0xa6, 0x5e, - 0xb3, 0xef, 0x22, 0xcd, 0xbe, 0x8c, 0x59, 0x25, 0xf0, 0x58, 0x0d, 0x50, 0xab, 0xb1, 0x6f, 0xc1, - 0xaa, 0x71, 0xa6, 0x4c, 0xb0, 0xca, 0xa3, 0x4d, 0x09, 0x5e, 0x83, 0x75, 0xc1, 0x22, 0xa6, 0x12, - 0xac, 0xb6, 0x63, 0x7d, 0xdc, 0x9d, 0x81, 0x7f, 0x03, 0xaf, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, - 0xe4, 0x30, 0xcd, 0x54, 0x1c, 0x08, 0x00, 0x00, +var File_video_proto protoreflect.FileDescriptor + +var file_video_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x22, 0x48, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x56, + 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x69, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x56, 0x69, 0x64, + 0x65, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xba, 0x02, 0x0a, 0x09, 0x56, 0x69, + 0x64, 0x65, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, + 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0x53, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x50, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x1b, 0x0a, 0x09, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8f, 0x03, 0x0a, 0x16, 0x47, 0x65, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, + 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, + 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x64, 0x65, + 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, + 0x79, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0x0c, 0x0a, 0x0a, 0x4e, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x46, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x56, 0x69, 0x64, 0x65, + 0x6f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x22, 0x4a, 0x0a, 0x0e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, + 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb7, 0x01, 0x0a, + 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x49, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, + 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x76, 0x69, 0x64, 0x65, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0x3e, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x32, 0xa1, 0x03, 0x0a, 0x0c, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, + 0x72, 0x12, 0x47, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x69, 0x64, 0x65, + 0x6f, 0x12, 0x1a, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, + 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x69, 0x64, + 0x65, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x10, 0x2e, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x1a, 0x1d, + 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x56, 0x69, 0x64, + 0x65, 0x6f, 0x12, 0x11, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x4e, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x47, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4e, 0x65, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x19, 0x2e, 0x76, 0x69, 0x64, 0x65, + 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x19, 0x2e, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x10, 0x2e, 0x76, 0x69, + 0x64, 0x65, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x1a, 0x15, 0x2e, + 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_video_proto_rawDescOnce sync.Once + file_video_proto_rawDescData = file_video_proto_rawDesc +) + +func file_video_proto_rawDescGZIP() []byte { + file_video_proto_rawDescOnce.Do(func() { + file_video_proto_rawDescData = protoimpl.X.CompressGZIP(file_video_proto_rawDescData) + }) + return file_video_proto_rawDescData +} + +var file_video_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_video_proto_goTypes = []interface{}{ + (*GetListVideoRequest)(nil), // 0: video.GetListVideoRequest + (*GetListVideoResponse)(nil), // 1: video.GetListVideoResponse + (*VideoList)(nil), // 2: video.VideoList + (*Metadata)(nil), // 3: video.Metadata + (*RequestID)(nil), // 4: video.RequestID + (*GetDetailVideoResponse)(nil), // 5: video.GetDetailVideoResponse + (*NonRequest)(nil), // 6: video.NonRequest + (*GetStatisticVideoResponse)(nil), // 7: video.GetStatisticVideoResponse + (*VideoStatistic)(nil), // 8: video.VideoStatistic + (*CreateVideoRequest)(nil), // 9: video.CreateVideoRequest + (*UpdateVideoRequest)(nil), // 10: video.UpdateVideoRequest + (*StatusResponse)(nil), // 11: video.StatusResponse +} +var file_video_proto_depIdxs = []int32{ + 2, // 0: video.GetListVideoResponse.data:type_name -> video.VideoList + 3, // 1: video.GetListVideoResponse.metadata:type_name -> video.Metadata + 8, // 2: video.GetStatisticVideoResponse.data:type_name -> video.VideoStatistic + 0, // 3: video.VideoHandler.GetListVideo:input_type -> video.GetListVideoRequest + 4, // 4: video.VideoHandler.GetDetailVideo:input_type -> video.RequestID + 6, // 5: video.VideoHandler.GetStatisticVideo:input_type -> video.NonRequest + 9, // 6: video.VideoHandler.CreateNewVideo:input_type -> video.CreateVideoRequest + 10, // 7: video.VideoHandler.UpdateVideo:input_type -> video.UpdateVideoRequest + 4, // 8: video.VideoHandler.DeleteVideo:input_type -> video.RequestID + 1, // 9: video.VideoHandler.GetListVideo:output_type -> video.GetListVideoResponse + 5, // 10: video.VideoHandler.GetDetailVideo:output_type -> video.GetDetailVideoResponse + 7, // 11: video.VideoHandler.GetStatisticVideo:output_type -> video.GetStatisticVideoResponse + 11, // 12: video.VideoHandler.CreateNewVideo:output_type -> video.StatusResponse + 11, // 13: video.VideoHandler.UpdateVideo:output_type -> video.StatusResponse + 11, // 14: video.VideoHandler.DeleteVideo:output_type -> video.StatusResponse + 9, // [9:15] is the sub-list for method output_type + 3, // [3:9] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_video_proto_init() } +func file_video_proto_init() { + if File_video_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_video_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetListVideoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetListVideoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VideoList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDetailVideoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NonRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStatisticVideoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VideoStatistic); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateVideoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateVideoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_video_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_video_proto_goTypes, + DependencyIndexes: file_video_proto_depIdxs, + MessageInfos: file_video_proto_msgTypes, + }.Build() + File_video_proto = out.File + file_video_proto_rawDesc = nil + file_video_proto_goTypes = nil + file_video_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // VideoHandlerClient is the client API for VideoHandler service. // @@ -890,10 +1277,10 @@ type VideoHandlerClient interface { } type videoHandlerClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewVideoHandlerClient(cc *grpc.ClientConn) VideoHandlerClient { +func NewVideoHandlerClient(cc grpc.ClientConnInterface) VideoHandlerClient { return &videoHandlerClient{cc} } @@ -965,22 +1352,22 @@ type VideoHandlerServer interface { type UnimplementedVideoHandlerServer struct { } -func (*UnimplementedVideoHandlerServer) GetListVideo(ctx context.Context, req *GetListVideoRequest) (*GetListVideoResponse, error) { +func (*UnimplementedVideoHandlerServer) GetListVideo(context.Context, *GetListVideoRequest) (*GetListVideoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetListVideo not implemented") } -func (*UnimplementedVideoHandlerServer) GetDetailVideo(ctx context.Context, req *RequestID) (*GetDetailVideoResponse, error) { +func (*UnimplementedVideoHandlerServer) GetDetailVideo(context.Context, *RequestID) (*GetDetailVideoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDetailVideo not implemented") } -func (*UnimplementedVideoHandlerServer) GetStatisticVideo(ctx context.Context, req *NonRequest) (*GetStatisticVideoResponse, error) { +func (*UnimplementedVideoHandlerServer) GetStatisticVideo(context.Context, *NonRequest) (*GetStatisticVideoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStatisticVideo not implemented") } -func (*UnimplementedVideoHandlerServer) CreateNewVideo(ctx context.Context, req *CreateVideoRequest) (*StatusResponse, error) { +func (*UnimplementedVideoHandlerServer) CreateNewVideo(context.Context, *CreateVideoRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNewVideo not implemented") } -func (*UnimplementedVideoHandlerServer) UpdateVideo(ctx context.Context, req *UpdateVideoRequest) (*StatusResponse, error) { +func (*UnimplementedVideoHandlerServer) UpdateVideo(context.Context, *UpdateVideoRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateVideo not implemented") } -func (*UnimplementedVideoHandlerServer) DeleteVideo(ctx context.Context, req *RequestID) (*StatusResponse, error) { +func (*UnimplementedVideoHandlerServer) DeleteVideo(context.Context, *RequestID) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteVideo not implemented") } diff --git a/video/video.proto b/video/video.proto index 08d0a22..6a0ccf8 100644 --- a/video/video.proto +++ b/video/video.proto @@ -1,5 +1,7 @@ syntax = "proto3"; package video; +option go_package="../video"; + service VideoHandler { rpc GetListVideo(GetListVideoRequest) returns (GetListVideoResponse); From 43fc1c5672b86e6da0e8ad16307d9c6c1941a6b1 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 13 Jul 2021 11:19:34 +0700 Subject: [PATCH 2/2] #34 create rpc for get detail from access tokekn --- auth/auth.pb.go | 408 +++++++++++++++++++++++++++++++++++++++++++++++- auth/auth.proto | 42 ++++- 2 files changed, 438 insertions(+), 12 deletions(-) diff --git a/auth/auth.pb.go b/auth/auth.pb.go index 9fd5a71..3dd48a1 100644 --- a/auth/auth.pb.go +++ b/auth/auth.pb.go @@ -133,6 +133,285 @@ func (x *ResponsesDecodeToken) GetLastLoginAt() string { return "" } +type ResponseUserDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + LastLoginAt int64 `protobuf:"varint,4,opt,name=last_login_at,json=lastLoginAt,proto3" json:"last_login_at,omitempty"` + RoleLabel string `protobuf:"bytes,5,opt,name=role_label,json=roleLabel,proto3" json:"role_label,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` + Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` + JobTypeId int64 `protobuf:"varint,9,opt,name=job_type_id,json=jobTypeId,proto3" json:"job_type_id,omitempty"` + JobType string `protobuf:"bytes,10,opt,name=job_type,json=jobType,proto3" json:"job_type,omitempty"` + EducationLevelId int64 `protobuf:"varint,11,opt,name=education_level_id,json=educationLevelId,proto3" json:"education_level_id,omitempty"` + EducationLevel string `protobuf:"bytes,12,opt,name=education_level,json=educationLevel,proto3" json:"education_level,omitempty"` + BirthDate string `protobuf:"bytes,13,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` + Rt string `protobuf:"bytes,14,opt,name=rt,proto3" json:"rt,omitempty"` + Rw string `protobuf:"bytes,15,opt,name=rw,proto3" json:"rw,omitempty"` + VillageId int64 `protobuf:"varint,16,opt,name=village_id,json=villageId,proto3" json:"village_id,omitempty"` + Village string `protobuf:"bytes,17,opt,name=village,proto3" json:"village,omitempty"` + DistrictId int64 `protobuf:"varint,18,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` + District string `protobuf:"bytes,19,opt,name=district,proto3" json:"district,omitempty"` + RegencyId int64 `protobuf:"varint,20,opt,name=regency_id,json=regencyId,proto3" json:"regency_id,omitempty"` + Regency string `protobuf:"bytes,21,opt,name=regency,proto3" json:"regency,omitempty"` + Latitude string `protobuf:"bytes,22,opt,name=latitude,proto3" json:"latitude,omitempty"` + Longitude string `protobuf:"bytes,23,opt,name=longitude,proto3" json:"longitude,omitempty"` + PhotoUrl string `protobuf:"bytes,24,opt,name=photo_url,json=photoUrl,proto3" json:"photo_url,omitempty"` + Facebook string `protobuf:"bytes,25,opt,name=facebook,proto3" json:"facebook,omitempty"` + Twitter string `protobuf:"bytes,26,opt,name=twitter,proto3" json:"twitter,omitempty"` + Instagram string `protobuf:"bytes,27,opt,name=instagram,proto3" json:"instagram,omitempty"` + PasswordUpdatedAt int64 `protobuf:"varint,28,opt,name=password_updated_at,json=passwordUpdatedAt,proto3" json:"password_updated_at,omitempty"` + ProfileUpdatedAt int64 `protobuf:"varint,29,opt,name=profile_updated_at,json=profileUpdatedAt,proto3" json:"profile_updated_at,omitempty"` + LastAccessAt int64 `protobuf:"varint,30,opt,name=last_access_at,json=lastAccessAt,proto3" json:"last_access_at,omitempty"` +} + +func (x *ResponseUserDetail) Reset() { + *x = ResponseUserDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResponseUserDetail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResponseUserDetail) ProtoMessage() {} + +func (x *ResponseUserDetail) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResponseUserDetail.ProtoReflect.Descriptor instead. +func (*ResponseUserDetail) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{2} +} + +func (x *ResponseUserDetail) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ResponseUserDetail) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *ResponseUserDetail) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *ResponseUserDetail) GetLastLoginAt() int64 { + if x != nil { + return x.LastLoginAt + } + return 0 +} + +func (x *ResponseUserDetail) GetRoleLabel() string { + if x != nil { + return x.RoleLabel + } + return "" +} + +func (x *ResponseUserDetail) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ResponseUserDetail) GetPhone() string { + if x != nil { + return x.Phone + } + return "" +} + +func (x *ResponseUserDetail) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *ResponseUserDetail) GetJobTypeId() int64 { + if x != nil { + return x.JobTypeId + } + return 0 +} + +func (x *ResponseUserDetail) GetJobType() string { + if x != nil { + return x.JobType + } + return "" +} + +func (x *ResponseUserDetail) GetEducationLevelId() int64 { + if x != nil { + return x.EducationLevelId + } + return 0 +} + +func (x *ResponseUserDetail) GetEducationLevel() string { + if x != nil { + return x.EducationLevel + } + return "" +} + +func (x *ResponseUserDetail) GetBirthDate() string { + if x != nil { + return x.BirthDate + } + return "" +} + +func (x *ResponseUserDetail) GetRt() string { + if x != nil { + return x.Rt + } + return "" +} + +func (x *ResponseUserDetail) GetRw() string { + if x != nil { + return x.Rw + } + return "" +} + +func (x *ResponseUserDetail) GetVillageId() int64 { + if x != nil { + return x.VillageId + } + return 0 +} + +func (x *ResponseUserDetail) GetVillage() string { + if x != nil { + return x.Village + } + return "" +} + +func (x *ResponseUserDetail) GetDistrictId() int64 { + if x != nil { + return x.DistrictId + } + return 0 +} + +func (x *ResponseUserDetail) GetDistrict() string { + if x != nil { + return x.District + } + return "" +} + +func (x *ResponseUserDetail) GetRegencyId() int64 { + if x != nil { + return x.RegencyId + } + return 0 +} + +func (x *ResponseUserDetail) GetRegency() string { + if x != nil { + return x.Regency + } + return "" +} + +func (x *ResponseUserDetail) GetLatitude() string { + if x != nil { + return x.Latitude + } + return "" +} + +func (x *ResponseUserDetail) GetLongitude() string { + if x != nil { + return x.Longitude + } + return "" +} + +func (x *ResponseUserDetail) GetPhotoUrl() string { + if x != nil { + return x.PhotoUrl + } + return "" +} + +func (x *ResponseUserDetail) GetFacebook() string { + if x != nil { + return x.Facebook + } + return "" +} + +func (x *ResponseUserDetail) GetTwitter() string { + if x != nil { + return x.Twitter + } + return "" +} + +func (x *ResponseUserDetail) GetInstagram() string { + if x != nil { + return x.Instagram + } + return "" +} + +func (x *ResponseUserDetail) GetPasswordUpdatedAt() int64 { + if x != nil { + return x.PasswordUpdatedAt + } + return 0 +} + +func (x *ResponseUserDetail) GetProfileUpdatedAt() int64 { + if x != nil { + return x.ProfileUpdatedAt + } + return 0 +} + +func (x *ResponseUserDetail) GetLastAccessAt() int64 { + if x != nil { + return x.LastAccessAt + } + return 0 +} + var File_auth_proto protoreflect.FileDescriptor var file_auth_proto_rawDesc = []byte{ @@ -147,13 +426,75 @@ var file_auth_proto_rawDesc = []byte{ 0x09, 0x52, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x74, - 0x32, 0x52, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, + 0x22, 0x8c, 0x07, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x1e, 0x0a, 0x0b, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x65, + 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, + 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x65, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x64, 0x75, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x65, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, + 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x69, 0x72, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x69, 0x72, 0x74, 0x68, 0x44, 0x61, 0x74, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x72, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x72, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x72, 0x77, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x72, + 0x77, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x49, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x76, 0x69, 0x6c, 0x6c, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x69, + 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x63, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x63, 0x79, + 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x16, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x68, + 0x6f, 0x74, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x68, 0x6f, 0x74, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x61, 0x63, 0x65, 0x62, + 0x6f, 0x6f, 0x6b, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x61, 0x63, 0x65, 0x62, + 0x6f, 0x6f, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x18, 0x1a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, + 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x2e, 0x0a, 0x13, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x70, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x1e, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x32, + 0xa4, 0x01, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x1a, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2e, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x50, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x18, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x18, 0x2e, 0x61, + 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2e, 0x2f, 0x61, 0x75, 0x74, + 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -168,16 +509,19 @@ func file_auth_proto_rawDescGZIP() []byte { return file_auth_proto_rawDescData } -var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_auth_proto_goTypes = []interface{}{ (*RequestDecodeToken)(nil), // 0: auth.RequestDecodeToken (*ResponsesDecodeToken)(nil), // 1: auth.ResponsesDecodeToken + (*ResponseUserDetail)(nil), // 2: auth.ResponseUserDetail } var file_auth_proto_depIdxs = []int32{ 0, // 0: auth.AuthHandler.DecodeToken:input_type -> auth.RequestDecodeToken - 1, // 1: auth.AuthHandler.DecodeToken:output_type -> auth.ResponsesDecodeToken - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type + 0, // 1: auth.AuthHandler.GetUserDetailByAccessToken:input_type -> auth.RequestDecodeToken + 1, // 2: auth.AuthHandler.DecodeToken:output_type -> auth.ResponsesDecodeToken + 2, // 3: auth.AuthHandler.GetUserDetailByAccessToken:output_type -> auth.ResponseUserDetail + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -213,6 +557,18 @@ func file_auth_proto_init() { return nil } } + file_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseUserDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -220,7 +576,7 @@ func file_auth_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_auth_proto_rawDesc, NumEnums: 0, - NumMessages: 2, + NumMessages: 3, NumExtensions: 0, NumServices: 1, }, @@ -247,6 +603,7 @@ const _ = grpc.SupportPackageIsVersion6 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AuthHandlerClient interface { DecodeToken(ctx context.Context, in *RequestDecodeToken, opts ...grpc.CallOption) (*ResponsesDecodeToken, error) + GetUserDetailByAccessToken(ctx context.Context, in *RequestDecodeToken, opts ...grpc.CallOption) (*ResponseUserDetail, error) } type authHandlerClient struct { @@ -266,9 +623,19 @@ func (c *authHandlerClient) DecodeToken(ctx context.Context, in *RequestDecodeTo return out, nil } +func (c *authHandlerClient) GetUserDetailByAccessToken(ctx context.Context, in *RequestDecodeToken, opts ...grpc.CallOption) (*ResponseUserDetail, error) { + out := new(ResponseUserDetail) + err := c.cc.Invoke(ctx, "/auth.AuthHandler/GetUserDetailByAccessToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // AuthHandlerServer is the server API for AuthHandler service. type AuthHandlerServer interface { DecodeToken(context.Context, *RequestDecodeToken) (*ResponsesDecodeToken, error) + GetUserDetailByAccessToken(context.Context, *RequestDecodeToken) (*ResponseUserDetail, error) } // UnimplementedAuthHandlerServer can be embedded to have forward compatible implementations. @@ -278,6 +645,9 @@ type UnimplementedAuthHandlerServer struct { func (*UnimplementedAuthHandlerServer) DecodeToken(context.Context, *RequestDecodeToken) (*ResponsesDecodeToken, error) { return nil, status.Errorf(codes.Unimplemented, "method DecodeToken not implemented") } +func (*UnimplementedAuthHandlerServer) GetUserDetailByAccessToken(context.Context, *RequestDecodeToken) (*ResponseUserDetail, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserDetailByAccessToken not implemented") +} func RegisterAuthHandlerServer(s *grpc.Server, srv AuthHandlerServer) { s.RegisterService(&_AuthHandler_serviceDesc, srv) @@ -301,6 +671,24 @@ func _AuthHandler_DecodeToken_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _AuthHandler_GetUserDetailByAccessToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestDecodeToken) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthHandlerServer).GetUserDetailByAccessToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/auth.AuthHandler/GetUserDetailByAccessToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthHandlerServer).GetUserDetailByAccessToken(ctx, req.(*RequestDecodeToken)) + } + return interceptor(ctx, in, info, handler) +} + var _AuthHandler_serviceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthHandler", HandlerType: (*AuthHandlerServer)(nil), @@ -309,6 +697,10 @@ var _AuthHandler_serviceDesc = grpc.ServiceDesc{ MethodName: "DecodeToken", Handler: _AuthHandler_DecodeToken_Handler, }, + { + MethodName: "GetUserDetailByAccessToken", + Handler: _AuthHandler_GetUserDetailByAccessToken_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", diff --git a/auth/auth.proto b/auth/auth.proto index 7079967..96e7c50 100644 --- a/auth/auth.proto +++ b/auth/auth.proto @@ -4,13 +4,47 @@ option go_package="../auth"; service AuthHandler { rpc DecodeToken(RequestDecodeToken) returns (ResponsesDecodeToken); + rpc GetUserDetailByAccessToken(RequestDecodeToken) returns (ResponseUserDetail); } message RequestDecodeToken {} message ResponsesDecodeToken { - int64 id = 1; - string username = 2; - string role_label = 3; - string last_login_at = 4; + int64 id = 1; + string username = 2; + string role_label = 3; + string last_login_at = 4; +} + +message ResponseUserDetail { + int64 id = 1; + string username = 2; + string email = 3; + int64 last_login_at = 4; + string role_label = 5; + string name = 6; + string phone = 7; + string address = 8; + int64 job_type_id = 9; + string job_type = 10; + int64 education_level_id = 11; + string education_level = 12; + string birth_date = 13; + string rt = 14; + string rw = 15; + int64 village_id = 16; + string village = 17; + int64 district_id = 18; + string district = 19; + int64 regency_id = 20; + string regency = 21; + string latitude = 22; + string longitude = 23; + string photo_url = 24; + string facebook = 25; + string twitter = 26; + string instagram = 27; + int64 password_updated_at = 28; + int64 profile_updated_at = 29; + int64 last_access_at = 30; } \ No newline at end of file