1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 14:26:26 -05:00
v2fly/common/protoext/extensions.proto

39 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2021-06-23 04:52:33 -04:00
syntax = "proto3";
package v2ray.core.common.protoext;
option csharp_namespace = "V2Ray.Core.Common.ProtoExt";
option go_package = "github.com/v2fly/v2ray-core/v5/common/protoext";
2021-06-23 04:52:33 -04:00
option java_package = "com.v2ray.core.common.protoext";
option java_multiple_files = true;
import "google/protobuf/descriptor.proto";
2021-06-23 04:52:33 -04:00
extend google.protobuf.MessageOptions {
MessageOpt message_opt = 50000;
}
extend google.protobuf.FieldOptions {
FieldOpt field_opt = 50000;
}
message MessageOpt{
repeated string type = 1;
repeated string short_name = 2;
2021-09-07 11:53:09 -04:00
string transport_original_name = 86001;
2021-06-23 04:52:33 -04:00
}
message FieldOpt{
repeated string any_wants = 1;
repeated string allowed_values = 2;
repeated string allowed_value_types = 3;
// convert_time_read_file_into read a file into another field, and clear this field during input parsing
string convert_time_read_file_into = 4;
// forbidden marks a boolean to be inaccessible to user
bool forbidden = 5;
// convert_time_resource_loading read a file, and place its resource hash into another field
string convert_time_resource_loading = 6;
2021-09-18 16:04:30 -04:00
// convert_time_parse_ip parse a string ip address, and put its binary representation into another field
string convert_time_parse_ip = 7;
2021-06-23 04:52:33 -04:00
}