/
t3
/
cli
Обзор
Документация
Войти
/
t3
/
cli
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
pkg/pb/log.pb.go
414 строк
11 KB
Ivan Shibkikh
thinktime / pacing
04 июл 2026, 17:00
04 июл 2026, 17:00
5f2e4c7
Код
Авторство
О чём код?
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v7.34.1 // source: log.proto package pb 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) ) // Wrapper message to allow maps inside the LogValue oneof // Represents a single key-value pair, preserving insertion order type LogArgument struct { state protoimpl.MessageState `protogen:"open.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *LogValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LogArgument) Reset() { *x = LogArgument{} mi := &file_log_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LogArgument) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogArgument) ProtoMessage() {} func (x *LogArgument) ProtoReflect() protoreflect.Message { mi := &file_log_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 LogArgument.ProtoReflect.Descriptor instead. func (*LogArgument) Descriptor() ([]byte, []int) { return file_log_proto_rawDescGZIP(), []int{0} } func (x *LogArgument) GetKey() string { if x != nil { return x.Key } return "" } func (x *LogArgument) GetValue() *LogValue { if x != nil { return x.Value } return nil } // Wrapper for nested groups, now using an array instead of a map type LogMap struct { state protoimpl.MessageState `protogen:"open.v1"` Items []*LogArgument `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LogMap) Reset() { *x = LogMap{} mi := &file_log_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LogMap) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogMap) ProtoMessage() {} func (x *LogMap) ProtoReflect() protoreflect.Message { mi := &file_log_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 LogMap.ProtoReflect.Descriptor instead. func (*LogMap) Descriptor() ([]byte, []int) { return file_log_proto_rawDescGZIP(), []int{1} } func (x *LogMap) GetItems() []*LogArgument { if x != nil { return x.Items } return nil } type LogValue struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Value: // // *LogValue_StringValue // *LogValue_IntValue // *LogValue_DoubleValue // *LogValue_BoolValue // *LogValue_MapValue Value isLogValue_Value `protobuf_oneof:"value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LogValue) Reset() { *x = LogValue{} mi := &file_log_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LogValue) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogValue) ProtoMessage() {} func (x *LogValue) ProtoReflect() protoreflect.Message { mi := &file_log_proto_msgTypes[2] 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 LogValue.ProtoReflect.Descriptor instead. func (*LogValue) Descriptor() ([]byte, []int) { return file_log_proto_rawDescGZIP(), []int{2} } func (x *LogValue) GetValue() isLogValue_Value { if x != nil { return x.Value } return nil } func (x *LogValue) GetStringValue() string { if x != nil { if x, ok := x.Value.(*LogValue_StringValue); ok { return x.StringValue } } return "" } func (x *LogValue) GetIntValue() int64 { if x != nil { if x, ok := x.Value.(*LogValue_IntValue); ok { return x.IntValue } } return 0 } func (x *LogValue) GetDoubleValue() float64 { if x != nil { if x, ok := x.Value.(*LogValue_DoubleValue); ok { return x.DoubleValue } } return 0 } func (x *LogValue) GetBoolValue() bool { if x != nil { if x, ok := x.Value.(*LogValue_BoolValue); ok { return x.BoolValue } } return false } func (x *LogValue) GetMapValue() *LogMap { if x != nil { if x, ok := x.Value.(*LogValue_MapValue); ok { return x.MapValue } } return nil } type isLogValue_Value interface { isLogValue_Value() } type LogValue_StringValue struct { StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"` } type LogValue_IntValue struct { IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"` } type LogValue_DoubleValue struct { DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"` } type LogValue_BoolValue struct { BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"` } type LogValue_MapValue struct { MapValue *LogMap `protobuf:"bytes,5,opt,name=map_value,json=mapValue,proto3,oneof"` } func (*LogValue_StringValue) isLogValue_Value() {} func (*LogValue_IntValue) isLogValue_Value() {} func (*LogValue_DoubleValue) isLogValue_Value() {} func (*LogValue_BoolValue) isLogValue_Value() {} func (*LogValue_MapValue) isLogValue_Value() {} type LogEvent struct { state protoimpl.MessageState `protogen:"open.v1"` Severity string `protobuf:"bytes,1,opt,name=severity,proto3" json:"severity,omitempty"` // ERROR, WARNING, INFO, DEBUG Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Args []*LogArgument `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` // Array preserves exact insertion order Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"` // agent hostname for identification TimestampMs int64 `protobuf:"varint,5,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` // unix millisecond timestamp unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LogEvent) Reset() { *x = LogEvent{} mi := &file_log_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LogEvent) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogEvent) ProtoMessage() {} func (x *LogEvent) ProtoReflect() protoreflect.Message { mi := &file_log_proto_msgTypes[3] 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 LogEvent.ProtoReflect.Descriptor instead. func (*LogEvent) Descriptor() ([]byte, []int) { return file_log_proto_rawDescGZIP(), []int{3} } func (x *LogEvent) GetSeverity() string { if x != nil { return x.Severity } return "" } func (x *LogEvent) GetMessage() string { if x != nil { return x.Message } return "" } func (x *LogEvent) GetArgs() []*LogArgument { if x != nil { return x.Args } return nil } func (x *LogEvent) GetHostname() string { if x != nil { return x.Hostname } return "" } func (x *LogEvent) GetTimestampMs() int64 { if x != nil { return x.TimestampMs } return 0 } var File_log_proto protoreflect.FileDescriptor const file_log_proto_rawDesc = "" + "\n" + "\tlog.proto\x12\x05agent\"F\n" + "\vLogArgument\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12%\n" + "\x05value\x18\x02 \x01(\v2\x0f.agent.LogValueR\x05value\"2\n" + "\x06LogMap\x12(\n" + "\x05items\x18\x01 \x03(\v2\x12.agent.LogArgumentR\x05items\"\xcb\x01\n" + "\bLogValue\x12#\n" + "\fstring_value\x18\x01 \x01(\tH\x00R\vstringValue\x12\x1d\n" + "\tint_value\x18\x02 \x01(\x03H\x00R\bintValue\x12#\n" + "\fdouble_value\x18\x03 \x01(\x01H\x00R\vdoubleValue\x12\x1f\n" + "\n" + "bool_value\x18\x04 \x01(\bH\x00R\tboolValue\x12,\n" + "\tmap_value\x18\x05 \x01(\v2\r.agent.LogMapH\x00R\bmapValueB\a\n" + "\x05value\"\xa7\x01\n" + "\bLogEvent\x12\x1a\n" + "\bseverity\x18\x01 \x01(\tR\bseverity\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\x12&\n" + "\x04args\x18\x03 \x03(\v2\x12.agent.LogArgumentR\x04args\x12\x1a\n" + "\bhostname\x18\x04 \x01(\tR\bhostname\x12!\n" + "\ftimestamp_ms\x18\x05 \x01(\x03R\vtimestampMsB\x1bZ\x19gitverse.ru/t3/cli/pkg/pbb\x06proto3" var ( file_log_proto_rawDescOnce sync.Once file_log_proto_rawDescData []byte ) func file_log_proto_rawDescGZIP() []byte { file_log_proto_rawDescOnce.Do(func() { file_log_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_log_proto_rawDesc), len(file_log_proto_rawDesc))) }) return file_log_proto_rawDescData } var file_log_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_log_proto_goTypes = []any{ (*LogArgument)(nil), // 0: agent.LogArgument (*LogMap)(nil), // 1: agent.LogMap (*LogValue)(nil), // 2: agent.LogValue (*LogEvent)(nil), // 3: agent.LogEvent } var file_log_proto_depIdxs = []int32{ 2, // 0: agent.LogArgument.value:type_name -> agent.LogValue 0, // 1: agent.LogMap.items:type_name -> agent.LogArgument 1, // 2: agent.LogValue.map_value:type_name -> agent.LogMap 0, // 3: agent.LogEvent.args:type_name -> agent.LogArgument 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_log_proto_init() } func file_log_proto_init() { if File_log_proto != nil { return } file_log_proto_msgTypes[2].OneofWrappers = []any{ (*LogValue_StringValue)(nil), (*LogValue_IntValue)(nil), (*LogValue_DoubleValue)(nil), (*LogValue_BoolValue)(nil), (*LogValue_MapValue)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_log_proto_rawDesc), len(file_log_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, GoTypes: file_log_proto_goTypes, DependencyIndexes: file_log_proto_depIdxs, MessageInfos: file_log_proto_msgTypes, }.Build() File_log_proto = out.File file_log_proto_goTypes = nil file_log_proto_depIdxs = nil }