extensions.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.15.6
  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. }
  74. func (x *FieldOpt) Reset() {
  75. *x = FieldOpt{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_common_protoext_extensions_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *FieldOpt) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*FieldOpt) ProtoMessage() {}
  86. func (x *FieldOpt) ProtoReflect() protoreflect.Message {
  87. mi := &file_common_protoext_extensions_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use FieldOpt.ProtoReflect.Descriptor instead.
  98. func (*FieldOpt) Descriptor() ([]byte, []int) {
  99. return file_common_protoext_extensions_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *FieldOpt) GetAnyWants() []string {
  102. if x != nil {
  103. return x.AnyWants
  104. }
  105. return nil
  106. }
  107. func (x *FieldOpt) GetAllowedValues() []string {
  108. if x != nil {
  109. return x.AllowedValues
  110. }
  111. return nil
  112. }
  113. func (x *FieldOpt) GetAllowedValueTypes() []string {
  114. if x != nil {
  115. return x.AllowedValueTypes
  116. }
  117. return nil
  118. }
  119. var file_common_protoext_extensions_proto_extTypes = []protoimpl.ExtensionInfo{
  120. {
  121. ExtendedType: (*descriptorpb.MessageOptions)(nil),
  122. ExtensionType: (*MessageOpt)(nil),
  123. Field: 50000,
  124. Name: "v2ray.core.common.protoext.message_opt",
  125. Tag: "bytes,50000,opt,name=message_opt",
  126. Filename: "common/protoext/extensions.proto",
  127. },
  128. {
  129. ExtendedType: (*descriptorpb.FieldOptions)(nil),
  130. ExtensionType: (*FieldOpt)(nil),
  131. Field: 50000,
  132. Name: "v2ray.core.common.protoext.field_opt",
  133. Tag: "bytes,50000,opt,name=field_opt",
  134. Filename: "common/protoext/extensions.proto",
  135. },
  136. }
  137. // Extension fields to descriptorpb.MessageOptions.
  138. var (
  139. // optional v2ray.core.common.protoext.MessageOpt message_opt = 50000;
  140. E_MessageOpt = &file_common_protoext_extensions_proto_extTypes[0]
  141. )
  142. // Extension fields to descriptorpb.FieldOptions.
  143. var (
  144. // optional v2ray.core.common.protoext.FieldOpt field_opt = 50000;
  145. E_FieldOpt = &file_common_protoext_extensions_proto_extTypes[1]
  146. )
  147. var File_common_protoext_extensions_proto protoreflect.FileDescriptor
  148. var file_common_protoext_extensions_proto_rawDesc = []byte{
  149. 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  150. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  151. 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  152. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x1a, 0x20,
  153. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  154. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  155. 0x22, 0x3f, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x12, 0x12,
  156. 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79,
  157. 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
  158. 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d,
  159. 0x65, 0x22, 0x7e, 0x0a, 0x08, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x12, 0x1b, 0x0a,
  160. 0x09, 0x61, 0x6e, 0x79, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
  161. 0x52, 0x08, 0x61, 0x6e, 0x79, 0x57, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c,
  162. 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,
  163. 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
  164. 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c,
  165. 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11,
  166. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65,
  167. 0x73, 0x3a, 0x6a, 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x70, 0x74,
  168. 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  169. 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  170. 0x73, 0x18, 0xd0, 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61,
  171. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
  172. 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70,
  173. 0x74, 0x52, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x3a, 0x62, 0x0a,
  174. 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f,
  175. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,
  176. 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0, 0x86, 0x03, 0x20, 0x01, 0x28,
  177. 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  178. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2e, 0x46,
  179. 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70,
  180. 0x74, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  181. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  182. 0x65, 0x78, 0x74, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  183. 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  184. 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  185. 0x74, 0x6f, 0x65, 0x78, 0x74, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  186. 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45,
  187. 0x78, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  188. }
  189. var (
  190. file_common_protoext_extensions_proto_rawDescOnce sync.Once
  191. file_common_protoext_extensions_proto_rawDescData = file_common_protoext_extensions_proto_rawDesc
  192. )
  193. func file_common_protoext_extensions_proto_rawDescGZIP() []byte {
  194. file_common_protoext_extensions_proto_rawDescOnce.Do(func() {
  195. file_common_protoext_extensions_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protoext_extensions_proto_rawDescData)
  196. })
  197. return file_common_protoext_extensions_proto_rawDescData
  198. }
  199. var file_common_protoext_extensions_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  200. var file_common_protoext_extensions_proto_goTypes = []interface{}{
  201. (*MessageOpt)(nil), // 0: v2ray.core.common.protoext.MessageOpt
  202. (*FieldOpt)(nil), // 1: v2ray.core.common.protoext.FieldOpt
  203. (*descriptorpb.MessageOptions)(nil), // 2: google.protobuf.MessageOptions
  204. (*descriptorpb.FieldOptions)(nil), // 3: google.protobuf.FieldOptions
  205. }
  206. var file_common_protoext_extensions_proto_depIdxs = []int32{
  207. 2, // 0: v2ray.core.common.protoext.message_opt:extendee -> google.protobuf.MessageOptions
  208. 3, // 1: v2ray.core.common.protoext.field_opt:extendee -> google.protobuf.FieldOptions
  209. 0, // 2: v2ray.core.common.protoext.message_opt:type_name -> v2ray.core.common.protoext.MessageOpt
  210. 1, // 3: v2ray.core.common.protoext.field_opt:type_name -> v2ray.core.common.protoext.FieldOpt
  211. 4, // [4:4] is the sub-list for method output_type
  212. 4, // [4:4] is the sub-list for method input_type
  213. 2, // [2:4] is the sub-list for extension type_name
  214. 0, // [0:2] is the sub-list for extension extendee
  215. 0, // [0:0] is the sub-list for field type_name
  216. }
  217. func init() { file_common_protoext_extensions_proto_init() }
  218. func file_common_protoext_extensions_proto_init() {
  219. if File_common_protoext_extensions_proto != nil {
  220. return
  221. }
  222. if !protoimpl.UnsafeEnabled {
  223. file_common_protoext_extensions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  224. switch v := v.(*MessageOpt); i {
  225. case 0:
  226. return &v.state
  227. case 1:
  228. return &v.sizeCache
  229. case 2:
  230. return &v.unknownFields
  231. default:
  232. return nil
  233. }
  234. }
  235. file_common_protoext_extensions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  236. switch v := v.(*FieldOpt); i {
  237. case 0:
  238. return &v.state
  239. case 1:
  240. return &v.sizeCache
  241. case 2:
  242. return &v.unknownFields
  243. default:
  244. return nil
  245. }
  246. }
  247. }
  248. type x struct{}
  249. out := protoimpl.TypeBuilder{
  250. File: protoimpl.DescBuilder{
  251. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  252. RawDescriptor: file_common_protoext_extensions_proto_rawDesc,
  253. NumEnums: 0,
  254. NumMessages: 2,
  255. NumExtensions: 2,
  256. NumServices: 0,
  257. },
  258. GoTypes: file_common_protoext_extensions_proto_goTypes,
  259. DependencyIndexes: file_common_protoext_extensions_proto_depIdxs,
  260. MessageInfos: file_common_protoext_extensions_proto_msgTypes,
  261. ExtensionInfos: file_common_protoext_extensions_proto_extTypes,
  262. }.Build()
  263. File_common_protoext_extensions_proto = out.File
  264. file_common_protoext_extensions_proto_rawDesc = nil
  265. file_common_protoext_extensions_proto_goTypes = nil
  266. file_common_protoext_extensions_proto_depIdxs = nil
  267. }