1
2
3
4
5
6
7 package v2alpha
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 const (
19
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25
26
27 type TraceWrapper struct {
28 state protoimpl.MessageState
29 sizeCache protoimpl.SizeCache
30 unknownFields protoimpl.UnknownFields
31
32
33
34
35
36
37 Trace isTraceWrapper_Trace `protobuf_oneof:"trace"`
38 }
39
40 func (x *TraceWrapper) Reset() {
41 *x = TraceWrapper{}
42 if protoimpl.UnsafeEnabled {
43 mi := &file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes[0]
44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
45 ms.StoreMessageInfo(mi)
46 }
47 }
48
49 func (x *TraceWrapper) String() string {
50 return protoimpl.X.MessageStringOf(x)
51 }
52
53 func (*TraceWrapper) ProtoMessage() {}
54
55 func (x *TraceWrapper) ProtoReflect() protoreflect.Message {
56 mi := &file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes[0]
57 if protoimpl.UnsafeEnabled && x != nil {
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 if ms.LoadMessageInfo() == nil {
60 ms.StoreMessageInfo(mi)
61 }
62 return ms
63 }
64 return mi.MessageOf(x)
65 }
66
67
68 func (*TraceWrapper) Descriptor() ([]byte, []int) {
69 return file_envoy_data_tap_v2alpha_wrapper_proto_rawDescGZIP(), []int{0}
70 }
71
72 func (m *TraceWrapper) GetTrace() isTraceWrapper_Trace {
73 if m != nil {
74 return m.Trace
75 }
76 return nil
77 }
78
79 func (x *TraceWrapper) GetHttpBufferedTrace() *HttpBufferedTrace {
80 if x, ok := x.GetTrace().(*TraceWrapper_HttpBufferedTrace); ok {
81 return x.HttpBufferedTrace
82 }
83 return nil
84 }
85
86 func (x *TraceWrapper) GetHttpStreamedTraceSegment() *HttpStreamedTraceSegment {
87 if x, ok := x.GetTrace().(*TraceWrapper_HttpStreamedTraceSegment); ok {
88 return x.HttpStreamedTraceSegment
89 }
90 return nil
91 }
92
93 func (x *TraceWrapper) GetSocketBufferedTrace() *SocketBufferedTrace {
94 if x, ok := x.GetTrace().(*TraceWrapper_SocketBufferedTrace); ok {
95 return x.SocketBufferedTrace
96 }
97 return nil
98 }
99
100 func (x *TraceWrapper) GetSocketStreamedTraceSegment() *SocketStreamedTraceSegment {
101 if x, ok := x.GetTrace().(*TraceWrapper_SocketStreamedTraceSegment); ok {
102 return x.SocketStreamedTraceSegment
103 }
104 return nil
105 }
106
107 type isTraceWrapper_Trace interface {
108 isTraceWrapper_Trace()
109 }
110
111 type TraceWrapper_HttpBufferedTrace struct {
112
113 HttpBufferedTrace *HttpBufferedTrace `protobuf:"bytes,1,opt,name=http_buffered_trace,json=httpBufferedTrace,proto3,oneof"`
114 }
115
116 type TraceWrapper_HttpStreamedTraceSegment struct {
117
118 HttpStreamedTraceSegment *HttpStreamedTraceSegment `protobuf:"bytes,2,opt,name=http_streamed_trace_segment,json=httpStreamedTraceSegment,proto3,oneof"`
119 }
120
121 type TraceWrapper_SocketBufferedTrace struct {
122
123 SocketBufferedTrace *SocketBufferedTrace `protobuf:"bytes,3,opt,name=socket_buffered_trace,json=socketBufferedTrace,proto3,oneof"`
124 }
125
126 type TraceWrapper_SocketStreamedTraceSegment struct {
127
128 SocketStreamedTraceSegment *SocketStreamedTraceSegment `protobuf:"bytes,4,opt,name=socket_streamed_trace_segment,json=socketStreamedTraceSegment,proto3,oneof"`
129 }
130
131 func (*TraceWrapper_HttpBufferedTrace) isTraceWrapper_Trace() {}
132
133 func (*TraceWrapper_HttpStreamedTraceSegment) isTraceWrapper_Trace() {}
134
135 func (*TraceWrapper_SocketBufferedTrace) isTraceWrapper_Trace() {}
136
137 func (*TraceWrapper_SocketStreamedTraceSegment) isTraceWrapper_Trace() {}
138
139 var File_envoy_data_tap_v2alpha_wrapper_proto protoreflect.FileDescriptor
140
141 var file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc = []byte{
142 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70,
143 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72,
144 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61,
145 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x21,
146 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76,
147 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
148 0x6f, 0x1a, 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61,
149 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
150 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f,
151 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74,
152 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
153 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
154 0x6f, 0x22, 0xc8, 0x03, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70,
155 0x65, 0x72, 0x12, 0x5b, 0x0a, 0x13, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65,
156 0x72, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
157 0x29, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70,
158 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x75, 0x66,
159 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x00, 0x52, 0x11, 0x68, 0x74,
160 0x74, 0x70, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12,
161 0x71, 0x0a, 0x1b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64,
162 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02,
163 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74,
164 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x74,
165 0x74, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53,
166 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x68, 0x74, 0x74, 0x70, 0x53, 0x74,
167 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65,
168 0x6e, 0x74, 0x12, 0x61, 0x0a, 0x15, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x62, 0x75, 0x66,
169 0x66, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
170 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74,
171 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65,
172 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x00,
173 0x52, 0x13, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64,
174 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x77, 0x0a, 0x1d, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f,
175 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73,
176 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x65,
177 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32,
178 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65,
179 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74,
180 0x48, 0x00, 0x52, 0x1a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
181 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c,
182 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x7d, 0x0a, 0x24,
183 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e,
184 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61,
185 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0c, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x50, 0x72, 0x6f,
186 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
187 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63,
188 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76,
189 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c,
190 0x70, 0x68, 0x61, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f,
191 0x74, 0x6f, 0x33,
192 }
193
194 var (
195 file_envoy_data_tap_v2alpha_wrapper_proto_rawDescOnce sync.Once
196 file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData = file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc
197 )
198
199 func file_envoy_data_tap_v2alpha_wrapper_proto_rawDescGZIP() []byte {
200 file_envoy_data_tap_v2alpha_wrapper_proto_rawDescOnce.Do(func() {
201 file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData)
202 })
203 return file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData
204 }
205
206 var file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
207 var file_envoy_data_tap_v2alpha_wrapper_proto_goTypes = []interface{}{
208 (*TraceWrapper)(nil),
209 (*HttpBufferedTrace)(nil),
210 (*HttpStreamedTraceSegment)(nil),
211 (*SocketBufferedTrace)(nil),
212 (*SocketStreamedTraceSegment)(nil),
213 }
214 var file_envoy_data_tap_v2alpha_wrapper_proto_depIdxs = []int32{
215 1,
216 2,
217 3,
218 4,
219 4,
220 4,
221 4,
222 4,
223 0,
224 }
225
226 func init() { file_envoy_data_tap_v2alpha_wrapper_proto_init() }
227 func file_envoy_data_tap_v2alpha_wrapper_proto_init() {
228 if File_envoy_data_tap_v2alpha_wrapper_proto != nil {
229 return
230 }
231 file_envoy_data_tap_v2alpha_http_proto_init()
232 file_envoy_data_tap_v2alpha_transport_proto_init()
233 if !protoimpl.UnsafeEnabled {
234 file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
235 switch v := v.(*TraceWrapper); i {
236 case 0:
237 return &v.state
238 case 1:
239 return &v.sizeCache
240 case 2:
241 return &v.unknownFields
242 default:
243 return nil
244 }
245 }
246 }
247 file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes[0].OneofWrappers = []interface{}{
248 (*TraceWrapper_HttpBufferedTrace)(nil),
249 (*TraceWrapper_HttpStreamedTraceSegment)(nil),
250 (*TraceWrapper_SocketBufferedTrace)(nil),
251 (*TraceWrapper_SocketStreamedTraceSegment)(nil),
252 }
253 type x struct{}
254 out := protoimpl.TypeBuilder{
255 File: protoimpl.DescBuilder{
256 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
257 RawDescriptor: file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc,
258 NumEnums: 0,
259 NumMessages: 1,
260 NumExtensions: 0,
261 NumServices: 0,
262 },
263 GoTypes: file_envoy_data_tap_v2alpha_wrapper_proto_goTypes,
264 DependencyIndexes: file_envoy_data_tap_v2alpha_wrapper_proto_depIdxs,
265 MessageInfos: file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes,
266 }.Build()
267 File_envoy_data_tap_v2alpha_wrapper_proto = out.File
268 file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc = nil
269 file_envoy_data_tap_v2alpha_wrapper_proto_goTypes = nil
270 file_envoy_data_tap_v2alpha_wrapper_proto_depIdxs = nil
271 }
272
View as plain text