github.com/cilium/cilium@v1.16.2/api/v1/flow/flow.pb.json.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Hubble 3 4 // Code generated by protoc-gen-go-json. DO NOT EDIT. 5 // source: flow/flow.proto 6 7 package flow 8 9 import ( 10 "google.golang.org/protobuf/encoding/protojson" 11 ) 12 13 // MarshalJSON implements json.Marshaler 14 func (msg *Flow) MarshalJSON() ([]byte, error) { 15 return protojson.MarshalOptions{ 16 UseProtoNames: true, 17 }.Marshal(msg) 18 } 19 20 // UnmarshalJSON implements json.Unmarshaler 21 func (msg *Flow) UnmarshalJSON(b []byte) error { 22 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 23 } 24 25 // MarshalJSON implements json.Marshaler 26 func (msg *Layer4) MarshalJSON() ([]byte, error) { 27 return protojson.MarshalOptions{ 28 UseProtoNames: true, 29 }.Marshal(msg) 30 } 31 32 // UnmarshalJSON implements json.Unmarshaler 33 func (msg *Layer4) UnmarshalJSON(b []byte) error { 34 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 35 } 36 37 // MarshalJSON implements json.Marshaler 38 func (msg *Layer7) MarshalJSON() ([]byte, error) { 39 return protojson.MarshalOptions{ 40 UseProtoNames: true, 41 }.Marshal(msg) 42 } 43 44 // UnmarshalJSON implements json.Unmarshaler 45 func (msg *Layer7) UnmarshalJSON(b []byte) error { 46 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 47 } 48 49 // MarshalJSON implements json.Marshaler 50 func (msg *TraceContext) MarshalJSON() ([]byte, error) { 51 return protojson.MarshalOptions{ 52 UseProtoNames: true, 53 }.Marshal(msg) 54 } 55 56 // UnmarshalJSON implements json.Unmarshaler 57 func (msg *TraceContext) UnmarshalJSON(b []byte) error { 58 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 59 } 60 61 // MarshalJSON implements json.Marshaler 62 func (msg *TraceParent) MarshalJSON() ([]byte, error) { 63 return protojson.MarshalOptions{ 64 UseProtoNames: true, 65 }.Marshal(msg) 66 } 67 68 // UnmarshalJSON implements json.Unmarshaler 69 func (msg *TraceParent) UnmarshalJSON(b []byte) error { 70 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 71 } 72 73 // MarshalJSON implements json.Marshaler 74 func (msg *Endpoint) MarshalJSON() ([]byte, error) { 75 return protojson.MarshalOptions{ 76 UseProtoNames: true, 77 }.Marshal(msg) 78 } 79 80 // UnmarshalJSON implements json.Unmarshaler 81 func (msg *Endpoint) UnmarshalJSON(b []byte) error { 82 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 83 } 84 85 // MarshalJSON implements json.Marshaler 86 func (msg *Workload) MarshalJSON() ([]byte, error) { 87 return protojson.MarshalOptions{ 88 UseProtoNames: true, 89 }.Marshal(msg) 90 } 91 92 // UnmarshalJSON implements json.Unmarshaler 93 func (msg *Workload) UnmarshalJSON(b []byte) error { 94 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 95 } 96 97 // MarshalJSON implements json.Marshaler 98 func (msg *TCP) MarshalJSON() ([]byte, error) { 99 return protojson.MarshalOptions{ 100 UseProtoNames: true, 101 }.Marshal(msg) 102 } 103 104 // UnmarshalJSON implements json.Unmarshaler 105 func (msg *TCP) UnmarshalJSON(b []byte) error { 106 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 107 } 108 109 // MarshalJSON implements json.Marshaler 110 func (msg *IP) MarshalJSON() ([]byte, error) { 111 return protojson.MarshalOptions{ 112 UseProtoNames: true, 113 }.Marshal(msg) 114 } 115 116 // UnmarshalJSON implements json.Unmarshaler 117 func (msg *IP) UnmarshalJSON(b []byte) error { 118 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 119 } 120 121 // MarshalJSON implements json.Marshaler 122 func (msg *Ethernet) MarshalJSON() ([]byte, error) { 123 return protojson.MarshalOptions{ 124 UseProtoNames: true, 125 }.Marshal(msg) 126 } 127 128 // UnmarshalJSON implements json.Unmarshaler 129 func (msg *Ethernet) UnmarshalJSON(b []byte) error { 130 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 131 } 132 133 // MarshalJSON implements json.Marshaler 134 func (msg *TCPFlags) MarshalJSON() ([]byte, error) { 135 return protojson.MarshalOptions{ 136 UseProtoNames: true, 137 }.Marshal(msg) 138 } 139 140 // UnmarshalJSON implements json.Unmarshaler 141 func (msg *TCPFlags) UnmarshalJSON(b []byte) error { 142 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 143 } 144 145 // MarshalJSON implements json.Marshaler 146 func (msg *UDP) MarshalJSON() ([]byte, error) { 147 return protojson.MarshalOptions{ 148 UseProtoNames: true, 149 }.Marshal(msg) 150 } 151 152 // UnmarshalJSON implements json.Unmarshaler 153 func (msg *UDP) UnmarshalJSON(b []byte) error { 154 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 155 } 156 157 // MarshalJSON implements json.Marshaler 158 func (msg *SCTP) MarshalJSON() ([]byte, error) { 159 return protojson.MarshalOptions{ 160 UseProtoNames: true, 161 }.Marshal(msg) 162 } 163 164 // UnmarshalJSON implements json.Unmarshaler 165 func (msg *SCTP) UnmarshalJSON(b []byte) error { 166 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 167 } 168 169 // MarshalJSON implements json.Marshaler 170 func (msg *ICMPv4) MarshalJSON() ([]byte, error) { 171 return protojson.MarshalOptions{ 172 UseProtoNames: true, 173 }.Marshal(msg) 174 } 175 176 // UnmarshalJSON implements json.Unmarshaler 177 func (msg *ICMPv4) UnmarshalJSON(b []byte) error { 178 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 179 } 180 181 // MarshalJSON implements json.Marshaler 182 func (msg *ICMPv6) MarshalJSON() ([]byte, error) { 183 return protojson.MarshalOptions{ 184 UseProtoNames: true, 185 }.Marshal(msg) 186 } 187 188 // UnmarshalJSON implements json.Unmarshaler 189 func (msg *ICMPv6) UnmarshalJSON(b []byte) error { 190 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 191 } 192 193 // MarshalJSON implements json.Marshaler 194 func (msg *Policy) MarshalJSON() ([]byte, error) { 195 return protojson.MarshalOptions{ 196 UseProtoNames: true, 197 }.Marshal(msg) 198 } 199 200 // UnmarshalJSON implements json.Unmarshaler 201 func (msg *Policy) UnmarshalJSON(b []byte) error { 202 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 203 } 204 205 // MarshalJSON implements json.Marshaler 206 func (msg *EventTypeFilter) MarshalJSON() ([]byte, error) { 207 return protojson.MarshalOptions{ 208 UseProtoNames: true, 209 }.Marshal(msg) 210 } 211 212 // UnmarshalJSON implements json.Unmarshaler 213 func (msg *EventTypeFilter) UnmarshalJSON(b []byte) error { 214 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 215 } 216 217 // MarshalJSON implements json.Marshaler 218 func (msg *CiliumEventType) MarshalJSON() ([]byte, error) { 219 return protojson.MarshalOptions{ 220 UseProtoNames: true, 221 }.Marshal(msg) 222 } 223 224 // UnmarshalJSON implements json.Unmarshaler 225 func (msg *CiliumEventType) UnmarshalJSON(b []byte) error { 226 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 227 } 228 229 // MarshalJSON implements json.Marshaler 230 func (msg *FlowFilter) MarshalJSON() ([]byte, error) { 231 return protojson.MarshalOptions{ 232 UseProtoNames: true, 233 }.Marshal(msg) 234 } 235 236 // UnmarshalJSON implements json.Unmarshaler 237 func (msg *FlowFilter) UnmarshalJSON(b []byte) error { 238 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 239 } 240 241 // MarshalJSON implements json.Marshaler 242 func (msg *FlowFilter_Experimental) MarshalJSON() ([]byte, error) { 243 return protojson.MarshalOptions{ 244 UseProtoNames: true, 245 }.Marshal(msg) 246 } 247 248 // UnmarshalJSON implements json.Unmarshaler 249 func (msg *FlowFilter_Experimental) UnmarshalJSON(b []byte) error { 250 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 251 } 252 253 // MarshalJSON implements json.Marshaler 254 func (msg *DNS) MarshalJSON() ([]byte, error) { 255 return protojson.MarshalOptions{ 256 UseProtoNames: true, 257 }.Marshal(msg) 258 } 259 260 // UnmarshalJSON implements json.Unmarshaler 261 func (msg *DNS) UnmarshalJSON(b []byte) error { 262 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 263 } 264 265 // MarshalJSON implements json.Marshaler 266 func (msg *HTTPHeader) MarshalJSON() ([]byte, error) { 267 return protojson.MarshalOptions{ 268 UseProtoNames: true, 269 }.Marshal(msg) 270 } 271 272 // UnmarshalJSON implements json.Unmarshaler 273 func (msg *HTTPHeader) UnmarshalJSON(b []byte) error { 274 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 275 } 276 277 // MarshalJSON implements json.Marshaler 278 func (msg *HTTP) MarshalJSON() ([]byte, error) { 279 return protojson.MarshalOptions{ 280 UseProtoNames: true, 281 }.Marshal(msg) 282 } 283 284 // UnmarshalJSON implements json.Unmarshaler 285 func (msg *HTTP) UnmarshalJSON(b []byte) error { 286 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 287 } 288 289 // MarshalJSON implements json.Marshaler 290 func (msg *Kafka) MarshalJSON() ([]byte, error) { 291 return protojson.MarshalOptions{ 292 UseProtoNames: true, 293 }.Marshal(msg) 294 } 295 296 // UnmarshalJSON implements json.Unmarshaler 297 func (msg *Kafka) UnmarshalJSON(b []byte) error { 298 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 299 } 300 301 // MarshalJSON implements json.Marshaler 302 func (msg *Service) MarshalJSON() ([]byte, error) { 303 return protojson.MarshalOptions{ 304 UseProtoNames: true, 305 }.Marshal(msg) 306 } 307 308 // UnmarshalJSON implements json.Unmarshaler 309 func (msg *Service) UnmarshalJSON(b []byte) error { 310 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 311 } 312 313 // MarshalJSON implements json.Marshaler 314 func (msg *LostEvent) MarshalJSON() ([]byte, error) { 315 return protojson.MarshalOptions{ 316 UseProtoNames: true, 317 }.Marshal(msg) 318 } 319 320 // UnmarshalJSON implements json.Unmarshaler 321 func (msg *LostEvent) UnmarshalJSON(b []byte) error { 322 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 323 } 324 325 // MarshalJSON implements json.Marshaler 326 func (msg *AgentEvent) MarshalJSON() ([]byte, error) { 327 return protojson.MarshalOptions{ 328 UseProtoNames: true, 329 }.Marshal(msg) 330 } 331 332 // UnmarshalJSON implements json.Unmarshaler 333 func (msg *AgentEvent) UnmarshalJSON(b []byte) error { 334 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 335 } 336 337 // MarshalJSON implements json.Marshaler 338 func (msg *AgentEventUnknown) MarshalJSON() ([]byte, error) { 339 return protojson.MarshalOptions{ 340 UseProtoNames: true, 341 }.Marshal(msg) 342 } 343 344 // UnmarshalJSON implements json.Unmarshaler 345 func (msg *AgentEventUnknown) UnmarshalJSON(b []byte) error { 346 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 347 } 348 349 // MarshalJSON implements json.Marshaler 350 func (msg *TimeNotification) MarshalJSON() ([]byte, error) { 351 return protojson.MarshalOptions{ 352 UseProtoNames: true, 353 }.Marshal(msg) 354 } 355 356 // UnmarshalJSON implements json.Unmarshaler 357 func (msg *TimeNotification) UnmarshalJSON(b []byte) error { 358 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 359 } 360 361 // MarshalJSON implements json.Marshaler 362 func (msg *PolicyUpdateNotification) MarshalJSON() ([]byte, error) { 363 return protojson.MarshalOptions{ 364 UseProtoNames: true, 365 }.Marshal(msg) 366 } 367 368 // UnmarshalJSON implements json.Unmarshaler 369 func (msg *PolicyUpdateNotification) UnmarshalJSON(b []byte) error { 370 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 371 } 372 373 // MarshalJSON implements json.Marshaler 374 func (msg *EndpointRegenNotification) MarshalJSON() ([]byte, error) { 375 return protojson.MarshalOptions{ 376 UseProtoNames: true, 377 }.Marshal(msg) 378 } 379 380 // UnmarshalJSON implements json.Unmarshaler 381 func (msg *EndpointRegenNotification) UnmarshalJSON(b []byte) error { 382 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 383 } 384 385 // MarshalJSON implements json.Marshaler 386 func (msg *EndpointUpdateNotification) MarshalJSON() ([]byte, error) { 387 return protojson.MarshalOptions{ 388 UseProtoNames: true, 389 }.Marshal(msg) 390 } 391 392 // UnmarshalJSON implements json.Unmarshaler 393 func (msg *EndpointUpdateNotification) UnmarshalJSON(b []byte) error { 394 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 395 } 396 397 // MarshalJSON implements json.Marshaler 398 func (msg *IPCacheNotification) MarshalJSON() ([]byte, error) { 399 return protojson.MarshalOptions{ 400 UseProtoNames: true, 401 }.Marshal(msg) 402 } 403 404 // UnmarshalJSON implements json.Unmarshaler 405 func (msg *IPCacheNotification) UnmarshalJSON(b []byte) error { 406 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 407 } 408 409 // MarshalJSON implements json.Marshaler 410 func (msg *ServiceUpsertNotificationAddr) MarshalJSON() ([]byte, error) { 411 return protojson.MarshalOptions{ 412 UseProtoNames: true, 413 }.Marshal(msg) 414 } 415 416 // UnmarshalJSON implements json.Unmarshaler 417 func (msg *ServiceUpsertNotificationAddr) UnmarshalJSON(b []byte) error { 418 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 419 } 420 421 // MarshalJSON implements json.Marshaler 422 func (msg *ServiceUpsertNotification) MarshalJSON() ([]byte, error) { 423 return protojson.MarshalOptions{ 424 UseProtoNames: true, 425 }.Marshal(msg) 426 } 427 428 // UnmarshalJSON implements json.Unmarshaler 429 func (msg *ServiceUpsertNotification) UnmarshalJSON(b []byte) error { 430 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 431 } 432 433 // MarshalJSON implements json.Marshaler 434 func (msg *ServiceDeleteNotification) MarshalJSON() ([]byte, error) { 435 return protojson.MarshalOptions{ 436 UseProtoNames: true, 437 }.Marshal(msg) 438 } 439 440 // UnmarshalJSON implements json.Unmarshaler 441 func (msg *ServiceDeleteNotification) UnmarshalJSON(b []byte) error { 442 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 443 } 444 445 // MarshalJSON implements json.Marshaler 446 func (msg *NetworkInterface) MarshalJSON() ([]byte, error) { 447 return protojson.MarshalOptions{ 448 UseProtoNames: true, 449 }.Marshal(msg) 450 } 451 452 // UnmarshalJSON implements json.Unmarshaler 453 func (msg *NetworkInterface) UnmarshalJSON(b []byte) error { 454 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 455 } 456 457 // MarshalJSON implements json.Marshaler 458 func (msg *DebugEvent) MarshalJSON() ([]byte, error) { 459 return protojson.MarshalOptions{ 460 UseProtoNames: true, 461 }.Marshal(msg) 462 } 463 464 // UnmarshalJSON implements json.Unmarshaler 465 func (msg *DebugEvent) UnmarshalJSON(b []byte) error { 466 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 467 }