Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: store/review_run.proto
package store
import (
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)
)
// The reviewer. Stored by name in review_run.type, which has no CHECK:
// like Issue.Type and Task.Type, the enum is the source of truth and a
// new reviewer is a new value, not a migration.
type ReviewRun_Type int32
const (
ReviewRun_TYPE_UNSPECIFIED ReviewRun_Type = 0
// Review against the standard rules.
ReviewRun_RULE ReviewRun_Type = 1
// Review against the natural-language AI review policy, performed by a
// model.
ReviewRun_AI ReviewRun_Type = 2
)
// Enum value maps for ReviewRun_Type.
var (
ReviewRun_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "RULE",
2: "AI",
}
ReviewRun_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"RULE": 1,
"AI": 2,
}
)
func (x ReviewRun_Type) Enum() *ReviewRun_Type {
p := new(ReviewRun_Type)
*p = x
return p
}
func (x ReviewRun_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ReviewRun_Type) Descriptor() protoreflect.EnumDescriptor {
return file_store_review_run_proto_enumTypes[0].Descriptor()
}
func (ReviewRun_Type) Type() protoreflect.EnumType {
return &file_store_review_run_proto_enumTypes[0]
}
func (x ReviewRun_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ReviewRun_Type.Descriptor instead.
func (ReviewRun_Type) EnumDescriptor() ([]byte, []int) {
return file_store_review_run_proto_rawDescGZIP(), []int{0, 0}
}
// Strictly 1:1 with the status CHECK constraint — no unpersisted values.
type ReviewRun_Status int32
const (
ReviewRun_STATUS_UNSPECIFIED ReviewRun_Status = 0
ReviewRun_AVAILABLE ReviewRun_Status = 1
ReviewRun_RUNNING ReviewRun_Status = 2
ReviewRun_DONE ReviewRun_Status = 3
ReviewRun_FAILED ReviewRun_Status = 4
)
// Enum value maps for ReviewRun_Status.
var (
ReviewRun_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "AVAILABLE",
2: "RUNNING",
3: "DONE",
4: "FAILED",
}
ReviewRun_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"AVAILABLE": 1,
"RUNNING": 2,
"DONE": 3,
"FAILED": 4,
}
)
func (x ReviewRun_Status) Enum() *ReviewRun_Status {
p := new(ReviewRun_Status)
*p = x
return p
}
func (x ReviewRun_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ReviewRun_Status) Descriptor() protoreflect.EnumDescriptor {
return file_store_review_run_proto_enumTypes[1].Descriptor()
}
func (ReviewRun_Status) Type() protoreflect.EnumType {
return &file_store_review_run_proto_enumTypes[1]
}
func (x ReviewRun_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ReviewRun_Status.Descriptor instead.
func (ReviewRun_Status) EnumDescriptor() ([]byte, []int) {
return file_store_review_run_proto_rawDescGZIP(), []int{0, 1}
}
// ReviewRun is the status slot of one reviewer (rule engine or AI) on one
// issue. Results live in issue comments; the run carries none.
type ReviewRun struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReviewRun) Reset() {
*x = ReviewRun{}
mi := &file_store_review_run_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReviewRun) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReviewRun) ProtoMessage() {}
func (x *ReviewRun) ProtoReflect() protoreflect.Message {
mi := &file_store_review_run_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 ReviewRun.ProtoReflect.Descriptor instead.
func (*ReviewRun) Descriptor() ([]byte, []int) {
return file_store_review_run_proto_rawDescGZIP(), []int{0}
}
type ReviewRunPayload struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Fatal execution error for the FAILED status, e.g. "metadata not synced:
// instances/prod/databases/db1, db2, db3 (+497 more)". Written by the
// executor or by the reaper.
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// The plan's PlanConfig.approval_input_version when the slot was reset: the
// version of the plan's SQL this run reviews. Completion keeps it.
ApprovalInputVersion int64 `protobuf:"varint,2,opt,name=approval_input_version,json=approvalInputVersion,proto3" json:"approval_input_version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReviewRunPayload) Reset() {
*x = ReviewRunPayload{}
mi := &file_store_review_run_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReviewRunPayload) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReviewRunPayload) ProtoMessage() {}
func (x *ReviewRunPayload) ProtoReflect() protoreflect.Message {
mi := &file_store_review_run_proto_msgTypes[1]
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 ReviewRunPayload.ProtoReflect.Descriptor instead.
func (*ReviewRunPayload) Descriptor() ([]byte, []int) {
return file_store_review_run_proto_rawDescGZIP(), []int{1}
}
func (x *ReviewRunPayload) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *ReviewRunPayload) GetApprovalInputVersion() int64 {
if x != nil {
return x.ApprovalInputVersion
}
return 0
}
var File_store_review_run_proto protoreflect.FileDescriptor
const file_store_review_run_proto_rawDesc = "" +
"\n" +
"\x16store/review_run.proto\x12\x0ebytebase.store\"\x8f\x01\n" +
"\tReviewRun\".\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04RULE\x10\x01\x12\x06\n" +
"\x02AI\x10\x02\"R\n" +
"\x06Status\x12\x16\n" +
"\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n" +
"\tAVAILABLE\x10\x01\x12\v\n" +
"\aRUNNING\x10\x02\x12\b\n" +
"\x04DONE\x10\x03\x12\n" +
"\n" +
"\x06FAILED\x10\x04\"^\n" +
"\x10ReviewRunPayload\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x124\n" +
"\x16approval_input_version\x18\x02 \x01(\x03R\x14approvalInputVersionB\x91\x01\n" +
"\x12com.bytebase.storeB\x0eReviewRunProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
var (
file_store_review_run_proto_rawDescOnce sync.Once
file_store_review_run_proto_rawDescData []byte
)
func file_store_review_run_proto_rawDescGZIP() []byte {
file_store_review_run_proto_rawDescOnce.Do(func() {
file_store_review_run_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_review_run_proto_rawDesc), len(file_store_review_run_proto_rawDesc)))
})
return file_store_review_run_proto_rawDescData
}
var file_store_review_run_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_store_review_run_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_store_review_run_proto_goTypes = []any{
(ReviewRun_Type)(0), // 0: bytebase.store.ReviewRun.Type
(ReviewRun_Status)(0), // 1: bytebase.store.ReviewRun.Status
(*ReviewRun)(nil), // 2: bytebase.store.ReviewRun
(*ReviewRunPayload)(nil), // 3: bytebase.store.ReviewRunPayload
}
var file_store_review_run_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_store_review_run_proto_init() }
func file_store_review_run_proto_init() {
if File_store_review_run_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_review_run_proto_rawDesc), len(file_store_review_run_proto_rawDesc)),
NumEnums: 2,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_store_review_run_proto_goTypes,
DependencyIndexes: file_store_review_run_proto_depIdxs,
EnumInfos: file_store_review_run_proto_enumTypes,
MessageInfos: file_store_review_run_proto_msgTypes,
}.Build()
File_store_review_run_proto = out.File
file_store_review_run_proto_goTypes = nil
file_store_review_run_proto_depIdxs = nil
}