mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
460 lines
14 KiB
Go
460 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.25.0
|
|
// protoc v3.15.5
|
|
// source: proto/comments.proto
|
|
|
|
package comments
|
|
|
|
import (
|
|
proto "github.com/golang/protobuf/proto"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
// of the legacy proto package is being used.
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
type Comment struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Post string `protobuf:"bytes,2,opt,name=post,proto3" json:"post,omitempty"`
|
|
Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
|
|
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
|
|
Created int64 `protobuf:"varint,5,opt,name=created,proto3" json:"created,omitempty"`
|
|
}
|
|
|
|
func (x *Comment) Reset() {
|
|
*x = Comment{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_comments_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Comment) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Comment) ProtoMessage() {}
|
|
|
|
func (x *Comment) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_comments_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)
|
|
}
|
|
|
|
// Deprecated: Use Comment.ProtoReflect.Descriptor instead.
|
|
func (*Comment) Descriptor() ([]byte, []int) {
|
|
return file_proto_comments_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Comment) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Comment) GetPost() string {
|
|
if x != nil {
|
|
return x.Post
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Comment) GetAuthor() string {
|
|
if x != nil {
|
|
return x.Author
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Comment) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Comment) GetCreated() int64 {
|
|
if x != nil {
|
|
return x.Created
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NewRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// post id
|
|
Post string `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
|
|
// message to leave
|
|
Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
}
|
|
|
|
func (x *NewRequest) Reset() {
|
|
*x = NewRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_comments_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NewRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NewRequest) ProtoMessage() {}
|
|
|
|
func (x *NewRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_comments_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)
|
|
}
|
|
|
|
// Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.
|
|
func (*NewRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_comments_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *NewRequest) GetPost() string {
|
|
if x != nil {
|
|
return x.Post
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NewRequest) GetAuthor() string {
|
|
if x != nil {
|
|
return x.Author
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NewRequest) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type NewResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *NewResponse) Reset() {
|
|
*x = NewResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_comments_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NewResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NewResponse) ProtoMessage() {}
|
|
|
|
func (x *NewResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_comments_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 NewResponse.ProtoReflect.Descriptor instead.
|
|
func (*NewResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_comments_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type ListRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Post string `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
|
|
}
|
|
|
|
func (x *ListRequest) Reset() {
|
|
*x = ListRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_comments_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ListRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
func (x *ListRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_comments_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)
|
|
}
|
|
|
|
// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_comments_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ListRequest) GetPost() string {
|
|
if x != nil {
|
|
return x.Post
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
|
|
}
|
|
|
|
func (x *ListResponse) Reset() {
|
|
*x = ListResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_comments_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (x *ListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_comments_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)
|
|
}
|
|
|
|
// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_comments_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListResponse) GetComments() []*Comment {
|
|
if x != nil {
|
|
return x.Comments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_proto_comments_proto protoreflect.FileDescriptor
|
|
|
|
var file_proto_comments_proto_rawDesc = []byte{
|
|
0x0a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
|
|
0x22, 0x79, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70,
|
|
0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12,
|
|
0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01,
|
|
0x28, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0x52, 0x0a, 0x0a, 0x4e,
|
|
0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x73,
|
|
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x16, 0x0a,
|
|
0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61,
|
|
0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22,
|
|
0x0d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21,
|
|
0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
|
|
0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x73,
|
|
0x74, 0x22, 0x3d, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 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, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43,
|
|
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
|
|
0x32, 0x79, 0x0a, 0x08, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x03,
|
|
0x4e, 0x65, 0x77, 0x12, 0x14, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e,
|
|
0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
|
|
0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
0x22, 0x00, 0x12, 0x37, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x63, 0x6f, 0x6d,
|
|
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x1a, 0x16, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73,
|
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_proto_comments_proto_rawDescOnce sync.Once
|
|
file_proto_comments_proto_rawDescData = file_proto_comments_proto_rawDesc
|
|
)
|
|
|
|
func file_proto_comments_proto_rawDescGZIP() []byte {
|
|
file_proto_comments_proto_rawDescOnce.Do(func() {
|
|
file_proto_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_comments_proto_rawDescData)
|
|
})
|
|
return file_proto_comments_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_proto_comments_proto_goTypes = []interface{}{
|
|
(*Comment)(nil), // 0: comments.Comment
|
|
(*NewRequest)(nil), // 1: comments.NewRequest
|
|
(*NewResponse)(nil), // 2: comments.NewResponse
|
|
(*ListRequest)(nil), // 3: comments.ListRequest
|
|
(*ListResponse)(nil), // 4: comments.ListResponse
|
|
}
|
|
var file_proto_comments_proto_depIdxs = []int32{
|
|
0, // 0: comments.ListResponse.comments:type_name -> comments.Comment
|
|
1, // 1: comments.Comments.New:input_type -> comments.NewRequest
|
|
3, // 2: comments.Comments.List:input_type -> comments.ListRequest
|
|
2, // 3: comments.Comments.New:output_type -> comments.NewResponse
|
|
4, // 4: comments.Comments.List:output_type -> comments.ListResponse
|
|
3, // [3:5] is the sub-list for method output_type
|
|
1, // [1:3] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_comments_proto_init() }
|
|
func file_proto_comments_proto_init() {
|
|
if File_proto_comments_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_proto_comments_proto_msgTypes[0].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_proto_comments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NewRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_comments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NewResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_comments_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ListRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_comments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ListResponse); 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_proto_comments_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_comments_proto_goTypes,
|
|
DependencyIndexes: file_proto_comments_proto_depIdxs,
|
|
MessageInfos: file_proto_comments_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_comments_proto = out.File
|
|
file_proto_comments_proto_rawDesc = nil
|
|
file_proto_comments_proto_goTypes = nil
|
|
file_proto_comments_proto_depIdxs = nil
|
|
}
|