Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

71.1 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        (unknown)
// source: v1/project_service.proto

package v1

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	color "google.golang.org/genproto/googleapis/type/color"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
	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)
)

// Activity type enumeration.
type Activity_Type int32

const (
	// Unspecified type.
	Activity_TYPE_UNSPECIFIED Activity_Type = 0
	// ISSUE_CREATED represents a new issue creation event.
	Activity_ISSUE_CREATED Activity_Type = 10
	// ISSUE_APPROVAL_REQUESTED represents an approval request event.
	Activity_ISSUE_APPROVAL_REQUESTED Activity_Type = 11
	// ISSUE_SENT_BACK represents an issue being sent back by an approver.
	Activity_ISSUE_SENT_BACK Activity_Type = 12
	// PIPELINE_FAILED represents a pipeline failure event.
	Activity_PIPELINE_FAILED Activity_Type = 13
	// PIPELINE_COMPLETED represents a pipeline completion event.
	Activity_PIPELINE_COMPLETED Activity_Type = 14
	// ISSUE_APPROVED represents an issue being fully approved.
	Activity_ISSUE_APPROVED Activity_Type = 15
)

// Enum value maps for Activity_Type.
var (
	Activity_Type_name = map[int32]string{
		0:  "TYPE_UNSPECIFIED",
		10: "ISSUE_CREATED",
		11: "ISSUE_APPROVAL_REQUESTED",
		12: "ISSUE_SENT_BACK",
		13: "PIPELINE_FAILED",
		14: "PIPELINE_COMPLETED",
		15: "ISSUE_APPROVED",
	}
	Activity_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":         0,
		"ISSUE_CREATED":            10,
		"ISSUE_APPROVAL_REQUESTED": 11,
		"ISSUE_SENT_BACK":          12,
		"PIPELINE_FAILED":          13,
		"PIPELINE_COMPLETED":       14,
		"ISSUE_APPROVED":           15,
	}
)

func (x Activity_Type) Enum() *Activity_Type {
	p := new(Activity_Type)
	*p = x
	return p
}

func (x Activity_Type) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Activity_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_project_service_proto_enumTypes[0].Descriptor()
}

func (Activity_Type) Type() protoreflect.EnumType {
	return &file_v1_project_service_proto_enumTypes[0]
}

func (x Activity_Type) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Activity_Type.Descriptor instead.
func (Activity_Type) EnumDescriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{21, 0}
}

type GetProjectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the project to retrieve.
	// Format: projects/{project}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetProjectRequest) ProtoMessage() {}

func (x *GetProjectRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 GetProjectRequest.ProtoReflect.Descriptor instead.
func (*GetProjectRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{0}
}

func (x *GetProjectRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

type BatchGetProjectsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The names of projects to retrieve.
	// Format: projects/{project}
	Names         []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BatchGetProjectsRequest) Reset() {
	*x = BatchGetProjectsRequest{}
	mi := &file_v1_project_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*BatchGetProjectsRequest) ProtoMessage() {}

func (x *BatchGetProjectsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 BatchGetProjectsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetProjectsRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{1}
}

func (x *BatchGetProjectsRequest) GetNames() []string {
	if x != nil {
		return x.Names
	}
	return nil
}

type BatchGetProjectsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// One project per requested name, in the same order as `names`.
	Projects      []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BatchGetProjectsResponse) Reset() {
	*x = BatchGetProjectsResponse{}
	mi := &file_v1_project_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*BatchGetProjectsResponse) ProtoMessage() {}

func (x *BatchGetProjectsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 BatchGetProjectsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetProjectsResponse) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{2}
}

func (x *BatchGetProjectsResponse) GetProjects() []*Project {
	if x != nil {
		return x.Projects
	}
	return nil
}

type ListProjectsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The maximum number of projects to return. The service may return fewer than
	// this value.
	// If unspecified, at most 10 projects will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListProjects` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListProjects` must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Show deleted projects if specified.
	ShowDeleted bool `protobuf:"varint,3,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// Filter the project.
	// Check filter for SearchProjectsRequest for details.
	// Supports filtering by name, resource_id, state, and labels (e.g., labels.environment == "production").
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// The order by of projects.
	// Support title. The default sorting order is ascending.
	// For example:
	// - order_by = "title"
	// - order_by = "title desc"
	// - order_by = "title asc"
	OrderBy       string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListProjectsRequest) Reset() {
	*x = ListProjectsRequest{}
	mi := &file_v1_project_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListProjectsRequest) ProtoMessage() {}

func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 ListProjectsRequest.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{3}
}

func (x *ListProjectsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListProjectsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *ListProjectsRequest) GetShowDeleted() bool {
	if x != nil {
		return x.ShowDeleted
	}
	return false
}

func (x *ListProjectsRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

func (x *ListProjectsRequest) GetOrderBy() string {
	if x != nil {
		return x.OrderBy
	}
	return ""
}

type ListProjectsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The projects from the specified request.
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,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 *ListProjectsResponse) Reset() {
	*x = ListProjectsResponse{}
	mi := &file_v1_project_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListProjectsResponse) ProtoMessage() {}

func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 ListProjectsResponse.ProtoReflect.Descriptor instead.
func (*ListProjectsResponse) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{4}
}

func (x *ListProjectsResponse) GetProjects() []*Project {
	if x != nil {
		return x.Projects
	}
	return nil
}

func (x *ListProjectsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

type SearchProjectsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Show deleted projects if specified.
	ShowDeleted bool `protobuf:"varint,1,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// Filter the project.
	// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
	//
	// Supported filters:
	// - name: the project name, support "==" and ".contains()" operator.
	// - resource_id: the project id, support "==" and ".contains()" operator.
	// - exclude_default: if not include the default project, should be "true" or "false", support "==" operator.
	// - state: check the State enum for the values, support "==" operator.
	// - labels.{key}: the project label, support "==" and "in" operators.
	//
	// For example:
	// name == "project name"
	// name.contains("project name")
	// resource_id == "project id"
	// resource_id.contains("project id")
	// exclude_default == true
	// state == "DELETED"
	// labels.environment == "production"
	// labels.tier == "critical"
	// labels.environment in ["staging", "prod"]
	// You can combine filter conditions like:
	// name == "project name" && resource_id.contains("project id")
	// name.contains("project name") || resource_id == "project id"
	// labels.environment == "production" && labels.tier == "critical"
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// The maximum number of projects to return. The service may return fewer than
	// this value.
	// If unspecified, at most 10 projects will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `SearchProjects` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `SearchProjects` must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The order by of projects.
	// Support title. The default sorting order is ascending.
	// For example:
	// - order_by = "title"
	// - order_by = "title desc"
	// - order_by = "title asc"
	OrderBy       string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SearchProjectsRequest) Reset() {
	*x = SearchProjectsRequest{}
	mi := &file_v1_project_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SearchProjectsRequest) ProtoMessage() {}

func (x *SearchProjectsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 SearchProjectsRequest.ProtoReflect.Descriptor instead.
func (*SearchProjectsRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{5}
}

func (x *SearchProjectsRequest) GetShowDeleted() bool {
	if x != nil {
		return x.ShowDeleted
	}
	return false
}

func (x *SearchProjectsRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

func (x *SearchProjectsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *SearchProjectsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *SearchProjectsRequest) GetOrderBy() string {
	if x != nil {
		return x.OrderBy
	}
	return ""
}

type SearchProjectsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The projects from the specified request.
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,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 *SearchProjectsResponse) Reset() {
	*x = SearchProjectsResponse{}
	mi := &file_v1_project_service_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SearchProjectsResponse) ProtoMessage() {}

func (x *SearchProjectsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 SearchProjectsResponse.ProtoReflect.Descriptor instead.
func (*SearchProjectsResponse) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{6}
}

func (x *SearchProjectsResponse) GetProjects() []*Project {
	if x != nil {
		return x.Projects
	}
	return nil
}

func (x *SearchProjectsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

type CreateProjectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The project to create.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The ID to use for the project, which will become the final component of
	// the project's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-/.
	ProjectId     string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateProjectRequest) Reset() {
	*x = CreateProjectRequest{}
	mi := &file_v1_project_service_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreateProjectRequest) ProtoMessage() {}

func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 CreateProjectRequest.ProtoReflect.Descriptor instead.
func (*CreateProjectRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{7}
}

func (x *CreateProjectRequest) GetProject() *Project {
	if x != nil {
		return x.Project
	}
	return nil
}

func (x *CreateProjectRequest) GetProjectId() string {
	if x != nil {
		return x.ProjectId
	}
	return ""
}

type UpdateProjectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The project to update.
	//
	// The project's `name` field is used to identify the project to update.
	// Format: projects/{project}
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,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 project is not found, a new project 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 *UpdateProjectRequest) Reset() {
	*x = UpdateProjectRequest{}
	mi := &file_v1_project_service_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateProjectRequest) ProtoMessage() {}

func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 UpdateProjectRequest.ProtoReflect.Descriptor instead.
func (*UpdateProjectRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{8}
}

func (x *UpdateProjectRequest) GetProject() *Project {
	if x != nil {
		return x.Project
	}
	return nil
}

func (x *UpdateProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

func (x *UpdateProjectRequest) GetAllowMissing() bool {
	if x != nil {
		return x.AllowMissing
	}
	return false
}

type DeleteProjectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the project to delete.
	// Format: projects/{project}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set to true, permanently purge the soft-deleted project and all related resources.
	// This operation is irreversible. Following AIP-165, this should only be used for
	// administrative cleanup of old soft-deleted projects.
	// The project must already be soft-deleted for this to work.
	// When purge=true, all databases will be moved to the default project before deletion.
	// When purge=false (soft delete/archive), the project and its databases/issues remain unchanged.
	Purge         bool `protobuf:"varint,2,opt,name=purge,proto3" json:"purge,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteProjectRequest) Reset() {
	*x = DeleteProjectRequest{}
	mi := &file_v1_project_service_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteProjectRequest) ProtoMessage() {}

func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 DeleteProjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteProjectRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{9}
}

func (x *DeleteProjectRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *DeleteProjectRequest) GetPurge() bool {
	if x != nil {
		return x.Purge
	}
	return false
}

type UndeleteProjectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the deleted project.
	// Format: projects/{project}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UndeleteProjectRequest) Reset() {
	*x = UndeleteProjectRequest{}
	mi := &file_v1_project_service_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UndeleteProjectRequest) ProtoMessage() {}

func (x *UndeleteProjectRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 UndeleteProjectRequest.ProtoReflect.Descriptor instead.
func (*UndeleteProjectRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{10}
}

func (x *UndeleteProjectRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

type BatchDeleteProjectsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The names of the projects to delete.
	// Format: projects/{project}
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// If set to true, permanently purge the soft-deleted projects and all related resources.
	// This operation is irreversible. Following AIP-165, this should only be used for
	// administrative cleanup of old soft-deleted projects.
	// All projects must already be soft-deleted for this to work.
	// When purge=true, all databases will be moved to the default project before deletion.
	// When purge=false (soft delete/archive), the projects and their databases/issues remain unchanged.
	Purge         bool `protobuf:"varint,2,opt,name=purge,proto3" json:"purge,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BatchDeleteProjectsRequest) Reset() {
	*x = BatchDeleteProjectsRequest{}
	mi := &file_v1_project_service_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*BatchDeleteProjectsRequest) ProtoMessage() {}

func (x *BatchDeleteProjectsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 BatchDeleteProjectsRequest.ProtoReflect.Descriptor instead.
func (*BatchDeleteProjectsRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{11}
}

func (x *BatchDeleteProjectsRequest) GetNames() []string {
	if x != nil {
		return x.Names
	}
	return nil
}

func (x *BatchDeleteProjectsRequest) GetPurge() bool {
	if x != nil {
		return x.Purge
	}
	return false
}

// A label for categorizing and organizing issues.
type Label struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The label value/name.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// The label color.
	Color *color.Color `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"`
	// The group this label belongs to.
	Group         string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Label) Reset() {
	*x = Label{}
	mi := &file_v1_project_service_proto_msgTypes[12]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Label) ProtoMessage() {}

func (x *Label) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 Label.ProtoReflect.Descriptor instead.
func (*Label) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{12}
}

func (x *Label) GetValue() string {
	if x != nil {
		return x.Value
	}
	return ""
}

func (x *Label) GetColor() *color.Color {
	if x != nil {
		return x.Color
	}
	return nil
}

func (x *Label) GetGroup() string {
	if x != nil {
		return x.Group
	}
	return ""
}

type Project struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the project.
	// Format: projects/{project}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The lifecycle state of the project.
	State State `protobuf:"varint,2,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`
	// The title or name of a project. It's not unique within the workspace.
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// The list of webhooks configured for the project.
	Webhooks []*Webhook `protobuf:"bytes,4,rep,name=webhooks,proto3" json:"webhooks,omitempty"`
	// The data classification configuration ID for the project.
	DataClassificationConfigId string `protobuf:"bytes,5,opt,name=data_classification_config_id,json=dataClassificationConfigId,proto3" json:"data_classification_config_id,omitempty"`
	// Labels available for tagging issues in this project.
	IssueLabels []*Label `protobuf:"bytes,6,rep,name=issue_labels,json=issueLabels,proto3" json:"issue_labels,omitempty"`
	// Force issue labels to be used when creating an issue.
	ForceIssueLabels bool `protobuf:"varint,7,opt,name=force_issue_labels,json=forceIssueLabels,proto3" json:"force_issue_labels,omitempty"`
	// Enforce issue title to be created by user instead of generated by Bytebase.
	EnforceIssueTitle bool `protobuf:"varint,10,opt,name=enforce_issue_title,json=enforceIssueTitle,proto3" json:"enforce_issue_title,omitempty"`
	// Whether to enable database tenant mode for PostgreSQL.
	// If enabled, issues will include "set role <db_owner>" statement.
	PostgresDatabaseTenantMode bool `protobuf:"varint,13,opt,name=postgres_database_tenant_mode,json=postgresDatabaseTenantMode,proto3" json:"postgres_database_tenant_mode,omitempty"`
	// Whether to allow issue creators to self-approve their own issues.
	AllowSelfApproval bool `protobuf:"varint,14,opt,name=allow_self_approval,json=allowSelfApproval,proto3" json:"allow_self_approval,omitempty"`
	// Execution retry policy for task runs.
	ExecutionRetryPolicy *Project_ExecutionRetryPolicy `protobuf:"bytes,15,opt,name=execution_retry_policy,json=executionRetryPolicy,proto3" json:"execution_retry_policy,omitempty"`
	// The maximum number of databases to sample during CI data validation and
	// AI review. Without specification, sampling is disabled, resulting in full
	// validation.
	CiSamplingSize int32 `protobuf:"varint,16,opt,name=ci_sampling_size,json=ciSamplingSize,proto3" json:"ci_sampling_size,omitempty"`
	// The maximum number of parallel tasks allowed during rollout execution.
	ParallelTasksPerRollout int32 `protobuf:"varint,17,opt,name=parallel_tasks_per_rollout,json=parallelTasksPerRollout,proto3" json:"parallel_tasks_per_rollout,omitempty"`
	// Labels are key-value pairs that can be attached to the project.
	// For example, { "environment": "production", "team": "backend" }
	Labels map[string]string `protobuf:"bytes,18,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Whether to enforce SQL review checks to pass before issue creation.
	// If enabled, issues cannot be created when SQL review finds errors.
	EnforceSqlReview bool `protobuf:"varint,19,opt,name=enforce_sql_review,json=enforceSqlReview,proto3" json:"enforce_sql_review,omitempty"`
	// Whether to require issue approval before rollout.
	RequireIssueApproval bool `protobuf:"varint,20,opt,name=require_issue_approval,json=requireIssueApproval,proto3" json:"require_issue_approval,omitempty"`
	// Whether to require plan check to have no error before rollout.
	RequirePlanCheckNoError bool `protobuf:"varint,21,opt,name=require_plan_check_no_error,json=requirePlanCheckNoError,proto3" json:"require_plan_check_no_error,omitempty"`
	AllowRequestRole        bool `protobuf:"varint,22,opt,name=allow_request_role,json=allowRequestRole,proto3" json:"allow_request_role,omitempty"`
	// Once enabled, users can request and use the just-in-time access in the SQL Editor.
	AllowJustInTimeAccess bool `protobuf:"varint,23,opt,name=allow_just_in_time_access,json=allowJustInTimeAccess,proto3" json:"allow_just_in_time_access,omitempty"`
	// Whether to allow the last Plan editor to approve a database change issue.
	AllowLastPlanEditorApproval bool `protobuf:"varint,24,opt,name=allow_last_plan_editor_approval,json=allowLastPlanEditorApproval,proto3" json:"allow_last_plan_editor_approval,omitempty"`
	// Export configuration for this project.
	ExportSetting *Project_ExportSetting `protobuf:"bytes,25,opt,name=export_setting,json=exportSetting,proto3" json:"export_setting,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Project) Reset() {
	*x = Project{}
	mi := &file_v1_project_service_proto_msgTypes[13]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Project) ProtoMessage() {}

func (x *Project) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_service_proto_msgTypes[13]
	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 Project.ProtoReflect.Descriptor instead.
func (*Project) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{13}
}

func (x *Project) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Project) GetState() State {
	if x != nil {
		return x.State
	}
	return State_STATE_UNSPECIFIED
}

func (x *Project) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *Project) GetWebhooks() []*Webhook {
	if x != nil {
		return x.Webhooks
	}
	return nil
}

func (x *Project) GetDataClassificationConfigId() string {
	if x != nil {
		return x.DataClassificationConfigId
	}
	return ""
}

func (x *Project) GetIssueLabels() []*Label {
	if x != nil {
		return x.IssueLabels
	}
	return nil
}

func (x *Project) GetForceIssueLabels() bool {
	if x != nil {
		return x.ForceIssueLabels
	}
	return false
}

func (x *Project) GetEnforceIssueTitle() bool {
	if x != nil {
		return x.EnforceIssueTitle
	}
	return false
}

func (x *Project) GetPostgresDatabaseTenantMode() bool {
	if x != nil {
		return x.PostgresDatabaseTenantMode
	}
	return false
}

func (x *Project) GetAllowSelfApproval() bool {
	if x != nil {
		return x.AllowSelfApproval
	}
	return false
}

func (x *Project) GetExecutionRetryPolicy() *Project_ExecutionRetryPolicy {
	if x != nil {
		return x.ExecutionRetryPolicy
	}
	return nil
}

func (x *Project) GetCiSamplingSize() int32 {
	if x != nil {
		return x.CiSamplingSize
	}
	return 0
}

func (x *Project) GetParallelTasksPerRollout() int32 {
	if x != nil {
		return x.ParallelTasksPerRollout
	}
	return 0
}

func (x *Project) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *Project) GetEnforceSqlReview() bool {
	if x != nil {
		return x.EnforceSqlReview
	}
	return false
}

func (x *Project) GetRequireIssueApproval() bool {
	if x != nil {
		return x.RequireIssueApproval
	}
	return false
}

func (x *Project) GetRequirePlanCheckNoError() bool {
	if x != nil {
		return x.RequirePlanCheckNoError
	}
	return false
}

func (x *Project) GetAllowRequestRole() bool {
	if x != nil {
		return x.AllowRequestRole
	}
	return false
}

func (x *Project) GetAllowJustInTimeAccess() bool {
	if x != nil {
		return x.AllowJustInTimeAccess
	}
	return false
}

func (x *Project) GetAllowLastPlanEditorApproval() bool {
	if x != nil {
		return x.AllowLastPlanEditorApproval
	}
	return false
}

func (x *Project) GetExportSetting() *Project_ExportSetting {
	if x != nil {
		return x.ExportSetting
	}
	return nil
}

type AddWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the project to add the webhook to.
	// Format: projects/{project}
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The webhook to add.
	Webhook       *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AddWebhookRequest) Reset() {
	*x = AddWebhookRequest{}
	mi := &file_v1_project_service_proto_msgTypes[14]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AddWebhookRequest) ProtoMessage() {}

func (x *AddWebhookRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 AddWebhookRequest.ProtoReflect.Descriptor instead.
func (*AddWebhookRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{14}
}

func (x *AddWebhookRequest) GetProject() string {
	if x != nil {
		return x.Project
	}
	return ""
}

func (x *AddWebhookRequest) GetWebhook() *Webhook {
	if x != nil {
		return x.Webhook
	}
	return nil
}

type UpdateWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The webhook to modify.
	Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,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 webhook is not found, a new webhook 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 *UpdateWebhookRequest) Reset() {
	*x = UpdateWebhookRequest{}
	mi := &file_v1_project_service_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateWebhookRequest) ProtoMessage() {}

func (x *UpdateWebhookRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 UpdateWebhookRequest.ProtoReflect.Descriptor instead.
func (*UpdateWebhookRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{15}
}

func (x *UpdateWebhookRequest) GetWebhook() *Webhook {
	if x != nil {
		return x.Webhook
	}
	return nil
}

func (x *UpdateWebhookRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

func (x *UpdateWebhookRequest) GetAllowMissing() bool {
	if x != nil {
		return x.AllowMissing
	}
	return false
}

type RemoveWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The webhook to remove. Identified by its url.
	Webhook       *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *RemoveWebhookRequest) Reset() {
	*x = RemoveWebhookRequest{}
	mi := &file_v1_project_service_proto_msgTypes[16]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*RemoveWebhookRequest) ProtoMessage() {}

func (x *RemoveWebhookRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 RemoveWebhookRequest.ProtoReflect.Descriptor instead.
func (*RemoveWebhookRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{16}
}

func (x *RemoveWebhookRequest) GetWebhook() *Webhook {
	if x != nil {
		return x.Webhook
	}
	return nil
}

type TestWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the project which owns the webhook to test.
	// Format: projects/{project}
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The webhook to test.
	//
	// The url is what gets posted to. Reads do not return a saved webhook's url,
	// so leave url empty and set name to test the one already stored; set url to
	// test a url before saving it.
	Webhook       *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TestWebhookRequest) Reset() {
	*x = TestWebhookRequest{}
	mi := &file_v1_project_service_proto_msgTypes[17]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*TestWebhookRequest) ProtoMessage() {}

func (x *TestWebhookRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 TestWebhookRequest.ProtoReflect.Descriptor instead.
func (*TestWebhookRequest) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{17}
}

func (x *TestWebhookRequest) GetProject() string {
	if x != nil {
		return x.Project
	}
	return ""
}

func (x *TestWebhookRequest) GetWebhook() *Webhook {
	if x != nil {
		return x.Webhook
	}
	return nil
}

type TestWebhookResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The result of the test, empty if the test is successful.
	Error         string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TestWebhookResponse) Reset() {
	*x = TestWebhookResponse{}
	mi := &file_v1_project_service_proto_msgTypes[18]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*TestWebhookResponse) ProtoMessage() {}

func (x *TestWebhookResponse) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 TestWebhookResponse.ProtoReflect.Descriptor instead.
func (*TestWebhookResponse) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{18}
}

func (x *TestWebhookResponse) GetError() string {
	if x != nil {
		return x.Error
	}
	return ""
}

// A SharePoint document library root or folder that receives exports.
type SharePointDestination struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The URL of the library root or folder. Normalized to its canonical form
	// and resolved with the workspace credentials on save.
	Url           string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SharePointDestination) Reset() {
	*x = SharePointDestination{}
	mi := &file_v1_project_service_proto_msgTypes[19]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SharePointDestination) ProtoMessage() {}

func (x *SharePointDestination) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 SharePointDestination.ProtoReflect.Descriptor instead.
func (*SharePointDestination) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{19}
}

func (x *SharePointDestination) GetUrl() string {
	if x != nil {
		return x.Url
	}
	return ""
}

type Webhook struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// name is the name of the webhook, generated by the server.
	// format: projects/{project}/webhooks/{webhook}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Webhook integration type.
	// type is the type of the webhook.
	Type WebhookType `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.v1.WebhookType" json:"type,omitempty"`
	// title is the title of the webhook.
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// url is the url of the webhook, should be unique within the project.
	//
	// Write-only: an incoming-webhook url is the whole credential for posting
	// into the customer's chat, so reads leave it empty, the same way a data
	// source's password and SSL material are left empty. Set it to change it.
	//
	// Required to create a webhook. Not required on TestWebhook, where an empty
	// url on a request that names a webhook means the one already stored, so the
	// field carries no REQUIRED behavior it would contradict there.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// Whether the stored url's endpoint form can carry a direct message to the
	// users an event mentions, rather than only a post to the channel the url
	// names. False for a Microsoft Teams Power Automate workflow endpoint, which
	// direct messages bypass entirely: a webhook with direct_message set sends
	// them and returns, so the workflow post never happens.
	//
	// Reads do not return the url, so a client editing a saved webhook cannot
	// work this out for itself. It is a fact about the stored url and says
	// nothing about what the url is.
	UrlSupportsDirectMessage bool `protobuf:"varint,8,opt,name=url_supports_direct_message,json=urlSupportsDirectMessage,proto3" json:"url_supports_direct_message,omitempty"`
	// if direct_message is set, the notification is sent directly
	// to the persons and url will be ignored.
	// IM integration setting should be set for this function to work.
	DirectMessage bool `protobuf:"varint,6,opt,name=direct_message,json=directMessage,proto3" json:"direct_message,omitempty"`
	// notification_types is the list of activities types that the webhook is interested in.
	// Bytebase will only send notifications to the webhook if the activity type is in the list.
	// It should not be empty, and should be a subset of the following:
	// - ISSUE_CREATED
	// - ISSUE_APPROVAL_REQUESTED
	// - ISSUE_SENT_BACK
	// - ISSUE_APPROVED
	// - PIPELINE_FAILED
	// - PIPELINE_COMPLETED
	NotificationTypes []Activity_Type `protobuf:"varint,5,rep,packed,name=notification_types,json=notificationTypes,proto3,enum=bytebase.v1.Activity_Type" json:"notification_types,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

func (x *Webhook) Reset() {
	*x = Webhook{}
	mi := &file_v1_project_service_proto_msgTypes[20]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Webhook) ProtoMessage() {}

func (x *Webhook) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_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 Webhook.ProtoReflect.Descriptor instead.
func (*Webhook) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{20}
}

func (x *Webhook) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Webhook) GetType() WebhookType {
	if x != nil {
		return x.Type
	}
	return WebhookType_WEBHOOK_TYPE_UNSPECIFIED
}

func (x *Webhook) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *Webhook) GetUrl() string {
	if x != nil {
		return x.Url
	}
	return ""
}

func (x *Webhook) GetUrlSupportsDirectMessage() bool {
	if x != nil {
		return x.UrlSupportsDirectMessage
	}
	return false
}

func (x *Webhook) GetDirectMessage() bool {
	if x != nil {
		return x.DirectMessage
	}
	return false
}

func (x *Webhook) GetNotificationTypes() []Activity_Type {
	if x != nil {
		return x.NotificationTypes
	}
	return nil
}

// Activity types for webhook notifications.
type Activity struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Activity) Reset() {
	*x = Activity{}
	mi := &file_v1_project_service_proto_msgTypes[21]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Activity) ProtoMessage() {}

func (x *Activity) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_service_proto_msgTypes[21]
	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 Activity.ProtoReflect.Descriptor instead.
func (*Activity) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{21}
}

// Execution retry policy configuration.
type Project_ExecutionRetryPolicy struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The maximum number of retries for lock timeout errors.
	MaximumRetries int32 `protobuf:"varint,1,opt,name=maximum_retries,json=maximumRetries,proto3" json:"maximum_retries,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *Project_ExecutionRetryPolicy) Reset() {
	*x = Project_ExecutionRetryPolicy{}
	mi := &file_v1_project_service_proto_msgTypes[22]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Project_ExecutionRetryPolicy) ProtoMessage() {}

func (x *Project_ExecutionRetryPolicy) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_service_proto_msgTypes[22]
	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 Project_ExecutionRetryPolicy.ProtoReflect.Descriptor instead.
func (*Project_ExecutionRetryPolicy) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{13, 0}
}

func (x *Project_ExecutionRetryPolicy) GetMaximumRetries() int32 {
	if x != nil {
		return x.MaximumRetries
	}
	return 0
}

// Destinations offered for this project's exports, at most one per provider.
type Project_ExportSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unset when the project has no SharePoint destination.
	Sharepoint    *SharePointDestination `protobuf:"bytes,1,opt,name=sharepoint,proto3" json:"sharepoint,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Project_ExportSetting) Reset() {
	*x = Project_ExportSetting{}
	mi := &file_v1_project_service_proto_msgTypes[24]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Project_ExportSetting) ProtoMessage() {}

func (x *Project_ExportSetting) ProtoReflect() protoreflect.Message {
	mi := &file_v1_project_service_proto_msgTypes[24]
	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 Project_ExportSetting.ProtoReflect.Descriptor instead.
func (*Project_ExportSetting) Descriptor() ([]byte, []int) {
	return file_v1_project_service_proto_rawDescGZIP(), []int{13, 2}
}

func (x *Project_ExportSetting) GetSharepoint() *SharePointDestination {
	if x != nil {
		return x.Sharepoint
	}
	return nil
}

var File_v1_project_service_proto protoreflect.FileDescriptor

const file_v1_project_service_proto_rawDesc = "" +
	"\n" +
	"\x18v1/project_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\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/type/color.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x13v1/iam_policy.proto\"E\n" +
	"\x11GetProjectRequest\x120\n" +
	"\x04name\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\x04name\"M\n" +
	"\x17BatchGetProjectsRequest\x122\n" +
	"\x05names\x18\x01 \x03(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\x05names\"L\n" +
	"\x18BatchGetProjectsResponse\x120\n" +
	"\bprojects\x18\x01 \x03(\v2\x14.bytebase.v1.ProjectR\bprojects\"\xa7\x01\n" +
	"\x13ListProjectsRequest\x12\x1b\n" +
	"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +
	"\n" +
	"page_token\x18\x02 \x01(\tR\tpageToken\x12!\n" +
	"\fshow_deleted\x18\x03 \x01(\bR\vshowDeleted\x12\x16\n" +
	"\x06filter\x18\x04 \x01(\tR\x06filter\x12\x19\n" +
	"\border_by\x18\x05 \x01(\tR\aorderBy\"p\n" +
	"\x14ListProjectsResponse\x120\n" +
	"\bprojects\x18\x01 \x03(\v2\x14.bytebase.v1.ProjectR\bprojects\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xa9\x01\n" +
	"\x15SearchProjectsRequest\x12!\n" +
	"\fshow_deleted\x18\x01 \x01(\bR\vshowDeleted\x12\x16\n" +
	"\x06filter\x18\x02 \x01(\tR\x06filter\x12\x1b\n" +
	"\tpage_size\x18\x03 \x01(\x05R\bpageSize\x12\x1d\n" +
	"\n" +
	"page_token\x18\x04 \x01(\tR\tpageToken\x12\x19\n" +
	"\border_by\x18\x05 \x01(\tR\aorderBy\"r\n" +
	"\x16SearchProjectsResponse\x120\n" +
	"\bprojects\x18\x01 \x03(\v2\x14.bytebase.v1.ProjectR\bprojects\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"j\n" +
	"\x14CreateProjectRequest\x123\n" +
	"\aproject\x18\x01 \x01(\v2\x14.bytebase.v1.ProjectB\x03\xe0A\x02R\aproject\x12\x1d\n" +
	"\n" +
	"project_id\x18\x02 \x01(\tR\tprojectId\"\xad\x01\n" +
	"\x14UpdateProjectRequest\x123\n" +
	"\aproject\x18\x01 \x01(\v2\x14.bytebase.v1.ProjectB\x03\xe0A\x02R\aproject\x12;\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\x12#\n" +
	"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"^\n" +
	"\x14DeleteProjectRequest\x120\n" +
	"\x04name\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\x04name\x12\x14\n" +
	"\x05purge\x18\x02 \x01(\bR\x05purge\"J\n" +
	"\x16UndeleteProjectRequest\x120\n" +
	"\x04name\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\x04name\"f\n" +
	"\x1aBatchDeleteProjectsRequest\x122\n" +
	"\x05names\x18\x01 \x03(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\x05names\x12\x14\n" +
	"\x05purge\x18\x02 \x01(\bR\x05purge\"]\n" +
	"\x05Label\x12\x14\n" +
	"\x05value\x18\x01 \x01(\tR\x05value\x12(\n" +
	"\x05color\x18\x02 \x01(\v2\x12.google.type.ColorR\x05color\x12\x14\n" +
	"\x05group\x18\x03 \x01(\tR\x05group\"\x8d\v\n" +
	"\aProject\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +
	"\x05state\x18\x02 \x01(\x0e2\x12.bytebase.v1.StateR\x05state\x12\x1e\n" +
	"\x05title\x18\x03 \x01(\tB\b\xbaH\x05r\x03\x18\xc8\x01R\x05title\x120\n" +
	"\bwebhooks\x18\x04 \x03(\v2\x14.bytebase.v1.WebhookR\bwebhooks\x12A\n" +
	"\x1ddata_classification_config_id\x18\x05 \x01(\tR\x1adataClassificationConfigId\x125\n" +
	"\fissue_labels\x18\x06 \x03(\v2\x12.bytebase.v1.LabelR\vissueLabels\x12,\n" +
	"\x12force_issue_labels\x18\a \x01(\bR\x10forceIssueLabels\x12.\n" +
	"\x13enforce_issue_title\x18\n" +
	" \x01(\bR\x11enforceIssueTitle\x12A\n" +
	"\x1dpostgres_database_tenant_mode\x18\r \x01(\bR\x1apostgresDatabaseTenantMode\x12.\n" +
	"\x13allow_self_approval\x18\x0e \x01(\bR\x11allowSelfApproval\x12_\n" +
	"\x16execution_retry_policy\x18\x0f \x01(\v2).bytebase.v1.Project.ExecutionRetryPolicyR\x14executionRetryPolicy\x12(\n" +
	"\x10ci_sampling_size\x18\x10 \x01(\x05R\x0eciSamplingSize\x12;\n" +
	"\x1aparallel_tasks_per_rollout\x18\x11 \x01(\x05R\x17parallelTasksPerRollout\x128\n" +
	"\x06labels\x18\x12 \x03(\v2 .bytebase.v1.Project.LabelsEntryR\x06labels\x12,\n" +
	"\x12enforce_sql_review\x18\x13 \x01(\bR\x10enforceSqlReview\x124\n" +
	"\x16require_issue_approval\x18\x14 \x01(\bR\x14requireIssueApproval\x12<\n" +
	"\x1brequire_plan_check_no_error\x18\x15 \x01(\bR\x17requirePlanCheckNoError\x12,\n" +
	"\x12allow_request_role\x18\x16 \x01(\bR\x10allowRequestRole\x128\n" +
	"\x19allow_just_in_time_access\x18\x17 \x01(\bR\x15allowJustInTimeAccess\x12D\n" +
	"\x1fallow_last_plan_editor_approval\x18\x18 \x01(\bR\x1ballowLastPlanEditorApproval\x12I\n" +
	"\x0eexport_setting\x18\x19 \x01(\v2\".bytebase.v1.Project.ExportSettingR\rexportSetting\x1a?\n" +
	"\x14ExecutionRetryPolicy\x12'\n" +
	"\x0fmaximum_retries\x18\x01 \x01(\x05R\x0emaximumRetries\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aS\n" +
	"\rExportSetting\x12B\n" +
	"\n" +
	"sharepoint\x18\x01 \x01(\v2\".bytebase.v1.SharePointDestinationR\n" +
	"sharepoint:-\xeaA*\n" +
	"\x14bytebase.com/Project\x12\x12projects/{project}J\x04\b\b\x10\n" +
	"J\x04\b\v\x10\r\"\x80\x01\n" +
	"\x11AddWebhookRequest\x126\n" +
	"\aproject\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\aproject\x123\n" +
	"\awebhook\x18\x02 \x01(\v2\x14.bytebase.v1.WebhookB\x03\xe0A\x02R\awebhook\"\xad\x01\n" +
	"\x14UpdateWebhookRequest\x123\n" +
	"\awebhook\x18\x01 \x01(\v2\x14.bytebase.v1.WebhookB\x03\xe0A\x02R\awebhook\x12;\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\x12#\n" +
	"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"K\n" +
	"\x14RemoveWebhookRequest\x123\n" +
	"\awebhook\x18\x01 \x01(\v2\x14.bytebase.v1.WebhookB\x03\xe0A\x02R\awebhook\"\x81\x01\n" +
	"\x12TestWebhookRequest\x126\n" +
	"\aproject\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\aproject\x123\n" +
	"\awebhook\x18\x02 \x01(\v2\x14.bytebase.v1.WebhookB\x03\xe0A\x02R\awebhook\"+\n" +
	"\x13TestWebhookResponse\x12\x14\n" +
	"\x05error\x18\x01 \x01(\tR\x05error\")\n" +
	"\x15SharePointDestination\x12\x10\n" +
	"\x03url\x18\x01 \x01(\tR\x03url\"\x83\x03\n" +
	"\aWebhook\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x121\n" +
	"\x04type\x18\x02 \x01(\x0e2\x18.bytebase.v1.WebhookTypeB\x03\xe0A\x02R\x04type\x12\x19\n" +
	"\x05title\x18\x03 \x01(\tB\x03\xe0A\x02R\x05title\x12\x19\n" +
	"\x03url\x18\x04 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x03url\x12B\n" +
	"\x1burl_supports_direct_message\x18\b \x01(\bB\x03\xe0A\x03R\x18urlSupportsDirectMessage\x12%\n" +
	"\x0edirect_message\x18\x06 \x01(\bR\rdirectMessage\x12N\n" +
	"\x12notification_types\x18\x05 \x03(\x0e2\x1a.bytebase.v1.Activity.TypeB\x03\xe0A\x06R\x11notificationTypes:@\xeaA=\n" +
	"\x14bytebase.com/Webhook\x12%projects/{project}/webhooks/{webhook}\"\xb6\x01\n" +
	"\bActivity\"\xa9\x01\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\x11\n" +
	"\rISSUE_CREATED\x10\n" +
	"\x12\x1c\n" +
	"\x18ISSUE_APPROVAL_REQUESTED\x10\v\x12\x13\n" +
	"\x0fISSUE_SENT_BACK\x10\f\x12\x13\n" +
	"\x0fPIPELINE_FAILED\x10\r\x12\x16\n" +
	"\x12PIPELINE_COMPLETED\x10\x0e\x12\x12\n" +
	"\x0eISSUE_APPROVED\x10\x0f\"\x04\b\x01\x10\t2\xf8\x12\n" +
	"\x0eProjectService\x12\x83\x01\n" +
	"\n" +
	"GetProject\x12\x1e.bytebase.v1.GetProjectRequest\x1a\x14.bytebase.v1.Project\"?\xdaA\x04name\x8a\xea0\x0fbb.projects.get\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=projects/*}\x12\x99\x01\n" +
	"\x10BatchGetProjects\x12$.bytebase.v1.BatchGetProjectsRequest\x1a%.bytebase.v1.BatchGetProjectsResponse\"8\x8a\xea0\x0fbb.projects.get\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/projects:batchGet\x12\x88\x01\n" +
	"\fListProjects\x12 .bytebase.v1.ListProjectsRequest\x1a!.bytebase.v1.ListProjectsResponse\"3\xdaA\x00\x8a\xea0\x10bb.projects.list\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x0e\x12\f/v1/projects\x12\x84\x01\n" +
	"\x0eSearchProjects\x12\".bytebase.v1.SearchProjectsRequest\x1a#.bytebase.v1.SearchProjectsResponse\")\xdaA\x00\x90\xea0\x02\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/v1/projects:search\x12\x90\x01\n" +
	"\rCreateProject\x12!.bytebase.v1.CreateProjectRequest\x1a\x14.bytebase.v1.Project\"F\xdaA\x00\x8a\xea0\x12bb.projects.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x17:\aproject\"\f/v1/projects\x12\xb0\x01\n" +
	"\rUpdateProject\x12!.bytebase.v1.UpdateProjectRequest\x1a\x14.bytebase.v1.Project\"f\xdaA\x13project,update_mask\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02(:\aproject2\x1d/v1/{project.name=projects/*}\x12\x96\x01\n" +
	"\rDeleteProject\x12!.bytebase.v1.DeleteProjectRequest\x1a\x16.google.protobuf.Empty\"J\xdaA\x04name\x8a\xea0\x12bb.projects.delete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x17*\x15/v1/{name=projects/*}\x12\x9f\x01\n" +
	"\x0fUndeleteProject\x12#.bytebase.v1.UndeleteProjectRequest\x1a\x14.bytebase.v1.Project\"Q\x8a\xea0\x14bb.projects.undelete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/v1/{name=projects/*}:undelete\x12\xa1\x01\n" +
	"\x13BatchDeleteProjects\x12'.bytebase.v1.BatchDeleteProjectsRequest\x1a\x16.google.protobuf.Empty\"I\x8a\xea0\x12bb.projects.delete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/v1/projects:batchDelete\x12\x9c\x01\n" +
	"\fGetIamPolicy\x12 .bytebase.v1.GetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"R\x8a\xea0\x18bb.projects.getIamPolicy\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02(\x12&/v1/{resource=projects/*}:getIamPolicy\x12\xa7\x01\n" +
	"\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"]\x8a\xea0\x18bb.projects.setIamPolicy\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{resource=projects/*}:setIamPolicy\x12\x98\x01\n" +
	"\n" +
	"AddWebhook\x12\x1e.bytebase.v1.AddWebhookRequest\x1a\x14.bytebase.v1.Project\"T\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/{project=projects/*}:addWebhook\x12\xce\x01\n" +
	"\rUpdateWebhook\x12!.bytebase.v1.UpdateWebhookRequest\x1a\x14.bytebase.v1.Project\"\x83\x01\xdaA\x13webhook,update_mask\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02A:\awebhook26/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook\x12\xb1\x01\n" +
	"\rRemoveWebhook\x12!.bytebase.v1.RemoveWebhookRequest\x1a\x14.bytebase.v1.Project\"g\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02;:\x01*\"6/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook\x12\xa3\x01\n" +
	"\vTestWebhook\x12\x1f.bytebase.v1.TestWebhookRequest\x1a .bytebase.v1.TestWebhookResponse\"Q\x8a\xea0\x12bb.projects.update\x90\xea0\x01\xa0\xea0\x04\xa8\xea0\f\x82\xd3\xe4\x93\x02):\x01*\"$/v1/{project=projects/*}:testWebhookB\xa9\x01\n" +
	"\x0fcom.bytebase.v1B\x13ProjectServiceProtoP\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_project_service_proto_rawDescOnce sync.Once
	file_v1_project_service_proto_rawDescData []byte
)

func file_v1_project_service_proto_rawDescGZIP() []byte {
	file_v1_project_service_proto_rawDescOnce.Do(func() {
		file_v1_project_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_project_service_proto_rawDesc), len(file_v1_project_service_proto_rawDesc)))
	})
	return file_v1_project_service_proto_rawDescData
}

var file_v1_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_v1_project_service_proto_goTypes = []any{
	(Activity_Type)(0),                   // 0: bytebase.v1.Activity.Type
	(*GetProjectRequest)(nil),            // 1: bytebase.v1.GetProjectRequest
	(*BatchGetProjectsRequest)(nil),      // 2: bytebase.v1.BatchGetProjectsRequest
	(*BatchGetProjectsResponse)(nil),     // 3: bytebase.v1.BatchGetProjectsResponse
	(*ListProjectsRequest)(nil),          // 4: bytebase.v1.ListProjectsRequest
	(*ListProjectsResponse)(nil),         // 5: bytebase.v1.ListProjectsResponse
	(*SearchProjectsRequest)(nil),        // 6: bytebase.v1.SearchProjectsRequest
	(*SearchProjectsResponse)(nil),       // 7: bytebase.v1.SearchProjectsResponse
	(*CreateProjectRequest)(nil),         // 8: bytebase.v1.CreateProjectRequest
	(*UpdateProjectRequest)(nil),         // 9: bytebase.v1.UpdateProjectRequest
	(*DeleteProjectRequest)(nil),         // 10: bytebase.v1.DeleteProjectRequest
	(*UndeleteProjectRequest)(nil),       // 11: bytebase.v1.UndeleteProjectRequest
	(*BatchDeleteProjectsRequest)(nil),   // 12: bytebase.v1.BatchDeleteProjectsRequest
	(*Label)(nil),                        // 13: bytebase.v1.Label
	(*Project)(nil),                      // 14: bytebase.v1.Project
	(*AddWebhookRequest)(nil),            // 15: bytebase.v1.AddWebhookRequest
	(*UpdateWebhookRequest)(nil),         // 16: bytebase.v1.UpdateWebhookRequest
	(*RemoveWebhookRequest)(nil),         // 17: bytebase.v1.RemoveWebhookRequest
	(*TestWebhookRequest)(nil),           // 18: bytebase.v1.TestWebhookRequest
	(*TestWebhookResponse)(nil),          // 19: bytebase.v1.TestWebhookResponse
	(*SharePointDestination)(nil),        // 20: bytebase.v1.SharePointDestination
	(*Webhook)(nil),                      // 21: bytebase.v1.Webhook
	(*Activity)(nil),                     // 22: bytebase.v1.Activity
	(*Project_ExecutionRetryPolicy)(nil), // 23: bytebase.v1.Project.ExecutionRetryPolicy
	nil,                                  // 24: bytebase.v1.Project.LabelsEntry
	(*Project_ExportSetting)(nil),        // 25: bytebase.v1.Project.ExportSetting
	(*fieldmaskpb.FieldMask)(nil),        // 26: google.protobuf.FieldMask
	(*color.Color)(nil),                  // 27: google.type.Color
	(State)(0),                           // 28: bytebase.v1.State
	(WebhookType)(0),                     // 29: bytebase.v1.WebhookType
	(*GetIamPolicyRequest)(nil),          // 30: bytebase.v1.GetIamPolicyRequest
	(*SetIamPolicyRequest)(nil),          // 31: bytebase.v1.SetIamPolicyRequest
	(*emptypb.Empty)(nil),                // 32: google.protobuf.Empty
	(*IamPolicy)(nil),                    // 33: bytebase.v1.IamPolicy
}
var file_v1_project_service_proto_depIdxs = []int32{
	14, // 0: bytebase.v1.BatchGetProjectsResponse.projects:type_name -> bytebase.v1.Project
	14, // 1: bytebase.v1.ListProjectsResponse.projects:type_name -> bytebase.v1.Project
	14, // 2: bytebase.v1.SearchProjectsResponse.projects:type_name -> bytebase.v1.Project
	14, // 3: bytebase.v1.CreateProjectRequest.project:type_name -> bytebase.v1.Project
	14, // 4: bytebase.v1.UpdateProjectRequest.project:type_name -> bytebase.v1.Project
	26, // 5: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask
	27, // 6: bytebase.v1.Label.color:type_name -> google.type.Color
	28, // 7: bytebase.v1.Project.state:type_name -> bytebase.v1.State
	21, // 8: bytebase.v1.Project.webhooks:type_name -> bytebase.v1.Webhook
	13, // 9: bytebase.v1.Project.issue_labels:type_name -> bytebase.v1.Label
	23, // 10: bytebase.v1.Project.execution_retry_policy:type_name -> bytebase.v1.Project.ExecutionRetryPolicy
	24, // 11: bytebase.v1.Project.labels:type_name -> bytebase.v1.Project.LabelsEntry
	25, // 12: bytebase.v1.Project.export_setting:type_name -> bytebase.v1.Project.ExportSetting
	21, // 13: bytebase.v1.AddWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
	21, // 14: bytebase.v1.UpdateWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
	26, // 15: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask
	21, // 16: bytebase.v1.RemoveWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
	21, // 17: bytebase.v1.TestWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
	29, // 18: bytebase.v1.Webhook.type:type_name -> bytebase.v1.WebhookType
	0,  // 19: bytebase.v1.Webhook.notification_types:type_name -> bytebase.v1.Activity.Type
	20, // 20: bytebase.v1.Project.ExportSetting.sharepoint:type_name -> bytebase.v1.SharePointDestination
	1,  // 21: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest
	2,  // 22: bytebase.v1.ProjectService.BatchGetProjects:input_type -> bytebase.v1.BatchGetProjectsRequest
	4,  // 23: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest
	6,  // 24: bytebase.v1.ProjectService.SearchProjects:input_type -> bytebase.v1.SearchProjectsRequest
	8,  // 25: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest
	9,  // 26: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest
	10, // 27: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest
	11, // 28: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest
	12, // 29: bytebase.v1.ProjectService.BatchDeleteProjects:input_type -> bytebase.v1.BatchDeleteProjectsRequest
	30, // 30: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest
	31, // 31: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest
	15, // 32: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest
	16, // 33: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest
	17, // 34: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest
	18, // 35: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest
	14, // 36: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project
	3,  // 37: bytebase.v1.ProjectService.BatchGetProjects:output_type -> bytebase.v1.BatchGetProjectsResponse
	5,  // 38: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse
	7,  // 39: bytebase.v1.ProjectService.SearchProjects:output_type -> bytebase.v1.SearchProjectsResponse
	14, // 40: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project
	14, // 41: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project
	32, // 42: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty
	14, // 43: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project
	32, // 44: bytebase.v1.ProjectService.BatchDeleteProjects:output_type -> google.protobuf.Empty
	33, // 45: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy
	33, // 46: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy
	14, // 47: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project
	14, // 48: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project
	14, // 49: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project
	19, // 50: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse
	36, // [36:51] is the sub-list for method output_type
	21, // [21:36] is the sub-list for method input_type
	21, // [21:21] is the sub-list for extension type_name
	21, // [21:21] is the sub-list for extension extendee
	0,  // [0:21] is the sub-list for field type_name
}

func init() { file_v1_project_service_proto_init() }
func file_v1_project_service_proto_init() {
	if File_v1_project_service_proto != nil {
		return
	}
	file_v1_annotation_proto_init()
	file_v1_common_proto_init()
	file_v1_iam_policy_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_project_service_proto_rawDesc), len(file_v1_project_service_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   25,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_v1_project_service_proto_goTypes,
		DependencyIndexes: file_v1_project_service_proto_depIdxs,
		EnumInfos:         file_v1_project_service_proto_enumTypes,
		MessageInfos:      file_v1_project_service_proto_msgTypes,
	}.Build()
	File_v1_project_service_proto = out.File
	file_v1_project_service_proto_goTypes = nil
	file_v1_project_service_proto_depIdxs = nil
}