github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/common/protoext/extensions.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.common.protoext; 4 option csharp_namespace = "V2Ray.Core.Common.ProtoExt"; 5 option go_package = "github.com/v2fly/v2ray-core/v5/common/protoext"; 6 option java_package = "com.v2ray.core.common.protoext"; 7 option java_multiple_files = true; 8 9 import "google/protobuf/descriptor.proto"; 10 11 extend google.protobuf.MessageOptions { 12 MessageOpt message_opt = 50000; 13 } 14 15 extend google.protobuf.FieldOptions { 16 FieldOpt field_opt = 50000; 17 } 18 19 message MessageOpt{ 20 repeated string type = 1; 21 repeated string short_name = 2; 22 23 string transport_original_name = 86001; 24 25 // allow_restricted_mode_load allow this config to be loaded in restricted mode 26 // this is typically used when a an attacker can control the content 27 bool allow_restricted_mode_load = 86002; 28 } 29 30 message FieldOpt{ 31 repeated string any_wants = 1; 32 repeated string allowed_values = 2; 33 repeated string allowed_value_types = 3; 34 35 // convert_time_read_file_into read a file into another field, and clear this field during input parsing 36 string convert_time_read_file_into = 4; 37 // forbidden marks a boolean to be inaccessible to user 38 bool forbidden = 5; 39 // convert_time_resource_loading read a file, and place its resource hash into another field 40 string convert_time_resource_loading = 6; 41 // convert_time_parse_ip parse a string ip address, and put its binary representation into another field 42 string convert_time_parse_ip = 7; 43 }