github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/extensions/http/original_ip_detection/xff/v3/xff.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/extensions/http/original_ip_detection/xff/v3/xff.proto 6 7 package envoy_extensions_http_original_ip_detection_xff_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 // This extension allows for the original downstream remote IP to be detected 30 // by reading the :ref:`config_http_conn_man_headers_x-forwarded-for` header. 31 // 32 // [#extension: envoy.http.original_ip_detection.xff] 33 type XffConfig struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // The number of additional ingress proxy hops from the right side of the 39 // :ref:`config_http_conn_man_headers_x-forwarded-for` HTTP header to trust when 40 // determining the origin client's IP address. The default is zero if this option 41 // is not specified. See the documentation for 42 // :ref:`config_http_conn_man_headers_x-forwarded-for` for more information. 43 XffNumTrustedHops uint32 `protobuf:"varint,1,opt,name=xff_num_trusted_hops,json=xffNumTrustedHops,proto3" json:"xff_num_trusted_hops,omitempty"` 44 } 45 46 func (x *XffConfig) Reset() { 47 *x = XffConfig{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *XffConfig) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*XffConfig) ProtoMessage() {} 60 61 func (x *XffConfig) ProtoReflect() protoreflect.Message { 62 mi := &file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use XffConfig.ProtoReflect.Descriptor instead. 74 func (*XffConfig) Descriptor() ([]byte, []int) { 75 return file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *XffConfig) GetXffNumTrustedHops() uint32 { 79 if x != nil { 80 return x.XffNumTrustedHops 81 } 82 return 0 83 } 84 85 var File_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto protoreflect.FileDescriptor 86 87 var file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDesc = []byte{ 88 0x0a, 0x3c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 89 0x6e, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 90 0x5f, 0x69, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x78, 0x66, 91 0x66, 0x2f, 0x76, 0x33, 0x2f, 0x78, 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x32, 92 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 93 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 94 0x70, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x78, 0x66, 0x66, 0x2e, 95 0x76, 0x33, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 96 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 97 0x6f, 0x22, 0x3c, 0x0a, 0x09, 0x58, 0x66, 0x66, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, 98 0x0a, 0x14, 0x78, 0x66, 0x66, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 99 0x64, 0x5f, 0x68, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x78, 0x66, 100 0x66, 0x4e, 0x75, 0x6d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x48, 0x6f, 0x70, 0x73, 0x42, 101 0x56, 0x0a, 0x40, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 102 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 103 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 104 0x69, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x78, 0x66, 0x66, 105 0x2e, 0x76, 0x33, 0x42, 0x08, 0x58, 0x66, 0x66, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 106 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 107 } 108 109 var ( 110 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescOnce sync.Once 111 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescData = file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDesc 112 ) 113 114 func file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescGZIP() []byte { 115 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescOnce.Do(func() { 116 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescData) 117 }) 118 return file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDescData 119 } 120 121 var file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 122 var file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_goTypes = []interface{}{ 123 (*XffConfig)(nil), // 0: envoy.extensions.http.original_ip_detection.xff.v3.XffConfig 124 } 125 var file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_depIdxs = []int32{ 126 0, // [0:0] is the sub-list for method output_type 127 0, // [0:0] is the sub-list for method input_type 128 0, // [0:0] is the sub-list for extension type_name 129 0, // [0:0] is the sub-list for extension extendee 130 0, // [0:0] is the sub-list for field type_name 131 } 132 133 func init() { file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_init() } 134 func file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_init() { 135 if File_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto != nil { 136 return 137 } 138 if !protoimpl.UnsafeEnabled { 139 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 140 switch v := v.(*XffConfig); i { 141 case 0: 142 return &v.state 143 case 1: 144 return &v.sizeCache 145 case 2: 146 return &v.unknownFields 147 default: 148 return nil 149 } 150 } 151 } 152 type x struct{} 153 out := protoimpl.TypeBuilder{ 154 File: protoimpl.DescBuilder{ 155 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 156 RawDescriptor: file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDesc, 157 NumEnums: 0, 158 NumMessages: 1, 159 NumExtensions: 0, 160 NumServices: 0, 161 }, 162 GoTypes: file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_goTypes, 163 DependencyIndexes: file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_depIdxs, 164 MessageInfos: file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_msgTypes, 165 }.Build() 166 File_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto = out.File 167 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_rawDesc = nil 168 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_goTypes = nil 169 file_envoy_extensions_http_original_ip_detection_xff_v3_xff_proto_depIdxs = nil 170 }