github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/data/tap/v2alpha/transport.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/data/tap/v2alpha/transport.proto 6 7 package envoy_data_tap_v2alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 core "github.com/hxx258456/ccgo/go-control-plane/envoy/api/v2/core" 12 proto "github.com/golang/protobuf/proto" 13 timestamp "github.com/golang/protobuf/ptypes/timestamp" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Connection properties. 32 type Connection struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // Local address. 38 LocalAddress *core.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` 39 // Remote address. 40 RemoteAddress *core.Address `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` 41 } 42 43 func (x *Connection) Reset() { 44 *x = Connection{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *Connection) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*Connection) ProtoMessage() {} 57 58 func (x *Connection) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use Connection.ProtoReflect.Descriptor instead. 71 func (*Connection) Descriptor() ([]byte, []int) { 72 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *Connection) GetLocalAddress() *core.Address { 76 if x != nil { 77 return x.LocalAddress 78 } 79 return nil 80 } 81 82 func (x *Connection) GetRemoteAddress() *core.Address { 83 if x != nil { 84 return x.RemoteAddress 85 } 86 return nil 87 } 88 89 // Event in a socket trace. 90 type SocketEvent struct { 91 state protoimpl.MessageState 92 sizeCache protoimpl.SizeCache 93 unknownFields protoimpl.UnknownFields 94 95 // Timestamp for event. 96 Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 97 // Read or write with content as bytes string. 98 // 99 // Types that are assignable to EventSelector: 100 // *SocketEvent_Read_ 101 // *SocketEvent_Write_ 102 // *SocketEvent_Closed_ 103 EventSelector isSocketEvent_EventSelector `protobuf_oneof:"event_selector"` 104 } 105 106 func (x *SocketEvent) Reset() { 107 *x = SocketEvent{} 108 if protoimpl.UnsafeEnabled { 109 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[1] 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 ms.StoreMessageInfo(mi) 112 } 113 } 114 115 func (x *SocketEvent) String() string { 116 return protoimpl.X.MessageStringOf(x) 117 } 118 119 func (*SocketEvent) ProtoMessage() {} 120 121 func (x *SocketEvent) ProtoReflect() protoreflect.Message { 122 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[1] 123 if protoimpl.UnsafeEnabled && x != nil { 124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 125 if ms.LoadMessageInfo() == nil { 126 ms.StoreMessageInfo(mi) 127 } 128 return ms 129 } 130 return mi.MessageOf(x) 131 } 132 133 // Deprecated: Use SocketEvent.ProtoReflect.Descriptor instead. 134 func (*SocketEvent) Descriptor() ([]byte, []int) { 135 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{1} 136 } 137 138 func (x *SocketEvent) GetTimestamp() *timestamp.Timestamp { 139 if x != nil { 140 return x.Timestamp 141 } 142 return nil 143 } 144 145 func (m *SocketEvent) GetEventSelector() isSocketEvent_EventSelector { 146 if m != nil { 147 return m.EventSelector 148 } 149 return nil 150 } 151 152 func (x *SocketEvent) GetRead() *SocketEvent_Read { 153 if x, ok := x.GetEventSelector().(*SocketEvent_Read_); ok { 154 return x.Read 155 } 156 return nil 157 } 158 159 func (x *SocketEvent) GetWrite() *SocketEvent_Write { 160 if x, ok := x.GetEventSelector().(*SocketEvent_Write_); ok { 161 return x.Write 162 } 163 return nil 164 } 165 166 func (x *SocketEvent) GetClosed() *SocketEvent_Closed { 167 if x, ok := x.GetEventSelector().(*SocketEvent_Closed_); ok { 168 return x.Closed 169 } 170 return nil 171 } 172 173 type isSocketEvent_EventSelector interface { 174 isSocketEvent_EventSelector() 175 } 176 177 type SocketEvent_Read_ struct { 178 Read *SocketEvent_Read `protobuf:"bytes,2,opt,name=read,proto3,oneof"` 179 } 180 181 type SocketEvent_Write_ struct { 182 Write *SocketEvent_Write `protobuf:"bytes,3,opt,name=write,proto3,oneof"` 183 } 184 185 type SocketEvent_Closed_ struct { 186 Closed *SocketEvent_Closed `protobuf:"bytes,4,opt,name=closed,proto3,oneof"` 187 } 188 189 func (*SocketEvent_Read_) isSocketEvent_EventSelector() {} 190 191 func (*SocketEvent_Write_) isSocketEvent_EventSelector() {} 192 193 func (*SocketEvent_Closed_) isSocketEvent_EventSelector() {} 194 195 // Sequence of read/write events that constitute a buffered trace on a socket. 196 // [#next-free-field: 6] 197 type SocketBufferedTrace struct { 198 state protoimpl.MessageState 199 sizeCache protoimpl.SizeCache 200 unknownFields protoimpl.UnknownFields 201 202 // Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used 203 // for long term stable uniqueness. Matches connection IDs used in Envoy logs. 204 TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` 205 // Connection properties. 206 Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"` 207 // Sequence of observed events. 208 Events []*SocketEvent `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` 209 // Set to true if read events were truncated due to the :ref:`max_buffered_rx_bytes 210 // <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` setting. 211 ReadTruncated bool `protobuf:"varint,4,opt,name=read_truncated,json=readTruncated,proto3" json:"read_truncated,omitempty"` 212 // Set to true if write events were truncated due to the :ref:`max_buffered_tx_bytes 213 // <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` setting. 214 WriteTruncated bool `protobuf:"varint,5,opt,name=write_truncated,json=writeTruncated,proto3" json:"write_truncated,omitempty"` 215 } 216 217 func (x *SocketBufferedTrace) Reset() { 218 *x = SocketBufferedTrace{} 219 if protoimpl.UnsafeEnabled { 220 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[2] 221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 222 ms.StoreMessageInfo(mi) 223 } 224 } 225 226 func (x *SocketBufferedTrace) String() string { 227 return protoimpl.X.MessageStringOf(x) 228 } 229 230 func (*SocketBufferedTrace) ProtoMessage() {} 231 232 func (x *SocketBufferedTrace) ProtoReflect() protoreflect.Message { 233 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[2] 234 if protoimpl.UnsafeEnabled && x != nil { 235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 236 if ms.LoadMessageInfo() == nil { 237 ms.StoreMessageInfo(mi) 238 } 239 return ms 240 } 241 return mi.MessageOf(x) 242 } 243 244 // Deprecated: Use SocketBufferedTrace.ProtoReflect.Descriptor instead. 245 func (*SocketBufferedTrace) Descriptor() ([]byte, []int) { 246 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{2} 247 } 248 249 func (x *SocketBufferedTrace) GetTraceId() uint64 { 250 if x != nil { 251 return x.TraceId 252 } 253 return 0 254 } 255 256 func (x *SocketBufferedTrace) GetConnection() *Connection { 257 if x != nil { 258 return x.Connection 259 } 260 return nil 261 } 262 263 func (x *SocketBufferedTrace) GetEvents() []*SocketEvent { 264 if x != nil { 265 return x.Events 266 } 267 return nil 268 } 269 270 func (x *SocketBufferedTrace) GetReadTruncated() bool { 271 if x != nil { 272 return x.ReadTruncated 273 } 274 return false 275 } 276 277 func (x *SocketBufferedTrace) GetWriteTruncated() bool { 278 if x != nil { 279 return x.WriteTruncated 280 } 281 return false 282 } 283 284 // A streamed socket trace segment. Multiple segments make up a full trace. 285 type SocketStreamedTraceSegment struct { 286 state protoimpl.MessageState 287 sizeCache protoimpl.SizeCache 288 unknownFields protoimpl.UnknownFields 289 290 // Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used 291 // for long term stable uniqueness. Matches connection IDs used in Envoy logs. 292 TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` 293 // Types that are assignable to MessagePiece: 294 // *SocketStreamedTraceSegment_Connection 295 // *SocketStreamedTraceSegment_Event 296 MessagePiece isSocketStreamedTraceSegment_MessagePiece `protobuf_oneof:"message_piece"` 297 } 298 299 func (x *SocketStreamedTraceSegment) Reset() { 300 *x = SocketStreamedTraceSegment{} 301 if protoimpl.UnsafeEnabled { 302 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[3] 303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 304 ms.StoreMessageInfo(mi) 305 } 306 } 307 308 func (x *SocketStreamedTraceSegment) String() string { 309 return protoimpl.X.MessageStringOf(x) 310 } 311 312 func (*SocketStreamedTraceSegment) ProtoMessage() {} 313 314 func (x *SocketStreamedTraceSegment) ProtoReflect() protoreflect.Message { 315 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[3] 316 if protoimpl.UnsafeEnabled && x != nil { 317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 318 if ms.LoadMessageInfo() == nil { 319 ms.StoreMessageInfo(mi) 320 } 321 return ms 322 } 323 return mi.MessageOf(x) 324 } 325 326 // Deprecated: Use SocketStreamedTraceSegment.ProtoReflect.Descriptor instead. 327 func (*SocketStreamedTraceSegment) Descriptor() ([]byte, []int) { 328 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{3} 329 } 330 331 func (x *SocketStreamedTraceSegment) GetTraceId() uint64 { 332 if x != nil { 333 return x.TraceId 334 } 335 return 0 336 } 337 338 func (m *SocketStreamedTraceSegment) GetMessagePiece() isSocketStreamedTraceSegment_MessagePiece { 339 if m != nil { 340 return m.MessagePiece 341 } 342 return nil 343 } 344 345 func (x *SocketStreamedTraceSegment) GetConnection() *Connection { 346 if x, ok := x.GetMessagePiece().(*SocketStreamedTraceSegment_Connection); ok { 347 return x.Connection 348 } 349 return nil 350 } 351 352 func (x *SocketStreamedTraceSegment) GetEvent() *SocketEvent { 353 if x, ok := x.GetMessagePiece().(*SocketStreamedTraceSegment_Event); ok { 354 return x.Event 355 } 356 return nil 357 } 358 359 type isSocketStreamedTraceSegment_MessagePiece interface { 360 isSocketStreamedTraceSegment_MessagePiece() 361 } 362 363 type SocketStreamedTraceSegment_Connection struct { 364 // Connection properties. 365 Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3,oneof"` 366 } 367 368 type SocketStreamedTraceSegment_Event struct { 369 // Socket event. 370 Event *SocketEvent `protobuf:"bytes,3,opt,name=event,proto3,oneof"` 371 } 372 373 func (*SocketStreamedTraceSegment_Connection) isSocketStreamedTraceSegment_MessagePiece() {} 374 375 func (*SocketStreamedTraceSegment_Event) isSocketStreamedTraceSegment_MessagePiece() {} 376 377 // Data read by Envoy from the transport socket. 378 type SocketEvent_Read struct { 379 state protoimpl.MessageState 380 sizeCache protoimpl.SizeCache 381 unknownFields protoimpl.UnknownFields 382 383 // Binary data read. 384 Data *Body `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 385 } 386 387 func (x *SocketEvent_Read) Reset() { 388 *x = SocketEvent_Read{} 389 if protoimpl.UnsafeEnabled { 390 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[4] 391 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 392 ms.StoreMessageInfo(mi) 393 } 394 } 395 396 func (x *SocketEvent_Read) String() string { 397 return protoimpl.X.MessageStringOf(x) 398 } 399 400 func (*SocketEvent_Read) ProtoMessage() {} 401 402 func (x *SocketEvent_Read) ProtoReflect() protoreflect.Message { 403 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[4] 404 if protoimpl.UnsafeEnabled && x != nil { 405 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 406 if ms.LoadMessageInfo() == nil { 407 ms.StoreMessageInfo(mi) 408 } 409 return ms 410 } 411 return mi.MessageOf(x) 412 } 413 414 // Deprecated: Use SocketEvent_Read.ProtoReflect.Descriptor instead. 415 func (*SocketEvent_Read) Descriptor() ([]byte, []int) { 416 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{1, 0} 417 } 418 419 func (x *SocketEvent_Read) GetData() *Body { 420 if x != nil { 421 return x.Data 422 } 423 return nil 424 } 425 426 // Data written by Envoy to the transport socket. 427 type SocketEvent_Write struct { 428 state protoimpl.MessageState 429 sizeCache protoimpl.SizeCache 430 unknownFields protoimpl.UnknownFields 431 432 // Binary data written. 433 Data *Body `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 434 // Stream was half closed after this write. 435 EndStream bool `protobuf:"varint,2,opt,name=end_stream,json=endStream,proto3" json:"end_stream,omitempty"` 436 } 437 438 func (x *SocketEvent_Write) Reset() { 439 *x = SocketEvent_Write{} 440 if protoimpl.UnsafeEnabled { 441 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[5] 442 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 443 ms.StoreMessageInfo(mi) 444 } 445 } 446 447 func (x *SocketEvent_Write) String() string { 448 return protoimpl.X.MessageStringOf(x) 449 } 450 451 func (*SocketEvent_Write) ProtoMessage() {} 452 453 func (x *SocketEvent_Write) ProtoReflect() protoreflect.Message { 454 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[5] 455 if protoimpl.UnsafeEnabled && x != nil { 456 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 457 if ms.LoadMessageInfo() == nil { 458 ms.StoreMessageInfo(mi) 459 } 460 return ms 461 } 462 return mi.MessageOf(x) 463 } 464 465 // Deprecated: Use SocketEvent_Write.ProtoReflect.Descriptor instead. 466 func (*SocketEvent_Write) Descriptor() ([]byte, []int) { 467 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{1, 1} 468 } 469 470 func (x *SocketEvent_Write) GetData() *Body { 471 if x != nil { 472 return x.Data 473 } 474 return nil 475 } 476 477 func (x *SocketEvent_Write) GetEndStream() bool { 478 if x != nil { 479 return x.EndStream 480 } 481 return false 482 } 483 484 // The connection was closed. 485 type SocketEvent_Closed struct { 486 state protoimpl.MessageState 487 sizeCache protoimpl.SizeCache 488 unknownFields protoimpl.UnknownFields 489 } 490 491 func (x *SocketEvent_Closed) Reset() { 492 *x = SocketEvent_Closed{} 493 if protoimpl.UnsafeEnabled { 494 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[6] 495 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 496 ms.StoreMessageInfo(mi) 497 } 498 } 499 500 func (x *SocketEvent_Closed) String() string { 501 return protoimpl.X.MessageStringOf(x) 502 } 503 504 func (*SocketEvent_Closed) ProtoMessage() {} 505 506 func (x *SocketEvent_Closed) ProtoReflect() protoreflect.Message { 507 mi := &file_envoy_data_tap_v2alpha_transport_proto_msgTypes[6] 508 if protoimpl.UnsafeEnabled && x != nil { 509 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 510 if ms.LoadMessageInfo() == nil { 511 ms.StoreMessageInfo(mi) 512 } 513 return ms 514 } 515 return mi.MessageOf(x) 516 } 517 518 // Deprecated: Use SocketEvent_Closed.ProtoReflect.Descriptor instead. 519 func (*SocketEvent_Closed) Descriptor() ([]byte, []int) { 520 return file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP(), []int{1, 2} 521 } 522 523 var File_envoy_data_tap_v2alpha_transport_proto protoreflect.FileDescriptor 524 525 var file_envoy_data_tap_v2alpha_transport_proto_rawDesc = []byte{ 526 0x0a, 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 527 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 528 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 529 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 530 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 531 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 532 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 533 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 534 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 535 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 536 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 537 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 538 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 539 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 540 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 541 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 542 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 543 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 544 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 545 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 546 0x72, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 547 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xc0, 0x03, 0x0a, 0x0b, 0x53, 0x6f, 548 0x63, 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 549 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 550 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 551 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 552 0x61, 0x6d, 0x70, 0x12, 0x3e, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 553 0x0b, 0x32, 0x28, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 554 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 555 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x48, 0x00, 0x52, 0x04, 0x72, 556 0x65, 0x61, 0x64, 0x12, 0x41, 0x0a, 0x05, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 557 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 558 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 559 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x00, 0x52, 560 0x05, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 561 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 562 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 563 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 564 0x65, 0x64, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x1a, 0x38, 0x0a, 0x04, 565 0x52, 0x65, 0x61, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 566 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 567 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6f, 0x64, 0x79, 568 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x58, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 569 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 570 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 571 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 572 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 573 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 574 0x1a, 0x08, 0x0a, 0x06, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x42, 0x10, 0x0a, 0x0e, 0x65, 0x76, 575 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x81, 0x02, 0x0a, 576 0x13, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 577 0x72, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 578 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 579 0x42, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 580 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 581 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 582 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 583 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 584 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 585 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 586 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 587 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 588 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x54, 0x72, 589 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x72, 0x69, 0x74, 0x65, 590 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 591 0x52, 0x0e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 592 0x22, 0xcb, 0x01, 0x0a, 0x1a, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 593 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 594 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 595 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x6f, 596 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 597 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 598 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 599 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 600 0x12, 0x3b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 601 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 602 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x45, 603 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x0a, 604 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x42, 0x40, 605 0x0a, 0x24, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 606 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 607 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 608 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 609 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 610 } 611 612 var ( 613 file_envoy_data_tap_v2alpha_transport_proto_rawDescOnce sync.Once 614 file_envoy_data_tap_v2alpha_transport_proto_rawDescData = file_envoy_data_tap_v2alpha_transport_proto_rawDesc 615 ) 616 617 func file_envoy_data_tap_v2alpha_transport_proto_rawDescGZIP() []byte { 618 file_envoy_data_tap_v2alpha_transport_proto_rawDescOnce.Do(func() { 619 file_envoy_data_tap_v2alpha_transport_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_data_tap_v2alpha_transport_proto_rawDescData) 620 }) 621 return file_envoy_data_tap_v2alpha_transport_proto_rawDescData 622 } 623 624 var file_envoy_data_tap_v2alpha_transport_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 625 var file_envoy_data_tap_v2alpha_transport_proto_goTypes = []interface{}{ 626 (*Connection)(nil), // 0: envoy.data.tap.v2alpha.Connection 627 (*SocketEvent)(nil), // 1: envoy.data.tap.v2alpha.SocketEvent 628 (*SocketBufferedTrace)(nil), // 2: envoy.data.tap.v2alpha.SocketBufferedTrace 629 (*SocketStreamedTraceSegment)(nil), // 3: envoy.data.tap.v2alpha.SocketStreamedTraceSegment 630 (*SocketEvent_Read)(nil), // 4: envoy.data.tap.v2alpha.SocketEvent.Read 631 (*SocketEvent_Write)(nil), // 5: envoy.data.tap.v2alpha.SocketEvent.Write 632 (*SocketEvent_Closed)(nil), // 6: envoy.data.tap.v2alpha.SocketEvent.Closed 633 (*core.Address)(nil), // 7: envoy.api.v2.core.Address 634 (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp 635 (*Body)(nil), // 9: envoy.data.tap.v2alpha.Body 636 } 637 var file_envoy_data_tap_v2alpha_transport_proto_depIdxs = []int32{ 638 7, // 0: envoy.data.tap.v2alpha.Connection.local_address:type_name -> envoy.api.v2.core.Address 639 7, // 1: envoy.data.tap.v2alpha.Connection.remote_address:type_name -> envoy.api.v2.core.Address 640 8, // 2: envoy.data.tap.v2alpha.SocketEvent.timestamp:type_name -> google.protobuf.Timestamp 641 4, // 3: envoy.data.tap.v2alpha.SocketEvent.read:type_name -> envoy.data.tap.v2alpha.SocketEvent.Read 642 5, // 4: envoy.data.tap.v2alpha.SocketEvent.write:type_name -> envoy.data.tap.v2alpha.SocketEvent.Write 643 6, // 5: envoy.data.tap.v2alpha.SocketEvent.closed:type_name -> envoy.data.tap.v2alpha.SocketEvent.Closed 644 0, // 6: envoy.data.tap.v2alpha.SocketBufferedTrace.connection:type_name -> envoy.data.tap.v2alpha.Connection 645 1, // 7: envoy.data.tap.v2alpha.SocketBufferedTrace.events:type_name -> envoy.data.tap.v2alpha.SocketEvent 646 0, // 8: envoy.data.tap.v2alpha.SocketStreamedTraceSegment.connection:type_name -> envoy.data.tap.v2alpha.Connection 647 1, // 9: envoy.data.tap.v2alpha.SocketStreamedTraceSegment.event:type_name -> envoy.data.tap.v2alpha.SocketEvent 648 9, // 10: envoy.data.tap.v2alpha.SocketEvent.Read.data:type_name -> envoy.data.tap.v2alpha.Body 649 9, // 11: envoy.data.tap.v2alpha.SocketEvent.Write.data:type_name -> envoy.data.tap.v2alpha.Body 650 12, // [12:12] is the sub-list for method output_type 651 12, // [12:12] is the sub-list for method input_type 652 12, // [12:12] is the sub-list for extension type_name 653 12, // [12:12] is the sub-list for extension extendee 654 0, // [0:12] is the sub-list for field type_name 655 } 656 657 func init() { file_envoy_data_tap_v2alpha_transport_proto_init() } 658 func file_envoy_data_tap_v2alpha_transport_proto_init() { 659 if File_envoy_data_tap_v2alpha_transport_proto != nil { 660 return 661 } 662 file_envoy_data_tap_v2alpha_common_proto_init() 663 if !protoimpl.UnsafeEnabled { 664 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 665 switch v := v.(*Connection); i { 666 case 0: 667 return &v.state 668 case 1: 669 return &v.sizeCache 670 case 2: 671 return &v.unknownFields 672 default: 673 return nil 674 } 675 } 676 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 677 switch v := v.(*SocketEvent); i { 678 case 0: 679 return &v.state 680 case 1: 681 return &v.sizeCache 682 case 2: 683 return &v.unknownFields 684 default: 685 return nil 686 } 687 } 688 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 689 switch v := v.(*SocketBufferedTrace); i { 690 case 0: 691 return &v.state 692 case 1: 693 return &v.sizeCache 694 case 2: 695 return &v.unknownFields 696 default: 697 return nil 698 } 699 } 700 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 701 switch v := v.(*SocketStreamedTraceSegment); i { 702 case 0: 703 return &v.state 704 case 1: 705 return &v.sizeCache 706 case 2: 707 return &v.unknownFields 708 default: 709 return nil 710 } 711 } 712 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 713 switch v := v.(*SocketEvent_Read); i { 714 case 0: 715 return &v.state 716 case 1: 717 return &v.sizeCache 718 case 2: 719 return &v.unknownFields 720 default: 721 return nil 722 } 723 } 724 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 725 switch v := v.(*SocketEvent_Write); i { 726 case 0: 727 return &v.state 728 case 1: 729 return &v.sizeCache 730 case 2: 731 return &v.unknownFields 732 default: 733 return nil 734 } 735 } 736 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 737 switch v := v.(*SocketEvent_Closed); i { 738 case 0: 739 return &v.state 740 case 1: 741 return &v.sizeCache 742 case 2: 743 return &v.unknownFields 744 default: 745 return nil 746 } 747 } 748 } 749 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[1].OneofWrappers = []interface{}{ 750 (*SocketEvent_Read_)(nil), 751 (*SocketEvent_Write_)(nil), 752 (*SocketEvent_Closed_)(nil), 753 } 754 file_envoy_data_tap_v2alpha_transport_proto_msgTypes[3].OneofWrappers = []interface{}{ 755 (*SocketStreamedTraceSegment_Connection)(nil), 756 (*SocketStreamedTraceSegment_Event)(nil), 757 } 758 type x struct{} 759 out := protoimpl.TypeBuilder{ 760 File: protoimpl.DescBuilder{ 761 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 762 RawDescriptor: file_envoy_data_tap_v2alpha_transport_proto_rawDesc, 763 NumEnums: 0, 764 NumMessages: 7, 765 NumExtensions: 0, 766 NumServices: 0, 767 }, 768 GoTypes: file_envoy_data_tap_v2alpha_transport_proto_goTypes, 769 DependencyIndexes: file_envoy_data_tap_v2alpha_transport_proto_depIdxs, 770 MessageInfos: file_envoy_data_tap_v2alpha_transport_proto_msgTypes, 771 }.Build() 772 File_envoy_data_tap_v2alpha_transport_proto = out.File 773 file_envoy_data_tap_v2alpha_transport_proto_rawDesc = nil 774 file_envoy_data_tap_v2alpha_transport_proto_goTypes = nil 775 file_envoy_data_tap_v2alpha_transport_proto_depIdxs = nil 776 }