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