1 Star 0 Fork 0

Cruvie Kang / kk_go_kit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pb_type.pb.go 14.12 KB
一键复制 编辑 原始数据 按行查看 历史
Cruvie 提交于 2024-05-04 22:09 . update
//此文件为公共的基础模型,对于protobuf仅做公共示例,proto不支持嵌套/继承,所以此文件不会被使用,作为标准复制到所需的proto中使用
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v5.26.1
// source: pb_type.proto
package kk_pb_type
import (
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)
)
// 生成go文件命令
// protoc -I=. --go_out=./ *.proto
// 生成dart文件命令
// protoc -I=. --dart_out=../../lib/kk_models/kk_pb_type *.proto
type PBString struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
}
func (x *PBString) Reset() {
*x = PBString{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_type_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PBString) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PBString) ProtoMessage() {}
func (x *PBString) ProtoReflect() protoreflect.Message {
mi := &file_pb_type_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 PBString.ProtoReflect.Descriptor instead.
func (*PBString) Descriptor() ([]byte, []int) {
return file_pb_type_proto_rawDescGZIP(), []int{0}
}
func (x *PBString) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type PBListString struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ListString []string `protobuf:"bytes,1,rep,name=ListString,proto3" json:"ListString,omitempty"`
}
func (x *PBListString) Reset() {
*x = PBListString{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_type_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PBListString) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PBListString) ProtoMessage() {}
func (x *PBListString) ProtoReflect() protoreflect.Message {
mi := &file_pb_type_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 PBListString.ProtoReflect.Descriptor instead.
func (*PBListString) Descriptor() ([]byte, []int) {
return file_pb_type_proto_rawDescGZIP(), []int{1}
}
func (x *PBListString) GetListString() []string {
if x != nil {
return x.ListString
}
return nil
}
type PBMapStringList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MapStringList map[string]*PBListString `protobuf:"bytes,1,rep,name=MapStringList,proto3" json:"MapStringList,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *PBMapStringList) Reset() {
*x = PBMapStringList{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_type_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PBMapStringList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PBMapStringList) ProtoMessage() {}
func (x *PBMapStringList) ProtoReflect() protoreflect.Message {
mi := &file_pb_type_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 PBMapStringList.ProtoReflect.Descriptor instead.
func (*PBMapStringList) Descriptor() ([]byte, []int) {
return file_pb_type_proto_rawDescGZIP(), []int{2}
}
func (x *PBMapStringList) GetMapStringList() map[string]*PBListString {
if x != nil {
return x.MapStringList
}
return nil
}
type PBBool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value bool `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
}
func (x *PBBool) Reset() {
*x = PBBool{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_type_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PBBool) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PBBool) ProtoMessage() {}
func (x *PBBool) ProtoReflect() protoreflect.Message {
mi := &file_pb_type_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 PBBool.ProtoReflect.Descriptor instead.
func (*PBBool) Descriptor() ([]byte, []int) {
return file_pb_type_proto_rawDescGZIP(), []int{3}
}
func (x *PBBool) GetValue() bool {
if x != nil {
return x.Value
}
return false
}
type PBUint64 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value uint64 `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
}
func (x *PBUint64) Reset() {
*x = PBUint64{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_type_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PBUint64) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PBUint64) ProtoMessage() {}
func (x *PBUint64) ProtoReflect() protoreflect.Message {
mi := &file_pb_type_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 PBUint64.ProtoReflect.Descriptor instead.
func (*PBUint64) Descriptor() ([]byte, []int) {
return file_pb_type_proto_rawDescGZIP(), []int{4}
}
func (x *PBUint64) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
// 即时生成的存储在内存的小文件在http上直接用pb传输,大文件走minio流式传输
type PBFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
Bytes []byte `protobuf:"bytes,2,opt,name=Bytes,proto3" json:"Bytes,omitempty"`
}
func (x *PBFile) Reset() {
*x = PBFile{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_type_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PBFile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PBFile) ProtoMessage() {}
func (x *PBFile) ProtoReflect() protoreflect.Message {
mi := &file_pb_type_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 PBFile.ProtoReflect.Descriptor instead.
func (*PBFile) Descriptor() ([]byte, []int) {
return file_pb_type_proto_rawDescGZIP(), []int{5}
}
func (x *PBFile) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PBFile) GetBytes() []byte {
if x != nil {
return x.Bytes
}
return nil
}
var File_pb_type_proto protoreflect.FileDescriptor
var file_pb_type_proto_rawDesc = []byte{
0x0a, 0x0d, 0x70, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x0a, 0x6b, 0x6b, 0x5f, 0x70, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x20, 0x0a, 0x08, 0x50,
0x42, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2e, 0x0a,
0x0c, 0x50, 0x42, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a,
0x0a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28,
0x09, 0x52, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xc3, 0x01,
0x0a, 0x0f, 0x50, 0x42, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73,
0x74, 0x12, 0x54, 0x0a, 0x0d, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69,
0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x6b, 0x5f, 0x70, 0x62,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x42, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c,
0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72,
0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x5a, 0x0a, 0x12, 0x4d, 0x61, 0x70, 0x53, 0x74,
0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
0x2e, 0x6b, 0x6b, 0x5f, 0x70, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x42, 0x4c, 0x69,
0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x02, 0x38, 0x01, 0x22, 0x1e, 0x0a, 0x06, 0x50, 0x42, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x14, 0x0a,
0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x08, 0x50, 0x42, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12,
0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x32, 0x0a, 0x06, 0x50, 0x42, 0x46, 0x69, 0x6c, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x05, 0x42, 0x79, 0x74, 0x65, 0x73, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x3b,
0x6b, 0x6b, 0x5f, 0x70, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_pb_type_proto_rawDescOnce sync.Once
file_pb_type_proto_rawDescData = file_pb_type_proto_rawDesc
)
func file_pb_type_proto_rawDescGZIP() []byte {
file_pb_type_proto_rawDescOnce.Do(func() {
file_pb_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_type_proto_rawDescData)
})
return file_pb_type_proto_rawDescData
}
var file_pb_type_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_pb_type_proto_goTypes = []interface{}{
(*PBString)(nil), // 0: kk_pb_type.PBString
(*PBListString)(nil), // 1: kk_pb_type.PBListString
(*PBMapStringList)(nil), // 2: kk_pb_type.PBMapStringList
(*PBBool)(nil), // 3: kk_pb_type.PBBool
(*PBUint64)(nil), // 4: kk_pb_type.PBUint64
(*PBFile)(nil), // 5: kk_pb_type.PBFile
nil, // 6: kk_pb_type.PBMapStringList.MapStringListEntry
}
var file_pb_type_proto_depIdxs = []int32{
6, // 0: kk_pb_type.PBMapStringList.MapStringList:type_name -> kk_pb_type.PBMapStringList.MapStringListEntry
1, // 1: kk_pb_type.PBMapStringList.MapStringListEntry.value:type_name -> kk_pb_type.PBListString
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_pb_type_proto_init() }
func file_pb_type_proto_init() {
if File_pb_type_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_pb_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PBString); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_type_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PBListString); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_type_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PBMapStringList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_type_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PBBool); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_type_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PBUint64); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_type_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PBFile); 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_pb_type_proto_rawDesc,
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_pb_type_proto_goTypes,
DependencyIndexes: file_pb_type_proto_depIdxs,
MessageInfos: file_pb_type_proto_msgTypes,
}.Build()
File_pb_type_proto = out.File
file_pb_type_proto_rawDesc = nil
file_pb_type_proto_goTypes = nil
file_pb_type_proto_depIdxs = nil
}
1
https://gitee.com/cruvie/kk_go_kit.git
git@gitee.com:cruvie/kk_go_kit.git
cruvie
kk_go_kit
kk_go_kit
4fa54e3cbf57

搜索帮助