gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/data/tap/v3/wrapper.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/v3/wrapper.proto 6 7 package envoy_data_tap_v3 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 // Wrapper for all fully buffered and streamed tap traces that Envoy emits. This is required for 31 // sending traces over gRPC APIs or more easily persisting binary messages to files. 32 type TraceWrapper struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // Types that are assignable to Trace: 38 // *TraceWrapper_HttpBufferedTrace 39 // *TraceWrapper_HttpStreamedTraceSegment 40 // *TraceWrapper_SocketBufferedTrace 41 // *TraceWrapper_SocketStreamedTraceSegment 42 Trace isTraceWrapper_Trace `protobuf_oneof:"trace"` 43 } 44 45 func (x *TraceWrapper) Reset() { 46 *x = TraceWrapper{} 47 if protoimpl.UnsafeEnabled { 48 mi := &file_envoy_data_tap_v3_wrapper_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 } 53 54 func (x *TraceWrapper) String() string { 55 return protoimpl.X.MessageStringOf(x) 56 } 57 58 func (*TraceWrapper) ProtoMessage() {} 59 60 func (x *TraceWrapper) ProtoReflect() protoreflect.Message { 61 mi := &file_envoy_data_tap_v3_wrapper_proto_msgTypes[0] 62 if protoimpl.UnsafeEnabled && x != nil { 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 if ms.LoadMessageInfo() == nil { 65 ms.StoreMessageInfo(mi) 66 } 67 return ms 68 } 69 return mi.MessageOf(x) 70 } 71 72 // Deprecated: Use TraceWrapper.ProtoReflect.Descriptor instead. 73 func (*TraceWrapper) Descriptor() ([]byte, []int) { 74 return file_envoy_data_tap_v3_wrapper_proto_rawDescGZIP(), []int{0} 75 } 76 77 func (m *TraceWrapper) GetTrace() isTraceWrapper_Trace { 78 if m != nil { 79 return m.Trace 80 } 81 return nil 82 } 83 84 func (x *TraceWrapper) GetHttpBufferedTrace() *HttpBufferedTrace { 85 if x, ok := x.GetTrace().(*TraceWrapper_HttpBufferedTrace); ok { 86 return x.HttpBufferedTrace 87 } 88 return nil 89 } 90 91 func (x *TraceWrapper) GetHttpStreamedTraceSegment() *HttpStreamedTraceSegment { 92 if x, ok := x.GetTrace().(*TraceWrapper_HttpStreamedTraceSegment); ok { 93 return x.HttpStreamedTraceSegment 94 } 95 return nil 96 } 97 98 func (x *TraceWrapper) GetSocketBufferedTrace() *SocketBufferedTrace { 99 if x, ok := x.GetTrace().(*TraceWrapper_SocketBufferedTrace); ok { 100 return x.SocketBufferedTrace 101 } 102 return nil 103 } 104 105 func (x *TraceWrapper) GetSocketStreamedTraceSegment() *SocketStreamedTraceSegment { 106 if x, ok := x.GetTrace().(*TraceWrapper_SocketStreamedTraceSegment); ok { 107 return x.SocketStreamedTraceSegment 108 } 109 return nil 110 } 111 112 type isTraceWrapper_Trace interface { 113 isTraceWrapper_Trace() 114 } 115 116 type TraceWrapper_HttpBufferedTrace struct { 117 // An HTTP buffered tap trace. 118 HttpBufferedTrace *HttpBufferedTrace `protobuf:"bytes,1,opt,name=http_buffered_trace,json=httpBufferedTrace,proto3,oneof"` 119 } 120 121 type TraceWrapper_HttpStreamedTraceSegment struct { 122 // An HTTP streamed tap trace segment. 123 HttpStreamedTraceSegment *HttpStreamedTraceSegment `protobuf:"bytes,2,opt,name=http_streamed_trace_segment,json=httpStreamedTraceSegment,proto3,oneof"` 124 } 125 126 type TraceWrapper_SocketBufferedTrace struct { 127 // A socket buffered tap trace. 128 SocketBufferedTrace *SocketBufferedTrace `protobuf:"bytes,3,opt,name=socket_buffered_trace,json=socketBufferedTrace,proto3,oneof"` 129 } 130 131 type TraceWrapper_SocketStreamedTraceSegment struct { 132 // A socket streamed tap trace segment. 133 SocketStreamedTraceSegment *SocketStreamedTraceSegment `protobuf:"bytes,4,opt,name=socket_streamed_trace_segment,json=socketStreamedTraceSegment,proto3,oneof"` 134 } 135 136 func (*TraceWrapper_HttpBufferedTrace) isTraceWrapper_Trace() {} 137 138 func (*TraceWrapper_HttpStreamedTraceSegment) isTraceWrapper_Trace() {} 139 140 func (*TraceWrapper_SocketBufferedTrace) isTraceWrapper_Trace() {} 141 142 func (*TraceWrapper_SocketStreamedTraceSegment) isTraceWrapper_Trace() {} 143 144 var File_envoy_data_tap_v3_wrapper_proto protoreflect.FileDescriptor 145 146 var file_envoy_data_tap_v3_wrapper_proto_rawDesc = []byte{ 147 0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 148 0x2f, 0x76, 0x33, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 149 0x6f, 0x12, 0x11, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 150 0x70, 0x2e, 0x76, 0x33, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 151 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 152 0x74, 0x6f, 0x1a, 0x21, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 153 0x61, 0x70, 0x2f, 0x76, 0x33, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 154 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 155 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 156 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 157 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 158 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 159 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 160 0x22, 0xe0, 0x03, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 161 0x72, 0x12, 0x56, 0x0a, 0x13, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 162 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 163 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 164 0x76, 0x33, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 165 0x72, 0x61, 0x63, 0x65, 0x48, 0x00, 0x52, 0x11, 0x68, 0x74, 0x74, 0x70, 0x42, 0x75, 0x66, 0x66, 166 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x1b, 0x68, 0x74, 0x74, 167 0x70, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 168 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 169 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 170 0x76, 0x33, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 171 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x68, 172 0x74, 0x74, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 173 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5c, 0x0a, 0x15, 0x73, 0x6f, 0x63, 0x6b, 0x65, 174 0x74, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 175 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 176 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 177 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x00, 178 0x52, 0x13, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 179 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x1d, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 180 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 181 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x65, 182 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 183 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 184 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1a, 0x73, 185 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 186 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x2a, 0x9a, 0xc5, 0x88, 0x1e, 0x25, 187 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 188 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x57, 0x72, 189 0x61, 0x70, 0x70, 0x65, 0x72, 0x42, 0x0c, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x12, 0x03, 190 0xf8, 0x42, 0x01, 0x42, 0x39, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 191 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 192 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x50, 193 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 194 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 195 } 196 197 var ( 198 file_envoy_data_tap_v3_wrapper_proto_rawDescOnce sync.Once 199 file_envoy_data_tap_v3_wrapper_proto_rawDescData = file_envoy_data_tap_v3_wrapper_proto_rawDesc 200 ) 201 202 func file_envoy_data_tap_v3_wrapper_proto_rawDescGZIP() []byte { 203 file_envoy_data_tap_v3_wrapper_proto_rawDescOnce.Do(func() { 204 file_envoy_data_tap_v3_wrapper_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_data_tap_v3_wrapper_proto_rawDescData) 205 }) 206 return file_envoy_data_tap_v3_wrapper_proto_rawDescData 207 } 208 209 var file_envoy_data_tap_v3_wrapper_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 210 var file_envoy_data_tap_v3_wrapper_proto_goTypes = []interface{}{ 211 (*TraceWrapper)(nil), // 0: envoy.data.tap.v3.TraceWrapper 212 (*HttpBufferedTrace)(nil), // 1: envoy.data.tap.v3.HttpBufferedTrace 213 (*HttpStreamedTraceSegment)(nil), // 2: envoy.data.tap.v3.HttpStreamedTraceSegment 214 (*SocketBufferedTrace)(nil), // 3: envoy.data.tap.v3.SocketBufferedTrace 215 (*SocketStreamedTraceSegment)(nil), // 4: envoy.data.tap.v3.SocketStreamedTraceSegment 216 } 217 var file_envoy_data_tap_v3_wrapper_proto_depIdxs = []int32{ 218 1, // 0: envoy.data.tap.v3.TraceWrapper.http_buffered_trace:type_name -> envoy.data.tap.v3.HttpBufferedTrace 219 2, // 1: envoy.data.tap.v3.TraceWrapper.http_streamed_trace_segment:type_name -> envoy.data.tap.v3.HttpStreamedTraceSegment 220 3, // 2: envoy.data.tap.v3.TraceWrapper.socket_buffered_trace:type_name -> envoy.data.tap.v3.SocketBufferedTrace 221 4, // 3: envoy.data.tap.v3.TraceWrapper.socket_streamed_trace_segment:type_name -> envoy.data.tap.v3.SocketStreamedTraceSegment 222 4, // [4:4] is the sub-list for method output_type 223 4, // [4:4] is the sub-list for method input_type 224 4, // [4:4] is the sub-list for extension type_name 225 4, // [4:4] is the sub-list for extension extendee 226 0, // [0:4] is the sub-list for field type_name 227 } 228 229 func init() { file_envoy_data_tap_v3_wrapper_proto_init() } 230 func file_envoy_data_tap_v3_wrapper_proto_init() { 231 if File_envoy_data_tap_v3_wrapper_proto != nil { 232 return 233 } 234 file_envoy_data_tap_v3_http_proto_init() 235 file_envoy_data_tap_v3_transport_proto_init() 236 if !protoimpl.UnsafeEnabled { 237 file_envoy_data_tap_v3_wrapper_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 238 switch v := v.(*TraceWrapper); i { 239 case 0: 240 return &v.state 241 case 1: 242 return &v.sizeCache 243 case 2: 244 return &v.unknownFields 245 default: 246 return nil 247 } 248 } 249 } 250 file_envoy_data_tap_v3_wrapper_proto_msgTypes[0].OneofWrappers = []interface{}{ 251 (*TraceWrapper_HttpBufferedTrace)(nil), 252 (*TraceWrapper_HttpStreamedTraceSegment)(nil), 253 (*TraceWrapper_SocketBufferedTrace)(nil), 254 (*TraceWrapper_SocketStreamedTraceSegment)(nil), 255 } 256 type x struct{} 257 out := protoimpl.TypeBuilder{ 258 File: protoimpl.DescBuilder{ 259 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 260 RawDescriptor: file_envoy_data_tap_v3_wrapper_proto_rawDesc, 261 NumEnums: 0, 262 NumMessages: 1, 263 NumExtensions: 0, 264 NumServices: 0, 265 }, 266 GoTypes: file_envoy_data_tap_v3_wrapper_proto_goTypes, 267 DependencyIndexes: file_envoy_data_tap_v3_wrapper_proto_depIdxs, 268 MessageInfos: file_envoy_data_tap_v3_wrapper_proto_msgTypes, 269 }.Build() 270 File_envoy_data_tap_v3_wrapper_proto = out.File 271 file_envoy_data_tap_v3_wrapper_proto_rawDesc = nil 272 file_envoy_data_tap_v3_wrapper_proto_goTypes = nil 273 file_envoy_data_tap_v3_wrapper_proto_depIdxs = nil 274 }