Ai
1 Star 1 Fork 0

ksc-klog/klog-go-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
protobuf.go 11.76 KB
一键复制 编辑 原始数据 按行查看 历史
liuchong1 提交于 2022-05-16 06:13 +08:00 . refact 基于PutLogsM重构
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.1
// source: klog.proto
package klog
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)
)
type Log struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
Contents []*Log_Content `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"`
}
func (x *Log) Reset() {
*x = Log{}
if protoimpl.UnsafeEnabled {
mi := &file_klog_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Log) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Log) ProtoMessage() {}
func (x *Log) ProtoReflect() protoreflect.Message {
mi := &file_klog_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 Log.ProtoReflect.Descriptor instead.
func (*Log) Descriptor() ([]byte, []int) {
return file_klog_proto_rawDescGZIP(), []int{0}
}
func (x *Log) GetTime() int64 {
if x != nil {
return x.Time
}
return 0
}
func (x *Log) GetContents() []*Log_Content {
if x != nil {
return x.Contents
}
return nil
}
type LogGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Logs []*Log `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
Reserved *string `protobuf:"bytes,2,opt,name=reserved,proto3,oneof" json:"reserved,omitempty"`
Filename *string `protobuf:"bytes,3,opt,name=filename,proto3,oneof" json:"filename,omitempty"`
Source *string `protobuf:"bytes,4,opt,name=source,proto3,oneof" json:"source,omitempty"`
Project *string `protobuf:"bytes,5,opt,name=project,proto3,oneof" json:"project,omitempty"`
Pool *string `protobuf:"bytes,6,opt,name=pool,proto3,oneof" json:"pool,omitempty"`
}
func (x *LogGroup) Reset() {
*x = LogGroup{}
if protoimpl.UnsafeEnabled {
mi := &file_klog_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogGroup) ProtoMessage() {}
func (x *LogGroup) ProtoReflect() protoreflect.Message {
mi := &file_klog_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 LogGroup.ProtoReflect.Descriptor instead.
func (*LogGroup) Descriptor() ([]byte, []int) {
return file_klog_proto_rawDescGZIP(), []int{1}
}
func (x *LogGroup) GetLogs() []*Log {
if x != nil {
return x.Logs
}
return nil
}
func (x *LogGroup) GetReserved() string {
if x != nil && x.Reserved != nil {
return *x.Reserved
}
return ""
}
func (x *LogGroup) GetFilename() string {
if x != nil && x.Filename != nil {
return *x.Filename
}
return ""
}
func (x *LogGroup) GetSource() string {
if x != nil && x.Source != nil {
return *x.Source
}
return ""
}
func (x *LogGroup) GetProject() string {
if x != nil && x.Project != nil {
return *x.Project
}
return ""
}
func (x *LogGroup) GetPool() string {
if x != nil && x.Pool != nil {
return *x.Pool
}
return ""
}
type LogGroupList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LogGroupList []*LogGroup `protobuf:"bytes,1,rep,name=logGroupList,proto3" json:"logGroupList,omitempty"`
}
func (x *LogGroupList) Reset() {
*x = LogGroupList{}
if protoimpl.UnsafeEnabled {
mi := &file_klog_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogGroupList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogGroupList) ProtoMessage() {}
func (x *LogGroupList) ProtoReflect() protoreflect.Message {
mi := &file_klog_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 LogGroupList.ProtoReflect.Descriptor instead.
func (*LogGroupList) Descriptor() ([]byte, []int) {
return file_klog_proto_rawDescGZIP(), []int{2}
}
func (x *LogGroupList) GetLogGroupList() []*LogGroup {
if x != nil {
return x.LogGroupList
}
return nil
}
type Log_Content struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *Log_Content) Reset() {
*x = Log_Content{}
if protoimpl.UnsafeEnabled {
mi := &file_klog_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Log_Content) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Log_Content) ProtoMessage() {}
func (x *Log_Content) ProtoReflect() protoreflect.Message {
mi := &file_klog_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 Log_Content.ProtoReflect.Descriptor instead.
func (*Log_Content) Descriptor() ([]byte, []int) {
return file_klog_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Log_Content) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Log_Content) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
var File_klog_proto protoreflect.FileDescriptor
var file_klog_proto_rawDesc = []byte{
0x0a, 0x0a, 0x6b, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x03,
0x4c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65,
0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x4c, 0x6f, 0x67, 0x2e,
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
0x73, 0x1a, 0x31, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x22, 0xf5, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x12, 0x18, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x04, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x08, 0x72,
0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
0x08, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08,
0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01,
0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a,
0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52,
0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72,
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x07, 0x70,
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x6f, 0x6f,
0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x88,
0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x42,
0x0b, 0x0a, 0x09, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07,
0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x22, 0x3d, 0x0a, 0x0c,
0x4c, 0x6f, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x0c,
0x6c, 0x6f, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x4c, 0x6f, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x6c,
0x6f, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x08, 0x5a, 0x06, 0x2e,
0x2f, 0x6b, 0x6c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_klog_proto_rawDescOnce sync.Once
file_klog_proto_rawDescData = file_klog_proto_rawDesc
)
func file_klog_proto_rawDescGZIP() []byte {
file_klog_proto_rawDescOnce.Do(func() {
file_klog_proto_rawDescData = protoimpl.X.CompressGZIP(file_klog_proto_rawDescData)
})
return file_klog_proto_rawDescData
}
var file_klog_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_klog_proto_goTypes = []interface{}{
(*Log)(nil), // 0: Log
(*LogGroup)(nil), // 1: LogGroup
(*LogGroupList)(nil), // 2: LogGroupList
(*Log_Content)(nil), // 3: Log.Content
}
var file_klog_proto_depIdxs = []int32{
3, // 0: Log.contents:type_name -> Log.Content
0, // 1: LogGroup.logs:type_name -> Log
1, // 2: LogGroupList.logGroupList:type_name -> LogGroup
3, // [3:3] is the sub-list for method output_type
3, // [3:3] 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_klog_proto_init() }
func file_klog_proto_init() {
if File_klog_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_klog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Log); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_klog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LogGroup); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_klog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LogGroupList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_klog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Log_Content); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_klog_proto_msgTypes[1].OneofWrappers = []interface{}{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_klog_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_klog_proto_goTypes,
DependencyIndexes: file_klog_proto_depIdxs,
MessageInfos: file_klog_proto_msgTypes,
}.Build()
File_klog_proto = out.File
file_klog_proto_rawDesc = nil
file_klog_proto_goTypes = nil
file_klog_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/klogsdk/klog-go-sdk.git
git@gitee.com:klogsdk/klog-go-sdk.git
klogsdk
klog-go-sdk
klog-go-sdk
v0.5.1

搜索帮助