356 lines
12 KiB
Go
356 lines
12 KiB
Go
// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT.
|
|
//
|
|
// user defined Mutex locks were auto added
|
|
//
|
|
// autogenpb version & build time: v0.0.79 2025-09-01_01:52:08_UTC
|
|
// autogenpb auto generates Sort(), Unique() and Marshal() functions
|
|
// go install go.wit.com/apps/autogenpb@latest
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.33.0
|
|
// protoc v3.21.12
|
|
// source: book.proto
|
|
|
|
package chatpb // autogenpb changed the package name
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
_ "google.golang.org/protobuf/types/known/structpb"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
)
|
|
|
|
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 Book struct {
|
|
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
|
|
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:unique` `autogenpb:sort`
|
|
Ctime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
|
Title string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
|
|
Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
From Who `protobuf:"varint,5,opt,name=from,proto3,enum=chatpb.Who" json:"from,omitempty"`
|
|
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
|
|
Table *Table `protobuf:"bytes,7,opt,name=table,proto3" json:"table,omitempty"`
|
|
GeminiRequest *GeminiRequest `protobuf:"bytes,8,opt,name=GeminiRequest,proto3" json:"GeminiRequest,omitempty"`
|
|
}
|
|
|
|
func (x *Book) Reset() {
|
|
*x = Book{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_book_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Book) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Book) ProtoMessage() {}
|
|
|
|
func (x *Book) ProtoReflect() protoreflect.Message {
|
|
mi := &file_book_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 Book.ProtoReflect.Descriptor instead.
|
|
func (*Book) Descriptor() ([]byte, []int) {
|
|
return file_book_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Book) GetUuid() string {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Book) GetCtime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Ctime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Book) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Book) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Book) GetFrom() Who {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return Who_NOONE
|
|
}
|
|
|
|
func (x *Book) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Book) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Book) GetGeminiRequest() *GeminiRequest {
|
|
if x != nil {
|
|
return x.GeminiRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Books struct {
|
|
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
|
|
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:8b6409ad-4498-43a6-b09a-7835c00dcb9a`
|
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
|
|
Books []*Book `protobuf:"bytes,3,rep,name=Books,proto3" json:"Books,omitempty"` // THIS MUST BE Chat and then Chats
|
|
Ctime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
|
Title string `protobuf:"bytes,5,opt,name=Title,proto3" json:"Title,omitempty"`
|
|
TitleUuid string `protobuf:"bytes,6,opt,name=TitleUuid,proto3" json:"TitleUuid,omitempty"`
|
|
}
|
|
|
|
func (x *Books) Reset() {
|
|
*x = Books{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_book_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Books) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Books) ProtoMessage() {}
|
|
|
|
func (x *Books) ProtoReflect() protoreflect.Message {
|
|
mi := &file_book_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 Books.ProtoReflect.Descriptor instead.
|
|
func (*Books) Descriptor() ([]byte, []int) {
|
|
return file_book_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Books) GetUuid() string {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Books) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Books) GetBooks() []*Book {
|
|
if x != nil {
|
|
return x.Books
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Books) GetCtime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Ctime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Books) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Books) GetTitleUuid() string {
|
|
if x != nil {
|
|
return x.TitleUuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_book_proto protoreflect.FileDescriptor
|
|
|
|
var file_book_proto_rawDesc = []byte{
|
|
0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x68,
|
|
0x61, 0x74, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
|
0x99, 0x02, 0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x05,
|
|
0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14,
|
|
0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54,
|
|
0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
|
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f,
|
|
0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x63,
|
|
0x68, 0x61, 0x74, 0x70, 0x62, 0x2e, 0x57, 0x68, 0x6f, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12,
|
|
0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x61, 0x62,
|
|
0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x70,
|
|
0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3b,
|
|
0x0a, 0x0d, 0x47, 0x65, 0x6d, 0x69, 0x6e, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
|
|
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x70, 0x62, 0x2e, 0x47,
|
|
0x65, 0x6d, 0x69, 0x6e, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0d, 0x47, 0x65,
|
|
0x6d, 0x69, 0x6e, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xbf, 0x01, 0x0a, 0x05,
|
|
0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
|
|
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
|
|
0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x05, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03,
|
|
0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x70, 0x62, 0x2e, 0x42, 0x6f, 0x6f, 0x6b,
|
|
0x52, 0x05, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
|
|
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
|
0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74,
|
|
0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12,
|
|
0x1c, 0x0a, 0x09, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x55, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x09, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x55, 0x75, 0x69, 0x64, 0x62, 0x06, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_book_proto_rawDescOnce sync.Once
|
|
file_book_proto_rawDescData = file_book_proto_rawDesc
|
|
)
|
|
|
|
func file_book_proto_rawDescGZIP() []byte {
|
|
file_book_proto_rawDescOnce.Do(func() {
|
|
file_book_proto_rawDescData = protoimpl.X.CompressGZIP(file_book_proto_rawDescData)
|
|
})
|
|
return file_book_proto_rawDescData
|
|
}
|
|
|
|
var file_book_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_book_proto_goTypes = []interface{}{
|
|
(*Book)(nil), // 0: chatpb.Book
|
|
(*Books)(nil), // 1: chatpb.Books
|
|
(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
|
|
(Who)(0), // 3: chatpb.Who
|
|
(*Table)(nil), // 4: chatpb.Table
|
|
(*GeminiRequest)(nil), // 5: chatpb.GeminiRequest
|
|
}
|
|
var file_book_proto_depIdxs = []int32{
|
|
2, // 0: chatpb.Book.ctime:type_name -> google.protobuf.Timestamp
|
|
3, // 1: chatpb.Book.from:type_name -> chatpb.Who
|
|
4, // 2: chatpb.Book.table:type_name -> chatpb.Table
|
|
5, // 3: chatpb.Book.GeminiRequest:type_name -> chatpb.GeminiRequest
|
|
0, // 4: chatpb.Books.Books:type_name -> chatpb.Book
|
|
2, // 5: chatpb.Books.ctime:type_name -> google.protobuf.Timestamp
|
|
6, // [6:6] is the sub-list for method output_type
|
|
6, // [6:6] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_book_proto_init() }
|
|
func file_book_proto_init() {
|
|
if File_book_proto != nil {
|
|
return
|
|
}
|
|
file_chat_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_book_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Book); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_book_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Books); 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_book_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_book_proto_goTypes,
|
|
DependencyIndexes: file_book_proto_depIdxs,
|
|
MessageInfos: file_book_proto_msgTypes,
|
|
}.Build()
|
|
File_book_proto = out.File
|
|
file_book_proto_rawDesc = nil
|
|
file_book_proto_goTypes = nil
|
|
file_book_proto_depIdxs = nil
|
|
}
|