github.com/EagleQL/Xray-core@v1.4.3/common/protocol/headers.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.15.4 5 // source: common/protocol/headers.proto 6 7 package protocol 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 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 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type SecurityType int32 29 30 const ( 31 SecurityType_UNKNOWN SecurityType = 0 32 SecurityType_LEGACY SecurityType = 1 33 SecurityType_AUTO SecurityType = 2 34 SecurityType_AES128_GCM SecurityType = 3 35 SecurityType_CHACHA20_POLY1305 SecurityType = 4 36 SecurityType_NONE SecurityType = 5 37 SecurityType_ZERO SecurityType = 6 38 ) 39 40 // Enum value maps for SecurityType. 41 var ( 42 SecurityType_name = map[int32]string{ 43 0: "UNKNOWN", 44 1: "LEGACY", 45 2: "AUTO", 46 3: "AES128_GCM", 47 4: "CHACHA20_POLY1305", 48 5: "NONE", 49 6: "ZERO", 50 } 51 SecurityType_value = map[string]int32{ 52 "UNKNOWN": 0, 53 "LEGACY": 1, 54 "AUTO": 2, 55 "AES128_GCM": 3, 56 "CHACHA20_POLY1305": 4, 57 "NONE": 5, 58 "ZERO": 6, 59 } 60 ) 61 62 func (x SecurityType) Enum() *SecurityType { 63 p := new(SecurityType) 64 *p = x 65 return p 66 } 67 68 func (x SecurityType) String() string { 69 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 70 } 71 72 func (SecurityType) Descriptor() protoreflect.EnumDescriptor { 73 return file_common_protocol_headers_proto_enumTypes[0].Descriptor() 74 } 75 76 func (SecurityType) Type() protoreflect.EnumType { 77 return &file_common_protocol_headers_proto_enumTypes[0] 78 } 79 80 func (x SecurityType) Number() protoreflect.EnumNumber { 81 return protoreflect.EnumNumber(x) 82 } 83 84 // Deprecated: Use SecurityType.Descriptor instead. 85 func (SecurityType) EnumDescriptor() ([]byte, []int) { 86 return file_common_protocol_headers_proto_rawDescGZIP(), []int{0} 87 } 88 89 type SecurityConfig struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 Type SecurityType `protobuf:"varint,1,opt,name=type,proto3,enum=xray.common.protocol.SecurityType" json:"type,omitempty"` 95 } 96 97 func (x *SecurityConfig) Reset() { 98 *x = SecurityConfig{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_common_protocol_headers_proto_msgTypes[0] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *SecurityConfig) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*SecurityConfig) ProtoMessage() {} 111 112 func (x *SecurityConfig) ProtoReflect() protoreflect.Message { 113 mi := &file_common_protocol_headers_proto_msgTypes[0] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use SecurityConfig.ProtoReflect.Descriptor instead. 125 func (*SecurityConfig) Descriptor() ([]byte, []int) { 126 return file_common_protocol_headers_proto_rawDescGZIP(), []int{0} 127 } 128 129 func (x *SecurityConfig) GetType() SecurityType { 130 if x != nil { 131 return x.Type 132 } 133 return SecurityType_UNKNOWN 134 } 135 136 var File_common_protocol_headers_proto protoreflect.FileDescriptor 137 138 var file_common_protocol_headers_proto_rawDesc = []byte{ 139 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 140 0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 141 0x14, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 142 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x48, 0x0a, 0x0e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 143 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 144 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 145 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 146 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x2a, 147 0x6c, 0x0a, 0x0c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 148 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 149 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x55, 0x54, 0x4f, 150 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x45, 0x53, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 151 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 152 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 153 0x45, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x06, 0x42, 0x5e, 0x0a, 154 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 155 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 156 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 157 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 158 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 159 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 160 0x72, 0x6f, 0x74, 0x6f, 0x33, 161 } 162 163 var ( 164 file_common_protocol_headers_proto_rawDescOnce sync.Once 165 file_common_protocol_headers_proto_rawDescData = file_common_protocol_headers_proto_rawDesc 166 ) 167 168 func file_common_protocol_headers_proto_rawDescGZIP() []byte { 169 file_common_protocol_headers_proto_rawDescOnce.Do(func() { 170 file_common_protocol_headers_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_headers_proto_rawDescData) 171 }) 172 return file_common_protocol_headers_proto_rawDescData 173 } 174 175 var file_common_protocol_headers_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 176 var file_common_protocol_headers_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 177 var file_common_protocol_headers_proto_goTypes = []interface{}{ 178 (SecurityType)(0), // 0: xray.common.protocol.SecurityType 179 (*SecurityConfig)(nil), // 1: xray.common.protocol.SecurityConfig 180 } 181 var file_common_protocol_headers_proto_depIdxs = []int32{ 182 0, // 0: xray.common.protocol.SecurityConfig.type:type_name -> xray.common.protocol.SecurityType 183 1, // [1:1] is the sub-list for method output_type 184 1, // [1:1] is the sub-list for method input_type 185 1, // [1:1] is the sub-list for extension type_name 186 1, // [1:1] is the sub-list for extension extendee 187 0, // [0:1] is the sub-list for field type_name 188 } 189 190 func init() { file_common_protocol_headers_proto_init() } 191 func file_common_protocol_headers_proto_init() { 192 if File_common_protocol_headers_proto != nil { 193 return 194 } 195 if !protoimpl.UnsafeEnabled { 196 file_common_protocol_headers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 197 switch v := v.(*SecurityConfig); i { 198 case 0: 199 return &v.state 200 case 1: 201 return &v.sizeCache 202 case 2: 203 return &v.unknownFields 204 default: 205 return nil 206 } 207 } 208 } 209 type x struct{} 210 out := protoimpl.TypeBuilder{ 211 File: protoimpl.DescBuilder{ 212 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 213 RawDescriptor: file_common_protocol_headers_proto_rawDesc, 214 NumEnums: 1, 215 NumMessages: 1, 216 NumExtensions: 0, 217 NumServices: 0, 218 }, 219 GoTypes: file_common_protocol_headers_proto_goTypes, 220 DependencyIndexes: file_common_protocol_headers_proto_depIdxs, 221 EnumInfos: file_common_protocol_headers_proto_enumTypes, 222 MessageInfos: file_common_protocol_headers_proto_msgTypes, 223 }.Build() 224 File_common_protocol_headers_proto = out.File 225 file_common_protocol_headers_proto_rawDesc = nil 226 file_common_protocol_headers_proto_goTypes = nil 227 file_common_protocol_headers_proto_depIdxs = nil 228 }