github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/data/tap/v2alpha/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/v2alpha/wrapper.proto
     6  
     7  package envoy_data_tap_v2alpha
     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_v2alpha_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_v2alpha_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_v2alpha_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_v2alpha_wrapper_proto protoreflect.FileDescriptor
   145  
   146  var file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc = []byte{
   147  	0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70,
   148  	0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72,
   149  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61,
   150  	0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x21,
   151  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76,
   152  	0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   153  	0x6f, 0x1a, 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61,
   154  	0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
   155  	0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f,
   156  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74,
   157  	0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
   158  	0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   159  	0x6f, 0x22, 0xc8, 0x03, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70,
   160  	0x65, 0x72, 0x12, 0x5b, 0x0a, 0x13, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65,
   161  	0x72, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
   162  	0x29, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70,
   163  	0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x75, 0x66,
   164  	0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x00, 0x52, 0x11, 0x68, 0x74,
   165  	0x74, 0x70, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12,
   166  	0x71, 0x0a, 0x1b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64,
   167  	0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02,
   168  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74,
   169  	0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x74,
   170  	0x74, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53,
   171  	0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x68, 0x74, 0x74, 0x70, 0x53, 0x74,
   172  	0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65,
   173  	0x6e, 0x74, 0x12, 0x61, 0x0a, 0x15, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x62, 0x75, 0x66,
   174  	0x66, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
   175  	0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74,
   176  	0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 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, 0x77, 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, 0x32, 0x2e, 0x65,
   182  	0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32,
   183  	0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65,
   184  	0x61, 0x6d, 0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74,
   185  	0x48, 0x00, 0x52, 0x1a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
   186  	0x65, 0x64, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c,
   187  	0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x3e, 0x0a, 0x24,
   188  	0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e,
   189  	0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61,
   190  	0x6c, 0x70, 0x68, 0x61, 0x42, 0x0c, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x50, 0x72, 0x6f,
   191  	0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72,
   192  	0x6f, 0x74, 0x6f, 0x33,
   193  }
   194  
   195  var (
   196  	file_envoy_data_tap_v2alpha_wrapper_proto_rawDescOnce sync.Once
   197  	file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData = file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc
   198  )
   199  
   200  func file_envoy_data_tap_v2alpha_wrapper_proto_rawDescGZIP() []byte {
   201  	file_envoy_data_tap_v2alpha_wrapper_proto_rawDescOnce.Do(func() {
   202  		file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData)
   203  	})
   204  	return file_envoy_data_tap_v2alpha_wrapper_proto_rawDescData
   205  }
   206  
   207  var file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   208  var file_envoy_data_tap_v2alpha_wrapper_proto_goTypes = []interface{}{
   209  	(*TraceWrapper)(nil),               // 0: envoy.data.tap.v2alpha.TraceWrapper
   210  	(*HttpBufferedTrace)(nil),          // 1: envoy.data.tap.v2alpha.HttpBufferedTrace
   211  	(*HttpStreamedTraceSegment)(nil),   // 2: envoy.data.tap.v2alpha.HttpStreamedTraceSegment
   212  	(*SocketBufferedTrace)(nil),        // 3: envoy.data.tap.v2alpha.SocketBufferedTrace
   213  	(*SocketStreamedTraceSegment)(nil), // 4: envoy.data.tap.v2alpha.SocketStreamedTraceSegment
   214  }
   215  var file_envoy_data_tap_v2alpha_wrapper_proto_depIdxs = []int32{
   216  	1, // 0: envoy.data.tap.v2alpha.TraceWrapper.http_buffered_trace:type_name -> envoy.data.tap.v2alpha.HttpBufferedTrace
   217  	2, // 1: envoy.data.tap.v2alpha.TraceWrapper.http_streamed_trace_segment:type_name -> envoy.data.tap.v2alpha.HttpStreamedTraceSegment
   218  	3, // 2: envoy.data.tap.v2alpha.TraceWrapper.socket_buffered_trace:type_name -> envoy.data.tap.v2alpha.SocketBufferedTrace
   219  	4, // 3: envoy.data.tap.v2alpha.TraceWrapper.socket_streamed_trace_segment:type_name -> envoy.data.tap.v2alpha.SocketStreamedTraceSegment
   220  	4, // [4:4] is the sub-list for method output_type
   221  	4, // [4:4] is the sub-list for method input_type
   222  	4, // [4:4] is the sub-list for extension type_name
   223  	4, // [4:4] is the sub-list for extension extendee
   224  	0, // [0:4] is the sub-list for field type_name
   225  }
   226  
   227  func init() { file_envoy_data_tap_v2alpha_wrapper_proto_init() }
   228  func file_envoy_data_tap_v2alpha_wrapper_proto_init() {
   229  	if File_envoy_data_tap_v2alpha_wrapper_proto != nil {
   230  		return
   231  	}
   232  	file_envoy_data_tap_v2alpha_http_proto_init()
   233  	file_envoy_data_tap_v2alpha_transport_proto_init()
   234  	if !protoimpl.UnsafeEnabled {
   235  		file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   236  			switch v := v.(*TraceWrapper); i {
   237  			case 0:
   238  				return &v.state
   239  			case 1:
   240  				return &v.sizeCache
   241  			case 2:
   242  				return &v.unknownFields
   243  			default:
   244  				return nil
   245  			}
   246  		}
   247  	}
   248  	file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes[0].OneofWrappers = []interface{}{
   249  		(*TraceWrapper_HttpBufferedTrace)(nil),
   250  		(*TraceWrapper_HttpStreamedTraceSegment)(nil),
   251  		(*TraceWrapper_SocketBufferedTrace)(nil),
   252  		(*TraceWrapper_SocketStreamedTraceSegment)(nil),
   253  	}
   254  	type x struct{}
   255  	out := protoimpl.TypeBuilder{
   256  		File: protoimpl.DescBuilder{
   257  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   258  			RawDescriptor: file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc,
   259  			NumEnums:      0,
   260  			NumMessages:   1,
   261  			NumExtensions: 0,
   262  			NumServices:   0,
   263  		},
   264  		GoTypes:           file_envoy_data_tap_v2alpha_wrapper_proto_goTypes,
   265  		DependencyIndexes: file_envoy_data_tap_v2alpha_wrapper_proto_depIdxs,
   266  		MessageInfos:      file_envoy_data_tap_v2alpha_wrapper_proto_msgTypes,
   267  	}.Build()
   268  	File_envoy_data_tap_v2alpha_wrapper_proto = out.File
   269  	file_envoy_data_tap_v2alpha_wrapper_proto_rawDesc = nil
   270  	file_envoy_data_tap_v2alpha_wrapper_proto_goTypes = nil
   271  	file_envoy_data_tap_v2alpha_wrapper_proto_depIdxs = nil
   272  }