Files

258 lines
7.1 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.3
// source: info.proto
package pb
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
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 InfoReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Head *HeadReq `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InfoReq) Reset() {
*x = InfoReq{}
mi := &file_info_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InfoReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InfoReq) ProtoMessage() {}
func (x *InfoReq) ProtoReflect() protoreflect.Message {
mi := &file_info_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 InfoReq.ProtoReflect.Descriptor instead.
func (*InfoReq) Descriptor() ([]byte, []int) {
return file_info_proto_rawDescGZIP(), []int{0}
}
func (x *InfoReq) GetHead() *HeadReq {
if x != nil {
return x.Head
}
return nil
}
type InfoRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Head *HeadRes `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
Build string `protobuf:"bytes,7,opt,name=build,proto3" json:"build,omitempty"`
Commit string `protobuf:"bytes,8,opt,name=commit,proto3" json:"commit,omitempty"`
Data map[string]string `protobuf:"bytes,9,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InfoRes) Reset() {
*x = InfoRes{}
mi := &file_info_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InfoRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InfoRes) ProtoMessage() {}
func (x *InfoRes) ProtoReflect() protoreflect.Message {
mi := &file_info_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 InfoRes.ProtoReflect.Descriptor instead.
func (*InfoRes) Descriptor() ([]byte, []int) {
return file_info_proto_rawDescGZIP(), []int{1}
}
func (x *InfoRes) GetHead() *HeadRes {
if x != nil {
return x.Head
}
return nil
}
func (x *InfoRes) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *InfoRes) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InfoRes) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *InfoRes) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *InfoRes) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *InfoRes) GetBuild() string {
if x != nil {
return x.Build
}
return ""
}
func (x *InfoRes) GetCommit() string {
if x != nil {
return x.Commit
}
return ""
}
func (x *InfoRes) GetData() map[string]string {
if x != nil {
return x.Data
}
return nil
}
var File_info_proto protoreflect.FileDescriptor
const file_info_proto_rawDesc = "" +
"\n" +
"\n" +
"info.proto\x12\x06PbInfo\x1a\fcommon.proto\"0\n" +
"\aInfoReq\x12%\n" +
"\x04head\x18\x01 \x01(\v2\x11.PbCommon.HeadReqR\x04head\"\xc0\x02\n" +
"\aInfoRes\x12%\n" +
"\x04head\x18\x01 \x01(\v2\x11.PbCommon.HeadResR\x04head\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x14\n" +
"\x05title\x18\x04 \x01(\tR\x05title\x12 \n" +
"\vdescription\x18\x05 \x01(\tR\vdescription\x12\x18\n" +
"\aversion\x18\x06 \x01(\tR\aversion\x12\x14\n" +
"\x05build\x18\a \x01(\tR\x05build\x12\x16\n" +
"\x06commit\x18\b \x01(\tR\x06commit\x12-\n" +
"\x04data\x18\t \x03(\v2\x19.PbInfo.InfoRes.DataEntryR\x04data\x1a7\n" +
"\tDataEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x0122\n" +
"\x04Info\x12*\n" +
"\x04Info\x12\x0f.PbInfo.InfoReq\x1a\x0f.PbInfo.InfoRes\"\x00B\x05Z\x03pb/b\x06proto3"
var (
file_info_proto_rawDescOnce sync.Once
file_info_proto_rawDescData []byte
)
func file_info_proto_rawDescGZIP() []byte {
file_info_proto_rawDescOnce.Do(func() {
file_info_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_info_proto_rawDesc), len(file_info_proto_rawDesc)))
})
return file_info_proto_rawDescData
}
var file_info_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_info_proto_goTypes = []any{
(*InfoReq)(nil), // 0: PbInfo.InfoReq
(*InfoRes)(nil), // 1: PbInfo.InfoRes
nil, // 2: PbInfo.InfoRes.DataEntry
(*HeadReq)(nil), // 3: PbCommon.HeadReq
(*HeadRes)(nil), // 4: PbCommon.HeadRes
}
var file_info_proto_depIdxs = []int32{
3, // 0: PbInfo.InfoReq.head:type_name -> PbCommon.HeadReq
4, // 1: PbInfo.InfoRes.head:type_name -> PbCommon.HeadRes
2, // 2: PbInfo.InfoRes.data:type_name -> PbInfo.InfoRes.DataEntry
0, // 3: PbInfo.Info.Info:input_type -> PbInfo.InfoReq
1, // 4: PbInfo.Info.Info:output_type -> PbInfo.InfoRes
4, // [4:5] is the sub-list for method output_type
3, // [3:4] 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_info_proto_init() }
func file_info_proto_init() {
if File_info_proto != nil {
return
}
file_common_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_info_proto_rawDesc), len(file_info_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_info_proto_goTypes,
DependencyIndexes: file_info_proto_depIdxs,
MessageInfos: file_info_proto_msgTypes,
}.Build()
File_info_proto = out.File
file_info_proto_goTypes = nil
file_info_proto_depIdxs = nil
}