github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/data/tap/v3/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/v3/common.proto 6 7 package envoy_data_tap_v3 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_v3_api_field_config.tap.v3.OutputConfig.max_buffered_rx_bytes>` and 43 // :ref:`max_buffered_tx_bytes 44 // <envoy_v3_api_field_config.tap.v3.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_v3_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_v3_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_v3_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_v3_api_enum_value_config.tap.v3.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_v3_common_proto protoreflect.FileDescriptor 130 131 var file_envoy_data_tap_v3_common_proto_rawDesc = []byte{ 132 0x0a, 0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 133 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 134 0x12, 0x11, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 135 0x2e, 0x76, 0x33, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 136 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 137 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 138 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 139 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x1b, 140 0x0a, 0x08, 0x61, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 141 0x48, 0x00, 0x52, 0x07, 0x61, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x09, 0x61, 142 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 143 0x52, 0x08, 0x61, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 144 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x74, 145 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x3a, 0x22, 0x9a, 0xc5, 0x88, 0x1e, 0x1d, 0x0a, 146 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 147 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x42, 0x0b, 0x0a, 0x09, 148 0x62, 0x6f, 0x64, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x38, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 149 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 150 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 151 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 152 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 153 } 154 155 var ( 156 file_envoy_data_tap_v3_common_proto_rawDescOnce sync.Once 157 file_envoy_data_tap_v3_common_proto_rawDescData = file_envoy_data_tap_v3_common_proto_rawDesc 158 ) 159 160 func file_envoy_data_tap_v3_common_proto_rawDescGZIP() []byte { 161 file_envoy_data_tap_v3_common_proto_rawDescOnce.Do(func() { 162 file_envoy_data_tap_v3_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_data_tap_v3_common_proto_rawDescData) 163 }) 164 return file_envoy_data_tap_v3_common_proto_rawDescData 165 } 166 167 var file_envoy_data_tap_v3_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 168 var file_envoy_data_tap_v3_common_proto_goTypes = []interface{}{ 169 (*Body)(nil), // 0: envoy.data.tap.v3.Body 170 } 171 var file_envoy_data_tap_v3_common_proto_depIdxs = []int32{ 172 0, // [0:0] is the sub-list for method output_type 173 0, // [0:0] is the sub-list for method input_type 174 0, // [0:0] is the sub-list for extension type_name 175 0, // [0:0] is the sub-list for extension extendee 176 0, // [0:0] is the sub-list for field type_name 177 } 178 179 func init() { file_envoy_data_tap_v3_common_proto_init() } 180 func file_envoy_data_tap_v3_common_proto_init() { 181 if File_envoy_data_tap_v3_common_proto != nil { 182 return 183 } 184 if !protoimpl.UnsafeEnabled { 185 file_envoy_data_tap_v3_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 186 switch v := v.(*Body); i { 187 case 0: 188 return &v.state 189 case 1: 190 return &v.sizeCache 191 case 2: 192 return &v.unknownFields 193 default: 194 return nil 195 } 196 } 197 } 198 file_envoy_data_tap_v3_common_proto_msgTypes[0].OneofWrappers = []interface{}{ 199 (*Body_AsBytes)(nil), 200 (*Body_AsString)(nil), 201 } 202 type x struct{} 203 out := protoimpl.TypeBuilder{ 204 File: protoimpl.DescBuilder{ 205 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 206 RawDescriptor: file_envoy_data_tap_v3_common_proto_rawDesc, 207 NumEnums: 0, 208 NumMessages: 1, 209 NumExtensions: 0, 210 NumServices: 0, 211 }, 212 GoTypes: file_envoy_data_tap_v3_common_proto_goTypes, 213 DependencyIndexes: file_envoy_data_tap_v3_common_proto_depIdxs, 214 MessageInfos: file_envoy_data_tap_v3_common_proto_msgTypes, 215 }.Build() 216 File_envoy_data_tap_v3_common_proto = out.File 217 file_envoy_data_tap_v3_common_proto_rawDesc = nil 218 file_envoy_data_tap_v3_common_proto_goTypes = nil 219 file_envoy_data_tap_v3_common_proto_depIdxs = nil 220 }