Nexus/pkg/proto/database.pb.go
2025-03-29 02:24:15 +08:00

184 lines
5.4 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v5.29.3
// source: database.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 AllocDatabaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AllocDatabaseRequest) Reset() {
*x = AllocDatabaseRequest{}
mi := &file_database_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AllocDatabaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AllocDatabaseRequest) ProtoMessage() {}
func (x *AllocDatabaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_database_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AllocDatabaseRequest.ProtoReflect.Descriptor instead.
func (*AllocDatabaseRequest) Descriptor() ([]byte, []int) {
return file_database_proto_rawDescGZIP(), []int{0}
}
func (x *AllocDatabaseRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type AllocDatabaseResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
IsSuccess bool `protobuf:"varint,1,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`
Dsn string `protobuf:"bytes,2,opt,name=dsn,proto3" json:"dsn,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AllocDatabaseResponse) Reset() {
*x = AllocDatabaseResponse{}
mi := &file_database_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AllocDatabaseResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AllocDatabaseResponse) ProtoMessage() {}
func (x *AllocDatabaseResponse) ProtoReflect() protoreflect.Message {
mi := &file_database_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AllocDatabaseResponse.ProtoReflect.Descriptor instead.
func (*AllocDatabaseResponse) Descriptor() ([]byte, []int) {
return file_database_proto_rawDescGZIP(), []int{1}
}
func (x *AllocDatabaseResponse) GetIsSuccess() bool {
if x != nil {
return x.IsSuccess
}
return false
}
func (x *AllocDatabaseResponse) GetDsn() string {
if x != nil {
return x.Dsn
}
return ""
}
var File_database_proto protoreflect.FileDescriptor
const file_database_proto_rawDesc = "" +
"\n" +
"\x0edatabase.proto\x12\x05proto\"*\n" +
"\x14AllocDatabaseRequest\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\"H\n" +
"\x15AllocDatabaseResponse\x12\x1d\n" +
"\n" +
"is_success\x18\x01 \x01(\bR\tisSuccess\x12\x10\n" +
"\x03dsn\x18\x02 \x01(\tR\x03dsn2_\n" +
"\x0fDatabaseService\x12L\n" +
"\rAllocDatabase\x12\x1b.proto.AllocDatabaseRequest\x1a\x1c.proto.AllocDatabaseResponse\"\x00B\tZ\a.;protob\x06proto3"
var (
file_database_proto_rawDescOnce sync.Once
file_database_proto_rawDescData []byte
)
func file_database_proto_rawDescGZIP() []byte {
file_database_proto_rawDescOnce.Do(func() {
file_database_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_database_proto_rawDesc), len(file_database_proto_rawDesc)))
})
return file_database_proto_rawDescData
}
var file_database_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_database_proto_goTypes = []any{
(*AllocDatabaseRequest)(nil), // 0: proto.AllocDatabaseRequest
(*AllocDatabaseResponse)(nil), // 1: proto.AllocDatabaseResponse
}
var file_database_proto_depIdxs = []int32{
0, // 0: proto.DatabaseService.AllocDatabase:input_type -> proto.AllocDatabaseRequest
1, // 1: proto.DatabaseService.AllocDatabase:output_type -> proto.AllocDatabaseResponse
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_database_proto_init() }
func file_database_proto_init() {
if File_database_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_database_proto_rawDesc), len(file_database_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_database_proto_goTypes,
DependencyIndexes: file_database_proto_depIdxs,
MessageInfos: file_database_proto_msgTypes,
}.Build()
File_database_proto = out.File
file_database_proto_goTypes = nil
file_database_proto_depIdxs = nil
}