github.com/imannamdari/v2ray-core/v5@v5.0.5/common/protoext/extensions.pb.go (about) 1 package protoext 2 3 import ( 4 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 5 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 6 descriptorpb "google.golang.org/protobuf/types/descriptorpb" 7 reflect "reflect" 8 sync "sync" 9 ) 10 11 const ( 12 // Verify that this generated code is sufficiently up-to-date. 13 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 14 // Verify that runtime/protoimpl is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 16 ) 17 18 type MessageOpt struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 23 Type []string `protobuf:"bytes,1,rep,name=type,proto3" json:"type,omitempty"` 24 ShortName []string `protobuf:"bytes,2,rep,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` 25 TransportOriginalName string `protobuf:"bytes,86001,opt,name=transport_original_name,json=transportOriginalName,proto3" json:"transport_original_name,omitempty"` 26 } 27 28 func (x *MessageOpt) Reset() { 29 *x = MessageOpt{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_common_protoext_extensions_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *MessageOpt) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*MessageOpt) ProtoMessage() {} 42 43 func (x *MessageOpt) ProtoReflect() protoreflect.Message { 44 mi := &file_common_protoext_extensions_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use MessageOpt.ProtoReflect.Descriptor instead. 56 func (*MessageOpt) Descriptor() ([]byte, []int) { 57 return file_common_protoext_extensions_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *MessageOpt) GetType() []string { 61 if x != nil { 62 return x.Type 63 } 64 return nil 65 } 66 67 func (x *MessageOpt) GetShortName() []string { 68 if x != nil { 69 return x.ShortName 70 } 71 return nil 72 } 73 74 func (x *MessageOpt) GetTransportOriginalName() string { 75 if x != nil { 76 return x.TransportOriginalName 77 } 78 return "" 79 } 80 81 type FieldOpt struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 AnyWants []string `protobuf:"bytes,1,rep,name=any_wants,json=anyWants,proto3" json:"any_wants,omitempty"` 87 AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` 88 AllowedValueTypes []string `protobuf:"bytes,3,rep,name=allowed_value_types,json=allowedValueTypes,proto3" json:"allowed_value_types,omitempty"` 89 // convert_time_read_file_into read a file into another field, and clear this field during input parsing 90 ConvertTimeReadFileInto string `protobuf:"bytes,4,opt,name=convert_time_read_file_into,json=convertTimeReadFileInto,proto3" json:"convert_time_read_file_into,omitempty"` 91 // forbidden marks a boolean to be inaccessible to user 92 Forbidden bool `protobuf:"varint,5,opt,name=forbidden,proto3" json:"forbidden,omitempty"` 93 // convert_time_resource_loading read a file, and place its resource hash into another field 94 ConvertTimeResourceLoading string `protobuf:"bytes,6,opt,name=convert_time_resource_loading,json=convertTimeResourceLoading,proto3" json:"convert_time_resource_loading,omitempty"` 95 // convert_time_parse_ip parse a string ip address, and put its binary representation into another field 96 ConvertTimeParseIp string `protobuf:"bytes,7,opt,name=convert_time_parse_ip,json=convertTimeParseIp,proto3" json:"convert_time_parse_ip,omitempty"` 97 } 98 99 func (x *FieldOpt) Reset() { 100 *x = FieldOpt{} 101 if protoimpl.UnsafeEnabled { 102 mi := &file_common_protoext_extensions_proto_msgTypes[1] 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 ms.StoreMessageInfo(mi) 105 } 106 } 107 108 func (x *FieldOpt) String() string { 109 return protoimpl.X.MessageStringOf(x) 110 } 111 112 func (*FieldOpt) ProtoMessage() {} 113 114 func (x *FieldOpt) ProtoReflect() protoreflect.Message { 115 mi := &file_common_protoext_extensions_proto_msgTypes[1] 116 if protoimpl.UnsafeEnabled && x != nil { 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 if ms.LoadMessageInfo() == nil { 119 ms.StoreMessageInfo(mi) 120 } 121 return ms 122 } 123 return mi.MessageOf(x) 124 } 125 126 // Deprecated: Use FieldOpt.ProtoReflect.Descriptor instead. 127 func (*FieldOpt) Descriptor() ([]byte, []int) { 128 return file_common_protoext_extensions_proto_rawDescGZIP(), []int{1} 129 } 130 131 func (x *FieldOpt) GetAnyWants() []string { 132 if x != nil { 133 return x.AnyWants 134 } 135 return nil 136 } 137 138 func (x *FieldOpt) GetAllowedValues() []string { 139 if x != nil { 140 return x.AllowedValues 141 } 142 return nil 143 } 144 145 func (x *FieldOpt) GetAllowedValueTypes() []string { 146 if x != nil { 147 return x.AllowedValueTypes 148 } 149 return nil 150 } 151 152 func (x *FieldOpt) GetConvertTimeReadFileInto() string { 153 if x != nil { 154 return x.ConvertTimeReadFileInto 155 } 156 return "" 157 } 158 159 func (x *FieldOpt) GetForbidden() bool { 160 if x != nil { 161 return x.Forbidden 162 } 163 return false 164 } 165 166 func (x *FieldOpt) GetConvertTimeResourceLoading() string { 167 if x != nil { 168 return x.ConvertTimeResourceLoading 169 } 170 return "" 171 } 172 173 func (x *FieldOpt) GetConvertTimeParseIp() string { 174 if x != nil { 175 return x.ConvertTimeParseIp 176 } 177 return "" 178 } 179 180 var file_common_protoext_extensions_proto_extTypes = []protoimpl.ExtensionInfo{ 181 { 182 ExtendedType: (*descriptorpb.MessageOptions)(nil), 183 ExtensionType: (*MessageOpt)(nil), 184 Field: 50000, 185 Name: "v2ray.core.common.protoext.message_opt", 186 Tag: "bytes,50000,opt,name=message_opt", 187 Filename: "common/protoext/extensions.proto", 188 }, 189 { 190 ExtendedType: (*descriptorpb.FieldOptions)(nil), 191 ExtensionType: (*FieldOpt)(nil), 192 Field: 50000, 193 Name: "v2ray.core.common.protoext.field_opt", 194 Tag: "bytes,50000,opt,name=field_opt", 195 Filename: "common/protoext/extensions.proto", 196 }, 197 } 198 199 // Extension fields to descriptorpb.MessageOptions. 200 var ( 201 // optional v2ray.core.common.protoext.MessageOpt message_opt = 50000; 202 E_MessageOpt = &file_common_protoext_extensions_proto_extTypes[0] 203 ) 204 205 // Extension fields to descriptorpb.FieldOptions. 206 var ( 207 // optional v2ray.core.common.protoext.FieldOpt field_opt = 50000; 208 E_FieldOpt = &file_common_protoext_extensions_proto_extTypes[1] 209 ) 210 211 var File_common_protoext_extensions_proto protoreflect.FileDescriptor 212 213 var file_common_protoext_extensions_proto_rawDesc = []byte{ 214 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 215 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 216 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 217 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x1a, 0x20, 218 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 219 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 220 0x22, 0x79, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x12, 0x12, 221 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 222 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 223 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 224 0x65, 0x12, 0x38, 0x0a, 0x17, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 225 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0xf1, 0x9f, 0x05, 226 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 227 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xd0, 0x02, 0x0a, 0x08, 228 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x79, 0x5f, 229 0x77, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x79, 230 0x57, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 231 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 232 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 233 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 234 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 235 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1b, 236 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x61, 237 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 238 0x09, 0x52, 0x17, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 239 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x6f, 240 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 241 0x6f, 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, 0x41, 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x76, 242 0x65, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 243 0x65, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 244 0x1a, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x6f, 245 0x75, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x31, 0x0a, 0x15, 0x63, 246 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 247 0x65, 0x5f, 0x69, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x76, 248 0x65, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x73, 0x65, 0x49, 0x70, 0x3a, 0x6a, 249 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x12, 0x1f, 0x2e, 250 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 251 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0, 252 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 253 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 254 0x65, 0x78, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x52, 0x0a, 255 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x3a, 0x62, 0x0a, 0x09, 0x66, 0x69, 256 0x65, 0x6c, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 257 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 258 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0, 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 259 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 260 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 261 0x64, 0x4f, 0x70, 0x74, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x42, 0x6f, 262 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 263 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 264 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 265 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 266 0x76, 0x35, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 267 0x78, 0x74, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 268 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x78, 0x74, 0x62, 269 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 270 } 271 272 var ( 273 file_common_protoext_extensions_proto_rawDescOnce sync.Once 274 file_common_protoext_extensions_proto_rawDescData = file_common_protoext_extensions_proto_rawDesc 275 ) 276 277 func file_common_protoext_extensions_proto_rawDescGZIP() []byte { 278 file_common_protoext_extensions_proto_rawDescOnce.Do(func() { 279 file_common_protoext_extensions_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protoext_extensions_proto_rawDescData) 280 }) 281 return file_common_protoext_extensions_proto_rawDescData 282 } 283 284 var file_common_protoext_extensions_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 285 var file_common_protoext_extensions_proto_goTypes = []interface{}{ 286 (*MessageOpt)(nil), // 0: v2ray.core.common.protoext.MessageOpt 287 (*FieldOpt)(nil), // 1: v2ray.core.common.protoext.FieldOpt 288 (*descriptorpb.MessageOptions)(nil), // 2: google.protobuf.MessageOptions 289 (*descriptorpb.FieldOptions)(nil), // 3: google.protobuf.FieldOptions 290 } 291 var file_common_protoext_extensions_proto_depIdxs = []int32{ 292 2, // 0: v2ray.core.common.protoext.message_opt:extendee -> google.protobuf.MessageOptions 293 3, // 1: v2ray.core.common.protoext.field_opt:extendee -> google.protobuf.FieldOptions 294 0, // 2: v2ray.core.common.protoext.message_opt:type_name -> v2ray.core.common.protoext.MessageOpt 295 1, // 3: v2ray.core.common.protoext.field_opt:type_name -> v2ray.core.common.protoext.FieldOpt 296 4, // [4:4] is the sub-list for method output_type 297 4, // [4:4] is the sub-list for method input_type 298 2, // [2:4] is the sub-list for extension type_name 299 0, // [0:2] is the sub-list for extension extendee 300 0, // [0:0] is the sub-list for field type_name 301 } 302 303 func init() { file_common_protoext_extensions_proto_init() } 304 func file_common_protoext_extensions_proto_init() { 305 if File_common_protoext_extensions_proto != nil { 306 return 307 } 308 if !protoimpl.UnsafeEnabled { 309 file_common_protoext_extensions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 310 switch v := v.(*MessageOpt); i { 311 case 0: 312 return &v.state 313 case 1: 314 return &v.sizeCache 315 case 2: 316 return &v.unknownFields 317 default: 318 return nil 319 } 320 } 321 file_common_protoext_extensions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 322 switch v := v.(*FieldOpt); i { 323 case 0: 324 return &v.state 325 case 1: 326 return &v.sizeCache 327 case 2: 328 return &v.unknownFields 329 default: 330 return nil 331 } 332 } 333 } 334 type x struct{} 335 out := protoimpl.TypeBuilder{ 336 File: protoimpl.DescBuilder{ 337 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 338 RawDescriptor: file_common_protoext_extensions_proto_rawDesc, 339 NumEnums: 0, 340 NumMessages: 2, 341 NumExtensions: 2, 342 NumServices: 0, 343 }, 344 GoTypes: file_common_protoext_extensions_proto_goTypes, 345 DependencyIndexes: file_common_protoext_extensions_proto_depIdxs, 346 MessageInfos: file_common_protoext_extensions_proto_msgTypes, 347 ExtensionInfos: file_common_protoext_extensions_proto_extTypes, 348 }.Build() 349 File_common_protoext_extensions_proto = out.File 350 file_common_protoext_extensions_proto_rawDesc = nil 351 file_common_protoext_extensions_proto_goTypes = nil 352 file_common_protoext_extensions_proto_depIdxs = nil 353 }