extension.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: extensions/extension.proto
  3. package openapiextension_v1
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. any "github.com/golang/protobuf/ptypes/any"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  19. // The version number of OpenAPI compiler.
  20. type Version struct {
  21. Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
  22. Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
  23. Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
  24. // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
  25. // be empty for mainline stable releases.
  26. Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *Version) Reset() { *m = Version{} }
  32. func (m *Version) String() string { return proto.CompactTextString(m) }
  33. func (*Version) ProtoMessage() {}
  34. func (*Version) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_661e47e790f76671, []int{0}
  36. }
  37. func (m *Version) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_Version.Unmarshal(m, b)
  39. }
  40. func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_Version.Marshal(b, m, deterministic)
  42. }
  43. func (m *Version) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_Version.Merge(m, src)
  45. }
  46. func (m *Version) XXX_Size() int {
  47. return xxx_messageInfo_Version.Size(m)
  48. }
  49. func (m *Version) XXX_DiscardUnknown() {
  50. xxx_messageInfo_Version.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_Version proto.InternalMessageInfo
  53. func (m *Version) GetMajor() int32 {
  54. if m != nil {
  55. return m.Major
  56. }
  57. return 0
  58. }
  59. func (m *Version) GetMinor() int32 {
  60. if m != nil {
  61. return m.Minor
  62. }
  63. return 0
  64. }
  65. func (m *Version) GetPatch() int32 {
  66. if m != nil {
  67. return m.Patch
  68. }
  69. return 0
  70. }
  71. func (m *Version) GetSuffix() string {
  72. if m != nil {
  73. return m.Suffix
  74. }
  75. return ""
  76. }
  77. // An encoded Request is written to the ExtensionHandler's stdin.
  78. type ExtensionHandlerRequest struct {
  79. // The OpenAPI descriptions that were explicitly listed on the command line.
  80. // The specifications will appear in the order they are specified to gnostic.
  81. Wrapper *Wrapper `protobuf:"bytes,1,opt,name=wrapper,proto3" json:"wrapper,omitempty"`
  82. // The version number of openapi compiler.
  83. CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
  84. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  85. XXX_unrecognized []byte `json:"-"`
  86. XXX_sizecache int32 `json:"-"`
  87. }
  88. func (m *ExtensionHandlerRequest) Reset() { *m = ExtensionHandlerRequest{} }
  89. func (m *ExtensionHandlerRequest) String() string { return proto.CompactTextString(m) }
  90. func (*ExtensionHandlerRequest) ProtoMessage() {}
  91. func (*ExtensionHandlerRequest) Descriptor() ([]byte, []int) {
  92. return fileDescriptor_661e47e790f76671, []int{1}
  93. }
  94. func (m *ExtensionHandlerRequest) XXX_Unmarshal(b []byte) error {
  95. return xxx_messageInfo_ExtensionHandlerRequest.Unmarshal(m, b)
  96. }
  97. func (m *ExtensionHandlerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  98. return xxx_messageInfo_ExtensionHandlerRequest.Marshal(b, m, deterministic)
  99. }
  100. func (m *ExtensionHandlerRequest) XXX_Merge(src proto.Message) {
  101. xxx_messageInfo_ExtensionHandlerRequest.Merge(m, src)
  102. }
  103. func (m *ExtensionHandlerRequest) XXX_Size() int {
  104. return xxx_messageInfo_ExtensionHandlerRequest.Size(m)
  105. }
  106. func (m *ExtensionHandlerRequest) XXX_DiscardUnknown() {
  107. xxx_messageInfo_ExtensionHandlerRequest.DiscardUnknown(m)
  108. }
  109. var xxx_messageInfo_ExtensionHandlerRequest proto.InternalMessageInfo
  110. func (m *ExtensionHandlerRequest) GetWrapper() *Wrapper {
  111. if m != nil {
  112. return m.Wrapper
  113. }
  114. return nil
  115. }
  116. func (m *ExtensionHandlerRequest) GetCompilerVersion() *Version {
  117. if m != nil {
  118. return m.CompilerVersion
  119. }
  120. return nil
  121. }
  122. // The extensions writes an encoded ExtensionHandlerResponse to stdout.
  123. type ExtensionHandlerResponse struct {
  124. // true if the extension is handled by the extension handler; false otherwise
  125. Handled bool `protobuf:"varint,1,opt,name=handled,proto3" json:"handled,omitempty"`
  126. // Error message. If non-empty, the extension handling failed.
  127. // The extension handler process should exit with status code zero
  128. // even if it reports an error in this way.
  129. //
  130. // This should be used to indicate errors which prevent the extension from
  131. // operating as intended. Errors which indicate a problem in gnostic
  132. // itself -- such as the input Document being unparseable -- should be
  133. // reported by writing a message to stderr and exiting with a non-zero
  134. // status code.
  135. Error []string `protobuf:"bytes,2,rep,name=error,proto3" json:"error,omitempty"`
  136. // text output
  137. Value *any.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  138. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  139. XXX_unrecognized []byte `json:"-"`
  140. XXX_sizecache int32 `json:"-"`
  141. }
  142. func (m *ExtensionHandlerResponse) Reset() { *m = ExtensionHandlerResponse{} }
  143. func (m *ExtensionHandlerResponse) String() string { return proto.CompactTextString(m) }
  144. func (*ExtensionHandlerResponse) ProtoMessage() {}
  145. func (*ExtensionHandlerResponse) Descriptor() ([]byte, []int) {
  146. return fileDescriptor_661e47e790f76671, []int{2}
  147. }
  148. func (m *ExtensionHandlerResponse) XXX_Unmarshal(b []byte) error {
  149. return xxx_messageInfo_ExtensionHandlerResponse.Unmarshal(m, b)
  150. }
  151. func (m *ExtensionHandlerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  152. return xxx_messageInfo_ExtensionHandlerResponse.Marshal(b, m, deterministic)
  153. }
  154. func (m *ExtensionHandlerResponse) XXX_Merge(src proto.Message) {
  155. xxx_messageInfo_ExtensionHandlerResponse.Merge(m, src)
  156. }
  157. func (m *ExtensionHandlerResponse) XXX_Size() int {
  158. return xxx_messageInfo_ExtensionHandlerResponse.Size(m)
  159. }
  160. func (m *ExtensionHandlerResponse) XXX_DiscardUnknown() {
  161. xxx_messageInfo_ExtensionHandlerResponse.DiscardUnknown(m)
  162. }
  163. var xxx_messageInfo_ExtensionHandlerResponse proto.InternalMessageInfo
  164. func (m *ExtensionHandlerResponse) GetHandled() bool {
  165. if m != nil {
  166. return m.Handled
  167. }
  168. return false
  169. }
  170. func (m *ExtensionHandlerResponse) GetError() []string {
  171. if m != nil {
  172. return m.Error
  173. }
  174. return nil
  175. }
  176. func (m *ExtensionHandlerResponse) GetValue() *any.Any {
  177. if m != nil {
  178. return m.Value
  179. }
  180. return nil
  181. }
  182. type Wrapper struct {
  183. // version of the OpenAPI specification in which this extension was written.
  184. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  185. // Name of the extension
  186. ExtensionName string `protobuf:"bytes,2,opt,name=extension_name,json=extensionName,proto3" json:"extension_name,omitempty"`
  187. // Must be a valid yaml for the proto
  188. Yaml string `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"`
  189. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  190. XXX_unrecognized []byte `json:"-"`
  191. XXX_sizecache int32 `json:"-"`
  192. }
  193. func (m *Wrapper) Reset() { *m = Wrapper{} }
  194. func (m *Wrapper) String() string { return proto.CompactTextString(m) }
  195. func (*Wrapper) ProtoMessage() {}
  196. func (*Wrapper) Descriptor() ([]byte, []int) {
  197. return fileDescriptor_661e47e790f76671, []int{3}
  198. }
  199. func (m *Wrapper) XXX_Unmarshal(b []byte) error {
  200. return xxx_messageInfo_Wrapper.Unmarshal(m, b)
  201. }
  202. func (m *Wrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  203. return xxx_messageInfo_Wrapper.Marshal(b, m, deterministic)
  204. }
  205. func (m *Wrapper) XXX_Merge(src proto.Message) {
  206. xxx_messageInfo_Wrapper.Merge(m, src)
  207. }
  208. func (m *Wrapper) XXX_Size() int {
  209. return xxx_messageInfo_Wrapper.Size(m)
  210. }
  211. func (m *Wrapper) XXX_DiscardUnknown() {
  212. xxx_messageInfo_Wrapper.DiscardUnknown(m)
  213. }
  214. var xxx_messageInfo_Wrapper proto.InternalMessageInfo
  215. func (m *Wrapper) GetVersion() string {
  216. if m != nil {
  217. return m.Version
  218. }
  219. return ""
  220. }
  221. func (m *Wrapper) GetExtensionName() string {
  222. if m != nil {
  223. return m.ExtensionName
  224. }
  225. return ""
  226. }
  227. func (m *Wrapper) GetYaml() string {
  228. if m != nil {
  229. return m.Yaml
  230. }
  231. return ""
  232. }
  233. func init() {
  234. proto.RegisterType((*Version)(nil), "openapiextension.v1.Version")
  235. proto.RegisterType((*ExtensionHandlerRequest)(nil), "openapiextension.v1.ExtensionHandlerRequest")
  236. proto.RegisterType((*ExtensionHandlerResponse)(nil), "openapiextension.v1.ExtensionHandlerResponse")
  237. proto.RegisterType((*Wrapper)(nil), "openapiextension.v1.Wrapper")
  238. }
  239. func init() { proto.RegisterFile("extensions/extension.proto", fileDescriptor_661e47e790f76671) }
  240. var fileDescriptor_661e47e790f76671 = []byte{
  241. // 362 bytes of a gzipped FileDescriptorProto
  242. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x4d, 0x4b, 0xeb, 0x40,
  243. 0x18, 0x85, 0x49, 0xbf, 0x72, 0x33, 0x97, 0xdb, 0x2b, 0x63, 0xd1, 0x58, 0x5c, 0x94, 0x80, 0x50,
  244. 0x44, 0xa6, 0x54, 0xc1, 0x7d, 0x0b, 0x45, 0xdd, 0xd8, 0x32, 0x8b, 0xba, 0xb3, 0x4c, 0xd3, 0xb7,
  245. 0x69, 0x24, 0x99, 0x19, 0x27, 0x1f, 0xb6, 0x7f, 0xc5, 0xa5, 0xbf, 0x54, 0x32, 0x93, 0xc4, 0x85,
  246. 0xba, 0x9b, 0xf3, 0x70, 0xda, 0xf7, 0x9c, 0x13, 0xd4, 0x87, 0x7d, 0x0a, 0x3c, 0x09, 0x05, 0x4f,
  247. 0x46, 0xf5, 0x93, 0x48, 0x25, 0x52, 0x81, 0x8f, 0x85, 0x04, 0xce, 0x64, 0xf8, 0xc5, 0xf3, 0x71,
  248. 0xff, 0x2c, 0x10, 0x22, 0x88, 0x60, 0xa4, 0x2d, 0xeb, 0x6c, 0x3b, 0x62, 0xfc, 0x60, 0xfc, 0x9e,
  249. 0x8f, 0xec, 0x25, 0xa8, 0xc2, 0x88, 0x7b, 0xa8, 0x1d, 0xb3, 0x17, 0xa1, 0x5c, 0x6b, 0x60, 0x0d,
  250. 0xdb, 0xd4, 0x08, 0x4d, 0x43, 0x2e, 0x94, 0xdb, 0x28, 0x69, 0x21, 0x0a, 0x2a, 0x59, 0xea, 0xef,
  251. 0xdc, 0xa6, 0xa1, 0x5a, 0xe0, 0x13, 0xd4, 0x49, 0xb2, 0xed, 0x36, 0xdc, 0xbb, 0xad, 0x81, 0x35,
  252. 0x74, 0x68, 0xa9, 0xbc, 0x77, 0x0b, 0x9d, 0xce, 0xaa, 0x40, 0xf7, 0x8c, 0x6f, 0x22, 0x50, 0x14,
  253. 0x5e, 0x33, 0x48, 0x52, 0x7c, 0x8b, 0xec, 0x37, 0xc5, 0xa4, 0x04, 0x73, 0xf7, 0xef, 0xf5, 0x39,
  254. 0xf9, 0xa1, 0x02, 0x79, 0x32, 0x1e, 0x5a, 0x99, 0xf1, 0x1d, 0x3a, 0xf2, 0x45, 0x2c, 0xc3, 0x08,
  255. 0xd4, 0x2a, 0x37, 0x0d, 0x74, 0x98, 0xdf, 0xfe, 0xa0, 0x6c, 0x49, 0xff, 0x57, 0xbf, 0x2a, 0x81,
  256. 0x97, 0x23, 0xf7, 0x7b, 0xb6, 0x44, 0x0a, 0x9e, 0x00, 0x76, 0x91, 0xbd, 0xd3, 0x68, 0xa3, 0xc3,
  257. 0xfd, 0xa1, 0x95, 0x2c, 0x06, 0x00, 0xa5, 0xf4, 0x2c, 0xcd, 0xa1, 0x43, 0x8d, 0xc0, 0x97, 0xa8,
  258. 0x9d, 0xb3, 0x28, 0x83, 0x32, 0x49, 0x8f, 0x98, 0xe1, 0x49, 0x35, 0x3c, 0x99, 0xf0, 0x03, 0x35,
  259. 0x16, 0xef, 0x19, 0xd9, 0x65, 0xa9, 0xe2, 0x4c, 0x55, 0xc1, 0xd2, 0xc3, 0x55, 0x12, 0x5f, 0xa0,
  260. 0x6e, 0xdd, 0x62, 0xc5, 0x59, 0x0c, 0xfa, 0x33, 0x38, 0xf4, 0x5f, 0x4d, 0x1f, 0x59, 0x0c, 0x18,
  261. 0xa3, 0xd6, 0x81, 0xc5, 0x91, 0x3e, 0xeb, 0x50, 0xfd, 0x9e, 0x5e, 0xa1, 0xae, 0x50, 0x01, 0x09,
  262. 0xb8, 0x48, 0xd2, 0xd0, 0x27, 0xf9, 0x78, 0x8a, 0xe7, 0x12, 0xf8, 0x64, 0xf1, 0x50, 0xd7, 0x5d,
  263. 0x8e, 0x17, 0xd6, 0x47, 0xa3, 0x39, 0x9f, 0xcc, 0xd6, 0x1d, 0x1d, 0xf1, 0xe6, 0x33, 0x00, 0x00,
  264. 0xff, 0xff, 0xeb, 0xf3, 0xfa, 0x65, 0x5c, 0x02, 0x00, 0x00,
  265. }