github.com/kiali/kiali@v1.84.0/tracing/tempo/tempopb/resource/v1/resource.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: resource/v1/resource.proto 3 4 package v1 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 v1 "github.com/kiali/kiali/tracing/tempo/tempopb/common/v1" 10 io "io" 11 math "math" 12 math_bits "math/bits" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 25 26 // Resource information. 27 type Resource struct { 28 // Set of attributes that describe the resource. 29 // Attribute keys MUST be unique (it is not allowed to have more than one 30 // attribute with the same key). 31 Attributes []*v1.KeyValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` 32 // dropped_attributes_count is the number of dropped attributes. If the value is 0, then 33 // no attributes were dropped. 34 DroppedAttributesCount uint32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"` 35 } 36 37 func (m *Resource) Reset() { *m = Resource{} } 38 func (m *Resource) String() string { return proto.CompactTextString(m) } 39 func (*Resource) ProtoMessage() {} 40 func (*Resource) Descriptor() ([]byte, []int) { 41 return fileDescriptor_cebae6241f1ea243, []int{0} 42 } 43 func (m *Resource) XXX_Unmarshal(b []byte) error { 44 return m.Unmarshal(b) 45 } 46 func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 if deterministic { 48 return xxx_messageInfo_Resource.Marshal(b, m, deterministic) 49 } else { 50 b = b[:cap(b)] 51 n, err := m.MarshalToSizedBuffer(b) 52 if err != nil { 53 return nil, err 54 } 55 return b[:n], nil 56 } 57 } 58 func (m *Resource) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_Resource.Merge(m, src) 60 } 61 func (m *Resource) XXX_Size() int { 62 return m.Size() 63 } 64 func (m *Resource) XXX_DiscardUnknown() { 65 xxx_messageInfo_Resource.DiscardUnknown(m) 66 } 67 68 var xxx_messageInfo_Resource proto.InternalMessageInfo 69 70 func (m *Resource) GetAttributes() []*v1.KeyValue { 71 if m != nil { 72 return m.Attributes 73 } 74 return nil 75 } 76 77 func (m *Resource) GetDroppedAttributesCount() uint32 { 78 if m != nil { 79 return m.DroppedAttributesCount 80 } 81 return 0 82 } 83 84 func init() { 85 proto.RegisterType((*Resource)(nil), "tempopb.resource.v1.Resource") 86 } 87 88 func init() { proto.RegisterFile("resource/v1/resource.proto", fileDescriptor_cebae6241f1ea243) } 89 90 var fileDescriptor_cebae6241f1ea243 = []byte{ 91 // 254 bytes of a gzipped FileDescriptorProto 92 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x4a, 0x2d, 0xce, 93 0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x2f, 0x33, 0xd4, 0x87, 0xb1, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 94 0x85, 0x84, 0x4b, 0x52, 0x73, 0x0b, 0xf2, 0x0b, 0x92, 0xf4, 0xe0, 0xe2, 0x65, 0x86, 0x52, 0x62, 95 0xc9, 0xf9, 0xb9, 0xb9, 0xf9, 0x79, 0x20, 0xe5, 0x10, 0x16, 0x44, 0xb1, 0x52, 0x23, 0x23, 0x17, 96 0x47, 0x10, 0x54, 0x9d, 0x90, 0x35, 0x17, 0x57, 0x62, 0x49, 0x49, 0x51, 0x66, 0x52, 0x69, 0x49, 97 0x6a, 0xb1, 0x04, 0xa3, 0x02, 0xb3, 0x06, 0xb7, 0x91, 0xb4, 0x1e, 0xcc, 0x38, 0xa8, 0xbe, 0x32, 98 0x43, 0x3d, 0xef, 0xd4, 0xca, 0xb0, 0xc4, 0x9c, 0xd2, 0xd4, 0x20, 0x24, 0xe5, 0x42, 0x16, 0x5c, 99 0x12, 0x29, 0x45, 0xf9, 0x05, 0x05, 0xa9, 0x29, 0xf1, 0x08, 0xd1, 0xf8, 0xe4, 0xfc, 0xd2, 0xbc, 100 0x12, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xde, 0x20, 0x31, 0xa8, 0xbc, 0x23, 0x5c, 0xda, 0x19, 0x24, 101 0xeb, 0x54, 0x7f, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 102 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x5c, 0x4a, 0x99, 0xf9, 103 0x7a, 0xf9, 0x05, 0xa9, 0x79, 0x25, 0xa9, 0x39, 0xa9, 0xb9, 0xa9, 0x25, 0x45, 0x95, 0x10, 0x57, 104 0x23, 0xfb, 0xcc, 0x89, 0x17, 0xe6, 0xfc, 0x00, 0x90, 0x54, 0x00, 0x63, 0x94, 0x41, 0x7a, 0x66, 105 0x49, 0x46, 0x29, 0xd8, 0xbd, 0xfa, 0xe9, 0x45, 0x89, 0x69, 0x89, 0x79, 0x89, 0xfa, 0x60, 0x3f, 106 0xe8, 0x17, 0x64, 0xa7, 0xeb, 0x43, 0x7d, 0xa3, 0x8f, 0x14, 0x80, 0x49, 0x6c, 0x60, 0x53, 0x8d, 107 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x65, 0x97, 0x3d, 0x5e, 0x56, 0x01, 0x00, 0x00, 108 } 109 110 func (m *Resource) Marshal() (dAtA []byte, err error) { 111 size := m.Size() 112 dAtA = make([]byte, size) 113 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 114 if err != nil { 115 return nil, err 116 } 117 return dAtA[:n], nil 118 } 119 120 func (m *Resource) MarshalTo(dAtA []byte) (int, error) { 121 size := m.Size() 122 return m.MarshalToSizedBuffer(dAtA[:size]) 123 } 124 125 func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error) { 126 i := len(dAtA) 127 _ = i 128 var l int 129 _ = l 130 if m.DroppedAttributesCount != 0 { 131 i = encodeVarintResource(dAtA, i, uint64(m.DroppedAttributesCount)) 132 i-- 133 dAtA[i] = 0x10 134 } 135 if len(m.Attributes) > 0 { 136 for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { 137 { 138 size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 139 if err != nil { 140 return 0, err 141 } 142 i -= size 143 i = encodeVarintResource(dAtA, i, uint64(size)) 144 } 145 i-- 146 dAtA[i] = 0xa 147 } 148 } 149 return len(dAtA) - i, nil 150 } 151 152 func encodeVarintResource(dAtA []byte, offset int, v uint64) int { 153 offset -= sovResource(v) 154 base := offset 155 for v >= 1<<7 { 156 dAtA[offset] = uint8(v&0x7f | 0x80) 157 v >>= 7 158 offset++ 159 } 160 dAtA[offset] = uint8(v) 161 return base 162 } 163 func (m *Resource) Size() (n int) { 164 if m == nil { 165 return 0 166 } 167 var l int 168 _ = l 169 if len(m.Attributes) > 0 { 170 for _, e := range m.Attributes { 171 l = e.Size() 172 n += 1 + l + sovResource(uint64(l)) 173 } 174 } 175 if m.DroppedAttributesCount != 0 { 176 n += 1 + sovResource(uint64(m.DroppedAttributesCount)) 177 } 178 return n 179 } 180 181 func sovResource(x uint64) (n int) { 182 return (math_bits.Len64(x|1) + 6) / 7 183 } 184 func sozResource(x uint64) (n int) { 185 return sovResource(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 186 } 187 func (m *Resource) Unmarshal(dAtA []byte) error { 188 l := len(dAtA) 189 iNdEx := 0 190 for iNdEx < l { 191 preIndex := iNdEx 192 var wire uint64 193 for shift := uint(0); ; shift += 7 { 194 if shift >= 64 { 195 return ErrIntOverflowResource 196 } 197 if iNdEx >= l { 198 return io.ErrUnexpectedEOF 199 } 200 b := dAtA[iNdEx] 201 iNdEx++ 202 wire |= uint64(b&0x7F) << shift 203 if b < 0x80 { 204 break 205 } 206 } 207 fieldNum := int32(wire >> 3) 208 wireType := int(wire & 0x7) 209 if wireType == 4 { 210 return fmt.Errorf("proto: Resource: wiretype end group for non-group") 211 } 212 if fieldNum <= 0 { 213 return fmt.Errorf("proto: Resource: illegal tag %d (wire type %d)", fieldNum, wire) 214 } 215 switch fieldNum { 216 case 1: 217 if wireType != 2 { 218 return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) 219 } 220 var msglen int 221 for shift := uint(0); ; shift += 7 { 222 if shift >= 64 { 223 return ErrIntOverflowResource 224 } 225 if iNdEx >= l { 226 return io.ErrUnexpectedEOF 227 } 228 b := dAtA[iNdEx] 229 iNdEx++ 230 msglen |= int(b&0x7F) << shift 231 if b < 0x80 { 232 break 233 } 234 } 235 if msglen < 0 { 236 return ErrInvalidLengthResource 237 } 238 postIndex := iNdEx + msglen 239 if postIndex < 0 { 240 return ErrInvalidLengthResource 241 } 242 if postIndex > l { 243 return io.ErrUnexpectedEOF 244 } 245 m.Attributes = append(m.Attributes, &v1.KeyValue{}) 246 if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 247 return err 248 } 249 iNdEx = postIndex 250 case 2: 251 if wireType != 0 { 252 return fmt.Errorf("proto: wrong wireType = %d for field DroppedAttributesCount", wireType) 253 } 254 m.DroppedAttributesCount = 0 255 for shift := uint(0); ; shift += 7 { 256 if shift >= 64 { 257 return ErrIntOverflowResource 258 } 259 if iNdEx >= l { 260 return io.ErrUnexpectedEOF 261 } 262 b := dAtA[iNdEx] 263 iNdEx++ 264 m.DroppedAttributesCount |= uint32(b&0x7F) << shift 265 if b < 0x80 { 266 break 267 } 268 } 269 default: 270 iNdEx = preIndex 271 skippy, err := skipResource(dAtA[iNdEx:]) 272 if err != nil { 273 return err 274 } 275 if (skippy < 0) || (iNdEx+skippy) < 0 { 276 return ErrInvalidLengthResource 277 } 278 if (iNdEx + skippy) > l { 279 return io.ErrUnexpectedEOF 280 } 281 iNdEx += skippy 282 } 283 } 284 285 if iNdEx > l { 286 return io.ErrUnexpectedEOF 287 } 288 return nil 289 } 290 func skipResource(dAtA []byte) (n int, err error) { 291 l := len(dAtA) 292 iNdEx := 0 293 depth := 0 294 for iNdEx < l { 295 var wire uint64 296 for shift := uint(0); ; shift += 7 { 297 if shift >= 64 { 298 return 0, ErrIntOverflowResource 299 } 300 if iNdEx >= l { 301 return 0, io.ErrUnexpectedEOF 302 } 303 b := dAtA[iNdEx] 304 iNdEx++ 305 wire |= (uint64(b) & 0x7F) << shift 306 if b < 0x80 { 307 break 308 } 309 } 310 wireType := int(wire & 0x7) 311 switch wireType { 312 case 0: 313 for shift := uint(0); ; shift += 7 { 314 if shift >= 64 { 315 return 0, ErrIntOverflowResource 316 } 317 if iNdEx >= l { 318 return 0, io.ErrUnexpectedEOF 319 } 320 iNdEx++ 321 if dAtA[iNdEx-1] < 0x80 { 322 break 323 } 324 } 325 case 1: 326 iNdEx += 8 327 case 2: 328 var length int 329 for shift := uint(0); ; shift += 7 { 330 if shift >= 64 { 331 return 0, ErrIntOverflowResource 332 } 333 if iNdEx >= l { 334 return 0, io.ErrUnexpectedEOF 335 } 336 b := dAtA[iNdEx] 337 iNdEx++ 338 length |= (int(b) & 0x7F) << shift 339 if b < 0x80 { 340 break 341 } 342 } 343 if length < 0 { 344 return 0, ErrInvalidLengthResource 345 } 346 iNdEx += length 347 case 3: 348 depth++ 349 case 4: 350 if depth == 0 { 351 return 0, ErrUnexpectedEndOfGroupResource 352 } 353 depth-- 354 case 5: 355 iNdEx += 4 356 default: 357 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 358 } 359 if iNdEx < 0 { 360 return 0, ErrInvalidLengthResource 361 } 362 if depth == 0 { 363 return iNdEx, nil 364 } 365 } 366 return 0, io.ErrUnexpectedEOF 367 } 368 369 var ( 370 ErrInvalidLengthResource = fmt.Errorf("proto: negative length found during unmarshaling") 371 ErrIntOverflowResource = fmt.Errorf("proto: integer overflow") 372 ErrUnexpectedEndOfGroupResource = fmt.Errorf("proto: unexpected end of group") 373 )