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