github.com/siglens/siglens@v0.0.0-20240328180423-f7ce9ae441ed/pkg/integrations/loki/log/push.pb.go (about) 1 package log 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 _ "github.com/gogo/protobuf/gogoproto" 8 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 9 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 10 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 11 ) 12 13 const ( 14 // Verify that this generated code is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 16 // Verify that runtime/protoimpl is sufficiently up-to-date. 17 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 18 ) 19 20 type PushRequest struct { 21 state protoimpl.MessageState 22 sizeCache protoimpl.SizeCache 23 unknownFields protoimpl.UnknownFields 24 25 Streams []*StreamAdapter `protobuf:"bytes,1,rep,name=streams,proto3" json:"streams,omitempty"` 26 } 27 28 func (x *PushRequest) Reset() { 29 *x = PushRequest{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_pkg_loki_push_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *PushRequest) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*PushRequest) ProtoMessage() {} 42 43 func (x *PushRequest) ProtoReflect() protoreflect.Message { 44 mi := &file_pkg_loki_push_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use PushRequest.ProtoReflect.Descriptor instead. 56 func (*PushRequest) Descriptor() ([]byte, []int) { 57 return file_pkg_loki_push_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *PushRequest) GetStreams() []*StreamAdapter { 61 if x != nil { 62 return x.Streams 63 } 64 return nil 65 } 66 67 type PushResponse struct { 68 state protoimpl.MessageState 69 sizeCache protoimpl.SizeCache 70 unknownFields protoimpl.UnknownFields 71 } 72 73 func (x *PushResponse) Reset() { 74 *x = PushResponse{} 75 if protoimpl.UnsafeEnabled { 76 mi := &file_pkg_loki_push_proto_msgTypes[1] 77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 78 ms.StoreMessageInfo(mi) 79 } 80 } 81 82 func (x *PushResponse) String() string { 83 return protoimpl.X.MessageStringOf(x) 84 } 85 86 func (*PushResponse) ProtoMessage() {} 87 88 func (x *PushResponse) ProtoReflect() protoreflect.Message { 89 mi := &file_pkg_loki_push_proto_msgTypes[1] 90 if protoimpl.UnsafeEnabled && x != nil { 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 if ms.LoadMessageInfo() == nil { 93 ms.StoreMessageInfo(mi) 94 } 95 return ms 96 } 97 return mi.MessageOf(x) 98 } 99 100 // Deprecated: Use PushResponse.ProtoReflect.Descriptor instead. 101 func (*PushResponse) Descriptor() ([]byte, []int) { 102 return file_pkg_loki_push_proto_rawDescGZIP(), []int{1} 103 } 104 105 type StreamAdapter struct { 106 state protoimpl.MessageState 107 sizeCache protoimpl.SizeCache 108 unknownFields protoimpl.UnknownFields 109 110 Labels string `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"` 111 Entries []*EntryAdapter `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` 112 // hash contains the original hash of the stream. 113 Hash uint64 `protobuf:"varint,3,opt,name=hash,proto3" json:"hash,omitempty"` 114 } 115 116 func (x *StreamAdapter) Reset() { 117 *x = StreamAdapter{} 118 if protoimpl.UnsafeEnabled { 119 mi := &file_pkg_loki_push_proto_msgTypes[2] 120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 121 ms.StoreMessageInfo(mi) 122 } 123 } 124 125 func (x *StreamAdapter) String() string { 126 return protoimpl.X.MessageStringOf(x) 127 } 128 129 func (*StreamAdapter) ProtoMessage() {} 130 131 func (x *StreamAdapter) ProtoReflect() protoreflect.Message { 132 mi := &file_pkg_loki_push_proto_msgTypes[2] 133 if protoimpl.UnsafeEnabled && x != nil { 134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 135 if ms.LoadMessageInfo() == nil { 136 ms.StoreMessageInfo(mi) 137 } 138 return ms 139 } 140 return mi.MessageOf(x) 141 } 142 143 // Deprecated: Use StreamAdapter.ProtoReflect.Descriptor instead. 144 func (*StreamAdapter) Descriptor() ([]byte, []int) { 145 return file_pkg_loki_push_proto_rawDescGZIP(), []int{2} 146 } 147 148 func (x *StreamAdapter) GetLabels() string { 149 if x != nil { 150 return x.Labels 151 } 152 return "" 153 } 154 155 func (x *StreamAdapter) GetEntries() []*EntryAdapter { 156 if x != nil { 157 return x.Entries 158 } 159 return nil 160 } 161 162 func (x *StreamAdapter) GetHash() uint64 { 163 if x != nil { 164 return x.Hash 165 } 166 return 0 167 } 168 169 type EntryAdapter struct { 170 state protoimpl.MessageState 171 sizeCache protoimpl.SizeCache 172 unknownFields protoimpl.UnknownFields 173 174 Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 175 Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"` 176 } 177 178 func (x *EntryAdapter) Reset() { 179 *x = EntryAdapter{} 180 if protoimpl.UnsafeEnabled { 181 mi := &file_pkg_loki_push_proto_msgTypes[3] 182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 183 ms.StoreMessageInfo(mi) 184 } 185 } 186 187 func (x *EntryAdapter) String() string { 188 return protoimpl.X.MessageStringOf(x) 189 } 190 191 func (*EntryAdapter) ProtoMessage() {} 192 193 func (x *EntryAdapter) ProtoReflect() protoreflect.Message { 194 mi := &file_pkg_loki_push_proto_msgTypes[3] 195 if protoimpl.UnsafeEnabled && x != nil { 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 if ms.LoadMessageInfo() == nil { 198 ms.StoreMessageInfo(mi) 199 } 200 return ms 201 } 202 return mi.MessageOf(x) 203 } 204 205 // Deprecated: Use EntryAdapter.ProtoReflect.Descriptor instead. 206 func (*EntryAdapter) Descriptor() ([]byte, []int) { 207 return file_pkg_loki_push_proto_rawDescGZIP(), []int{3} 208 } 209 210 func (x *EntryAdapter) GetTimestamp() *timestamppb.Timestamp { 211 if x != nil { 212 return x.Timestamp 213 } 214 return nil 215 } 216 217 func (x *EntryAdapter) GetLine() string { 218 if x != nil { 219 return x.Line 220 } 221 return "" 222 } 223 224 var File_pkg_loki_push_proto protoreflect.FileDescriptor 225 226 var file_pkg_loki_push_proto_rawDesc = []byte{ 227 0x0a, 0x13, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6b, 0x69, 0x2f, 0x70, 0x75, 0x73, 0x68, 0x2e, 228 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6b, 0x69, 0x1a, 0x1b, 0x70, 0x6b, 0x67, 229 0x2f, 0x6c, 0x6f, 0x6b, 0x69, 0x2f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x2f, 0x67, 0x6f, 230 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 231 0x6b, 0x69, 0x2f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 232 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x0b, 0x50, 0x75, 233 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x07, 0x73, 0x74, 0x72, 234 0x65, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x6f, 0x6b, 235 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x42, 236 0x15, 0xda, 0xde, 0x1f, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0xea, 0xde, 0x1f, 0x07, 0x73, 237 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x52, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x22, 238 0x0e, 0x0a, 0x0c, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 239 0x8d, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 240 0x72, 0x12, 0x22, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 241 0x09, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x06, 0x6c, 242 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 243 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6c, 0x6f, 0x6b, 0x69, 0x2e, 0x45, 0x6e, 244 0x74, 0x72, 0x79, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 245 0xea, 0xde, 0x1f, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x07, 0x65, 0x6e, 0x74, 246 0x72, 0x69, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 247 0x28, 0x04, 0x42, 0x05, 0xea, 0xde, 0x1f, 0x01, 0x2d, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 248 0x6b, 0x0a, 0x0c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x12, 249 0x3d, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 250 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6c, 0x6f, 0x6b, 0x69, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 251 0x61, 0x6d, 0x70, 0x42, 0x0e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x02, 0x74, 0x73, 0x90, 252 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 253 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xea, 0xde, 254 0x1f, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x32, 0x39, 0x0a, 0x06, 255 0x50, 0x75, 0x73, 0x68, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x04, 0x50, 0x75, 0x73, 0x68, 0x12, 0x11, 256 0x2e, 0x6c, 0x6f, 0x6b, 0x69, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 257 0x74, 0x1a, 0x12, 0x2e, 0x6c, 0x6f, 0x6b, 0x69, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 258 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x06, 0x5a, 0x04, 0x2f, 0x6c, 0x6f, 0x67, 0x62, 259 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 260 } 261 262 var ( 263 file_pkg_loki_push_proto_rawDescOnce sync.Once 264 file_pkg_loki_push_proto_rawDescData = file_pkg_loki_push_proto_rawDesc 265 ) 266 267 func file_pkg_loki_push_proto_rawDescGZIP() []byte { 268 file_pkg_loki_push_proto_rawDescOnce.Do(func() { 269 file_pkg_loki_push_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_loki_push_proto_rawDescData) 270 }) 271 return file_pkg_loki_push_proto_rawDescData 272 } 273 274 var file_pkg_loki_push_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 275 var file_pkg_loki_push_proto_goTypes = []interface{}{ 276 (*PushRequest)(nil), // 0: loki.PushRequest 277 (*PushResponse)(nil), // 1: loki.PushResponse 278 (*StreamAdapter)(nil), // 2: loki.StreamAdapter 279 (*EntryAdapter)(nil), // 3: loki.EntryAdapter 280 (*timestamppb.Timestamp)(nil), // 4: loki.Timestamp 281 } 282 var file_pkg_loki_push_proto_depIdxs = []int32{ 283 2, // 0: loki.PushRequest.streams:type_name -> loki.StreamAdapter 284 3, // 1: loki.StreamAdapter.entries:type_name -> loki.EntryAdapter 285 4, // 2: loki.EntryAdapter.timestamp:type_name -> loki.Timestamp 286 0, // 3: loki.Pusher.Push:input_type -> loki.PushRequest 287 1, // 4: loki.Pusher.Push:output_type -> loki.PushResponse 288 4, // [4:5] is the sub-list for method output_type 289 3, // [3:4] is the sub-list for method input_type 290 3, // [3:3] is the sub-list for extension type_name 291 3, // [3:3] is the sub-list for extension extendee 292 0, // [0:3] is the sub-list for field type_name 293 } 294 295 func init() { file_pkg_loki_push_proto_init() } 296 func file_pkg_loki_push_proto_init() { 297 if File_pkg_loki_push_proto != nil { 298 return 299 } 300 if !protoimpl.UnsafeEnabled { 301 file_pkg_loki_push_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 302 switch v := v.(*PushRequest); i { 303 case 0: 304 return &v.state 305 case 1: 306 return &v.sizeCache 307 case 2: 308 return &v.unknownFields 309 default: 310 return nil 311 } 312 } 313 file_pkg_loki_push_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 314 switch v := v.(*PushResponse); i { 315 case 0: 316 return &v.state 317 case 1: 318 return &v.sizeCache 319 case 2: 320 return &v.unknownFields 321 default: 322 return nil 323 } 324 } 325 file_pkg_loki_push_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 326 switch v := v.(*StreamAdapter); i { 327 case 0: 328 return &v.state 329 case 1: 330 return &v.sizeCache 331 case 2: 332 return &v.unknownFields 333 default: 334 return nil 335 } 336 } 337 file_pkg_loki_push_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 338 switch v := v.(*EntryAdapter); i { 339 case 0: 340 return &v.state 341 case 1: 342 return &v.sizeCache 343 case 2: 344 return &v.unknownFields 345 default: 346 return nil 347 } 348 } 349 } 350 type x struct{} 351 out := protoimpl.TypeBuilder{ 352 File: protoimpl.DescBuilder{ 353 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 354 RawDescriptor: file_pkg_loki_push_proto_rawDesc, 355 NumEnums: 0, 356 NumMessages: 4, 357 NumExtensions: 0, 358 NumServices: 1, 359 }, 360 GoTypes: file_pkg_loki_push_proto_goTypes, 361 DependencyIndexes: file_pkg_loki_push_proto_depIdxs, 362 MessageInfos: file_pkg_loki_push_proto_msgTypes, 363 }.Build() 364 File_pkg_loki_push_proto = out.File 365 file_pkg_loki_push_proto_rawDesc = nil 366 file_pkg_loki_push_proto_goTypes = nil 367 file_pkg_loki_push_proto_depIdxs = nil 368 }