...

Source file src/github.com/emissary-ingress/emissary/v3/pkg/api/envoy/data/tap/v2alpha/common.pb.go

Documentation: github.com/emissary-ingress/emissary/v3/pkg/api/envoy/data/tap/v2alpha

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.21.12
     5  // source: envoy/data/tap/v2alpha/common.proto
     6  
     7  package v2alpha
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // Wrapper for tapped body data. This includes HTTP request/response body, transport socket received
    25  // and transmitted data, etc.
    26  type Body struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	// Types that are assignable to BodyType:
    32  	//	*Body_AsBytes
    33  	//	*Body_AsString
    34  	BodyType isBody_BodyType `protobuf_oneof:"body_type"`
    35  	// Specifies whether body data has been truncated to fit within the specified
    36  	// :ref:`max_buffered_rx_bytes
    37  	// <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and
    38  	// :ref:`max_buffered_tx_bytes
    39  	// <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
    40  	Truncated bool `protobuf:"varint,3,opt,name=truncated,proto3" json:"truncated,omitempty"`
    41  }
    42  
    43  func (x *Body) Reset() {
    44  	*x = Body{}
    45  	if protoimpl.UnsafeEnabled {
    46  		mi := &file_envoy_data_tap_v2alpha_common_proto_msgTypes[0]
    47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    48  		ms.StoreMessageInfo(mi)
    49  	}
    50  }
    51  
    52  func (x *Body) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*Body) ProtoMessage() {}
    57  
    58  func (x *Body) ProtoReflect() protoreflect.Message {
    59  	mi := &file_envoy_data_tap_v2alpha_common_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 Body.ProtoReflect.Descriptor instead.
    71  func (*Body) Descriptor() ([]byte, []int) {
    72  	return file_envoy_data_tap_v2alpha_common_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (m *Body) GetBodyType() isBody_BodyType {
    76  	if m != nil {
    77  		return m.BodyType
    78  	}
    79  	return nil
    80  }
    81  
    82  func (x *Body) GetAsBytes() []byte {
    83  	if x, ok := x.GetBodyType().(*Body_AsBytes); ok {
    84  		return x.AsBytes
    85  	}
    86  	return nil
    87  }
    88  
    89  func (x *Body) GetAsString() string {
    90  	if x, ok := x.GetBodyType().(*Body_AsString); ok {
    91  		return x.AsString
    92  	}
    93  	return ""
    94  }
    95  
    96  func (x *Body) GetTruncated() bool {
    97  	if x != nil {
    98  		return x.Truncated
    99  	}
   100  	return false
   101  }
   102  
   103  type isBody_BodyType interface {
   104  	isBody_BodyType()
   105  }
   106  
   107  type Body_AsBytes struct {
   108  	// Body data as bytes. By default, tap body data will be present in this field, as the proto
   109  	// `bytes` type can contain any valid byte.
   110  	AsBytes []byte `protobuf:"bytes,1,opt,name=as_bytes,json=asBytes,proto3,oneof"`
   111  }
   112  
   113  type Body_AsString struct {
   114  	// Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING
   115  	// <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink
   116  	// format type is selected. See the documentation for that option for why this is useful.
   117  	AsString string `protobuf:"bytes,2,opt,name=as_string,json=asString,proto3,oneof"`
   118  }
   119  
   120  func (*Body_AsBytes) isBody_BodyType() {}
   121  
   122  func (*Body_AsString) isBody_BodyType() {}
   123  
   124  var File_envoy_data_tap_v2alpha_common_proto protoreflect.FileDescriptor
   125  
   126  var file_envoy_data_tap_v2alpha_common_proto_rawDesc = []byte{
   127  	0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70,
   128  	0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   129  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74,
   130  	0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1d, 0x75,
   131  	0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
   132  	0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6d, 0x0a, 0x04,
   133  	0x42, 0x6f, 0x64, 0x79, 0x12, 0x1b, 0x0a, 0x08, 0x61, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73,
   134  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x61, 0x73, 0x42, 0x79, 0x74, 0x65,
   135  	0x73, 0x12, 0x1d, 0x0a, 0x09, 0x61, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02,
   136  	0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x61, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
   137  	0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20,
   138  	0x01, 0x28, 0x08, 0x52, 0x09, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x0b,
   139  	0x0a, 0x09, 0x62, 0x6f, 0x64, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x7c, 0x0a, 0x24, 0x69,
   140  	0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76,
   141  	0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c,
   142  	0x70, 0x68, 0x61, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   143  	0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65,
   144  	0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e,
   145  	0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   146  	0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
   147  	0x61, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   148  	0x33,
   149  }
   150  
   151  var (
   152  	file_envoy_data_tap_v2alpha_common_proto_rawDescOnce sync.Once
   153  	file_envoy_data_tap_v2alpha_common_proto_rawDescData = file_envoy_data_tap_v2alpha_common_proto_rawDesc
   154  )
   155  
   156  func file_envoy_data_tap_v2alpha_common_proto_rawDescGZIP() []byte {
   157  	file_envoy_data_tap_v2alpha_common_proto_rawDescOnce.Do(func() {
   158  		file_envoy_data_tap_v2alpha_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_data_tap_v2alpha_common_proto_rawDescData)
   159  	})
   160  	return file_envoy_data_tap_v2alpha_common_proto_rawDescData
   161  }
   162  
   163  var file_envoy_data_tap_v2alpha_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   164  var file_envoy_data_tap_v2alpha_common_proto_goTypes = []interface{}{
   165  	(*Body)(nil), // 0: envoy.data.tap.v2alpha.Body
   166  }
   167  var file_envoy_data_tap_v2alpha_common_proto_depIdxs = []int32{
   168  	0, // [0:0] is the sub-list for method output_type
   169  	0, // [0:0] is the sub-list for method input_type
   170  	0, // [0:0] is the sub-list for extension type_name
   171  	0, // [0:0] is the sub-list for extension extendee
   172  	0, // [0:0] is the sub-list for field type_name
   173  }
   174  
   175  func init() { file_envoy_data_tap_v2alpha_common_proto_init() }
   176  func file_envoy_data_tap_v2alpha_common_proto_init() {
   177  	if File_envoy_data_tap_v2alpha_common_proto != nil {
   178  		return
   179  	}
   180  	if !protoimpl.UnsafeEnabled {
   181  		file_envoy_data_tap_v2alpha_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   182  			switch v := v.(*Body); i {
   183  			case 0:
   184  				return &v.state
   185  			case 1:
   186  				return &v.sizeCache
   187  			case 2:
   188  				return &v.unknownFields
   189  			default:
   190  				return nil
   191  			}
   192  		}
   193  	}
   194  	file_envoy_data_tap_v2alpha_common_proto_msgTypes[0].OneofWrappers = []interface{}{
   195  		(*Body_AsBytes)(nil),
   196  		(*Body_AsString)(nil),
   197  	}
   198  	type x struct{}
   199  	out := protoimpl.TypeBuilder{
   200  		File: protoimpl.DescBuilder{
   201  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   202  			RawDescriptor: file_envoy_data_tap_v2alpha_common_proto_rawDesc,
   203  			NumEnums:      0,
   204  			NumMessages:   1,
   205  			NumExtensions: 0,
   206  			NumServices:   0,
   207  		},
   208  		GoTypes:           file_envoy_data_tap_v2alpha_common_proto_goTypes,
   209  		DependencyIndexes: file_envoy_data_tap_v2alpha_common_proto_depIdxs,
   210  		MessageInfos:      file_envoy_data_tap_v2alpha_common_proto_msgTypes,
   211  	}.Build()
   212  	File_envoy_data_tap_v2alpha_common_proto = out.File
   213  	file_envoy_data_tap_v2alpha_common_proto_rawDesc = nil
   214  	file_envoy_data_tap_v2alpha_common_proto_goTypes = nil
   215  	file_envoy_data_tap_v2alpha_common_proto_depIdxs = nil
   216  }
   217  

View as plain text