// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: openapi/openapi.proto

package openapi

import (
	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type ErrorResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Code          int32                  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message       string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details       []string               `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ErrorResponse) Reset() {
	*x = ErrorResponse{}
	mi := &file_openapi_openapi_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ErrorResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ErrorResponse) ProtoMessage() {}

func (x *ErrorResponse) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_openapi_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
func (*ErrorResponse) Descriptor() ([]byte, []int) {
	return file_openapi_openapi_proto_rawDescGZIP(), []int{0}
}

func (x *ErrorResponse) GetCode() int32 {
	if x != nil {
		return x.Code
	}
	return 0
}

func (x *ErrorResponse) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

func (x *ErrorResponse) GetDetails() []string {
	if x != nil {
		return x.Details
	}
	return nil
}

var File_openapi_openapi_proto protoreflect.FileDescriptor

const file_openapi_openapi_proto_rawDesc = "" +
	"\n" +
	"\x15openapi/openapi.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x80\x02\n" +
	"\rErrorResponse\x12M\n" +
	"\x04code\x18\x01 \x01(\x05B9\x92A6*\x04code2$Error code returned with this error.\xa2\x02\aintegerR\x04code\x12O\n" +
	"\amessage\x18\x02 \x01(\tB5\x92A2*\amessage2'Error message returned with this error.R\amessage\x12O\n" +
	"\adetails\x18\x03 \x03(\tB5\x92A2*\adetails2'Error details returned with this error.R\adetailsB\xbf\x04\x92A\x85\x04\x126\n" +
	"\x0eTiDB Cloud API\x12\x1bThis is the TiDB Cloud API.2\av1-beta\x1a\x11api.tidbcloud.com*\x01\x02R8\n" +
	"\x03400\x121\n" +
	"\x1bA request field is invalid.\x12\x12\n" +
	"\x10\x1a\x0e.ErrorResponseR1\n" +
	"\x03401\x12*\n" +
	"$The API key cannot be authenticated.\x12\x02\n" +
	"\x00RY\n" +
	"\x03403\x12R\n" +
	"<The API key does not have permission to access the resource.\x12\x12\n" +
	"\x10\x1a\x0e.ErrorResponseRC\n" +
	"\x03404\x12<\n" +
	"&The requested resource does not exist.\x12\x12\n" +
	"\x10\x1a\x0e.ErrorResponseR<\n" +
	"\x03429\x125\n" +
	"\x1fYou have exceed the rate limit.\x12\x12\n" +
	"\x10\x1a\x0e.ErrorResponseR*\n" +
	"\x03500\x12#\n" +
	"\rServer error.\x12\x12\n" +
	"\x10\x1a\x0e.ErrorResponseR>\n" +
	"\adefault\x123\n" +
	"\x1dAn unexpected error response.\x12\x12\n" +
	"\x10\x1a\x0e.ErrorResponseZ4github.com/tidbcloud/idl/pbgen/proto/openapi;openapib\x06proto3"

var (
	file_openapi_openapi_proto_rawDescOnce sync.Once
	file_openapi_openapi_proto_rawDescData []byte
)

func file_openapi_openapi_proto_rawDescGZIP() []byte {
	file_openapi_openapi_proto_rawDescOnce.Do(func() {
		file_openapi_openapi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_openapi_openapi_proto_rawDesc), len(file_openapi_openapi_proto_rawDesc)))
	})
	return file_openapi_openapi_proto_rawDescData
}

var file_openapi_openapi_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_openapi_openapi_proto_goTypes = []any{
	(*ErrorResponse)(nil), // 0: ErrorResponse
}
var file_openapi_openapi_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_openapi_openapi_proto_init() }
func file_openapi_openapi_proto_init() {
	if File_openapi_openapi_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_openapi_openapi_proto_rawDesc), len(file_openapi_openapi_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_openapi_openapi_proto_goTypes,
		DependencyIndexes: file_openapi_openapi_proto_depIdxs,
		MessageInfos:      file_openapi_openapi_proto_msgTypes,
	}.Build()
	File_openapi_openapi_proto = out.File
	file_openapi_openapi_proto_goTypes = nil
	file_openapi_openapi_proto_depIdxs = nil
}
