extensions.proto 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. syntax = "proto3";
  2. package v2ray.core.common.protoext;
  3. option csharp_namespace = "V2Ray.Core.Common.ProtoExt";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/common/protoext";
  5. option java_package = "com.v2ray.core.common.protoext";
  6. option java_multiple_files = true;
  7. import "google/protobuf/descriptor.proto";
  8. extend google.protobuf.MessageOptions {
  9. MessageOpt message_opt = 50000;
  10. }
  11. extend google.protobuf.FieldOptions {
  12. FieldOpt field_opt = 50000;
  13. }
  14. message MessageOpt{
  15. repeated string type = 1;
  16. repeated string short_name = 2;
  17. string transport_original_name = 86001;
  18. }
  19. message FieldOpt{
  20. repeated string any_wants = 1;
  21. repeated string allowed_values = 2;
  22. repeated string allowed_value_types = 3;
  23. // convert_time_read_file_into read a file into another field, and clear this field during input parsing
  24. string convert_time_read_file_into = 4;
  25. // forbidden marks a boolean to be inaccessible to user
  26. bool forbidden = 5;
  27. // convert_time_resource_loading read a file, and place its resource hash into another field
  28. string convert_time_resource_loading = 6;
  29. // convert_time_parse_ip parse a string ip address, and put its binary representation into another field
  30. string convert_time_parse_ip = 7;
  31. }