extensions.pb.go 14 KB

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