github.com/cloudwan/edgelq-sdk@v1.15.4/logging/resources/v1alpha2/common/common.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/logging/proto/v1alpha2/common.proto 3 // DO NOT EDIT!!! 4 5 package common 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var ( 25 _ = fmt.Errorf 26 _ = reflect.Method{} 27 _ = sync.Once{} 28 29 _ = protojson.MarshalOptions{} 30 _ = proto.MarshalOptions{} 31 _ = preflect.Value{} 32 _ = protoimpl.DescBuilder{} 33 ) 34 35 // make sure we're using proto imports 36 var ( 37 _ = ×tamppb.Timestamp{} 38 ) 39 40 const ( 41 // Verify that this generated code is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 43 // Verify that runtime/protoimpl is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 45 ) 46 47 type LabelDescriptor struct { 48 state protoimpl.MessageState 49 sizeCache protoimpl.SizeCache 50 unknownFields protoimpl.UnknownFields 51 // The label key. 52 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 53 // Label description 54 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 55 } 56 57 func (m *LabelDescriptor) Reset() { 58 *m = LabelDescriptor{} 59 if protoimpl.UnsafeEnabled { 60 mi := &edgelq_logging_proto_v1alpha2_common_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 62 ms.StoreMessageInfo(mi) 63 } 64 } 65 66 func (m *LabelDescriptor) String() string { 67 return protoimpl.X.MessageStringOf(m) 68 } 69 70 func (*LabelDescriptor) ProtoMessage() {} 71 72 func (m *LabelDescriptor) ProtoReflect() preflect.Message { 73 mi := &edgelq_logging_proto_v1alpha2_common_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && m != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(m) 82 } 83 84 func (*LabelDescriptor) GotenMessage() {} 85 86 // Deprecated, Use LabelDescriptor.ProtoReflect.Descriptor instead. 87 func (*LabelDescriptor) Descriptor() ([]byte, []int) { 88 return edgelq_logging_proto_v1alpha2_common_proto_rawDescGZIP(), []int{0} 89 } 90 91 func (m *LabelDescriptor) Unmarshal(b []byte) error { 92 return proto.Unmarshal(b, m) 93 } 94 95 func (m *LabelDescriptor) Marshal() ([]byte, error) { 96 return proto.Marshal(m) 97 } 98 99 func (m *LabelDescriptor) MarshalJSON() ([]byte, error) { 100 return protojson.MarshalOptions{}.Marshal(m) 101 } 102 103 func (m *LabelDescriptor) UnmarshalJSON(data []byte) error { 104 return protojson.Unmarshal(data, m) 105 } 106 107 func (m *LabelDescriptor) GetKey() string { 108 if m != nil { 109 return m.Key 110 } 111 return "" 112 } 113 114 func (m *LabelDescriptor) GetDescription() string { 115 if m != nil { 116 return m.Description 117 } 118 return "" 119 } 120 121 func (m *LabelDescriptor) SetKey(fv string) { 122 if m == nil { 123 panic(fmt.Errorf("can't set %s on nil %s", "Key", "LabelDescriptor")) 124 } 125 m.Key = fv 126 } 127 128 func (m *LabelDescriptor) SetDescription(fv string) { 129 if m == nil { 130 panic(fmt.Errorf("can't set %s on nil %s", "Description", "LabelDescriptor")) 131 } 132 m.Description = fv 133 } 134 135 // LabelKeySet is used for defining PromotedLabelKeySets 136 type LabelKeySet struct { 137 state protoimpl.MessageState 138 sizeCache protoimpl.SizeCache 139 unknownFields protoimpl.UnknownFields 140 LabelKeys []string `protobuf:"bytes,1,rep,name=label_keys,json=labelKeys,proto3" json:"label_keys,omitempty"` 141 } 142 143 func (m *LabelKeySet) Reset() { 144 *m = LabelKeySet{} 145 if protoimpl.UnsafeEnabled { 146 mi := &edgelq_logging_proto_v1alpha2_common_proto_msgTypes[1] 147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 148 ms.StoreMessageInfo(mi) 149 } 150 } 151 152 func (m *LabelKeySet) String() string { 153 return protoimpl.X.MessageStringOf(m) 154 } 155 156 func (*LabelKeySet) ProtoMessage() {} 157 158 func (m *LabelKeySet) ProtoReflect() preflect.Message { 159 mi := &edgelq_logging_proto_v1alpha2_common_proto_msgTypes[1] 160 if protoimpl.UnsafeEnabled && m != nil { 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 162 if ms.LoadMessageInfo() == nil { 163 ms.StoreMessageInfo(mi) 164 } 165 return ms 166 } 167 return mi.MessageOf(m) 168 } 169 170 func (*LabelKeySet) GotenMessage() {} 171 172 // Deprecated, Use LabelKeySet.ProtoReflect.Descriptor instead. 173 func (*LabelKeySet) Descriptor() ([]byte, []int) { 174 return edgelq_logging_proto_v1alpha2_common_proto_rawDescGZIP(), []int{1} 175 } 176 177 func (m *LabelKeySet) Unmarshal(b []byte) error { 178 return proto.Unmarshal(b, m) 179 } 180 181 func (m *LabelKeySet) Marshal() ([]byte, error) { 182 return proto.Marshal(m) 183 } 184 185 func (m *LabelKeySet) MarshalJSON() ([]byte, error) { 186 return protojson.MarshalOptions{}.Marshal(m) 187 } 188 189 func (m *LabelKeySet) UnmarshalJSON(data []byte) error { 190 return protojson.Unmarshal(data, m) 191 } 192 193 func (m *LabelKeySet) GetLabelKeys() []string { 194 if m != nil { 195 return m.LabelKeys 196 } 197 return nil 198 } 199 200 func (m *LabelKeySet) SetLabelKeys(fv []string) { 201 if m == nil { 202 panic(fmt.Errorf("can't set %s on nil %s", "LabelKeys", "LabelKeySet")) 203 } 204 m.LabelKeys = fv 205 } 206 207 // A time interval extending just after a start time through an end time. 208 // If the start time is the same as the end time, then the interval 209 // represents a single point in time. 210 type TimeInterval struct { 211 state protoimpl.MessageState 212 sizeCache protoimpl.SizeCache 213 unknownFields protoimpl.UnknownFields 214 // Optional - end of the time interval. If not provided, current 215 // time will be assumed. 216 EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` 217 // Required. The beginning of the time interval. The start time must not be 218 // later than the end time. 219 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` 220 } 221 222 func (m *TimeInterval) Reset() { 223 *m = TimeInterval{} 224 if protoimpl.UnsafeEnabled { 225 mi := &edgelq_logging_proto_v1alpha2_common_proto_msgTypes[2] 226 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 227 ms.StoreMessageInfo(mi) 228 } 229 } 230 231 func (m *TimeInterval) String() string { 232 return protoimpl.X.MessageStringOf(m) 233 } 234 235 func (*TimeInterval) ProtoMessage() {} 236 237 func (m *TimeInterval) ProtoReflect() preflect.Message { 238 mi := &edgelq_logging_proto_v1alpha2_common_proto_msgTypes[2] 239 if protoimpl.UnsafeEnabled && m != nil { 240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 241 if ms.LoadMessageInfo() == nil { 242 ms.StoreMessageInfo(mi) 243 } 244 return ms 245 } 246 return mi.MessageOf(m) 247 } 248 249 func (*TimeInterval) GotenMessage() {} 250 251 // Deprecated, Use TimeInterval.ProtoReflect.Descriptor instead. 252 func (*TimeInterval) Descriptor() ([]byte, []int) { 253 return edgelq_logging_proto_v1alpha2_common_proto_rawDescGZIP(), []int{2} 254 } 255 256 func (m *TimeInterval) Unmarshal(b []byte) error { 257 return proto.Unmarshal(b, m) 258 } 259 260 func (m *TimeInterval) Marshal() ([]byte, error) { 261 return proto.Marshal(m) 262 } 263 264 func (m *TimeInterval) MarshalJSON() ([]byte, error) { 265 return protojson.MarshalOptions{}.Marshal(m) 266 } 267 268 func (m *TimeInterval) UnmarshalJSON(data []byte) error { 269 return protojson.Unmarshal(data, m) 270 } 271 272 func (m *TimeInterval) GetEndTime() *timestamppb.Timestamp { 273 if m != nil { 274 return m.EndTime 275 } 276 return nil 277 } 278 279 func (m *TimeInterval) GetStartTime() *timestamppb.Timestamp { 280 if m != nil { 281 return m.StartTime 282 } 283 return nil 284 } 285 286 func (m *TimeInterval) SetEndTime(fv *timestamppb.Timestamp) { 287 if m == nil { 288 panic(fmt.Errorf("can't set %s on nil %s", "EndTime", "TimeInterval")) 289 } 290 m.EndTime = fv 291 } 292 293 func (m *TimeInterval) SetStartTime(fv *timestamppb.Timestamp) { 294 if m == nil { 295 panic(fmt.Errorf("can't set %s on nil %s", "StartTime", "TimeInterval")) 296 } 297 m.StartTime = fv 298 } 299 300 var edgelq_logging_proto_v1alpha2_common_proto preflect.FileDescriptor 301 302 var edgelq_logging_proto_v1alpha2_common_proto_rawDesc = []byte{ 303 0x0a, 0x2a, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 304 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 305 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6e, 0x74, 306 0x74, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 307 0x61, 0x32, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 308 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 309 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 310 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 311 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 312 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 313 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 314 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 315 0x6e, 0x0a, 0x0f, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 316 0x6f, 0x72, 0x12, 0x39, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 317 0x27, 0xca, 0xc6, 0x27, 0x23, 0x2a, 0x21, 0x52, 0x1f, 0x42, 0x1d, 0x5e, 0x5b, 0x5f, 0x41, 0x2d, 318 0x5a, 0x61, 0x2d, 0x7a, 0x5d, 0x5b, 0x5f, 0x41, 0x2d, 0x5a, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 319 0x5d, 0x7b, 0x30, 0x2c, 0x36, 0x33, 0x7d, 0x24, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 320 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 321 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 322 0x2c, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x74, 0x12, 0x1d, 323 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 324 0x28, 0x09, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x8a, 0x01, 325 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x35, 326 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 327 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 328 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 329 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 330 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 331 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 332 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xca, 0xc6, 0x27, 0x04, 0x62, 0x02, 0x08, 0x01, 0x52, 333 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x6e, 0xe8, 0xde, 0x21, 0x01, 334 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 335 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0b, 0x43, 336 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 337 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 338 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 339 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 340 0x68, 0x61, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 341 0x6f, 0x33, 342 } 343 344 var ( 345 edgelq_logging_proto_v1alpha2_common_proto_rawDescOnce sync.Once 346 edgelq_logging_proto_v1alpha2_common_proto_rawDescData = edgelq_logging_proto_v1alpha2_common_proto_rawDesc 347 ) 348 349 func edgelq_logging_proto_v1alpha2_common_proto_rawDescGZIP() []byte { 350 edgelq_logging_proto_v1alpha2_common_proto_rawDescOnce.Do(func() { 351 edgelq_logging_proto_v1alpha2_common_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_logging_proto_v1alpha2_common_proto_rawDescData) 352 }) 353 return edgelq_logging_proto_v1alpha2_common_proto_rawDescData 354 } 355 356 var edgelq_logging_proto_v1alpha2_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 357 var edgelq_logging_proto_v1alpha2_common_proto_goTypes = []interface{}{ 358 (*LabelDescriptor)(nil), // 0: ntt.logging.v1alpha2.LabelDescriptor 359 (*LabelKeySet)(nil), // 1: ntt.logging.v1alpha2.LabelKeySet 360 (*TimeInterval)(nil), // 2: ntt.logging.v1alpha2.TimeInterval 361 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp 362 } 363 var edgelq_logging_proto_v1alpha2_common_proto_depIdxs = []int32{ 364 3, // 0: ntt.logging.v1alpha2.TimeInterval.end_time:type_name -> google.protobuf.Timestamp 365 3, // 1: ntt.logging.v1alpha2.TimeInterval.start_time:type_name -> google.protobuf.Timestamp 366 2, // [2:2] is the sub-list for method output_type 367 2, // [2:2] is the sub-list for method input_type 368 2, // [2:2] is the sub-list for extension type_name 369 2, // [2:2] is the sub-list for extension extendee 370 0, // [0:2] is the sub-list for field type_name 371 } 372 373 func init() { edgelq_logging_proto_v1alpha2_common_proto_init() } 374 func edgelq_logging_proto_v1alpha2_common_proto_init() { 375 if edgelq_logging_proto_v1alpha2_common_proto != nil { 376 return 377 } 378 if !protoimpl.UnsafeEnabled { 379 380 edgelq_logging_proto_v1alpha2_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 381 switch v := v.(*LabelDescriptor); i { 382 case 0: 383 return &v.state 384 case 1: 385 return &v.sizeCache 386 case 2: 387 return &v.unknownFields 388 default: 389 return nil 390 } 391 } 392 edgelq_logging_proto_v1alpha2_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 393 switch v := v.(*LabelKeySet); i { 394 case 0: 395 return &v.state 396 case 1: 397 return &v.sizeCache 398 case 2: 399 return &v.unknownFields 400 default: 401 return nil 402 } 403 } 404 edgelq_logging_proto_v1alpha2_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 405 switch v := v.(*TimeInterval); i { 406 case 0: 407 return &v.state 408 case 1: 409 return &v.sizeCache 410 case 2: 411 return &v.unknownFields 412 default: 413 return nil 414 } 415 } 416 } 417 418 type x struct{} 419 out := protoimpl.TypeBuilder{ 420 File: protoimpl.DescBuilder{ 421 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 422 RawDescriptor: edgelq_logging_proto_v1alpha2_common_proto_rawDesc, 423 NumEnums: 0, 424 NumMessages: 3, 425 NumExtensions: 0, 426 NumServices: 0, 427 }, 428 GoTypes: edgelq_logging_proto_v1alpha2_common_proto_goTypes, 429 DependencyIndexes: edgelq_logging_proto_v1alpha2_common_proto_depIdxs, 430 MessageInfos: edgelq_logging_proto_v1alpha2_common_proto_msgTypes, 431 }.Build() 432 edgelq_logging_proto_v1alpha2_common_proto = out.File 433 edgelq_logging_proto_v1alpha2_common_proto_rawDesc = nil 434 edgelq_logging_proto_v1alpha2_common_proto_goTypes = nil 435 edgelq_logging_proto_v1alpha2_common_proto_depIdxs = nil 436 }