extensions.pb.go 14 KB

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