mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-30 07:59:40 -08:00
86ff4a1717
Pinned github.com/googleapis/gnostic as they introduced braking change. Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
301 lines
11 KiB
Go
301 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: extensions/extension.proto
|
|
|
|
package openapiextension_v1
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
any "github.com/golang/protobuf/ptypes/any"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// The version number of OpenAPI compiler.
|
|
type Version struct {
|
|
Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
|
|
Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
|
|
Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
|
|
// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
|
|
// be empty for mainline stable releases.
|
|
Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Version) Reset() { *m = Version{} }
|
|
func (m *Version) String() string { return proto.CompactTextString(m) }
|
|
func (*Version) ProtoMessage() {}
|
|
func (*Version) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_661e47e790f76671, []int{0}
|
|
}
|
|
|
|
func (m *Version) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Version.Unmarshal(m, b)
|
|
}
|
|
func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Version.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Version) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Version.Merge(m, src)
|
|
}
|
|
func (m *Version) XXX_Size() int {
|
|
return xxx_messageInfo_Version.Size(m)
|
|
}
|
|
func (m *Version) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Version.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Version proto.InternalMessageInfo
|
|
|
|
func (m *Version) GetMajor() int32 {
|
|
if m != nil {
|
|
return m.Major
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Version) GetMinor() int32 {
|
|
if m != nil {
|
|
return m.Minor
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Version) GetPatch() int32 {
|
|
if m != nil {
|
|
return m.Patch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Version) GetSuffix() string {
|
|
if m != nil {
|
|
return m.Suffix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// An encoded Request is written to the ExtensionHandler's stdin.
|
|
type ExtensionHandlerRequest struct {
|
|
// The OpenAPI descriptions that were explicitly listed on the command line.
|
|
// The specifications will appear in the order they are specified to gnostic.
|
|
Wrapper *Wrapper `protobuf:"bytes,1,opt,name=wrapper,proto3" json:"wrapper,omitempty"`
|
|
// The version number of openapi compiler.
|
|
CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ExtensionHandlerRequest) Reset() { *m = ExtensionHandlerRequest{} }
|
|
func (m *ExtensionHandlerRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ExtensionHandlerRequest) ProtoMessage() {}
|
|
func (*ExtensionHandlerRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_661e47e790f76671, []int{1}
|
|
}
|
|
|
|
func (m *ExtensionHandlerRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ExtensionHandlerRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ExtensionHandlerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ExtensionHandlerRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ExtensionHandlerRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ExtensionHandlerRequest.Merge(m, src)
|
|
}
|
|
func (m *ExtensionHandlerRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ExtensionHandlerRequest.Size(m)
|
|
}
|
|
func (m *ExtensionHandlerRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ExtensionHandlerRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ExtensionHandlerRequest proto.InternalMessageInfo
|
|
|
|
func (m *ExtensionHandlerRequest) GetWrapper() *Wrapper {
|
|
if m != nil {
|
|
return m.Wrapper
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ExtensionHandlerRequest) GetCompilerVersion() *Version {
|
|
if m != nil {
|
|
return m.CompilerVersion
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The extensions writes an encoded ExtensionHandlerResponse to stdout.
|
|
type ExtensionHandlerResponse struct {
|
|
// true if the extension is handled by the extension handler; false otherwise
|
|
Handled bool `protobuf:"varint,1,opt,name=handled,proto3" json:"handled,omitempty"`
|
|
// Error message. If non-empty, the extension handling failed.
|
|
// The extension handler process should exit with status code zero
|
|
// even if it reports an error in this way.
|
|
//
|
|
// This should be used to indicate errors which prevent the extension from
|
|
// operating as intended. Errors which indicate a problem in gnostic
|
|
// itself -- such as the input Document being unparseable -- should be
|
|
// reported by writing a message to stderr and exiting with a non-zero
|
|
// status code.
|
|
Error []string `protobuf:"bytes,2,rep,name=error,proto3" json:"error,omitempty"`
|
|
// text output
|
|
Value *any.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ExtensionHandlerResponse) Reset() { *m = ExtensionHandlerResponse{} }
|
|
func (m *ExtensionHandlerResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ExtensionHandlerResponse) ProtoMessage() {}
|
|
func (*ExtensionHandlerResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_661e47e790f76671, []int{2}
|
|
}
|
|
|
|
func (m *ExtensionHandlerResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ExtensionHandlerResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ExtensionHandlerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ExtensionHandlerResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ExtensionHandlerResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ExtensionHandlerResponse.Merge(m, src)
|
|
}
|
|
func (m *ExtensionHandlerResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ExtensionHandlerResponse.Size(m)
|
|
}
|
|
func (m *ExtensionHandlerResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ExtensionHandlerResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ExtensionHandlerResponse proto.InternalMessageInfo
|
|
|
|
func (m *ExtensionHandlerResponse) GetHandled() bool {
|
|
if m != nil {
|
|
return m.Handled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ExtensionHandlerResponse) GetError() []string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ExtensionHandlerResponse) GetValue() *any.Any {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Wrapper struct {
|
|
// version of the OpenAPI specification in which this extension was written.
|
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
// Name of the extension
|
|
ExtensionName string `protobuf:"bytes,2,opt,name=extension_name,json=extensionName,proto3" json:"extension_name,omitempty"`
|
|
// Must be a valid yaml for the proto
|
|
Yaml string `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Wrapper) Reset() { *m = Wrapper{} }
|
|
func (m *Wrapper) String() string { return proto.CompactTextString(m) }
|
|
func (*Wrapper) ProtoMessage() {}
|
|
func (*Wrapper) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_661e47e790f76671, []int{3}
|
|
}
|
|
|
|
func (m *Wrapper) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Wrapper.Unmarshal(m, b)
|
|
}
|
|
func (m *Wrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Wrapper.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Wrapper) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Wrapper.Merge(m, src)
|
|
}
|
|
func (m *Wrapper) XXX_Size() int {
|
|
return xxx_messageInfo_Wrapper.Size(m)
|
|
}
|
|
func (m *Wrapper) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Wrapper.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Wrapper proto.InternalMessageInfo
|
|
|
|
func (m *Wrapper) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Wrapper) GetExtensionName() string {
|
|
if m != nil {
|
|
return m.ExtensionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Wrapper) GetYaml() string {
|
|
if m != nil {
|
|
return m.Yaml
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Version)(nil), "openapiextension.v1.Version")
|
|
proto.RegisterType((*ExtensionHandlerRequest)(nil), "openapiextension.v1.ExtensionHandlerRequest")
|
|
proto.RegisterType((*ExtensionHandlerResponse)(nil), "openapiextension.v1.ExtensionHandlerResponse")
|
|
proto.RegisterType((*Wrapper)(nil), "openapiextension.v1.Wrapper")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("extensions/extension.proto", fileDescriptor_661e47e790f76671) }
|
|
|
|
var fileDescriptor_661e47e790f76671 = []byte{
|
|
// 360 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0xdf, 0x4b, 0xeb, 0x30,
|
|
0x1c, 0xc5, 0xe9, 0x7e, 0xf5, 0xee, 0x7b, 0xb9, 0xbb, 0x12, 0x87, 0xd6, 0xe1, 0x83, 0x14, 0x04,
|
|
0x11, 0xe9, 0x98, 0x82, 0xef, 0x1b, 0x0c, 0xf5, 0xc5, 0x8d, 0x3c, 0xcc, 0x37, 0x47, 0xd6, 0x65,
|
|
0x5d, 0xa5, 0x4d, 0x62, 0xfa, 0xc3, 0xed, 0x5f, 0xf1, 0xd1, 0xbf, 0xd4, 0x34, 0x69, 0xeb, 0x83,
|
|
0xfa, 0x96, 0xf3, 0xe1, 0x34, 0x39, 0xe7, 0x14, 0x06, 0x74, 0x97, 0x52, 0x96, 0x84, 0x9c, 0x25,
|
|
0xc3, 0xfa, 0xe8, 0x09, 0xc9, 0x53, 0x8e, 0x0e, 0xb9, 0xa0, 0x8c, 0x88, 0xf0, 0x8b, 0xe7, 0xa3,
|
|
0xc1, 0x49, 0xc0, 0x79, 0x10, 0x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