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