// Copyright (C) 2022 The OKit Authors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.19.4 // source: obkit.proto package pb import ( proto "github.com/golang/protobuf/proto" 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) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 // Kind represents the various types of elements that we're collecting. type Kind int32 const ( Kind_Unknown Kind = 0 Kind_Event Kind = 1 Kind_Metric Kind = 2 Kind_Trace Kind = 3 Kind_Log Kind = 4 ) // Enum value maps for Kind. var ( Kind_name = map[int32]string{ 0: "Unknown", 1: "Event", 2: "Metric", 3: "Trace", 4: "Log", } Kind_value = map[string]int32{ "Unknown": 0, "Event": 1, "Metric": 2, "Trace": 3, "Log": 4, } ) func (x Kind) Enum() *Kind { p := new(Kind) *p = x return p } func (x Kind) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Kind) Descriptor() protoreflect.EnumDescriptor { return file_obkit_proto_enumTypes[0].Descriptor() } func (Kind) Type() protoreflect.EnumType { return &file_obkit_proto_enumTypes[0] } func (x Kind) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use Kind.Descriptor instead. func (Kind) EnumDescriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{0} } // Duration provides a protocol local implementation of a duration. type Duration struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Nanos int64 `protobuf:"varint,1,opt,name=nanos,proto3" json:"nanos,omitempty"` } func (x *Duration) Reset() { *x = Duration{} if protoimpl.UnsafeEnabled { mi := &file_obkit_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Duration) String() string { return protoimpl.X.MessageStringOf(x) } func (*Duration) ProtoMessage() {} func (x *Duration) ProtoReflect() protoreflect.Message { mi := &file_obkit_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 Duration.ProtoReflect.Descriptor instead. func (*Duration) Descriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{0} } func (x *Duration) GetNanos() int64 { if x != nil { return x.Nanos } return 0 } // Timestamp provides a protocol local implementation of a timestamp. type Timestamp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` } func (x *Timestamp) Reset() { *x = Timestamp{} if protoimpl.UnsafeEnabled { mi := &file_obkit_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Timestamp) String() string { return protoimpl.X.MessageStringOf(x) } func (*Timestamp) ProtoMessage() {} func (x *Timestamp) ProtoReflect() protoreflect.Message { mi := &file_obkit_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 Timestamp.ProtoReflect.Descriptor instead. func (*Timestamp) Descriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{1} } func (x *Timestamp) GetSeconds() int64 { if x != nil { return x.Seconds } return 0 } func (x *Timestamp) GetNanos() int32 { if x != nil { return x.Nanos } return 0 } // Tag defines a key-value element eligible for indexing. type Tag struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Types that are assignable to Value: // *Tag_String_ // *Tag_Int64 // *Tag_Double // *Tag_Bytes // *Tag_Bool // *Tag_Duration // *Tag_Timestamp Value isTag_Value `protobuf_oneof:"value"` } func (x *Tag) Reset() { *x = Tag{} if protoimpl.UnsafeEnabled { mi := &file_obkit_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Tag) String() string { return protoimpl.X.MessageStringOf(x) } func (*Tag) ProtoMessage() {} func (x *Tag) ProtoReflect() protoreflect.Message { mi := &file_obkit_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 Tag.ProtoReflect.Descriptor instead. func (*Tag) Descriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{2} } func (x *Tag) GetKey() string { if x != nil { return x.Key } return "" } func (m *Tag) GetValue() isTag_Value { if m != nil { return m.Value } return nil } func (x *Tag) GetString_() string { if x, ok := x.GetValue().(*Tag_String_); ok { return x.String_ } return "" } func (x *Tag) GetInt64() int64 { if x, ok := x.GetValue().(*Tag_Int64); ok { return x.Int64 } return 0 } func (x *Tag) GetDouble() float64 { if x, ok := x.GetValue().(*Tag_Double); ok { return x.Double } return 0 } func (x *Tag) GetBytes() []byte { if x, ok := x.GetValue().(*Tag_Bytes); ok { return x.Bytes } return nil } func (x *Tag) GetBool() bool { if x, ok := x.GetValue().(*Tag_Bool); ok { return x.Bool } return false } func (x *Tag) GetDuration() *Duration { if x, ok := x.GetValue().(*Tag_Duration); ok { return x.Duration } return nil } func (x *Tag) GetTimestamp() *Timestamp { if x, ok := x.GetValue().(*Tag_Timestamp); ok { return x.Timestamp } return nil } type isTag_Value interface { isTag_Value() } type Tag_String_ struct { String_ string `protobuf:"bytes,5,opt,name=string,proto3,oneof"` } type Tag_Int64 struct { Int64 int64 `protobuf:"varint,6,opt,name=int64,proto3,oneof"` } type Tag_Double struct { Double float64 `protobuf:"fixed64,7,opt,name=double,proto3,oneof"` } type Tag_Bytes struct { Bytes []byte `protobuf:"bytes,8,opt,name=bytes,proto3,oneof"` } type Tag_Bool struct { Bool bool `protobuf:"varint,9,opt,name=bool,proto3,oneof"` } type Tag_Duration struct { Duration *Duration `protobuf:"bytes,10,opt,name=duration,proto3,oneof"` } type Tag_Timestamp struct { Timestamp *Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3,oneof"` } func (*Tag_String_) isTag_Value() {} func (*Tag_Int64) isTag_Value() {} func (*Tag_Double) isTag_Value() {} func (*Tag_Bytes) isTag_Value() {} func (*Tag_Bool) isTag_Value() {} func (*Tag_Duration) isTag_Value() {} func (*Tag_Timestamp) isTag_Value() {} // Wire represents a common structure for communicating common observability elements. To help illustrate this, let us // consider the following. // // - An Event is an Entry who's name is set and contains optional tags. // - A Log is an Entry who's value is set to the verbosity of the message. // - A Metric is an Event that has a value associated with the entry. // - A Trace is a Metric whose tags have a specific structure that allow multiple to be correlated. // type Entry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Timestamp defines when the entry was emit. This system assumes the client clock is accurate enough. Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Kind is used to indicate what type of entry this is. Kind Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=obkit.Kind" json:"kind,omitempty"` // Name is used to identify the metric name, log message, or traced function. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Tags is an optional field that contains a list of metadata associated with the entry. Tags []*Tag `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` // Value is an optional field that defines a value associated with the entry (e.g. in the case of a log, metric, or trace). // // Types that are assignable to Value: // *Entry_String_ // *Entry_Double // *Entry_Duration Value isEntry_Value `protobuf_oneof:"value"` } func (x *Entry) Reset() { *x = Entry{} if protoimpl.UnsafeEnabled { mi := &file_obkit_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Entry) String() string { return protoimpl.X.MessageStringOf(x) } func (*Entry) ProtoMessage() {} func (x *Entry) ProtoReflect() protoreflect.Message { mi := &file_obkit_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 Entry.ProtoReflect.Descriptor instead. func (*Entry) Descriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{3} } func (x *Entry) GetTimestamp() *Timestamp { if x != nil { return x.Timestamp } return nil } func (x *Entry) GetKind() Kind { if x != nil { return x.Kind } return Kind_Unknown } func (x *Entry) GetName() string { if x != nil { return x.Name } return "" } func (x *Entry) GetTags() []*Tag { if x != nil { return x.Tags } return nil } func (m *Entry) GetValue() isEntry_Value { if m != nil { return m.Value } return nil } func (x *Entry) GetString_() string { if x, ok := x.GetValue().(*Entry_String_); ok { return x.String_ } return "" } func (x *Entry) GetDouble() float64 { if x, ok := x.GetValue().(*Entry_Double); ok { return x.Double } return 0 } func (x *Entry) GetDuration() *Duration { if x, ok := x.GetValue().(*Entry_Duration); ok { return x.Duration } return nil } type isEntry_Value interface { isEntry_Value() } type Entry_String_ struct { String_ string `protobuf:"bytes,6,opt,name=string,proto3,oneof"` // used for logs } type Entry_Double struct { Double float64 `protobuf:"fixed64,7,opt,name=double,proto3,oneof"` // used for metrics } type Entry_Duration struct { Duration *Duration `protobuf:"bytes,8,opt,name=duration,proto3,oneof"` // used for traces } func (*Entry_String_) isEntry_Value() {} func (*Entry_Double) isEntry_Value() {} func (*Entry_Duration) isEntry_Value() {} // ClientInfo is used to capture specific information about the client application that is emitting information. type ClientInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Name is the canonical, simple name of the application (redis, mysql, etc...). Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Instance is a unique identifier assigned to the process. This can be a hostname in the case of containers. It could // also be a mac address in the case of physical machines. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` } func (x *ClientInfo) Reset() { *x = ClientInfo{} if protoimpl.UnsafeEnabled { mi := &file_obkit_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ClientInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*ClientInfo) ProtoMessage() {} func (x *ClientInfo) ProtoReflect() protoreflect.Message { mi := &file_obkit_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 ClientInfo.ProtoReflect.Descriptor instead. func (*ClientInfo) Descriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{4} } func (x *ClientInfo) GetName() string { if x != nil { return x.Name } return "" } func (x *ClientInfo) GetInstance() string { if x != nil { return x.Instance } return "" } // Packet defines the set of data that is contained within each message sent to the server. type Packet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Client contains information that identifies the emitting client. Client *ClientInfo `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"` // Entries are processed in batches, allowing local clients to buffer if necessary. Entries []*Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` } func (x *Packet) Reset() { *x = Packet{} if protoimpl.UnsafeEnabled { mi := &file_obkit_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Packet) String() string { return protoimpl.X.MessageStringOf(x) } func (*Packet) ProtoMessage() {} func (x *Packet) ProtoReflect() protoreflect.Message { mi := &file_obkit_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 Packet.ProtoReflect.Descriptor instead. func (*Packet) Descriptor() ([]byte, []int) { return file_obkit_proto_rawDescGZIP(), []int{5} } func (x *Packet) GetClient() *ClientInfo { if x != nil { return x.Client } return nil } func (x *Packet) GetEntries() []*Entry { if x != nil { return x.Entries } return nil } var File_obkit_proto protoreflect.FileDescriptor var file_obkit_proto_rawDesc = []byte{ 0x0a, 0x0b, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x22, 0x20, 0x0a, 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x22, 0xfb, 0x01, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x2d, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf8, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x2e, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3c, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x5b, 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6f, 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x2a, 0x3e, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x63, 0x65, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x10, 0x04, 0x42, 0x1c, 0x5a, 0x1a, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x69, 0x74, 0x7a, 0x2e, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x6d, 0x79, 0x61, 0x2f, 0x6f, 0x6b, 0x69, 0x74, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_obkit_proto_rawDescOnce sync.Once file_obkit_proto_rawDescData = file_obkit_proto_rawDesc ) func file_obkit_proto_rawDescGZIP() []byte { file_obkit_proto_rawDescOnce.Do(func() { file_obkit_proto_rawDescData = protoimpl.X.CompressGZIP(file_obkit_proto_rawDescData) }) return file_obkit_proto_rawDescData } var file_obkit_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_obkit_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_obkit_proto_goTypes = []interface{}{ (Kind)(0), // 0: obkit.Kind (*Duration)(nil), // 1: obkit.Duration (*Timestamp)(nil), // 2: obkit.Timestamp (*Tag)(nil), // 3: obkit.Tag (*Entry)(nil), // 4: obkit.Entry (*ClientInfo)(nil), // 5: obkit.ClientInfo (*Packet)(nil), // 6: obkit.Packet } var file_obkit_proto_depIdxs = []int32{ 1, // 0: obkit.Tag.duration:type_name -> obkit.Duration 2, // 1: obkit.Tag.timestamp:type_name -> obkit.Timestamp 2, // 2: obkit.Entry.timestamp:type_name -> obkit.Timestamp 0, // 3: obkit.Entry.kind:type_name -> obkit.Kind 3, // 4: obkit.Entry.tags:type_name -> obkit.Tag 1, // 5: obkit.Entry.duration:type_name -> obkit.Duration 5, // 6: obkit.Packet.client:type_name -> obkit.ClientInfo 4, // 7: obkit.Packet.entries:type_name -> obkit.Entry 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_obkit_proto_init() } func file_obkit_proto_init() { if File_obkit_proto != nil { return } if !protoimpl.UnsafeEnabled { file_obkit_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Duration); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_obkit_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Timestamp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_obkit_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Tag); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_obkit_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Entry); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_obkit_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClientInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_obkit_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Packet); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_obkit_proto_msgTypes[2].OneofWrappers = []interface{}{ (*Tag_String_)(nil), (*Tag_Int64)(nil), (*Tag_Double)(nil), (*Tag_Bytes)(nil), (*Tag_Bool)(nil), (*Tag_Duration)(nil), (*Tag_Timestamp)(nil), } file_obkit_proto_msgTypes[3].OneofWrappers = []interface{}{ (*Entry_String_)(nil), (*Entry_Double)(nil), (*Entry_Duration)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_obkit_proto_rawDesc, NumEnums: 1, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_obkit_proto_goTypes, DependencyIndexes: file_obkit_proto_depIdxs, EnumInfos: file_obkit_proto_enumTypes, MessageInfos: file_obkit_proto_msgTypes, }.Build() File_obkit_proto = out.File file_obkit_proto_rawDesc = nil file_obkit_proto_goTypes = nil file_obkit_proto_depIdxs = nil }