extension.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. // Copyright 2017 Google LLC. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.27.1
  17. // protoc v3.19.3
  18. // source: extensions/extension.proto
  19. package gnostic_extension_v1
  20. import (
  21. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  22. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  23. anypb "google.golang.org/protobuf/types/known/anypb"
  24. reflect "reflect"
  25. sync "sync"
  26. )
  27. const (
  28. // Verify that this generated code is sufficiently up-to-date.
  29. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  30. // Verify that runtime/protoimpl is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  32. )
  33. // The version number of Gnostic.
  34. type Version struct {
  35. state protoimpl.MessageState
  36. sizeCache protoimpl.SizeCache
  37. unknownFields protoimpl.UnknownFields
  38. Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
  39. Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
  40. Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
  41. // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
  42. // be empty for mainline stable releases.
  43. Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
  44. }
  45. func (x *Version) Reset() {
  46. *x = Version{}
  47. if protoimpl.UnsafeEnabled {
  48. mi := &file_extensions_extension_proto_msgTypes[0]
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. ms.StoreMessageInfo(mi)
  51. }
  52. }
  53. func (x *Version) String() string {
  54. return protoimpl.X.MessageStringOf(x)
  55. }
  56. func (*Version) ProtoMessage() {}
  57. func (x *Version) ProtoReflect() protoreflect.Message {
  58. mi := &file_extensions_extension_proto_msgTypes[0]
  59. if protoimpl.UnsafeEnabled && x != nil {
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. if ms.LoadMessageInfo() == nil {
  62. ms.StoreMessageInfo(mi)
  63. }
  64. return ms
  65. }
  66. return mi.MessageOf(x)
  67. }
  68. // Deprecated: Use Version.ProtoReflect.Descriptor instead.
  69. func (*Version) Descriptor() ([]byte, []int) {
  70. return file_extensions_extension_proto_rawDescGZIP(), []int{0}
  71. }
  72. func (x *Version) GetMajor() int32 {
  73. if x != nil {
  74. return x.Major
  75. }
  76. return 0
  77. }
  78. func (x *Version) GetMinor() int32 {
  79. if x != nil {
  80. return x.Minor
  81. }
  82. return 0
  83. }
  84. func (x *Version) GetPatch() int32 {
  85. if x != nil {
  86. return x.Patch
  87. }
  88. return 0
  89. }
  90. func (x *Version) GetSuffix() string {
  91. if x != nil {
  92. return x.Suffix
  93. }
  94. return ""
  95. }
  96. // An encoded Request is written to the ExtensionHandler's stdin.
  97. type ExtensionHandlerRequest struct {
  98. state protoimpl.MessageState
  99. sizeCache protoimpl.SizeCache
  100. unknownFields protoimpl.UnknownFields
  101. // The extension to process.
  102. Wrapper *Wrapper `protobuf:"bytes,1,opt,name=wrapper,proto3" json:"wrapper,omitempty"`
  103. // The version number of Gnostic.
  104. CompilerVersion *Version `protobuf:"bytes,2,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
  105. }
  106. func (x *ExtensionHandlerRequest) Reset() {
  107. *x = ExtensionHandlerRequest{}
  108. if protoimpl.UnsafeEnabled {
  109. mi := &file_extensions_extension_proto_msgTypes[1]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  112. }
  113. }
  114. func (x *ExtensionHandlerRequest) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*ExtensionHandlerRequest) ProtoMessage() {}
  118. func (x *ExtensionHandlerRequest) ProtoReflect() protoreflect.Message {
  119. mi := &file_extensions_extension_proto_msgTypes[1]
  120. if protoimpl.UnsafeEnabled && x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use ExtensionHandlerRequest.ProtoReflect.Descriptor instead.
  130. func (*ExtensionHandlerRequest) Descriptor() ([]byte, []int) {
  131. return file_extensions_extension_proto_rawDescGZIP(), []int{1}
  132. }
  133. func (x *ExtensionHandlerRequest) GetWrapper() *Wrapper {
  134. if x != nil {
  135. return x.Wrapper
  136. }
  137. return nil
  138. }
  139. func (x *ExtensionHandlerRequest) GetCompilerVersion() *Version {
  140. if x != nil {
  141. return x.CompilerVersion
  142. }
  143. return nil
  144. }
  145. // The extensions writes an encoded ExtensionHandlerResponse to stdout.
  146. type ExtensionHandlerResponse struct {
  147. state protoimpl.MessageState
  148. sizeCache protoimpl.SizeCache
  149. unknownFields protoimpl.UnknownFields
  150. // true if the extension is handled by the extension handler; false otherwise
  151. Handled bool `protobuf:"varint,1,opt,name=handled,proto3" json:"handled,omitempty"`
  152. // Error message(s). If non-empty, the extension handling failed.
  153. // The extension handler process should exit with status code zero
  154. // even if it reports an error in this way.
  155. //
  156. // This should be used to indicate errors which prevent the extension from
  157. // operating as intended. Errors which indicate a problem in gnostic
  158. // itself -- such as the input Document being unparseable -- should be
  159. // reported by writing a message to stderr and exiting with a non-zero
  160. // status code.
  161. Errors []string `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
  162. // text output
  163. Value *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  164. }
  165. func (x *ExtensionHandlerResponse) Reset() {
  166. *x = ExtensionHandlerResponse{}
  167. if protoimpl.UnsafeEnabled {
  168. mi := &file_extensions_extension_proto_msgTypes[2]
  169. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  170. ms.StoreMessageInfo(mi)
  171. }
  172. }
  173. func (x *ExtensionHandlerResponse) String() string {
  174. return protoimpl.X.MessageStringOf(x)
  175. }
  176. func (*ExtensionHandlerResponse) ProtoMessage() {}
  177. func (x *ExtensionHandlerResponse) ProtoReflect() protoreflect.Message {
  178. mi := &file_extensions_extension_proto_msgTypes[2]
  179. if protoimpl.UnsafeEnabled && x != nil {
  180. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  181. if ms.LoadMessageInfo() == nil {
  182. ms.StoreMessageInfo(mi)
  183. }
  184. return ms
  185. }
  186. return mi.MessageOf(x)
  187. }
  188. // Deprecated: Use ExtensionHandlerResponse.ProtoReflect.Descriptor instead.
  189. func (*ExtensionHandlerResponse) Descriptor() ([]byte, []int) {
  190. return file_extensions_extension_proto_rawDescGZIP(), []int{2}
  191. }
  192. func (x *ExtensionHandlerResponse) GetHandled() bool {
  193. if x != nil {
  194. return x.Handled
  195. }
  196. return false
  197. }
  198. func (x *ExtensionHandlerResponse) GetErrors() []string {
  199. if x != nil {
  200. return x.Errors
  201. }
  202. return nil
  203. }
  204. func (x *ExtensionHandlerResponse) GetValue() *anypb.Any {
  205. if x != nil {
  206. return x.Value
  207. }
  208. return nil
  209. }
  210. type Wrapper struct {
  211. state protoimpl.MessageState
  212. sizeCache protoimpl.SizeCache
  213. unknownFields protoimpl.UnknownFields
  214. // version of the OpenAPI specification in which this extension was written.
  215. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  216. // Name of the extension.
  217. ExtensionName string `protobuf:"bytes,2,opt,name=extension_name,json=extensionName,proto3" json:"extension_name,omitempty"`
  218. // YAML-formatted extension value.
  219. Yaml string `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"`
  220. }
  221. func (x *Wrapper) Reset() {
  222. *x = Wrapper{}
  223. if protoimpl.UnsafeEnabled {
  224. mi := &file_extensions_extension_proto_msgTypes[3]
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. ms.StoreMessageInfo(mi)
  227. }
  228. }
  229. func (x *Wrapper) String() string {
  230. return protoimpl.X.MessageStringOf(x)
  231. }
  232. func (*Wrapper) ProtoMessage() {}
  233. func (x *Wrapper) ProtoReflect() protoreflect.Message {
  234. mi := &file_extensions_extension_proto_msgTypes[3]
  235. if protoimpl.UnsafeEnabled && x != nil {
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. if ms.LoadMessageInfo() == nil {
  238. ms.StoreMessageInfo(mi)
  239. }
  240. return ms
  241. }
  242. return mi.MessageOf(x)
  243. }
  244. // Deprecated: Use Wrapper.ProtoReflect.Descriptor instead.
  245. func (*Wrapper) Descriptor() ([]byte, []int) {
  246. return file_extensions_extension_proto_rawDescGZIP(), []int{3}
  247. }
  248. func (x *Wrapper) GetVersion() string {
  249. if x != nil {
  250. return x.Version
  251. }
  252. return ""
  253. }
  254. func (x *Wrapper) GetExtensionName() string {
  255. if x != nil {
  256. return x.ExtensionName
  257. }
  258. return ""
  259. }
  260. func (x *Wrapper) GetYaml() string {
  261. if x != nil {
  262. return x.Yaml
  263. }
  264. return ""
  265. }
  266. var File_extensions_extension_proto protoreflect.FileDescriptor
  267. var file_extensions_extension_proto_rawDesc = []byte{
  268. 0x0a, 0x1a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x65, 0x78, 0x74,
  269. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6e,
  270. 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
  271. 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  272. 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a,
  273. 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f,
  274. 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14,
  275. 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d,
  276. 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20,
  277. 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75,
  278. 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x75, 0x66, 0x66,
  279. 0x69, 0x78, 0x22, 0x9c, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  280. 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37,
  281. 0x0a, 0x07, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  282. 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  283. 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x07,
  284. 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69,
  285. 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
  286. 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65,
  287. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
  288. 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
  289. 0x6e, 0x22, 0x78, 0x0a, 0x18, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61,
  290. 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,
  291. 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
  292. 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72,
  293. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12,
  294. 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
  295. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  296. 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x07, 0x57,
  297. 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
  298. 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
  299. 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61,
  300. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  301. 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18,
  302. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x42, 0x4d, 0x0a, 0x0e, 0x6f,
  303. 0x72, 0x67, 0x2e, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x47,
  304. 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50,
  305. 0x01, 0x5a, 0x21, 0x2e, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3b,
  306. 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  307. 0x6e, 0x5f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x47, 0x4e, 0x58, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  308. 0x6f, 0x33,
  309. }
  310. var (
  311. file_extensions_extension_proto_rawDescOnce sync.Once
  312. file_extensions_extension_proto_rawDescData = file_extensions_extension_proto_rawDesc
  313. )
  314. func file_extensions_extension_proto_rawDescGZIP() []byte {
  315. file_extensions_extension_proto_rawDescOnce.Do(func() {
  316. file_extensions_extension_proto_rawDescData = protoimpl.X.CompressGZIP(file_extensions_extension_proto_rawDescData)
  317. })
  318. return file_extensions_extension_proto_rawDescData
  319. }
  320. var file_extensions_extension_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  321. var file_extensions_extension_proto_goTypes = []interface{}{
  322. (*Version)(nil), // 0: gnostic.extension.v1.Version
  323. (*ExtensionHandlerRequest)(nil), // 1: gnostic.extension.v1.ExtensionHandlerRequest
  324. (*ExtensionHandlerResponse)(nil), // 2: gnostic.extension.v1.ExtensionHandlerResponse
  325. (*Wrapper)(nil), // 3: gnostic.extension.v1.Wrapper
  326. (*anypb.Any)(nil), // 4: google.protobuf.Any
  327. }
  328. var file_extensions_extension_proto_depIdxs = []int32{
  329. 3, // 0: gnostic.extension.v1.ExtensionHandlerRequest.wrapper:type_name -> gnostic.extension.v1.Wrapper
  330. 0, // 1: gnostic.extension.v1.ExtensionHandlerRequest.compiler_version:type_name -> gnostic.extension.v1.Version
  331. 4, // 2: gnostic.extension.v1.ExtensionHandlerResponse.value:type_name -> google.protobuf.Any
  332. 3, // [3:3] is the sub-list for method output_type
  333. 3, // [3:3] is the sub-list for method input_type
  334. 3, // [3:3] is the sub-list for extension type_name
  335. 3, // [3:3] is the sub-list for extension extendee
  336. 0, // [0:3] is the sub-list for field type_name
  337. }
  338. func init() { file_extensions_extension_proto_init() }
  339. func file_extensions_extension_proto_init() {
  340. if File_extensions_extension_proto != nil {
  341. return
  342. }
  343. if !protoimpl.UnsafeEnabled {
  344. file_extensions_extension_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  345. switch v := v.(*Version); i {
  346. case 0:
  347. return &v.state
  348. case 1:
  349. return &v.sizeCache
  350. case 2:
  351. return &v.unknownFields
  352. default:
  353. return nil
  354. }
  355. }
  356. file_extensions_extension_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  357. switch v := v.(*ExtensionHandlerRequest); i {
  358. case 0:
  359. return &v.state
  360. case 1:
  361. return &v.sizeCache
  362. case 2:
  363. return &v.unknownFields
  364. default:
  365. return nil
  366. }
  367. }
  368. file_extensions_extension_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  369. switch v := v.(*ExtensionHandlerResponse); i {
  370. case 0:
  371. return &v.state
  372. case 1:
  373. return &v.sizeCache
  374. case 2:
  375. return &v.unknownFields
  376. default:
  377. return nil
  378. }
  379. }
  380. file_extensions_extension_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  381. switch v := v.(*Wrapper); i {
  382. case 0:
  383. return &v.state
  384. case 1:
  385. return &v.sizeCache
  386. case 2:
  387. return &v.unknownFields
  388. default:
  389. return nil
  390. }
  391. }
  392. }
  393. type x struct{}
  394. out := protoimpl.TypeBuilder{
  395. File: protoimpl.DescBuilder{
  396. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  397. RawDescriptor: file_extensions_extension_proto_rawDesc,
  398. NumEnums: 0,
  399. NumMessages: 4,
  400. NumExtensions: 0,
  401. NumServices: 0,
  402. },
  403. GoTypes: file_extensions_extension_proto_goTypes,
  404. DependencyIndexes: file_extensions_extension_proto_depIdxs,
  405. MessageInfos: file_extensions_extension_proto_msgTypes,
  406. }.Build()
  407. File_extensions_extension_proto = out.File
  408. file_extensions_extension_proto_rawDesc = nil
  409. file_extensions_extension_proto_goTypes = nil
  410. file_extensions_extension_proto_depIdxs = nil
  411. }