1// Code generated by protoc-gen-go.
2// source: extension.proto
3// DO NOT EDIT!
4
5/*
6Package openapiextension_v1 is a generated protocol buffer package.
7
8It is generated from these files:
9	extension.proto
10
11It has these top-level messages:
12	Version
13	ExtensionHandlerRequest
14	ExtensionHandlerResponse
15	Wrapper
16*/
17package openapiextension_v1
18
19import proto "github.com/golang/protobuf/proto"
20import fmt "fmt"
21import math "math"
22import google_protobuf "github.com/golang/protobuf/ptypes/any"
23
24// Reference imports to suppress errors if they are not otherwise used.
25var _ = proto.Marshal
26var _ = fmt.Errorf
27var _ = math.Inf
28
29// This is a compile-time assertion to ensure that this generated file
30// is compatible with the proto package it is being compiled against.
31// A compilation error at this line likely means your copy of the
32// proto package needs to be updated.
33const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
34
35// The version number of OpenAPI compiler.
36type Version struct {
37	Major int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
38	Minor int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
39	Patch int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
40	// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
41	// be empty for mainline stable releases.
42	Suffix string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
43}
44
45func (m *Version) Reset()                    { *m = Version{} }
46func (m *Version) String() string            { return proto.CompactTextString(m) }
47func (*Version) ProtoMessage()               {}
48func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
49
50func (m *Version) GetMajor() int32 {
51	if m != nil {
52		return m.Major
53	}
54	return 0
55}
56
57func (m *Version) GetMinor() int32 {
58	if m != nil {
59		return m.Minor
60	}
61	return 0
62}
63
64func (m *Version) GetPatch() int32 {
65	if m != nil {
66		return m.Patch
67	}
68	return 0
69}
70
71func (m *Version) GetSuffix() string {
72	if m != nil {
73		return m.Suffix
74	}
75	return ""
76}
77
78// An encoded Request is written to the ExtensionHandler's stdin.
79type ExtensionHandlerRequest struct {
80	// The OpenAPI descriptions that were explicitly listed on the command line.
81	// The specifications will appear in the order they are specified to openapic.
82	Wrapper *Wrapper `protobuf:"bytes,1,opt,name=wrapper" json:"wrapper,omitempty"`
83	// The version number of openapi compiler.
84	CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
85}
86
87func (m *ExtensionHandlerRequest) Reset()                    { *m = ExtensionHandlerRequest{} }
88func (m *ExtensionHandlerRequest) String() string            { return proto.CompactTextString(m) }
89func (*ExtensionHandlerRequest) ProtoMessage()               {}
90func (*ExtensionHandlerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
91
92func (m *ExtensionHandlerRequest) GetWrapper() *Wrapper {
93	if m != nil {
94		return m.Wrapper
95	}
96	return nil
97}
98
99func (m *ExtensionHandlerRequest) GetCompilerVersion() *Version {
100	if m != nil {
101		return m.CompilerVersion
102	}
103	return nil
104}
105
106// The extensions writes an encoded ExtensionHandlerResponse to stdout.
107type ExtensionHandlerResponse struct {
108	// true if the extension is handled by the extension handler; false otherwise
109	Handled bool `protobuf:"varint,1,opt,name=handled" json:"handled,omitempty"`
110	// Error message.  If non-empty, the extension handling failed.
111	// The extension handler process should exit with status code zero
112	// even if it reports an error in this way.
113	//
114	// This should be used to indicate errors which prevent the extension from
115	// operating as intended.  Errors which indicate a problem in gnostic
116	// itself -- such as the input Document being unparseable -- should be
117	// reported by writing a message to stderr and exiting with a non-zero
118	// status code.
119	Error []string `protobuf:"bytes,2,rep,name=error" json:"error,omitempty"`
120	// text output
121	Value *google_protobuf.Any `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
122}
123
124func (m *ExtensionHandlerResponse) Reset()                    { *m = ExtensionHandlerResponse{} }
125func (m *ExtensionHandlerResponse) String() string            { return proto.CompactTextString(m) }
126func (*ExtensionHandlerResponse) ProtoMessage()               {}
127func (*ExtensionHandlerResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
128
129func (m *ExtensionHandlerResponse) GetHandled() bool {
130	if m != nil {
131		return m.Handled
132	}
133	return false
134}
135
136func (m *ExtensionHandlerResponse) GetError() []string {
137	if m != nil {
138		return m.Error
139	}
140	return nil
141}
142
143func (m *ExtensionHandlerResponse) GetValue() *google_protobuf.Any {
144	if m != nil {
145		return m.Value
146	}
147	return nil
148}
149
150type Wrapper struct {
151	// version of the OpenAPI specification in which this extension was written.
152	Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
153	// Name of the extension
154	ExtensionName string `protobuf:"bytes,2,opt,name=extension_name,json=extensionName" json:"extension_name,omitempty"`
155	// Must be a valid yaml for the proto
156	Yaml string `protobuf:"bytes,3,opt,name=yaml" json:"yaml,omitempty"`
157}
158
159func (m *Wrapper) Reset()                    { *m = Wrapper{} }
160func (m *Wrapper) String() string            { return proto.CompactTextString(m) }
161func (*Wrapper) ProtoMessage()               {}
162func (*Wrapper) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
163
164func (m *Wrapper) GetVersion() string {
165	if m != nil {
166		return m.Version
167	}
168	return ""
169}
170
171func (m *Wrapper) GetExtensionName() string {
172	if m != nil {
173		return m.ExtensionName
174	}
175	return ""
176}
177
178func (m *Wrapper) GetYaml() string {
179	if m != nil {
180		return m.Yaml
181	}
182	return ""
183}
184
185func init() {
186	proto.RegisterType((*Version)(nil), "openapiextension.v1.Version")
187	proto.RegisterType((*ExtensionHandlerRequest)(nil), "openapiextension.v1.ExtensionHandlerRequest")
188	proto.RegisterType((*ExtensionHandlerResponse)(nil), "openapiextension.v1.ExtensionHandlerResponse")
189	proto.RegisterType((*Wrapper)(nil), "openapiextension.v1.Wrapper")
190}
191
192func init() { proto.RegisterFile("extension.proto", fileDescriptor0) }
193
194var fileDescriptor0 = []byte{
195	// 355 bytes of a gzipped FileDescriptorProto
196	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0x4d, 0x4b, 0xf3, 0x40,
197	0x1c,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