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: v1/plan_service.proto
package v1
import (
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 PlanCheckRun_Status int32
const (
PlanCheckRun_STATUS_UNSPECIFIED PlanCheckRun_Status = 0
PlanCheckRun_RUNNING PlanCheckRun_Status = 1
PlanCheckRun_DONE PlanCheckRun_Status = 2
PlanCheckRun_FAILED PlanCheckRun_Status = 3
PlanCheckRun_CANCELED PlanCheckRun_Status = 4
)
// Enum value maps for PlanCheckRun_Status.
var (
PlanCheckRun_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "RUNNING",
2: "DONE",
3: "FAILED",
4: "CANCELED",
}
PlanCheckRun_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"RUNNING": 1,
"DONE": 2,
"FAILED": 3,
"CANCELED": 4,
}
)
func (x PlanCheckRun_Status) Enum() *PlanCheckRun_Status {
p := new(PlanCheckRun_Status)
*p = x
return p
}
func (x PlanCheckRun_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PlanCheckRun_Status) Descriptor() protoreflect.EnumDescriptor {
return file_v1_plan_service_proto_enumTypes[0].Descriptor()
}
func (PlanCheckRun_Status) Type() protoreflect.EnumType {
return &file_v1_plan_service_proto_enumTypes[0]
}
func (x PlanCheckRun_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PlanCheckRun_Status.Descriptor instead.
func (PlanCheckRun_Status) EnumDescriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0}
}
type PlanCheckRun_Result_Type int32
const (
PlanCheckRun_Result_TYPE_UNSPECIFIED PlanCheckRun_Result_Type = 0
PlanCheckRun_Result_STATEMENT_ADVISE PlanCheckRun_Result_Type = 1
PlanCheckRun_Result_STATEMENT_SUMMARY_REPORT PlanCheckRun_Result_Type = 2
PlanCheckRun_Result_GHOST_SYNC PlanCheckRun_Result_Type = 3
)
// Enum value maps for PlanCheckRun_Result_Type.
var (
PlanCheckRun_Result_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "STATEMENT_ADVISE",
2: "STATEMENT_SUMMARY_REPORT",
3: "GHOST_SYNC",
}
PlanCheckRun_Result_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"STATEMENT_ADVISE": 1,
"STATEMENT_SUMMARY_REPORT": 2,
"GHOST_SYNC": 3,
}
)
func (x PlanCheckRun_Result_Type) Enum() *PlanCheckRun_Result_Type {
p := new(PlanCheckRun_Result_Type)
*p = x
return p
}
func (x PlanCheckRun_Result_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PlanCheckRun_Result_Type) Descriptor() protoreflect.EnumDescriptor {
return file_v1_plan_service_proto_enumTypes[1].Descriptor()
}
func (PlanCheckRun_Result_Type) Type() protoreflect.EnumType {
return &file_v1_plan_service_proto_enumTypes[1]
}
func (x PlanCheckRun_Result_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PlanCheckRun_Result_Type.Descriptor instead.
func (PlanCheckRun_Result_Type) EnumDescriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0, 0}
}
type GetPlanRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the plan to retrieve.
// Format: projects/{project}/plans/{plan}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPlanRequest) Reset() {
*x = GetPlanRequest{}
mi := &file_v1_plan_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPlanRequest) ProtoMessage() {}
func (x *GetPlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_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 GetPlanRequest.ProtoReflect.Descriptor instead.
func (*GetPlanRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{0}
}
func (x *GetPlanRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListPlansRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The parent, which owns this collection of plans.
// Format: projects/{project}
// Use "projects/-" to list all plans from all projects.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of plans to return. The service may return fewer than
// this value.
// If unspecified, at most 10 plans will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListPlans` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListPlans` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Filter is used to filter plans returned in the list.
// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
//
// Supported filters:
// - creator: the plan creator full name in "users/{email or id}" format, support "==" operator.
// - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.
// - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".
// - title: the plan title, support "==" operator for exact match and ".contains()" operator for case-insensitive substring match.
// - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config" or "change_database_config".
// - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".
// - has_release: whether a spec references a release, support "==" operator, the value should be "true" or "false".
// - release: the release a spec references, in "projects/{project}/releases/{release}" format, support "==" operator.
// - task_status: the current status of any task in the plan, support "in" operator, the values should be Task.Status values except STATUS_UNSPECIFIED.
//
// For example:
// creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"
// title == "My Plan"
// title.contains("database migration")
// spec_type == "change_database_config"
// state == "ACTIVE"
// has_release == true && task_status in ["FAILED", "RUNNING"]
// release == "projects/my-project/releases/release_20260115-RC00"
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListPlansRequest) Reset() {
*x = ListPlansRequest{}
mi := &file_v1_plan_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListPlansRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPlansRequest) ProtoMessage() {}
func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_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 ListPlansRequest.ProtoReflect.Descriptor instead.
func (*ListPlansRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{1}
}
func (x *ListPlansRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListPlansRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListPlansRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListPlansRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
type ListPlansResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The plans from the specified request.
Plans []*Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListPlansResponse) Reset() {
*x = ListPlansResponse{}
mi := &file_v1_plan_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListPlansResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPlansResponse) ProtoMessage() {}
func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[2]
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 ListPlansResponse.ProtoReflect.Descriptor instead.
func (*ListPlansResponse) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{2}
}
func (x *ListPlansResponse) GetPlans() []*Plan {
if x != nil {
return x.Plans
}
return nil
}
func (x *ListPlansResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type CreatePlanRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The parent project where this plan will be created.
// Format: projects/{project}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The plan to create.
Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreatePlanRequest) Reset() {
*x = CreatePlanRequest{}
mi := &file_v1_plan_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreatePlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreatePlanRequest) ProtoMessage() {}
func (x *CreatePlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[3]
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 CreatePlanRequest.ProtoReflect.Descriptor instead.
func (*CreatePlanRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{3}
}
func (x *CreatePlanRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreatePlanRequest) GetPlan() *Plan {
if x != nil {
return x.Plan
}
return nil
}
type UpdatePlanRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The plan to update.
//
// The plan's `name` field is used to identify the plan to update.
// Format: projects/{project}/plans/{plan}
Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// If set to true, and the plan is not found, a new plan will be created.
// In this situation, `update_mask` is ignored.
AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdatePlanRequest) Reset() {
*x = UpdatePlanRequest{}
mi := &file_v1_plan_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdatePlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdatePlanRequest) ProtoMessage() {}
func (x *UpdatePlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[4]
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 UpdatePlanRequest.ProtoReflect.Descriptor instead.
func (*UpdatePlanRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{4}
}
func (x *UpdatePlanRequest) GetPlan() *Plan {
if x != nil {
return x.Plan
}
return nil
}
func (x *UpdatePlanRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdatePlanRequest) GetAllowMissing() bool {
if x != nil {
return x.AllowMissing
}
return false
}
type Plan struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the plan.
// `plan` is a system generated ID.
// Format: projects/{project}/plans/{plan}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The state of the plan.
State State `protobuf:"varint,2,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`
// The issue associated with the plan.
// Can be empty.
// Format: projects/{project}/issues/{issue}
Issue string `protobuf:"bytes,3,opt,name=issue,proto3" json:"issue,omitempty"`
// The title of the plan.
Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
// The description of the plan.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// The deployment specs for the plan.
Specs []*Plan_Spec `protobuf:"bytes,7,rep,name=specs,proto3" json:"specs,omitempty"`
// Format: users/[email protected]
Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The status count of the latest plan check runs.
// Keys are:
// - SUCCESS
// - WARNING
// - ERROR
// - RUNNING
PlanCheckRunStatusCount map[string]int32 `protobuf:"bytes,11,rep,name=plan_check_run_status_count,json=planCheckRunStatusCount,proto3" json:"plan_check_run_status_count,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
// Whether the plan has started the rollout.
HasRollout bool `protobuf:"varint,12,opt,name=has_rollout,json=hasRollout,proto3" json:"has_rollout,omitempty"`
// The approval status of the linked issue.
// Unspecified when no linked issue exists or the linked issue is a draft.
ApprovalStatus ApprovalStatus `protobuf:"varint,13,opt,name=approval_status,json=approvalStatus,proto3,enum=bytebase.v1.ApprovalStatus" json:"approval_status,omitempty"`
// Per-stage rollout status summary.
// Ordered by environment deployment order. Empty when no rollout exists.
RolloutStageSummaries []*Plan_RolloutStageSummary `protobuf:"bytes,14,rep,name=rollout_stage_summaries,json=rolloutStageSummaries,proto3" json:"rollout_stage_summaries,omitempty"`
// The lifecycle status of the linked issue.
// Unspecified when no linked issue exists.
IssueStatus IssueStatus `protobuf:"varint,15,opt,name=issue_status,json=issueStatus,proto3,enum=bytebase.v1.IssueStatus" json:"issue_status,omitempty"`
// The user who last created or updated the Plan specs.
// Format: users/[email protected]. For legacy Plans without stored attribution,
// this falls back to the Plan creator.
LastPlanEditor string `protobuf:"bytes,16,opt,name=last_plan_editor,json=lastPlanEditor,proto3" json:"last_plan_editor,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan) Reset() {
*x = Plan{}
mi := &file_v1_plan_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan) ProtoMessage() {}
func (x *Plan) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[5]
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 Plan.ProtoReflect.Descriptor instead.
func (*Plan) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{5}
}
func (x *Plan) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Plan) GetState() State {
if x != nil {
return x.State
}
return State_STATE_UNSPECIFIED
}
func (x *Plan) GetIssue() string {
if x != nil {
return x.Issue
}
return ""
}
func (x *Plan) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Plan) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Plan) GetSpecs() []*Plan_Spec {
if x != nil {
return x.Specs
}
return nil
}
func (x *Plan) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *Plan) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Plan) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Plan) GetPlanCheckRunStatusCount() map[string]int32 {
if x != nil {
return x.PlanCheckRunStatusCount
}
return nil
}
func (x *Plan) GetHasRollout() bool {
if x != nil {
return x.HasRollout
}
return false
}
func (x *Plan) GetApprovalStatus() ApprovalStatus {
if x != nil {
return x.ApprovalStatus
}
return ApprovalStatus_APPROVAL_STATUS_UNSPECIFIED
}
func (x *Plan) GetRolloutStageSummaries() []*Plan_RolloutStageSummary {
if x != nil {
return x.RolloutStageSummaries
}
return nil
}
func (x *Plan) GetIssueStatus() IssueStatus {
if x != nil {
return x.IssueStatus
}
return IssueStatus_ISSUE_STATUS_UNSPECIFIED
}
func (x *Plan) GetLastPlanEditor() string {
if x != nil {
return x.LastPlanEditor
}
return ""
}
type GetPlanCheckRunRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the plan check run to retrieve.
// Format: projects/{project}/plans/{plan}/planCheckRun
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPlanCheckRunRequest) Reset() {
*x = GetPlanCheckRunRequest{}
mi := &file_v1_plan_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPlanCheckRunRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPlanCheckRunRequest) ProtoMessage() {}
func (x *GetPlanCheckRunRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[6]
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 GetPlanCheckRunRequest.ProtoReflect.Descriptor instead.
func (*GetPlanCheckRunRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{6}
}
func (x *GetPlanCheckRunRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type RunPlanChecksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The plan to run plan checks.
// Format: projects/{project}/plans/{plan}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The UUID of the specific spec to run plan checks for.
// This should match the spec.id field in Plan.Spec.
// If not set, all specs in the plan will be used.
SpecId *string `protobuf:"bytes,2,opt,name=spec_id,json=specId,proto3,oneof" json:"spec_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RunPlanChecksRequest) Reset() {
*x = RunPlanChecksRequest{}
mi := &file_v1_plan_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RunPlanChecksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunPlanChecksRequest) ProtoMessage() {}
func (x *RunPlanChecksRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[7]
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 RunPlanChecksRequest.ProtoReflect.Descriptor instead.
func (*RunPlanChecksRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{7}
}
func (x *RunPlanChecksRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RunPlanChecksRequest) GetSpecId() string {
if x != nil && x.SpecId != nil {
return *x.SpecId
}
return ""
}
type RunPlanChecksResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RunPlanChecksResponse) Reset() {
*x = RunPlanChecksResponse{}
mi := &file_v1_plan_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RunPlanChecksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunPlanChecksResponse) ProtoMessage() {}
func (x *RunPlanChecksResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[8]
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 RunPlanChecksResponse.ProtoReflect.Descriptor instead.
func (*RunPlanChecksResponse) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{8}
}
type CancelPlanCheckRunRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the plan check run to cancel.
// Format: projects/{project}/plans/{plan}/planCheckRun
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CancelPlanCheckRunRequest) Reset() {
*x = CancelPlanCheckRunRequest{}
mi := &file_v1_plan_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CancelPlanCheckRunRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelPlanCheckRunRequest) ProtoMessage() {}
func (x *CancelPlanCheckRunRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[9]
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 CancelPlanCheckRunRequest.ProtoReflect.Descriptor instead.
func (*CancelPlanCheckRunRequest) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{9}
}
func (x *CancelPlanCheckRunRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type CancelPlanCheckRunResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CancelPlanCheckRunResponse) Reset() {
*x = CancelPlanCheckRunResponse{}
mi := &file_v1_plan_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CancelPlanCheckRunResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelPlanCheckRunResponse) ProtoMessage() {}
func (x *CancelPlanCheckRunResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[10]
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 CancelPlanCheckRunResponse.ProtoReflect.Descriptor instead.
func (*CancelPlanCheckRunResponse) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{10}
}
type PlanCheckRun struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Format: projects/{project}/plans/{plan}/planCheckRun
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Status PlanCheckRun_Status `protobuf:"varint,3,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Status" json:"status,omitempty"`
Results []*PlanCheckRun_Result `protobuf:"bytes,6,rep,name=results,proto3" json:"results,omitempty"`
// error is set if the Status is FAILED.
Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanCheckRun) Reset() {
*x = PlanCheckRun{}
mi := &file_v1_plan_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanCheckRun) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanCheckRun) ProtoMessage() {}
func (x *PlanCheckRun) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[11]
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 PlanCheckRun.ProtoReflect.Descriptor instead.
func (*PlanCheckRun) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{11}
}
func (x *PlanCheckRun) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PlanCheckRun) GetStatus() PlanCheckRun_Status {
if x != nil {
return x.Status
}
return PlanCheckRun_STATUS_UNSPECIFIED
}
func (x *PlanCheckRun) GetResults() []*PlanCheckRun_Result {
if x != nil {
return x.Results
}
return nil
}
func (x *PlanCheckRun) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *PlanCheckRun) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
type Plan_Spec struct {
state protoimpl.MessageState `protogen:"open.v1"`
// A UUID4 string that uniquely identifies the Spec.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to Config:
//
// *Plan_Spec_CreateDatabaseConfig
// *Plan_Spec_ChangeDatabaseConfig
Config isPlan_Spec_Config `protobuf_oneof:"config"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan_Spec) Reset() {
*x = Plan_Spec{}
mi := &file_v1_plan_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan_Spec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan_Spec) ProtoMessage() {}
func (x *Plan_Spec) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[12]
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 Plan_Spec.ProtoReflect.Descriptor instead.
func (*Plan_Spec) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 0}
}
func (x *Plan_Spec) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Plan_Spec) GetConfig() isPlan_Spec_Config {
if x != nil {
return x.Config
}
return nil
}
func (x *Plan_Spec) GetCreateDatabaseConfig() *Plan_CreateDatabaseConfig {
if x != nil {
if x, ok := x.Config.(*Plan_Spec_CreateDatabaseConfig); ok {
return x.CreateDatabaseConfig
}
}
return nil
}
func (x *Plan_Spec) GetChangeDatabaseConfig() *Plan_ChangeDatabaseConfig {
if x != nil {
if x, ok := x.Config.(*Plan_Spec_ChangeDatabaseConfig); ok {
return x.ChangeDatabaseConfig
}
}
return nil
}
type isPlan_Spec_Config interface {
isPlan_Spec_Config()
}
type Plan_Spec_CreateDatabaseConfig struct {
CreateDatabaseConfig *Plan_CreateDatabaseConfig `protobuf:"bytes,2,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof"`
}
type Plan_Spec_ChangeDatabaseConfig struct {
ChangeDatabaseConfig *Plan_ChangeDatabaseConfig `protobuf:"bytes,3,opt,name=change_database_config,json=changeDatabaseConfig,proto3,oneof"`
}
func (*Plan_Spec_CreateDatabaseConfig) isPlan_Spec_Config() {}
func (*Plan_Spec_ChangeDatabaseConfig) isPlan_Spec_Config() {}
type Plan_CreateDatabaseConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The resource name of the instance on which the database is created.
// Format: instances/{instance} or projects/{project}/instances/{instance}
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// The name of the database to create.
Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
// table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.
// For example, in MongoDB, it only creates the database when we first store data in that database.
Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
// character_set is the character set of the database.
CharacterSet string `protobuf:"bytes,4,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
// collation is the collation of the database.
Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`
// cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".
Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`
// owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".
Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
// The environment resource.
// Format: environments/prod where prod is the environment resource ID.
Environment string `protobuf:"bytes,9,opt,name=environment,proto3" json:"environment,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan_CreateDatabaseConfig) Reset() {
*x = Plan_CreateDatabaseConfig{}
mi := &file_v1_plan_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan_CreateDatabaseConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan_CreateDatabaseConfig) ProtoMessage() {}
func (x *Plan_CreateDatabaseConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[14]
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 Plan_CreateDatabaseConfig.ProtoReflect.Descriptor instead.
func (*Plan_CreateDatabaseConfig) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 2}
}
func (x *Plan_CreateDatabaseConfig) GetTarget() string {
if x != nil {
return x.Target
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetDatabase() string {
if x != nil {
return x.Database
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetTable() string {
if x != nil {
return x.Table
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetCharacterSet() string {
if x != nil {
return x.CharacterSet
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetCollation() string {
if x != nil {
return x.Collation
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *Plan_CreateDatabaseConfig) GetEnvironment() string {
if x != nil {
return x.Environment
}
return ""
}
type Plan_ChangeDatabaseConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The list of targets.
// Multi-database format: [instances/{instance-id}/databases/{database-name}].
// Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].
Targets []string `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"`
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}
Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`
// The resource name of the release.
// Format: projects/{project}/releases/{release}
Release string `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
// If set, a backup of the modified data will be created automatically before any changes are applied.
EnablePriorBackup bool `protobuf:"varint,6,opt,name=enable_prior_backup,json=enablePriorBackup,proto3" json:"enable_prior_backup,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan_ChangeDatabaseConfig) Reset() {
*x = Plan_ChangeDatabaseConfig{}
mi := &file_v1_plan_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan_ChangeDatabaseConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan_ChangeDatabaseConfig) ProtoMessage() {}
func (x *Plan_ChangeDatabaseConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[15]
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 Plan_ChangeDatabaseConfig.ProtoReflect.Descriptor instead.
func (*Plan_ChangeDatabaseConfig) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 3}
}
func (x *Plan_ChangeDatabaseConfig) GetTargets() []string {
if x != nil {
return x.Targets
}
return nil
}
func (x *Plan_ChangeDatabaseConfig) GetSheet() string {
if x != nil {
return x.Sheet
}
return ""
}
func (x *Plan_ChangeDatabaseConfig) GetRelease() string {
if x != nil {
return x.Release
}
return ""
}
func (x *Plan_ChangeDatabaseConfig) GetEnablePriorBackup() bool {
if x != nil {
return x.EnablePriorBackup
}
return false
}
type Plan_RolloutStageSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The stage resource name.
// Format: projects/{project}/plans/{plan}/rollout/stages/{stage}
Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
// Task status counts for this stage.
TaskStatusCounts []*Plan_TaskStatusCount `protobuf:"bytes,2,rep,name=task_status_counts,json=taskStatusCounts,proto3" json:"task_status_counts,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan_RolloutStageSummary) Reset() {
*x = Plan_RolloutStageSummary{}
mi := &file_v1_plan_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan_RolloutStageSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan_RolloutStageSummary) ProtoMessage() {}
func (x *Plan_RolloutStageSummary) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[16]
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 Plan_RolloutStageSummary.ProtoReflect.Descriptor instead.
func (*Plan_RolloutStageSummary) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 4}
}
func (x *Plan_RolloutStageSummary) GetStage() string {
if x != nil {
return x.Stage
}
return ""
}
func (x *Plan_RolloutStageSummary) GetTaskStatusCounts() []*Plan_TaskStatusCount {
if x != nil {
return x.TaskStatusCounts
}
return nil
}
type Plan_TaskStatusCount struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The task status.
Status Task_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.v1.Task_Status" json:"status,omitempty"`
// The number of tasks in the status.
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan_TaskStatusCount) Reset() {
*x = Plan_TaskStatusCount{}
mi := &file_v1_plan_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan_TaskStatusCount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan_TaskStatusCount) ProtoMessage() {}
func (x *Plan_TaskStatusCount) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[17]
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 Plan_TaskStatusCount.ProtoReflect.Descriptor instead.
func (*Plan_TaskStatusCount) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 5}
}
func (x *Plan_TaskStatusCount) GetStatus() Task_Status {
if x != nil {
return x.Status
}
return Task_STATUS_UNSPECIFIED
}
func (x *Plan_TaskStatusCount) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
type PlanCheckRun_Result struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status Advice_Level `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.v1.Advice_Level" json:"status,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`
// Target identification for consolidated results.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
Target string `protobuf:"bytes,7,opt,name=target,proto3" json:"target,omitempty"`
Type PlanCheckRun_Result_Type `protobuf:"varint,8,opt,name=type,proto3,enum=bytebase.v1.PlanCheckRun_Result_Type" json:"type,omitempty"`
// Types that are valid to be assigned to Report:
//
// *PlanCheckRun_Result_SqlSummaryReport_
// *PlanCheckRun_Result_SqlReviewReport_
Report isPlanCheckRun_Result_Report `protobuf_oneof:"report"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanCheckRun_Result) Reset() {
*x = PlanCheckRun_Result{}
mi := &file_v1_plan_service_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanCheckRun_Result) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanCheckRun_Result) ProtoMessage() {}
func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[18]
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 PlanCheckRun_Result.ProtoReflect.Descriptor instead.
func (*PlanCheckRun_Result) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0}
}
func (x *PlanCheckRun_Result) GetStatus() Advice_Level {
if x != nil {
return x.Status
}
return Advice_ADVICE_LEVEL_UNSPECIFIED
}
func (x *PlanCheckRun_Result) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *PlanCheckRun_Result) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *PlanCheckRun_Result) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *PlanCheckRun_Result) GetTarget() string {
if x != nil {
return x.Target
}
return ""
}
func (x *PlanCheckRun_Result) GetType() PlanCheckRun_Result_Type {
if x != nil {
return x.Type
}
return PlanCheckRun_Result_TYPE_UNSPECIFIED
}
func (x *PlanCheckRun_Result) GetReport() isPlanCheckRun_Result_Report {
if x != nil {
return x.Report
}
return nil
}
func (x *PlanCheckRun_Result) GetSqlSummaryReport() *PlanCheckRun_Result_SqlSummaryReport {
if x != nil {
if x, ok := x.Report.(*PlanCheckRun_Result_SqlSummaryReport_); ok {
return x.SqlSummaryReport
}
}
return nil
}
func (x *PlanCheckRun_Result) GetSqlReviewReport() *PlanCheckRun_Result_SqlReviewReport {
if x != nil {
if x, ok := x.Report.(*PlanCheckRun_Result_SqlReviewReport_); ok {
return x.SqlReviewReport
}
}
return nil
}
type isPlanCheckRun_Result_Report interface {
isPlanCheckRun_Result_Report()
}
type PlanCheckRun_Result_SqlSummaryReport_ struct {
SqlSummaryReport *PlanCheckRun_Result_SqlSummaryReport `protobuf:"bytes,5,opt,name=sql_summary_report,json=sqlSummaryReport,proto3,oneof"`
}
type PlanCheckRun_Result_SqlReviewReport_ struct {
SqlReviewReport *PlanCheckRun_Result_SqlReviewReport `protobuf:"bytes,6,opt,name=sql_review_report,json=sqlReviewReport,proto3,oneof"`
}
func (*PlanCheckRun_Result_SqlSummaryReport_) isPlanCheckRun_Result_Report() {}
func (*PlanCheckRun_Result_SqlReviewReport_) isPlanCheckRun_Result_Report() {}
type PlanCheckRun_Result_SqlSummaryReport struct {
state protoimpl.MessageState `protogen:"open.v1"`
// statement_types are the types of statements that are found in the sql.
StatementTypes []StatementType `protobuf:"varint,2,rep,packed,name=statement_types,json=statementTypes,proto3,enum=bytebase.v1.StatementType" json:"statement_types,omitempty"`
AffectedRows int64 `protobuf:"varint,3,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {
*x = PlanCheckRun_Result_SqlSummaryReport{}
mi := &file_v1_plan_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanCheckRun_Result_SqlSummaryReport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanCheckRun_Result_SqlSummaryReport) ProtoMessage() {}
func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[19]
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 PlanCheckRun_Result_SqlSummaryReport.ProtoReflect.Descriptor instead.
func (*PlanCheckRun_Result_SqlSummaryReport) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0, 0}
}
func (x *PlanCheckRun_Result_SqlSummaryReport) GetStatementTypes() []StatementType {
if x != nil {
return x.StatementTypes
}
return nil
}
func (x *PlanCheckRun_Result_SqlSummaryReport) GetAffectedRows() int64 {
if x != nil {
return x.AffectedRows
}
return 0
}
type PlanCheckRun_Result_SqlReviewReport struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Position of the SQL statement.
StartPosition *Position `protobuf:"bytes,5,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`
EndPosition *Position `protobuf:"bytes,6,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanCheckRun_Result_SqlReviewReport) Reset() {
*x = PlanCheckRun_Result_SqlReviewReport{}
mi := &file_v1_plan_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanCheckRun_Result_SqlReviewReport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanCheckRun_Result_SqlReviewReport) ProtoMessage() {}
func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Message {
mi := &file_v1_plan_service_proto_msgTypes[20]
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 PlanCheckRun_Result_SqlReviewReport.ProtoReflect.Descriptor instead.
func (*PlanCheckRun_Result_SqlReviewReport) Descriptor() ([]byte, []int) {
return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0, 1}
}
func (x *PlanCheckRun_Result_SqlReviewReport) GetStartPosition() *Position {
if x != nil {
return x.StartPosition
}
return nil
}
func (x *PlanCheckRun_Result_SqlReviewReport) GetEndPosition() *Position {
if x != nil {
return x.EndPosition
}
return nil
}
var File_v1_plan_service_proto protoreflect.FileDescriptor
const file_v1_plan_service_proto_rawDesc = "" +
"\n" +
"\x15v1/plan_service.proto\x12\vbytebase.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x18v1/rollout_service.proto\x1a\x14v1/sql_service.proto\"?\n" +
"\x0eGetPlanRequest\x12-\n" +
"\x04name\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
"\x11bytebase.com/PlanR\x04name\"\x9c\x01\n" +
"\x10ListPlansRequest\x124\n" +
"\x06parent\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
"\x14bytebase.com/ProjectR\x06parent\x12\x1b\n" +
"\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" +
"\n" +
"page_token\x18\x03 \x01(\tR\tpageToken\x12\x16\n" +
"\x06filter\x18\x04 \x01(\tR\x06filter\"d\n" +
"\x11ListPlansResponse\x12'\n" +
"\x05plans\x18\x01 \x03(\v2\x11.bytebase.v1.PlanR\x05plans\x12&\n" +
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"u\n" +
"\x11CreatePlanRequest\x124\n" +
"\x06parent\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
"\x14bytebase.com/ProjectR\x06parent\x12*\n" +
"\x04plan\x18\x02 \x01(\v2\x11.bytebase.v1.PlanB\x03\xe0A\x02R\x04plan\"\xa6\x01\n" +
"\x11UpdatePlanRequest\x12*\n" +
"\x04plan\x18\x01 \x01(\v2\x11.bytebase.v1.PlanB\x03\xe0A\x02R\x04plan\x12@\n" +
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
"updateMask\x12#\n" +
"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"\xd6\x0e\n" +
"\x04Plan\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +
"\x05state\x18\x02 \x01(\x0e2\x12.bytebase.v1.StateR\x05state\x12\x19\n" +
"\x05issue\x18\x03 \x01(\tB\x03\xe0A\x03R\x05issue\x12\x1e\n" +
"\x05title\x18\x05 \x01(\tB\b\xbaH\x05r\x03\x18\xc8\x01R\x05title\x12*\n" +
"\vdescription\x18\x06 \x01(\tB\b\xbaH\x05r\x03\x18\x90NR\vdescription\x12,\n" +
"\x05specs\x18\a \x03(\v2\x16.bytebase.v1.Plan.SpecR\x05specs\x12\x1d\n" +
"\acreator\x18\b \x01(\tB\x03\xe0A\x03R\acreator\x12@\n" +
"\vcreate_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
"createTime\x12@\n" +
"\vupdate_time\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
"updateTime\x12q\n" +
"\x1bplan_check_run_status_count\x18\v \x03(\v2..bytebase.v1.Plan.PlanCheckRunStatusCountEntryB\x03\xe0A\x03R\x17planCheckRunStatusCount\x12$\n" +
"\vhas_rollout\x18\f \x01(\bB\x03\xe0A\x03R\n" +
"hasRollout\x12I\n" +
"\x0fapproval_status\x18\r \x01(\x0e2\x1b.bytebase.v1.ApprovalStatusB\x03\xe0A\x03R\x0eapprovalStatus\x12b\n" +
"\x17rollout_stage_summaries\x18\x0e \x03(\v2%.bytebase.v1.Plan.RolloutStageSummaryB\x03\xe0A\x03R\x15rolloutStageSummaries\x12@\n" +
"\fissue_status\x18\x0f \x01(\x0e2\x18.bytebase.v1.IssueStatusB\x03\xe0A\x03R\vissueStatus\x12-\n" +
"\x10last_plan_editor\x18\x10 \x01(\tB\x03\xe0A\x03R\x0elastPlanEditor\x1a\xe0\x01\n" +
"\x04Spec\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12^\n" +
"\x16create_database_config\x18\x02 \x01(\v2&.bytebase.v1.Plan.CreateDatabaseConfigH\x00R\x14createDatabaseConfig\x12^\n" +
"\x16change_database_config\x18\x03 \x01(\v2&.bytebase.v1.Plan.ChangeDatabaseConfigH\x00R\x14changeDatabaseConfigB\b\n" +
"\x06config\x1aJ\n" +
"\x1cPlanCheckRunStatusCountEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1a\xa3\x02\n" +
"\x14CreateDatabaseConfig\x12\x1b\n" +
"\x06target\x18\x01 \x01(\tB\x03\xe0A\x02R\x06target\x12\x1f\n" +
"\bdatabase\x18\x02 \x01(\tB\x03\xe0A\x02R\bdatabase\x12\x19\n" +
"\x05table\x18\x03 \x01(\tB\x03\xe0A\x01R\x05table\x12(\n" +
"\rcharacter_set\x18\x04 \x01(\tB\x03\xe0A\x01R\fcharacterSet\x12!\n" +
"\tcollation\x18\x05 \x01(\tB\x03\xe0A\x01R\tcollation\x12\x1d\n" +
"\acluster\x18\x06 \x01(\tB\x03\xe0A\x01R\acluster\x12\x19\n" +
"\x05owner\x18\a \x01(\tB\x03\xe0A\x01R\x05owner\x12%\n" +
"\venvironment\x18\t \x01(\tB\x03\xe0A\x01R\venvironmentJ\x04\b\b\x10\t\x1a\xb1\x01\n" +
"\x14ChangeDatabaseConfig\x12\x18\n" +
"\atargets\x18\x01 \x03(\tR\atargets\x12\x14\n" +
"\x05sheet\x18\x02 \x01(\tR\x05sheet\x123\n" +
"\arelease\x18\x03 \x01(\tB\x19\xfaA\x16\n" +
"\x14bytebase.com/ReleaseR\arelease\x12.\n" +
"\x13enable_prior_backup\x18\x06 \x01(\bR\x11enablePriorBackupJ\x04\b\x04\x10\x06\x1a|\n" +
"\x13RolloutStageSummary\x12\x14\n" +
"\x05stage\x18\x01 \x01(\tR\x05stage\x12O\n" +
"\x12task_status_counts\x18\x02 \x03(\v2!.bytebase.v1.Plan.TaskStatusCountR\x10taskStatusCounts\x1aY\n" +
"\x0fTaskStatusCount\x120\n" +
"\x06status\x18\x01 \x01(\x0e2\x18.bytebase.v1.Task.StatusR\x06status\x12\x14\n" +
"\x05count\x18\x02 \x01(\x05R\x05count:7\xeaA4\n" +
"\x11bytebase.com/Plan\x12\x1fprojects/{project}/plans/{plan}J\x04\b\x04\x10\x05\"O\n" +
"\x16GetPlanCheckRunRequest\x125\n" +
"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
"\x19bytebase.com/PlanCheckRunR\x04name\"o\n" +
"\x14RunPlanChecksRequest\x12-\n" +
"\x04name\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
"\x11bytebase.com/PlanR\x04name\x12\x1c\n" +
"\aspec_id\x18\x02 \x01(\tH\x00R\x06specId\x88\x01\x01B\n" +
"\n" +
"\b_spec_id\"\x17\n" +
"\x15RunPlanChecksResponse\"R\n" +
"\x19CancelPlanCheckRunRequest\x125\n" +
"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
"\x19bytebase.com/PlanCheckRunR\x04name\"\x1c\n" +
"\x1aCancelPlanCheckRunResponse\"\xb8\t\n" +
"\fPlanCheckRun\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x128\n" +
"\x06status\x18\x03 \x01(\x0e2 .bytebase.v1.PlanCheckRun.StatusR\x06status\x12:\n" +
"\aresults\x18\x06 \x03(\v2 .bytebase.v1.PlanCheckRun.ResultR\aresults\x12\x14\n" +
"\x05error\x18\a \x01(\tR\x05error\x12@\n" +
"\vcreate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
"createTime\x1a\x98\x06\n" +
"\x06Result\x121\n" +
"\x06status\x18\x01 \x01(\x0e2\x19.bytebase.v1.Advice.LevelR\x06status\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" +
"\acontent\x18\x03 \x01(\tR\acontent\x12\x12\n" +
"\x04code\x18\x04 \x01(\x05R\x04code\x12\x16\n" +
"\x06target\x18\a \x01(\tR\x06target\x129\n" +
"\x04type\x18\b \x01(\x0e2%.bytebase.v1.PlanCheckRun.Result.TypeR\x04type\x12a\n" +
"\x12sql_summary_report\x18\x05 \x01(\v21.bytebase.v1.PlanCheckRun.Result.SqlSummaryReportH\x00R\x10sqlSummaryReport\x12^\n" +
"\x11sql_review_report\x18\x06 \x01(\v20.bytebase.v1.PlanCheckRun.Result.SqlReviewReportH\x00R\x0fsqlReviewReport\x1a\x82\x01\n" +
"\x10SqlSummaryReport\x12C\n" +
"\x0fstatement_types\x18\x02 \x03(\x0e2\x1a.bytebase.v1.StatementTypeR\x0estatementTypes\x12#\n" +
"\raffected_rows\x18\x03 \x01(\x03R\faffectedRowsJ\x04\b\x01\x10\x02\x1a\x8f\x01\n" +
"\x0fSqlReviewReport\x12<\n" +
"\x0estart_position\x18\x05 \x01(\v2\x15.bytebase.v1.PositionR\rstartPosition\x128\n" +
"\fend_position\x18\x06 \x01(\v2\x15.bytebase.v1.PositionR\vendPositionJ\x04\b\x01\x10\x05\"`\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\x14\n" +
"\x10STATEMENT_ADVISE\x10\x01\x12\x1c\n" +
"\x18STATEMENT_SUMMARY_REPORT\x10\x02\x12\x0e\n" +
"\n" +
"GHOST_SYNC\x10\x03B\b\n" +
"\x06report\"Q\n" +
"\x06Status\x12\x16\n" +
"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
"\aRUNNING\x10\x01\x12\b\n" +
"\x04DONE\x10\x02\x12\n" +
"\n" +
"\x06FAILED\x10\x03\x12\f\n" +
"\bCANCELED\x10\x04:L\xeaAI\n" +
"\x19bytebase.com/PlanCheckRun\x12,projects/{project}/plans/{plan}/planCheckRunJ\x04\b\x02\x10\x03J\x04\b\x04\x10\x062\xa2\t\n" +
"\vPlanService\x12\x7f\n" +
"\aGetPlan\x12\x1b.bytebase.v1.GetPlanRequest\x1a\x11.bytebase.v1.Plan\"D\xdaA\x04name\x8a\xea0\fbb.plans.get\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=projects/*/plans/*}\x12\x93\x01\n" +
"\tListPlans\x12\x1d.bytebase.v1.ListPlansRequest\x1a\x1e.bytebase.v1.ListPlansResponse\"G\xdaA\x06parent\x8a\xea0\rbb.plans.list\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=projects/*}/plans\x12\x99\x01\n" +
"\n" +
"CreatePlan\x12\x1e.bytebase.v1.CreatePlanRequest\x1a\x11.bytebase.v1.Plan\"X\xdaA\vparent,plan\x8a\xea0\x0fbb.plans.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02%:\x04plan\"\x1d/v1/{parent=projects/*}/plans\x12\xa3\x01\n" +
"\n" +
"UpdatePlan\x12\x1e.bytebase.v1.UpdatePlanRequest\x1a\x11.bytebase.v1.Plan\"b\xdaA\x10plan,update_mask\x8a\xea0\x0fbb.plans.update\x90\xea0\x02\x98\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02*:\x04plan2\"/v1/{plan.name=projects/*/plans/*}\x12\xac\x01\n" +
"\x0fGetPlanCheckRun\x12#.bytebase.v1.GetPlanCheckRunRequest\x1a\x19.bytebase.v1.PlanCheckRun\"Y\xdaA\x04name\x8a\xea0\x14bb.planCheckRuns.get\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02,\x12*/v1/{name=projects/*/plans/*/planCheckRun}\x12\xb9\x01\n" +
"\rRunPlanChecks\x12!.bytebase.v1.RunPlanChecksRequest\x1a\".bytebase.v1.RunPlanChecksResponse\"a\xdaA\x04name\x8a\xea0\x14bb.planCheckRuns.run\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x020:\x01*\"+/v1/{name=projects/*/plans/*}:runPlanChecks\x12\xce\x01\n" +
"\x12CancelPlanCheckRun\x12&.bytebase.v1.CancelPlanCheckRunRequest\x1a'.bytebase.v1.CancelPlanCheckRunResponse\"g\xdaA\x04name\x8a\xea0\x14bb.planCheckRuns.run\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x026:\x01*\"1/v1/{name=projects/*/plans/*/planCheckRun}:cancelB\xa6\x01\n" +
"\x0fcom.bytebase.v1B\x10PlanServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
file_v1_plan_service_proto_rawDescOnce sync.Once
file_v1_plan_service_proto_rawDescData []byte
)
func file_v1_plan_service_proto_rawDescGZIP() []byte {
file_v1_plan_service_proto_rawDescOnce.Do(func() {
file_v1_plan_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_plan_service_proto_rawDesc), len(file_v1_plan_service_proto_rawDesc)))
})
return file_v1_plan_service_proto_rawDescData
}
var file_v1_plan_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_v1_plan_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_v1_plan_service_proto_goTypes = []any{
(PlanCheckRun_Status)(0), // 0: bytebase.v1.PlanCheckRun.Status
(PlanCheckRun_Result_Type)(0), // 1: bytebase.v1.PlanCheckRun.Result.Type
(*GetPlanRequest)(nil), // 2: bytebase.v1.GetPlanRequest
(*ListPlansRequest)(nil), // 3: bytebase.v1.ListPlansRequest
(*ListPlansResponse)(nil), // 4: bytebase.v1.ListPlansResponse
(*CreatePlanRequest)(nil), // 5: bytebase.v1.CreatePlanRequest
(*UpdatePlanRequest)(nil), // 6: bytebase.v1.UpdatePlanRequest
(*Plan)(nil), // 7: bytebase.v1.Plan
(*GetPlanCheckRunRequest)(nil), // 8: bytebase.v1.GetPlanCheckRunRequest
(*RunPlanChecksRequest)(nil), // 9: bytebase.v1.RunPlanChecksRequest
(*RunPlanChecksResponse)(nil), // 10: bytebase.v1.RunPlanChecksResponse
(*CancelPlanCheckRunRequest)(nil), // 11: bytebase.v1.CancelPlanCheckRunRequest
(*CancelPlanCheckRunResponse)(nil), // 12: bytebase.v1.CancelPlanCheckRunResponse
(*PlanCheckRun)(nil), // 13: bytebase.v1.PlanCheckRun
(*Plan_Spec)(nil), // 14: bytebase.v1.Plan.Spec
nil, // 15: bytebase.v1.Plan.PlanCheckRunStatusCountEntry
(*Plan_CreateDatabaseConfig)(nil), // 16: bytebase.v1.Plan.CreateDatabaseConfig
(*Plan_ChangeDatabaseConfig)(nil), // 17: bytebase.v1.Plan.ChangeDatabaseConfig
(*Plan_RolloutStageSummary)(nil), // 18: bytebase.v1.Plan.RolloutStageSummary
(*Plan_TaskStatusCount)(nil), // 19: bytebase.v1.Plan.TaskStatusCount
(*PlanCheckRun_Result)(nil), // 20: bytebase.v1.PlanCheckRun.Result
(*PlanCheckRun_Result_SqlSummaryReport)(nil), // 21: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
(*PlanCheckRun_Result_SqlReviewReport)(nil), // 22: bytebase.v1.PlanCheckRun.Result.SqlReviewReport
(*fieldmaskpb.FieldMask)(nil), // 23: google.protobuf.FieldMask
(State)(0), // 24: bytebase.v1.State
(*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp
(ApprovalStatus)(0), // 26: bytebase.v1.ApprovalStatus
(IssueStatus)(0), // 27: bytebase.v1.IssueStatus
(Task_Status)(0), // 28: bytebase.v1.Task.Status
(Advice_Level)(0), // 29: bytebase.v1.Advice.Level
(StatementType)(0), // 30: bytebase.v1.StatementType
(*Position)(nil), // 31: bytebase.v1.Position
}
var file_v1_plan_service_proto_depIdxs = []int32{
7, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan
7, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan
7, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan
23, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask
24, // 4: bytebase.v1.Plan.state:type_name -> bytebase.v1.State
14, // 5: bytebase.v1.Plan.specs:type_name -> bytebase.v1.Plan.Spec
25, // 6: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp
25, // 7: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp
15, // 8: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry
26, // 9: bytebase.v1.Plan.approval_status:type_name -> bytebase.v1.ApprovalStatus
18, // 10: bytebase.v1.Plan.rollout_stage_summaries:type_name -> bytebase.v1.Plan.RolloutStageSummary
27, // 11: bytebase.v1.Plan.issue_status:type_name -> bytebase.v1.IssueStatus
0, // 12: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status
20, // 13: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result
25, // 14: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp
16, // 15: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig
17, // 16: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig
19, // 17: bytebase.v1.Plan.RolloutStageSummary.task_status_counts:type_name -> bytebase.v1.Plan.TaskStatusCount
28, // 18: bytebase.v1.Plan.TaskStatusCount.status:type_name -> bytebase.v1.Task.Status
29, // 19: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.Advice.Level
1, // 20: bytebase.v1.PlanCheckRun.Result.type:type_name -> bytebase.v1.PlanCheckRun.Result.Type
21, // 21: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
22, // 22: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport
30, // 23: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.statement_types:type_name -> bytebase.v1.StatementType
31, // 24: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position
31, // 25: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position
2, // 26: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
3, // 27: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
5, // 28: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
6, // 29: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
8, // 30: bytebase.v1.PlanService.GetPlanCheckRun:input_type -> bytebase.v1.GetPlanCheckRunRequest
9, // 31: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
11, // 32: bytebase.v1.PlanService.CancelPlanCheckRun:input_type -> bytebase.v1.CancelPlanCheckRunRequest
7, // 33: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan
4, // 34: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
7, // 35: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan
7, // 36: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan
13, // 37: bytebase.v1.PlanService.GetPlanCheckRun:output_type -> bytebase.v1.PlanCheckRun
10, // 38: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
12, // 39: bytebase.v1.PlanService.CancelPlanCheckRun:output_type -> bytebase.v1.CancelPlanCheckRunResponse
33, // [33:40] is the sub-list for method output_type
26, // [26:33] is the sub-list for method input_type
26, // [26:26] is the sub-list for extension type_name
26, // [26:26] is the sub-list for extension extendee
0, // [0:26] is the sub-list for field type_name
}
func init() { file_v1_plan_service_proto_init() }
func file_v1_plan_service_proto_init() {
if File_v1_plan_service_proto != nil {
return
}
file_v1_annotation_proto_init()
file_v1_common_proto_init()
file_v1_rollout_service_proto_init()
file_v1_sql_service_proto_init()
file_v1_plan_service_proto_msgTypes[7].OneofWrappers = []any{}
file_v1_plan_service_proto_msgTypes[12].OneofWrappers = []any{
(*Plan_Spec_CreateDatabaseConfig)(nil),
(*Plan_Spec_ChangeDatabaseConfig)(nil),
}
file_v1_plan_service_proto_msgTypes[18].OneofWrappers = []any{
(*PlanCheckRun_Result_SqlSummaryReport_)(nil),
(*PlanCheckRun_Result_SqlReviewReport_)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_plan_service_proto_rawDesc), len(file_v1_plan_service_proto_rawDesc)),
NumEnums: 2,
NumMessages: 21,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_v1_plan_service_proto_goTypes,
DependencyIndexes: file_v1_plan_service_proto_depIdxs,
EnumInfos: file_v1_plan_service_proto_enumTypes,
MessageInfos: file_v1_plan_service_proto_msgTypes,
}.Build()
File_v1_plan_service_proto = out.File
file_v1_plan_service_proto_goTypes = nil
file_v1_plan_service_proto_depIdxs = nil
}