Skip to content

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

129 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        (unknown)
// source: v1/instance_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"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 DataSourceType int32

const (
	// Unspecified data source type.
	DataSourceType_DATA_SOURCE_UNSPECIFIED DataSourceType = 0
	// Admin data source with write permissions.
	DataSourceType_ADMIN DataSourceType = 1
	// Read-only data source for query operations.
	DataSourceType_READ_ONLY DataSourceType = 2
)

// Enum value maps for DataSourceType.
var (
	DataSourceType_name = map[int32]string{
		0: "DATA_SOURCE_UNSPECIFIED",
		1: "ADMIN",
		2: "READ_ONLY",
	}
	DataSourceType_value = map[string]int32{
		"DATA_SOURCE_UNSPECIFIED": 0,
		"ADMIN":                   1,
		"READ_ONLY":               2,
	}
)

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

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

func (DataSourceType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[0].Descriptor()
}

func (DataSourceType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[0]
}

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

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

type DataSourceExternalSecret_SecretType int32

const (
	// Unspecified secret type.
	DataSourceExternalSecret_SECRET_TYPE_UNSPECIFIED DataSourceExternalSecret_SecretType = 0
	// ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2
	DataSourceExternalSecret_VAULT_KV_V2 DataSourceExternalSecret_SecretType = 1
	// ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
	DataSourceExternalSecret_AWS_SECRETS_MANAGER DataSourceExternalSecret_SecretType = 2
	// ref: https://cloud.google.com/secret-manager/docs
	DataSourceExternalSecret_GCP_SECRET_MANAGER DataSourceExternalSecret_SecretType = 3
	// ref: https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets
	DataSourceExternalSecret_AZURE_KEY_VAULT DataSourceExternalSecret_SecretType = 4
)

// Enum value maps for DataSourceExternalSecret_SecretType.
var (
	DataSourceExternalSecret_SecretType_name = map[int32]string{
		0: "SECRET_TYPE_UNSPECIFIED",
		1: "VAULT_KV_V2",
		2: "AWS_SECRETS_MANAGER",
		3: "GCP_SECRET_MANAGER",
		4: "AZURE_KEY_VAULT",
	}
	DataSourceExternalSecret_SecretType_value = map[string]int32{
		"SECRET_TYPE_UNSPECIFIED": 0,
		"VAULT_KV_V2":             1,
		"AWS_SECRETS_MANAGER":     2,
		"GCP_SECRET_MANAGER":      3,
		"AZURE_KEY_VAULT":         4,
	}
)

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

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

func (DataSourceExternalSecret_SecretType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[1].Descriptor()
}

func (DataSourceExternalSecret_SecretType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[1]
}

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

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

type DataSourceExternalSecret_AuthType int32

const (
	// Unspecified authentication type.
	DataSourceExternalSecret_AUTH_TYPE_UNSPECIFIED DataSourceExternalSecret_AuthType = 0
	// ref: https://developer.hashicorp.com/vault/docs/auth/token
	DataSourceExternalSecret_TOKEN DataSourceExternalSecret_AuthType = 1
	// ref: https://developer.hashicorp.com/vault/docs/auth/approle
	DataSourceExternalSecret_VAULT_APP_ROLE DataSourceExternalSecret_AuthType = 2
)

// Enum value maps for DataSourceExternalSecret_AuthType.
var (
	DataSourceExternalSecret_AuthType_name = map[int32]string{
		0: "AUTH_TYPE_UNSPECIFIED",
		1: "TOKEN",
		2: "VAULT_APP_ROLE",
	}
	DataSourceExternalSecret_AuthType_value = map[string]int32{
		"AUTH_TYPE_UNSPECIFIED": 0,
		"TOKEN":                 1,
		"VAULT_APP_ROLE":        2,
	}
)

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

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

func (DataSourceExternalSecret_AuthType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[2].Descriptor()
}

func (DataSourceExternalSecret_AuthType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[2]
}

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

// Deprecated: Use DataSourceExternalSecret_AuthType.Descriptor instead.
func (DataSourceExternalSecret_AuthType) EnumDescriptor() ([]byte, []int) {
	return file_v1_instance_service_proto_rawDescGZIP(), []int{21, 1}
}

type DataSourceExternalSecret_TokenType int32

const (
	// Unspecified token type, treated as PLAIN for backward compatibility.
	DataSourceExternalSecret_TOKEN_TYPE_UNSPECIFIED DataSourceExternalSecret_TokenType = 0
	// The token field holds the literal token value.
	DataSourceExternalSecret_PLAIN DataSourceExternalSecret_TokenType = 1
	// The token field holds the name of an environment variable on the
	// Bytebase server that holds the token value.
	DataSourceExternalSecret_ENVIRONMENT DataSourceExternalSecret_TokenType = 2
	// The token field holds a path to a file on the Bytebase server that
	// holds the token value.
	DataSourceExternalSecret_FILE DataSourceExternalSecret_TokenType = 3
)

// Enum value maps for DataSourceExternalSecret_TokenType.
var (
	DataSourceExternalSecret_TokenType_name = map[int32]string{
		0: "TOKEN_TYPE_UNSPECIFIED",
		1: "PLAIN",
		2: "ENVIRONMENT",
		3: "FILE",
	}
	DataSourceExternalSecret_TokenType_value = map[string]int32{
		"TOKEN_TYPE_UNSPECIFIED": 0,
		"PLAIN":                  1,
		"ENVIRONMENT":            2,
		"FILE":                   3,
	}
)

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

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

func (DataSourceExternalSecret_TokenType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[3].Descriptor()
}

func (DataSourceExternalSecret_TokenType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[3]
}

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

// Deprecated: Use DataSourceExternalSecret_TokenType.Descriptor instead.
func (DataSourceExternalSecret_TokenType) EnumDescriptor() ([]byte, []int) {
	return file_v1_instance_service_proto_rawDescGZIP(), []int{21, 2}
}

type DataSourceExternalSecret_AppRoleAuthOption_SecretType int32

const (
	// Unspecified secret type.
	DataSourceExternalSecret_AppRoleAuthOption_SECRET_TYPE_UNSPECIFIED DataSourceExternalSecret_AppRoleAuthOption_SecretType = 0
	// Plain text secret.
	DataSourceExternalSecret_AppRoleAuthOption_PLAIN DataSourceExternalSecret_AppRoleAuthOption_SecretType = 1
	// Secret from environment variable.
	DataSourceExternalSecret_AppRoleAuthOption_ENVIRONMENT DataSourceExternalSecret_AppRoleAuthOption_SecretType = 2
)

// Enum value maps for DataSourceExternalSecret_AppRoleAuthOption_SecretType.
var (
	DataSourceExternalSecret_AppRoleAuthOption_SecretType_name = map[int32]string{
		0: "SECRET_TYPE_UNSPECIFIED",
		1: "PLAIN",
		2: "ENVIRONMENT",
	}
	DataSourceExternalSecret_AppRoleAuthOption_SecretType_value = map[string]int32{
		"SECRET_TYPE_UNSPECIFIED": 0,
		"PLAIN":                   1,
		"ENVIRONMENT":             2,
	}
)

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

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

func (DataSourceExternalSecret_AppRoleAuthOption_SecretType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[4].Descriptor()
}

func (DataSourceExternalSecret_AppRoleAuthOption_SecretType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[4]
}

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

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

type DataSource_AuthenticationType int32

const (
	DataSource_AUTHENTICATION_UNSPECIFIED DataSource_AuthenticationType = 0
	DataSource_PASSWORD                   DataSource_AuthenticationType = 1
	DataSource_GOOGLE_CLOUD_SQL_IAM       DataSource_AuthenticationType = 2
	DataSource_AWS_RDS_IAM                DataSource_AuthenticationType = 3
	DataSource_AZURE_IAM                  DataSource_AuthenticationType = 4
)

// Enum value maps for DataSource_AuthenticationType.
var (
	DataSource_AuthenticationType_name = map[int32]string{
		0: "AUTHENTICATION_UNSPECIFIED",
		1: "PASSWORD",
		2: "GOOGLE_CLOUD_SQL_IAM",
		3: "AWS_RDS_IAM",
		4: "AZURE_IAM",
	}
	DataSource_AuthenticationType_value = map[string]int32{
		"AUTHENTICATION_UNSPECIFIED": 0,
		"PASSWORD":                   1,
		"GOOGLE_CLOUD_SQL_IAM":       2,
		"AWS_RDS_IAM":                3,
		"AZURE_IAM":                  4,
	}
)

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

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

func (DataSource_AuthenticationType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[5].Descriptor()
}

func (DataSource_AuthenticationType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[5]
}

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

// Deprecated: Use DataSource_AuthenticationType.Descriptor instead.
func (DataSource_AuthenticationType) EnumDescriptor() ([]byte, []int) {
	return file_v1_instance_service_proto_rawDescGZIP(), []int{22, 0}
}

// CloudSQLIPType selects which Cloud SQL IP to dial for Google Cloud SQL IAM connections.
type DataSource_CloudSQLIPType int32

const (
	DataSource_CLOUD_SQL_IP_TYPE_UNSPECIFIED DataSource_CloudSQLIPType = 0
	DataSource_PUBLIC                        DataSource_CloudSQLIPType = 1
	DataSource_PRIVATE                       DataSource_CloudSQLIPType = 2
	DataSource_PSC                           DataSource_CloudSQLIPType = 3
)

// Enum value maps for DataSource_CloudSQLIPType.
var (
	DataSource_CloudSQLIPType_name = map[int32]string{
		0: "CLOUD_SQL_IP_TYPE_UNSPECIFIED",
		1: "PUBLIC",
		2: "PRIVATE",
		3: "PSC",
	}
	DataSource_CloudSQLIPType_value = map[string]int32{
		"CLOUD_SQL_IP_TYPE_UNSPECIFIED": 0,
		"PUBLIC":                        1,
		"PRIVATE":                       2,
		"PSC":                           3,
	}
)

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

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

func (DataSource_CloudSQLIPType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[6].Descriptor()
}

func (DataSource_CloudSQLIPType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[6]
}

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

// Deprecated: Use DataSource_CloudSQLIPType.Descriptor instead.
func (DataSource_CloudSQLIPType) EnumDescriptor() ([]byte, []int) {
	return file_v1_instance_service_proto_rawDescGZIP(), []int{22, 1}
}

type DataSource_RedisType int32

const (
	DataSource_REDIS_TYPE_UNSPECIFIED DataSource_RedisType = 0
	DataSource_STANDALONE             DataSource_RedisType = 1
	DataSource_SENTINEL               DataSource_RedisType = 2
	DataSource_CLUSTER                DataSource_RedisType = 3
)

// Enum value maps for DataSource_RedisType.
var (
	DataSource_RedisType_name = map[int32]string{
		0: "REDIS_TYPE_UNSPECIFIED",
		1: "STANDALONE",
		2: "SENTINEL",
		3: "CLUSTER",
	}
	DataSource_RedisType_value = map[string]int32{
		"REDIS_TYPE_UNSPECIFIED": 0,
		"STANDALONE":             1,
		"SENTINEL":               2,
		"CLUSTER":                3,
	}
)

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

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

func (DataSource_RedisType) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_instance_service_proto_enumTypes[7].Descriptor()
}

func (DataSource_RedisType) Type() protoreflect.EnumType {
	return &file_v1_instance_service_proto_enumTypes[7]
}

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

// Deprecated: Use DataSource_RedisType.Descriptor instead.
func (DataSource_RedisType) EnumDescriptor() ([]byte, []int) {
	return file_v1_instance_service_proto_rawDescGZIP(), []int{22, 2}
}

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

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

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

func (*GetInstanceRequest) ProtoMessage() {}

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

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

type ListInstancesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The parent, which owns this collection of instances.
	// Format: projects/{project}. If omitted, only workspace instances are
	// returned. Wildcard project parents are not supported. When set, the
	// `project` filter must be omitted or match this parent.
	Parent *string `protobuf:"bytes,6,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// The maximum number of instances to return. The service may return fewer than
	// this value.
	// If unspecified, at most 10 instances 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 `ListInstances` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListInstances` 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 instances if specified.
	ShowDeleted bool `protobuf:"varint,3,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// Filter the instance.
	// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
	//
	// Supported filters:
	// - name: the instance name, support "==" and ".contains()" operator.
	// - resource_id: the instance id, support "==" and ".contains()" operator.
	// - environment: the environment full name in "environments/{id}" format, support "==" operator.
	// - state: the instance state, check State enum for values, support "==" operator.
	// - engine: the instance engine, check Engine enum for values. Support "==", "in [xx]", "!(in [xx])" operator.
	// - host: the instance host, support "==" and ".contains()" operator.
	// - port: the instance port, support "==" and ".contains()" operator.
	// - project: the project full name in "projects/{id}" format, support "==" operator.
	// - labels.{key}: the instance label, support "==" and "in" operators.
	//
	// For example:
	// name == "sample instance"
	// name.contains("sample")
	// resource_id == "sample-instance"
	// resource_id.contains("sample")
	// state == "DELETED"
	// environment == "environments/test"
	// environment == "" (find instances which environment is not set)
	// engine == "MYSQL"
	// engine in ["MYSQL", "POSTGRES"]
	// !(engine in ["MYSQL", "POSTGRES"])
	// host == "127.0.0.1"
	// host.contains("127.0")
	// port == "54321"
	// port.contains("543")
	// labels.org_group == "infrastructure"
	// labels.environment in ["prod", "production"]
	// project == "projects/sample-project"
	// You can combine filter conditions like:
	// name.contains("sample") && environment == "environments/test"
	// host == "127.0.0.1" && port == "54321"
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// The order by of instances.
	// Support title, environment. The default sorting order is ascending.
	// For example:
	// - order_by = "title"
	// - order_by = "title desc"
	// - order_by = "title desc, environment 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 *ListInstancesRequest) Reset() {
	*x = ListInstancesRequest{}
	mi := &file_v1_instance_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListInstancesRequest) ProtoMessage() {}

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

func (x *ListInstancesRequest) GetParent() string {
	if x != nil && x.Parent != nil {
		return *x.Parent
	}
	return ""
}

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

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

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

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

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

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

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

func (*ListInstancesResponse) ProtoMessage() {}

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

func (x *ListInstancesResponse) GetInstances() []*Instance {
	if x != nil {
		return x.Instances
	}
	return nil
}

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

type CreateInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The parent, which owns this collection of instances.
	// Format: projects/{project}. If omitted, the instance is created in the
	// workspace collection.
	Parent *string `protobuf:"bytes,5,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// The instance to create.
	Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
	// The ID to use for the instance, which will become the final component of
	// the instance's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-/.
	InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// Validate only also tests the data source connection.
	ValidateOnly  bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateInstanceRequest) ProtoMessage() {}

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

func (x *CreateInstanceRequest) GetParent() string {
	if x != nil && x.Parent != nil {
		return *x.Parent
	}
	return ""
}

func (x *CreateInstanceRequest) GetInstance() *Instance {
	if x != nil {
		return x.Instance
	}
	return nil
}

func (x *CreateInstanceRequest) GetInstanceId() string {
	if x != nil {
		return x.InstanceId
	}
	return ""
}

func (x *CreateInstanceRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

type PrepareSampleProjectInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The project that owns the sample instance.
	// Format: projects/{project}
	Parent        string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PrepareSampleProjectInstanceRequest) Reset() {
	*x = PrepareSampleProjectInstanceRequest{}
	mi := &file_v1_instance_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PrepareSampleProjectInstanceRequest) ProtoMessage() {}

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

func (x *PrepareSampleProjectInstanceRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

type UpdateInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The instance to update.
	//
	// The instance's `name` field is used to identify the instance to update.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,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 instance is not found, a new instance will be created.
	// In this situation, `update_mask` is ignored. A project-nested name creates
	// the instance only under its encoded active, non-default project; it never
	// falls back to a workspace instance.
	AllowMissing  bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateInstanceRequest) ProtoMessage() {}

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

func (x *UpdateInstanceRequest) GetInstance() *Instance {
	if x != nil {
		return x.Instance
	}
	return nil
}

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

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

type DeleteInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the instance to delete.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set to true, a workspace instance's databases are moved to the default
	// project before the instance is soft-deleted. Project instances reject this
	// option because their databases must remain in the owning project.
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// If set to true, permanently purge the soft-deleted instance and all related resources.
	// This operation is irreversible. Following AIP-165, this should only be used for
	// administrative cleanup of old soft-deleted instances.
	// The instance must already be soft-deleted for this to work.
	Purge         bool `protobuf:"varint,3,opt,name=purge,proto3" json:"purge,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteInstanceRequest) Reset() {
	*x = DeleteInstanceRequest{}
	mi := &file_v1_instance_service_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteInstanceRequest) ProtoMessage() {}

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

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

func (x *DeleteInstanceRequest) GetForce() bool {
	if x != nil {
		return x.Force
	}
	return false
}

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

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

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

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

func (*UndeleteInstanceRequest) ProtoMessage() {}

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

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

type SyncInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of instance.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// When full sync is enabled, all databases in the instance will be synchronized. Otherwise, only
	// the instance metadata (such as the database list) and any newly discovered databases will be synced.
	EnableFullSync bool `protobuf:"varint,2,opt,name=enable_full_sync,json=enableFullSync,proto3" json:"enable_full_sync,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *SyncInstanceRequest) Reset() {
	*x = SyncInstanceRequest{}
	mi := &file_v1_instance_service_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SyncInstanceRequest) ProtoMessage() {}

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

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

func (x *SyncInstanceRequest) GetEnableFullSync() bool {
	if x != nil {
		return x.EnableFullSync
	}
	return false
}

type ListInstanceDatabaseRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the instance.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The target instance. We need to set this field if the target instance is not created yet.
	Instance      *Instance `protobuf:"bytes,2,opt,name=instance,proto3,oneof" json:"instance,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListInstanceDatabaseRequest) ProtoMessage() {}

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

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

func (x *ListInstanceDatabaseRequest) GetInstance() *Instance {
	if x != nil {
		return x.Instance
	}
	return nil
}

type ListInstanceDatabaseResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// All database name list in the instance.
	Databases     []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListInstanceDatabaseResponse) ProtoMessage() {}

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

func (x *ListInstanceDatabaseResponse) GetDatabases() []string {
	if x != nil {
		return x.Databases
	}
	return nil
}

type SyncInstanceResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// All database name list in the instance.
	Databases     []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SyncInstanceResponse) ProtoMessage() {}

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

func (x *SyncInstanceResponse) GetDatabases() []string {
	if x != nil {
		return x.Databases
	}
	return nil
}

type BatchSyncInstancesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The parent, which owns this collection of instances.
	// Format: projects/{project}. If omitted, all targets must be workspace
	// instances; otherwise, every target must belong to this project collection.
	Parent *string `protobuf:"bytes,2,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// The request message specifying the instances to sync.
	// A maximum of 1000 instances can be synced in a batch.
	Requests      []*SyncInstanceRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*BatchSyncInstancesRequest) ProtoMessage() {}

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

func (x *BatchSyncInstancesRequest) GetParent() string {
	if x != nil && x.Parent != nil {
		return *x.Parent
	}
	return ""
}

func (x *BatchSyncInstancesRequest) GetRequests() []*SyncInstanceRequest {
	if x != nil {
		return x.Requests
	}
	return nil
}

type BatchSyncInstancesResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*BatchSyncInstancesResponse) ProtoMessage() {}

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

type BatchUpdateInstancesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The parent, which owns this collection of instances.
	// Format: projects/{project}. If omitted, all targets must be workspace
	// instances; otherwise, every target must belong to this project collection.
	Parent *string `protobuf:"bytes,2,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// The request message specifying the resources to update.
	Requests      []*UpdateInstanceRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*BatchUpdateInstancesRequest) ProtoMessage() {}

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

func (x *BatchUpdateInstancesRequest) GetParent() string {
	if x != nil && x.Parent != nil {
		return *x.Parent
	}
	return ""
}

func (x *BatchUpdateInstancesRequest) GetRequests() []*UpdateInstanceRequest {
	if x != nil {
		return x.Requests
	}
	return nil
}

type BatchUpdateInstancesResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Instances     []*Instance            `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BatchUpdateInstancesResponse) Reset() {
	*x = BatchUpdateInstancesResponse{}
	mi := &file_v1_instance_service_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*BatchUpdateInstancesResponse) ProtoMessage() {}

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

func (x *BatchUpdateInstancesResponse) GetInstances() []*Instance {
	if x != nil {
		return x.Instances
	}
	return nil
}

type AddDataSourceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the instance to add a data source to.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Identified by data source ID.
	// Only READ_ONLY data source can be added.
	DataSource *DataSource `protobuf:"bytes,2,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	// Validate only also tests the data source connection.
	ValidateOnly  bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AddDataSourceRequest) ProtoMessage() {}

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

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

func (x *AddDataSourceRequest) GetDataSource() *DataSource {
	if x != nil {
		return x.DataSource
	}
	return nil
}

func (x *AddDataSourceRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

type RemoveDataSourceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the instance to remove a data source from.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Identified by data source ID.
	// Only READ_ONLY data source can be removed.
	DataSource    *DataSource `protobuf:"bytes,2,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RemoveDataSourceRequest) ProtoMessage() {}

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

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

func (x *RemoveDataSourceRequest) GetDataSource() *DataSource {
	if x != nil {
		return x.DataSource
	}
	return nil
}

type UpdateDataSourceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the instance to update a data source.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Identified by data source ID.
	DataSource *DataSource `protobuf:"bytes,2,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	// The list of fields to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Validate only also tests the data source connection.
	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// If set to true, and the data source is not found, a new data source will be created.
	// In this situation, `update_mask` is ignored.
	AllowMissing  bool `protobuf:"varint,5,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateDataSourceRequest) ProtoMessage() {}

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

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

func (x *UpdateDataSourceRequest) GetDataSource() *DataSource {
	if x != nil {
		return x.DataSource
	}
	return nil
}

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

func (x *UpdateDataSourceRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

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

type SyncDatabases struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Databases     []string               `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SyncDatabases) ProtoMessage() {}

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

func (x *SyncDatabases) GetDatabases() []string {
	if x != nil {
		return x.Databases
	}
	return nil
}

type Instance struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the instance.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The lifecycle state of the instance.
	State State `protobuf:"varint,3,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`
	// The display title of the instance.
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// The database engine type.
	Engine Engine `protobuf:"varint,5,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`
	// The version of the database engine.
	EngineVersion string `protobuf:"bytes,6,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
	// External URL to the database instance console.
	ExternalLink string `protobuf:"bytes,7,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"`
	// Data source configurations for connecting to the instance.
	DataSources []*DataSource `protobuf:"bytes,8,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
	// The environment resource.
	// Format: environments/prod where prod is the environment resource ID.
	Environment *string `protobuf:"bytes,9,opt,name=environment,proto3,oneof" json:"environment,omitempty"`
	// Whether the instance is activated for use.
	Activation bool `protobuf:"varint,10,opt,name=activation,proto3" json:"activation,omitempty"`
	// Database roles available in this instance.
	Roles []*InstanceRole `protobuf:"bytes,11,rep,name=roles,proto3" json:"roles,omitempty"`
	// How often the instance is synced.
	SyncInterval *durationpb.Duration `protobuf:"bytes,12,opt,name=sync_interval,json=syncInterval,proto3" json:"sync_interval,omitempty"`
	// Enable sync for following databases.
	// Not set means sync all schemas & databases.
	SyncDatabases *SyncDatabases `protobuf:"bytes,14,opt,name=sync_databases,json=syncDatabases,proto3" json:"sync_databases,omitempty"`
	// The last time the instance was synced.
	LastSyncTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=last_sync_time,json=lastSyncTime,proto3" json:"last_sync_time,omitempty"`
	// Labels are key-value pairs that can be attached to the instance.
	// For example, { "org_group": "infrastructure", "environment": "production" }
	Labels        map[string]string `protobuf:"bytes,16,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Instance) ProtoMessage() {}

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

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

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

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

func (x *Instance) GetEngine() Engine {
	if x != nil {
		return x.Engine
	}
	return Engine_ENGINE_UNSPECIFIED
}

func (x *Instance) GetEngineVersion() string {
	if x != nil {
		return x.EngineVersion
	}
	return ""
}

func (x *Instance) GetExternalLink() string {
	if x != nil {
		return x.ExternalLink
	}
	return ""
}

func (x *Instance) GetDataSources() []*DataSource {
	if x != nil {
		return x.DataSources
	}
	return nil
}

func (x *Instance) GetEnvironment() string {
	if x != nil && x.Environment != nil {
		return *x.Environment
	}
	return ""
}

func (x *Instance) GetActivation() bool {
	if x != nil {
		return x.Activation
	}
	return false
}

func (x *Instance) GetRoles() []*InstanceRole {
	if x != nil {
		return x.Roles
	}
	return nil
}

func (x *Instance) GetSyncInterval() *durationpb.Duration {
	if x != nil {
		return x.SyncInterval
	}
	return nil
}

func (x *Instance) GetSyncDatabases() *SyncDatabases {
	if x != nil {
		return x.SyncDatabases
	}
	return nil
}

func (x *Instance) GetLastSyncTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LastSyncTime
	}
	return nil
}

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

type DataSourceExternalSecret struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The type of external secret store.
	SecretType DataSourceExternalSecret_SecretType `protobuf:"varint,1,opt,name=secret_type,json=secretType,proto3,enum=bytebase.v1.DataSourceExternalSecret_SecretType" json:"secret_type,omitempty"`
	// The URL of the external secret store.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// The authentication method for accessing the secret store.
	AuthType DataSourceExternalSecret_AuthType `protobuf:"varint,3,opt,name=auth_type,json=authType,proto3,enum=bytebase.v1.DataSourceExternalSecret_AuthType" json:"auth_type,omitempty"`
	// Types that are valid to be assigned to AuthOption:
	//
	//	*DataSourceExternalSecret_AppRole
	//	*DataSourceExternalSecret_Token
	AuthOption isDataSourceExternalSecret_AuthOption `protobuf_oneof:"auth_option"`
	// How to interpret the token field when auth_type is TOKEN.
	TokenType DataSourceExternalSecret_TokenType `protobuf:"varint,13,opt,name=token_type,json=tokenType,proto3,enum=bytebase.v1.DataSourceExternalSecret_TokenType" json:"token_type,omitempty"`
	// engine name is the name for secret engine.
	EngineName string `protobuf:"bytes,6,opt,name=engine_name,json=engineName,proto3" json:"engine_name,omitempty"`
	// the secret name in the engine to store the password.
	SecretName string `protobuf:"bytes,7,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"`
	// the key name for the password.
	PasswordKeyName string `protobuf:"bytes,8,opt,name=password_key_name,json=passwordKeyName,proto3" json:"password_key_name,omitempty"`
	// TLS configuration for connecting to Vault server.
	// These fields are separate from the database TLS configuration in DataSource.
	// skip_vault_tls_verification disables TLS certificate verification for Vault connections.
	// Default is false (verification enabled) for security.
	// Only set to true for development or when certificates cannot be properly validated.
	SkipVaultTlsVerification bool `protobuf:"varint,9,opt,name=skip_vault_tls_verification,json=skipVaultTlsVerification,proto3" json:"skip_vault_tls_verification,omitempty"`
	// CA certificate for Vault server verification.
	VaultSslCa string `protobuf:"bytes,10,opt,name=vault_ssl_ca,json=vaultSslCa,proto3" json:"vault_ssl_ca,omitempty"`
	// Client certificate for mutual TLS authentication with Vault.
	VaultSslCert string `protobuf:"bytes,11,opt,name=vault_ssl_cert,json=vaultSslCert,proto3" json:"vault_ssl_cert,omitempty"`
	// Client private key for mutual TLS authentication with Vault.
	VaultSslKey   string `protobuf:"bytes,12,opt,name=vault_ssl_key,json=vaultSslKey,proto3" json:"vault_ssl_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataSourceExternalSecret) ProtoMessage() {}

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

func (x *DataSourceExternalSecret) GetSecretType() DataSourceExternalSecret_SecretType {
	if x != nil {
		return x.SecretType
	}
	return DataSourceExternalSecret_SECRET_TYPE_UNSPECIFIED
}

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

func (x *DataSourceExternalSecret) GetAuthType() DataSourceExternalSecret_AuthType {
	if x != nil {
		return x.AuthType
	}
	return DataSourceExternalSecret_AUTH_TYPE_UNSPECIFIED
}

func (x *DataSourceExternalSecret) GetAuthOption() isDataSourceExternalSecret_AuthOption {
	if x != nil {
		return x.AuthOption
	}
	return nil
}

func (x *DataSourceExternalSecret) GetAppRole() *DataSourceExternalSecret_AppRoleAuthOption {
	if x != nil {
		if x, ok := x.AuthOption.(*DataSourceExternalSecret_AppRole); ok {
			return x.AppRole
		}
	}
	return nil
}

func (x *DataSourceExternalSecret) GetToken() string {
	if x != nil {
		if x, ok := x.AuthOption.(*DataSourceExternalSecret_Token); ok {
			return x.Token
		}
	}
	return ""
}

func (x *DataSourceExternalSecret) GetTokenType() DataSourceExternalSecret_TokenType {
	if x != nil {
		return x.TokenType
	}
	return DataSourceExternalSecret_TOKEN_TYPE_UNSPECIFIED
}

func (x *DataSourceExternalSecret) GetEngineName() string {
	if x != nil {
		return x.EngineName
	}
	return ""
}

func (x *DataSourceExternalSecret) GetSecretName() string {
	if x != nil {
		return x.SecretName
	}
	return ""
}

func (x *DataSourceExternalSecret) GetPasswordKeyName() string {
	if x != nil {
		return x.PasswordKeyName
	}
	return ""
}

func (x *DataSourceExternalSecret) GetSkipVaultTlsVerification() bool {
	if x != nil {
		return x.SkipVaultTlsVerification
	}
	return false
}

func (x *DataSourceExternalSecret) GetVaultSslCa() string {
	if x != nil {
		return x.VaultSslCa
	}
	return ""
}

func (x *DataSourceExternalSecret) GetVaultSslCert() string {
	if x != nil {
		return x.VaultSslCert
	}
	return ""
}

func (x *DataSourceExternalSecret) GetVaultSslKey() string {
	if x != nil {
		return x.VaultSslKey
	}
	return ""
}

type isDataSourceExternalSecret_AuthOption interface {
	isDataSourceExternalSecret_AuthOption()
}

type DataSourceExternalSecret_AppRole struct {
	// AppRole authentication configuration.
	AppRole *DataSourceExternalSecret_AppRoleAuthOption `protobuf:"bytes,4,opt,name=app_role,json=appRole,proto3,oneof"`
}

type DataSourceExternalSecret_Token struct {
	// Token for direct authentication. Interpreted according to token_type:
	// the literal token (PLAIN), an environment variable name (ENVIRONMENT),
	// or a file path (FILE).
	Token string `protobuf:"bytes,5,opt,name=token,proto3,oneof"`
}

func (*DataSourceExternalSecret_AppRole) isDataSourceExternalSecret_AuthOption() {}

func (*DataSourceExternalSecret_Token) isDataSourceExternalSecret_AuthOption() {}

type DataSource struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The unique identifier for this data source.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of data source (ADMIN or READ_ONLY).
	Type DataSourceType `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.v1.DataSourceType" json:"type,omitempty"`
	// The username for database authentication.
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// The password for database authentication.
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// Use SSL to connect to the data source. By default, we use system default SSL configuration.
	UseSsl bool `protobuf:"varint,30,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"`
	// The SSL certificate authority certificate.
	SslCa string `protobuf:"bytes,5,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
	// The SSL client certificate.
	SslCert string `protobuf:"bytes,6,opt,name=ssl_cert,json=sslCert,proto3" json:"ssl_cert,omitempty"`
	// The SSL client private key.
	SslKey string `protobuf:"bytes,7,opt,name=ssl_key,json=sslKey,proto3" json:"ssl_key,omitempty"`
	// The local filesystem path to the SSL certificate authority certificate.
	SslCaPath string `protobuf:"bytes,41,opt,name=ssl_ca_path,json=sslCaPath,proto3" json:"ssl_ca_path,omitempty"`
	// The local filesystem path to the SSL client certificate.
	SslCertPath string `protobuf:"bytes,42,opt,name=ssl_cert_path,json=sslCertPath,proto3" json:"ssl_cert_path,omitempty"`
	// The local filesystem path to the SSL client private key.
	SslKeyPath string `protobuf:"bytes,43,opt,name=ssl_key_path,json=sslKeyPath,proto3" json:"ssl_key_path,omitempty"`
	// Whether an SSL certificate authority certificate has been configured.
	SslCaSet bool `protobuf:"varint,44,opt,name=ssl_ca_set,json=sslCaSet,proto3" json:"ssl_ca_set,omitempty"`
	// Whether an SSL client certificate has been configured.
	SslCertSet bool `protobuf:"varint,45,opt,name=ssl_cert_set,json=sslCertSet,proto3" json:"ssl_cert_set,omitempty"`
	// Whether an SSL client private key has been configured.
	SslKeySet bool `protobuf:"varint,46,opt,name=ssl_key_set,json=sslKeySet,proto3" json:"ssl_key_set,omitempty"`
	// Whether an SSL certificate authority path has been configured.
	SslCaPathSet bool `protobuf:"varint,47,opt,name=ssl_ca_path_set,json=sslCaPathSet,proto3" json:"ssl_ca_path_set,omitempty"`
	// Whether an SSL client certificate path has been configured.
	SslCertPathSet bool `protobuf:"varint,48,opt,name=ssl_cert_path_set,json=sslCertPathSet,proto3" json:"ssl_cert_path_set,omitempty"`
	// Whether an SSL client private key path has been configured.
	SslKeyPathSet bool `protobuf:"varint,49,opt,name=ssl_key_path_set,json=sslKeyPathSet,proto3" json:"ssl_key_path_set,omitempty"`
	// verify_tls_certificate enables TLS certificate verification for SSL connections.
	// Default is false (no verification) for backward compatibility.
	// Set to true for secure connections (recommended for production).
	// Only set to false for development or when certificates cannot be properly
	// validated (e.g., self-signed certs, VPN environments).
	VerifyTlsCertificate bool `protobuf:"varint,39,opt,name=verify_tls_certificate,json=verifyTlsCertificate,proto3" json:"verify_tls_certificate,omitempty"`
	// The hostname or IP address of the database server.
	Host string `protobuf:"bytes,8,opt,name=host,proto3" json:"host,omitempty"`
	// The port number of the database server.
	Port string `protobuf:"bytes,9,opt,name=port,proto3" json:"port,omitempty"`
	// The name of the database to connect to.
	Database string `protobuf:"bytes,10,opt,name=database,proto3" json:"database,omitempty"`
	// srv, authentication_database and replica_set are used for MongoDB.
	// srv is a boolean flag that indicates whether the host is a DNS SRV record.
	Srv bool `protobuf:"varint,11,opt,name=srv,proto3" json:"srv,omitempty"`
	// authentication_database is the database name to authenticate against, which stores the user credentials.
	AuthenticationDatabase string `protobuf:"bytes,12,opt,name=authentication_database,json=authenticationDatabase,proto3" json:"authentication_database,omitempty"`
	// replica_set is used for MongoDB replica set.
	ReplicaSet string `protobuf:"bytes,25,opt,name=replica_set,json=replicaSet,proto3" json:"replica_set,omitempty"`
	// sid and service_name are used for Oracle.
	Sid         string `protobuf:"bytes,13,opt,name=sid,proto3" json:"sid,omitempty"`
	ServiceName string `protobuf:"bytes,14,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// Connection over SSH.
	// The hostname of the SSH server agent.
	// Required.
	SshHost string `protobuf:"bytes,15,opt,name=ssh_host,json=sshHost,proto3" json:"ssh_host,omitempty"`
	// The port of the SSH server agent. It's 22 typically.
	// Required.
	SshPort string `protobuf:"bytes,16,opt,name=ssh_port,json=sshPort,proto3" json:"ssh_port,omitempty"`
	// The user to login the server.
	// Required.
	SshUser string `protobuf:"bytes,17,opt,name=ssh_user,json=sshUser,proto3" json:"ssh_user,omitempty"`
	// The password to login the server. If it's empty string, no password is required.
	SshPassword string `protobuf:"bytes,18,opt,name=ssh_password,json=sshPassword,proto3" json:"ssh_password,omitempty"`
	// The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK").
	SshPrivateKey string `protobuf:"bytes,19,opt,name=ssh_private_key,json=sshPrivateKey,proto3" json:"ssh_private_key,omitempty"`
	// PKCS#8 private key in PEM format. If it's empty string, no private key is required.
	// Used for authentication when connecting to the data source.
	AuthenticationPrivateKey string `protobuf:"bytes,20,opt,name=authentication_private_key,json=authenticationPrivateKey,proto3" json:"authentication_private_key,omitempty"`
	// Passphrase for the encrypted PKCS#8 private key. Only used when the private key is encrypted.
	AuthenticationPrivateKeyPassphrase string                        `protobuf:"bytes,40,opt,name=authentication_private_key_passphrase,json=authenticationPrivateKeyPassphrase,proto3" json:"authentication_private_key_passphrase,omitempty"`
	ExternalSecret                     *DataSourceExternalSecret     `protobuf:"bytes,21,opt,name=external_secret,json=externalSecret,proto3" json:"external_secret,omitempty"`
	AuthenticationType                 DataSource_AuthenticationType `protobuf:"varint,22,opt,name=authentication_type,json=authenticationType,proto3,enum=bytebase.v1.DataSource_AuthenticationType" json:"authentication_type,omitempty"`
	// cloud_sql_ip_type selects the Cloud SQL IP type for Google Cloud SQL IAM connections.
	// CLOUD_SQL_IP_TYPE_UNSPECIFIED is treated as PUBLIC for backward compatibility.
	CloudSqlIpType DataSource_CloudSQLIPType `protobuf:"varint,56,opt,name=cloud_sql_ip_type,json=cloudSqlIpType,proto3,enum=bytebase.v1.DataSource_CloudSQLIPType" json:"cloud_sql_ip_type,omitempty"`
	// Types that are valid to be assigned to IamExtension:
	//
	//	*DataSource_AzureCredential_
	//	*DataSource_AwsCredential
	//	*DataSource_GcpCredential
	IamExtension isDataSource_IamExtension `protobuf_oneof:"iam_extension"`
	SaslConfig   *SASLConfig               `protobuf:"bytes,24,opt,name=sasl_config,json=saslConfig,proto3" json:"sasl_config,omitempty"`
	// additional_addresses is used for MongoDB replica set.
	AdditionalAddresses []*DataSource_Address `protobuf:"bytes,26,rep,name=additional_addresses,json=additionalAddresses,proto3" json:"additional_addresses,omitempty"`
	// direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string.
	DirectConnection bool `protobuf:"varint,27,opt,name=direct_connection,json=directConnection,proto3" json:"direct_connection,omitempty"`
	// region is the location of where the DB is, works for AWS RDS. For example, us-east-1.
	Region string `protobuf:"bytes,28,opt,name=region,proto3" json:"region,omitempty"`
	// warehouse_id is used by Databricks.
	WarehouseId string `protobuf:"bytes,29,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	// master_name is the master name used by connecting redis-master via redis sentinel.
	MasterName string `protobuf:"bytes,31,opt,name=master_name,json=masterName,proto3" json:"master_name,omitempty"`
	// master_username and master_password are master credentials used by redis sentinel mode.
	MasterUsername string               `protobuf:"bytes,32,opt,name=master_username,json=masterUsername,proto3" json:"master_username,omitempty"`
	MasterPassword string               `protobuf:"bytes,33,opt,name=master_password,json=masterPassword,proto3" json:"master_password,omitempty"`
	RedisType      DataSource_RedisType `protobuf:"varint,34,opt,name=redis_type,json=redisType,proto3,enum=bytebase.v1.DataSource_RedisType" json:"redis_type,omitempty"`
	// Extra connection parameters for the database connection.
	// For PostgreSQL HA, this can be used to set target_session_attrs=read-write
	ExtraConnectionParameters map[string]string `protobuf:"bytes,36,rep,name=extra_connection_parameters,json=extraConnectionParameters,proto3" json:"extra_connection_parameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// project_id and instance_id are the GCP resource identifiers.
	// project_id is used by Spanner and BigQuery; instance_id is used by Spanner.
	// For these engines, host and port optionally override the default Google API
	// endpoint (e.g. a Private Service Connect endpoint like
	// spanner-nonprod.p.googleapis.com).
	ProjectId     string `protobuf:"bytes,57,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	InstanceId    string `protobuf:"bytes,58,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataSource) ProtoMessage() {}

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

func (x *DataSource) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *DataSource) GetType() DataSourceType {
	if x != nil {
		return x.Type
	}
	return DataSourceType_DATA_SOURCE_UNSPECIFIED
}

func (x *DataSource) GetUsername() string {
	if x != nil {
		return x.Username
	}
	return ""
}

func (x *DataSource) GetPassword() string {
	if x != nil {
		return x.Password
	}
	return ""
}

func (x *DataSource) GetUseSsl() bool {
	if x != nil {
		return x.UseSsl
	}
	return false
}

func (x *DataSource) GetSslCa() string {
	if x != nil {
		return x.SslCa
	}
	return ""
}

func (x *DataSource) GetSslCert() string {
	if x != nil {
		return x.SslCert
	}
	return ""
}

func (x *DataSource) GetSslKey() string {
	if x != nil {
		return x.SslKey
	}
	return ""
}

func (x *DataSource) GetSslCaPath() string {
	if x != nil {
		return x.SslCaPath
	}
	return ""
}

func (x *DataSource) GetSslCertPath() string {
	if x != nil {
		return x.SslCertPath
	}
	return ""
}

func (x *DataSource) GetSslKeyPath() string {
	if x != nil {
		return x.SslKeyPath
	}
	return ""
}

func (x *DataSource) GetSslCaSet() bool {
	if x != nil {
		return x.SslCaSet
	}
	return false
}

func (x *DataSource) GetSslCertSet() bool {
	if x != nil {
		return x.SslCertSet
	}
	return false
}

func (x *DataSource) GetSslKeySet() bool {
	if x != nil {
		return x.SslKeySet
	}
	return false
}

func (x *DataSource) GetSslCaPathSet() bool {
	if x != nil {
		return x.SslCaPathSet
	}
	return false
}

func (x *DataSource) GetSslCertPathSet() bool {
	if x != nil {
		return x.SslCertPathSet
	}
	return false
}

func (x *DataSource) GetSslKeyPathSet() bool {
	if x != nil {
		return x.SslKeyPathSet
	}
	return false
}

func (x *DataSource) GetVerifyTlsCertificate() bool {
	if x != nil {
		return x.VerifyTlsCertificate
	}
	return false
}

func (x *DataSource) GetHost() string {
	if x != nil {
		return x.Host
	}
	return ""
}

func (x *DataSource) GetPort() string {
	if x != nil {
		return x.Port
	}
	return ""
}

func (x *DataSource) GetDatabase() string {
	if x != nil {
		return x.Database
	}
	return ""
}

func (x *DataSource) GetSrv() bool {
	if x != nil {
		return x.Srv
	}
	return false
}

func (x *DataSource) GetAuthenticationDatabase() string {
	if x != nil {
		return x.AuthenticationDatabase
	}
	return ""
}

func (x *DataSource) GetReplicaSet() string {
	if x != nil {
		return x.ReplicaSet
	}
	return ""
}

func (x *DataSource) GetSid() string {
	if x != nil {
		return x.Sid
	}
	return ""
}

func (x *DataSource) GetServiceName() string {
	if x != nil {
		return x.ServiceName
	}
	return ""
}

func (x *DataSource) GetSshHost() string {
	if x != nil {
		return x.SshHost
	}
	return ""
}

func (x *DataSource) GetSshPort() string {
	if x != nil {
		return x.SshPort
	}
	return ""
}

func (x *DataSource) GetSshUser() string {
	if x != nil {
		return x.SshUser
	}
	return ""
}

func (x *DataSource) GetSshPassword() string {
	if x != nil {
		return x.SshPassword
	}
	return ""
}

func (x *DataSource) GetSshPrivateKey() string {
	if x != nil {
		return x.SshPrivateKey
	}
	return ""
}

func (x *DataSource) GetAuthenticationPrivateKey() string {
	if x != nil {
		return x.AuthenticationPrivateKey
	}
	return ""
}

func (x *DataSource) GetAuthenticationPrivateKeyPassphrase() string {
	if x != nil {
		return x.AuthenticationPrivateKeyPassphrase
	}
	return ""
}

func (x *DataSource) GetExternalSecret() *DataSourceExternalSecret {
	if x != nil {
		return x.ExternalSecret
	}
	return nil
}

func (x *DataSource) GetAuthenticationType() DataSource_AuthenticationType {
	if x != nil {
		return x.AuthenticationType
	}
	return DataSource_AUTHENTICATION_UNSPECIFIED
}

func (x *DataSource) GetCloudSqlIpType() DataSource_CloudSQLIPType {
	if x != nil {
		return x.CloudSqlIpType
	}
	return DataSource_CLOUD_SQL_IP_TYPE_UNSPECIFIED
}

func (x *DataSource) GetIamExtension() isDataSource_IamExtension {
	if x != nil {
		return x.IamExtension
	}
	return nil
}

func (x *DataSource) GetAzureCredential() *DataSource_AzureCredential {
	if x != nil {
		if x, ok := x.IamExtension.(*DataSource_AzureCredential_); ok {
			return x.AzureCredential
		}
	}
	return nil
}

func (x *DataSource) GetAwsCredential() *DataSource_AWSCredential {
	if x != nil {
		if x, ok := x.IamExtension.(*DataSource_AwsCredential); ok {
			return x.AwsCredential
		}
	}
	return nil
}

func (x *DataSource) GetGcpCredential() *DataSource_GCPCredential {
	if x != nil {
		if x, ok := x.IamExtension.(*DataSource_GcpCredential); ok {
			return x.GcpCredential
		}
	}
	return nil
}

func (x *DataSource) GetSaslConfig() *SASLConfig {
	if x != nil {
		return x.SaslConfig
	}
	return nil
}

func (x *DataSource) GetAdditionalAddresses() []*DataSource_Address {
	if x != nil {
		return x.AdditionalAddresses
	}
	return nil
}

func (x *DataSource) GetDirectConnection() bool {
	if x != nil {
		return x.DirectConnection
	}
	return false
}

func (x *DataSource) GetRegion() string {
	if x != nil {
		return x.Region
	}
	return ""
}

func (x *DataSource) GetWarehouseId() string {
	if x != nil {
		return x.WarehouseId
	}
	return ""
}

func (x *DataSource) GetMasterName() string {
	if x != nil {
		return x.MasterName
	}
	return ""
}

func (x *DataSource) GetMasterUsername() string {
	if x != nil {
		return x.MasterUsername
	}
	return ""
}

func (x *DataSource) GetMasterPassword() string {
	if x != nil {
		return x.MasterPassword
	}
	return ""
}

func (x *DataSource) GetRedisType() DataSource_RedisType {
	if x != nil {
		return x.RedisType
	}
	return DataSource_REDIS_TYPE_UNSPECIFIED
}

func (x *DataSource) GetExtraConnectionParameters() map[string]string {
	if x != nil {
		return x.ExtraConnectionParameters
	}
	return nil
}

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

func (x *DataSource) GetInstanceId() string {
	if x != nil {
		return x.InstanceId
	}
	return ""
}

type isDataSource_IamExtension interface {
	isDataSource_IamExtension()
}

type DataSource_AzureCredential_ struct {
	AzureCredential *DataSource_AzureCredential `protobuf:"bytes,23,opt,name=azure_credential,json=azureCredential,proto3,oneof"`
}

type DataSource_AwsCredential struct {
	AwsCredential *DataSource_AWSCredential `protobuf:"bytes,37,opt,name=aws_credential,json=awsCredential,proto3,oneof"`
}

type DataSource_GcpCredential struct {
	GcpCredential *DataSource_GCPCredential `protobuf:"bytes,38,opt,name=gcp_credential,json=gcpCredential,proto3,oneof"`
}

func (*DataSource_AzureCredential_) isDataSource_IamExtension() {}

func (*DataSource_AwsCredential) isDataSource_IamExtension() {}

func (*DataSource_GcpCredential) isDataSource_IamExtension() {}

type InstanceResource struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The display title of the instance.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// The database engine type.
	Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`
	// The version of the database engine.
	EngineVersion string `protobuf:"bytes,3,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
	// Data source configurations for the instance.
	DataSources []*DataSource `protobuf:"bytes,4,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
	// Whether the instance is activated.
	Activation bool `protobuf:"varint,5,opt,name=activation,proto3" json:"activation,omitempty"`
	// The name of the instance.
	// Format: instances/{instance} or projects/{project}/instances/{instance}
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// The environment resource.
	// Format: environments/prod where prod is the environment resource ID.
	Environment   *string `protobuf:"bytes,7,opt,name=environment,proto3,oneof" json:"environment,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *InstanceResource) Reset() {
	*x = InstanceResource{}
	mi := &file_v1_instance_service_proto_msgTypes[23]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*InstanceResource) ProtoMessage() {}

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

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

func (x *InstanceResource) GetEngine() Engine {
	if x != nil {
		return x.Engine
	}
	return Engine_ENGINE_UNSPECIFIED
}

func (x *InstanceResource) GetEngineVersion() string {
	if x != nil {
		return x.EngineVersion
	}
	return ""
}

func (x *InstanceResource) GetDataSources() []*DataSource {
	if x != nil {
		return x.DataSources
	}
	return nil
}

func (x *InstanceResource) GetActivation() bool {
	if x != nil {
		return x.Activation
	}
	return false
}

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

func (x *InstanceResource) GetEnvironment() string {
	if x != nil && x.Environment != nil {
		return *x.Environment
	}
	return ""
}

type SASLConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Mechanism:
	//
	//	*SASLConfig_KrbConfig
	Mechanism     isSASLConfig_Mechanism `protobuf_oneof:"mechanism"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SASLConfig) ProtoMessage() {}

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

func (x *SASLConfig) GetMechanism() isSASLConfig_Mechanism {
	if x != nil {
		return x.Mechanism
	}
	return nil
}

func (x *SASLConfig) GetKrbConfig() *KerberosConfig {
	if x != nil {
		if x, ok := x.Mechanism.(*SASLConfig_KrbConfig); ok {
			return x.KrbConfig
		}
	}
	return nil
}

type isSASLConfig_Mechanism interface {
	isSASLConfig_Mechanism()
}

type SASLConfig_KrbConfig struct {
	// Kerberos authentication configuration.
	KrbConfig *KerberosConfig `protobuf:"bytes,1,opt,name=krb_config,json=krbConfig,proto3,oneof"`
}

func (*SASLConfig_KrbConfig) isSASLConfig_Mechanism() {}

type KerberosConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The primary component of the Kerberos principal.
	Primary string `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"`
	// The instance component of the Kerberos principal.
	Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
	// The Kerberos realm.
	Realm string `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"`
	// The keytab file contents for authentication.
	Keytab []byte `protobuf:"bytes,4,opt,name=keytab,proto3" json:"keytab,omitempty"`
	// The hostname of the Key Distribution Center (KDC).
	KdcHost string `protobuf:"bytes,5,opt,name=kdc_host,json=kdcHost,proto3" json:"kdc_host,omitempty"`
	// The port of the Key Distribution Center (KDC).
	KdcPort string `protobuf:"bytes,6,opt,name=kdc_port,json=kdcPort,proto3" json:"kdc_port,omitempty"`
	// The transport protocol for KDC communication (tcp or udp).
	KdcTransportProtocol string `protobuf:"bytes,7,opt,name=kdc_transport_protocol,json=kdcTransportProtocol,proto3" json:"kdc_transport_protocol,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

func (x *KerberosConfig) Reset() {
	*x = KerberosConfig{}
	mi := &file_v1_instance_service_proto_msgTypes[25]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*KerberosConfig) ProtoMessage() {}

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

func (x *KerberosConfig) GetPrimary() string {
	if x != nil {
		return x.Primary
	}
	return ""
}

func (x *KerberosConfig) GetInstance() string {
	if x != nil {
		return x.Instance
	}
	return ""
}

func (x *KerberosConfig) GetRealm() string {
	if x != nil {
		return x.Realm
	}
	return ""
}

func (x *KerberosConfig) GetKeytab() []byte {
	if x != nil {
		return x.Keytab
	}
	return nil
}

func (x *KerberosConfig) GetKdcHost() string {
	if x != nil {
		return x.KdcHost
	}
	return ""
}

func (x *KerberosConfig) GetKdcPort() string {
	if x != nil {
		return x.KdcPort
	}
	return ""
}

func (x *KerberosConfig) GetKdcTransportProtocol() string {
	if x != nil {
		return x.KdcTransportProtocol
	}
	return ""
}

type DataSourceExternalSecret_AppRoleAuthOption struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The role ID for Vault AppRole authentication.
	RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// the secret id for the role without ttl.
	SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// The type of secret for AppRole authentication.
	Type DataSourceExternalSecret_AppRoleAuthOption_SecretType `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.DataSourceExternalSecret_AppRoleAuthOption_SecretType" json:"type,omitempty"`
	// The path where the approle auth method is mounted.
	MountPath     string `protobuf:"bytes,4,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DataSourceExternalSecret_AppRoleAuthOption) Reset() {
	*x = DataSourceExternalSecret_AppRoleAuthOption{}
	mi := &file_v1_instance_service_proto_msgTypes[27]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DataSourceExternalSecret_AppRoleAuthOption) ProtoMessage() {}

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

func (x *DataSourceExternalSecret_AppRoleAuthOption) GetRoleId() string {
	if x != nil {
		return x.RoleId
	}
	return ""
}

func (x *DataSourceExternalSecret_AppRoleAuthOption) GetSecretId() string {
	if x != nil {
		return x.SecretId
	}
	return ""
}

func (x *DataSourceExternalSecret_AppRoleAuthOption) GetType() DataSourceExternalSecret_AppRoleAuthOption_SecretType {
	if x != nil {
		return x.Type
	}
	return DataSourceExternalSecret_AppRoleAuthOption_SECRET_TYPE_UNSPECIFIED
}

func (x *DataSourceExternalSecret_AppRoleAuthOption) GetMountPath() string {
	if x != nil {
		return x.MountPath
	}
	return ""
}

type DataSource_AzureCredential struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	TenantId      string                 `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	ClientId      string                 `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret  string                 `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DataSource_AzureCredential) Reset() {
	*x = DataSource_AzureCredential{}
	mi := &file_v1_instance_service_proto_msgTypes[28]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DataSource_AzureCredential) ProtoMessage() {}

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

func (x *DataSource_AzureCredential) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *DataSource_AzureCredential) GetClientId() string {
	if x != nil {
		return x.ClientId
	}
	return ""
}

func (x *DataSource_AzureCredential) GetClientSecret() string {
	if x != nil {
		return x.ClientSecret
	}
	return ""
}

type DataSource_AWSCredential struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	AccessKeyId     string                 `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
	SecretAccessKey string                 `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
	SessionToken    string                 `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// ARN of IAM role to assume for cross-account access.
	// See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
	RoleArn string `protobuf:"bytes,4,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"`
	// Optional external ID for additional security when assuming role.
	// See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
	ExternalId    string `protobuf:"bytes,5,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DataSource_AWSCredential) Reset() {
	*x = DataSource_AWSCredential{}
	mi := &file_v1_instance_service_proto_msgTypes[29]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DataSource_AWSCredential) ProtoMessage() {}

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

func (x *DataSource_AWSCredential) GetAccessKeyId() string {
	if x != nil {
		return x.AccessKeyId
	}
	return ""
}

func (x *DataSource_AWSCredential) GetSecretAccessKey() string {
	if x != nil {
		return x.SecretAccessKey
	}
	return ""
}

func (x *DataSource_AWSCredential) GetSessionToken() string {
	if x != nil {
		return x.SessionToken
	}
	return ""
}

func (x *DataSource_AWSCredential) GetRoleArn() string {
	if x != nil {
		return x.RoleArn
	}
	return ""
}

func (x *DataSource_AWSCredential) GetExternalId() string {
	if x != nil {
		return x.ExternalId
	}
	return ""
}

type DataSource_GCPCredential struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Content       string                 `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DataSource_GCPCredential) Reset() {
	*x = DataSource_GCPCredential{}
	mi := &file_v1_instance_service_proto_msgTypes[30]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DataSource_GCPCredential) ProtoMessage() {}

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

func (x *DataSource_GCPCredential) GetContent() string {
	if x != nil {
		return x.Content
	}
	return ""
}

type DataSource_Address struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Host          string                 `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port          string                 `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DataSource_Address) Reset() {
	*x = DataSource_Address{}
	mi := &file_v1_instance_service_proto_msgTypes[31]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DataSource_Address) ProtoMessage() {}

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

func (x *DataSource_Address) GetHost() string {
	if x != nil {
		return x.Host
	}
	return ""
}

func (x *DataSource_Address) GetPort() string {
	if x != nil {
		return x.Port
	}
	return ""
}

var File_v1_instance_service_proto protoreflect.FileDescriptor

const file_v1_instance_service_proto_rawDesc = "" +
	"\n" +
	"\x19v1/instance_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\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x1ev1/instance_role_service.proto\"G\n" +
	"\x12GetInstanceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\"\xec\x01\n" +
	"\x14ListInstancesRequest\x127\n" +
	"\x06parent\x18\x06 \x01(\tB\x1a\xfaA\x17\x12\x15bytebase.com/InstanceH\x00R\x06parent\x88\x01\x01\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\aorderByB\t\n" +
	"\a_parent\"t\n" +
	"\x15ListInstancesResponse\x123\n" +
	"\tinstances\x18\x01 \x03(\v2\x15.bytebase.v1.InstanceR\tinstances\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xf9\x01\n" +
	"\x15CreateInstanceRequest\x127\n" +
	"\x06parent\x18\x05 \x01(\tB\x1a\xfaA\x17\x12\x15bytebase.com/InstanceH\x00R\x06parent\x88\x01\x01\x126\n" +
	"\binstance\x18\x01 \x01(\v2\x15.bytebase.v1.InstanceB\x03\xe0A\x02R\binstance\x12\x1f\n" +
	"\vinstance_id\x18\x02 \x01(\tR\n" +
	"instanceId\x12#\n" +
	"\rvalidate_only\x18\x03 \x01(\bR\fvalidateOnlyB\t\n" +
	"\a_parentJ\x04\b\x04\x10\x05R\x18initial_database_project\"[\n" +
	"#PrepareSampleProjectInstanceRequest\x124\n" +
	"\x06parent\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
	"\x14bytebase.com/ProjectR\x06parent\"\xb1\x01\n" +
	"\x15UpdateInstanceRequest\x126\n" +
	"\binstance\x18\x01 \x01(\v2\x15.bytebase.v1.InstanceB\x03\xe0A\x02R\binstance\x12;\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\x12#\n" +
	"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"v\n" +
	"\x15DeleteInstanceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\x12\x14\n" +
	"\x05force\x18\x02 \x01(\bR\x05force\x12\x14\n" +
	"\x05purge\x18\x03 \x01(\bR\x05purge\"L\n" +
	"\x17UndeleteInstanceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\"r\n" +
	"\x13SyncInstanceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\x12(\n" +
	"\x10enable_full_sync\x18\x02 \x01(\bR\x0eenableFullSync\"\x9a\x01\n" +
	"\x1bListInstanceDatabaseRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\x12;\n" +
	"\binstance\x18\x02 \x01(\v2\x15.bytebase.v1.InstanceB\x03\xe0A\x02H\x00R\binstance\x88\x01\x01B\v\n" +
	"\t_instance\"<\n" +
	"\x1cListInstanceDatabaseResponse\x12\x1c\n" +
	"\tdatabases\x18\x01 \x03(\tR\tdatabases\"4\n" +
	"\x14SyncInstanceResponse\x12\x1c\n" +
	"\tdatabases\x18\x01 \x03(\tR\tdatabases\"\xa2\x01\n" +
	"\x19BatchSyncInstancesRequest\x127\n" +
	"\x06parent\x18\x02 \x01(\tB\x1a\xfaA\x17\x12\x15bytebase.com/InstanceH\x00R\x06parent\x88\x01\x01\x12A\n" +
	"\brequests\x18\x01 \x03(\v2 .bytebase.v1.SyncInstanceRequestB\x03\xe0A\x02R\brequestsB\t\n" +
	"\a_parent\"\x1c\n" +
	"\x1aBatchSyncInstancesResponse\"\xa6\x01\n" +
	"\x1bBatchUpdateInstancesRequest\x127\n" +
	"\x06parent\x18\x02 \x01(\tB\x1a\xfaA\x17\x12\x15bytebase.com/InstanceH\x00R\x06parent\x88\x01\x01\x12C\n" +
	"\brequests\x18\x01 \x03(\v2\".bytebase.v1.UpdateInstanceRequestB\x03\xe0A\x02R\brequestsB\t\n" +
	"\a_parent\"S\n" +
	"\x1cBatchUpdateInstancesResponse\x123\n" +
	"\tinstances\x18\x01 \x03(\v2\x15.bytebase.v1.InstanceR\tinstances\"\xad\x01\n" +
	"\x14AddDataSourceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\x12=\n" +
	"\vdata_source\x18\x02 \x01(\v2\x17.bytebase.v1.DataSourceB\x03\xe0A\x02R\n" +
	"dataSource\x12#\n" +
	"\rvalidate_only\x18\x03 \x01(\bR\fvalidateOnly\"\x8b\x01\n" +
	"\x17RemoveDataSourceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\x12=\n" +
	"\vdata_source\x18\x02 \x01(\v2\x17.bytebase.v1.DataSourceB\x03\xe0A\x02R\n" +
	"dataSource\"\x92\x02\n" +
	"\x17UpdateDataSourceRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15bytebase.com/InstanceR\x04name\x12=\n" +
	"\vdata_source\x18\x02 \x01(\v2\x17.bytebase.v1.DataSourceB\x03\xe0A\x02R\n" +
	"dataSource\x12;\n" +
	"\vupdate_mask\x18\x03 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\x12#\n" +
	"\rvalidate_only\x18\x04 \x01(\bR\fvalidateOnly\x12#\n" +
	"\rallow_missing\x18\x05 \x01(\bR\fallowMissing\"-\n" +
	"\rSyncDatabases\x12\x1c\n" +
	"\tdatabases\x18\x01 \x03(\tR\tdatabases\"\xdb\x06\n" +
	"\bInstance\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +
	"\x05state\x18\x03 \x01(\x0e2\x12.bytebase.v1.StateR\x05state\x12\x1e\n" +
	"\x05title\x18\x04 \x01(\tB\b\xbaH\x05r\x03\x18\xc8\x01R\x05title\x12+\n" +
	"\x06engine\x18\x05 \x01(\x0e2\x13.bytebase.v1.EngineR\x06engine\x12*\n" +
	"\x0eengine_version\x18\x06 \x01(\tB\x03\xe0A\x03R\rengineVersion\x12#\n" +
	"\rexternal_link\x18\a \x01(\tR\fexternalLink\x12:\n" +
	"\fdata_sources\x18\b \x03(\v2\x17.bytebase.v1.DataSourceR\vdataSources\x12*\n" +
	"\venvironment\x18\t \x01(\tB\x03\xe0A\x01H\x00R\venvironment\x88\x01\x01\x12\x1e\n" +
	"\n" +
	"activation\x18\n" +
	" \x01(\bR\n" +
	"activation\x124\n" +
	"\x05roles\x18\v \x03(\v2\x19.bytebase.v1.InstanceRoleB\x03\xe0A\x03R\x05roles\x12>\n" +
	"\rsync_interval\x18\f \x01(\v2\x19.google.protobuf.DurationR\fsyncInterval\x12A\n" +
	"\x0esync_databases\x18\x0e \x01(\v2\x1a.bytebase.v1.SyncDatabasesR\rsyncDatabases\x12E\n" +
	"\x0elast_sync_time\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\flastSyncTime\x129\n" +
	"\x06labels\x18\x10 \x03(\v2!.bytebase.v1.Instance.LabelsEntryR\x06labels\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:Y\xeaAV\n" +
	"\x15bytebase.com/Instance\x12\x14instances/{instance}\x12'projects/{project}/instances/{instance}B\x0e\n" +
	"\f_environmentJ\x04\b\x02\x10\x03J\x04\b\r\x10\x0e\"\x8a\n" +
	"\n" +
	"\x18DataSourceExternalSecret\x12Q\n" +
	"\vsecret_type\x18\x01 \x01(\x0e20.bytebase.v1.DataSourceExternalSecret.SecretTypeR\n" +
	"secretType\x12\x10\n" +
	"\x03url\x18\x02 \x01(\tR\x03url\x12K\n" +
	"\tauth_type\x18\x03 \x01(\x0e2..bytebase.v1.DataSourceExternalSecret.AuthTypeR\bauthType\x12T\n" +
	"\bapp_role\x18\x04 \x01(\v27.bytebase.v1.DataSourceExternalSecret.AppRoleAuthOptionH\x00R\aappRole\x12\x1f\n" +
	"\x05token\x18\x05 \x01(\tB\a\xe0A\x04\xd0\xea0\x01H\x00R\x05token\x12N\n" +
	"\n" +
	"token_type\x18\r \x01(\x0e2/.bytebase.v1.DataSourceExternalSecret.TokenTypeR\ttokenType\x12\x1f\n" +
	"\vengine_name\x18\x06 \x01(\tR\n" +
	"engineName\x12\x1f\n" +
	"\vsecret_name\x18\a \x01(\tR\n" +
	"secretName\x12*\n" +
	"\x11password_key_name\x18\b \x01(\tR\x0fpasswordKeyName\x12=\n" +
	"\x1bskip_vault_tls_verification\x18\t \x01(\bR\x18skipVaultTlsVerification\x12)\n" +
	"\fvault_ssl_ca\x18\n" +
	" \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\n" +
	"vaultSslCa\x12-\n" +
	"\x0evault_ssl_cert\x18\v \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\fvaultSslCert\x12+\n" +
	"\rvault_ssl_key\x18\f \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\vvaultSslKey\x1a\x99\x02\n" +
	"\x11AppRoleAuthOption\x12 \n" +
	"\arole_id\x18\x01 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x06roleId\x12$\n" +
	"\tsecret_id\x18\x02 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\bsecretId\x12V\n" +
	"\x04type\x18\x03 \x01(\x0e2B.bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretTypeR\x04type\x12\x1d\n" +
	"\n" +
	"mount_path\x18\x04 \x01(\tR\tmountPath\"E\n" +
	"\n" +
	"SecretType\x12\x1b\n" +
	"\x17SECRET_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05PLAIN\x10\x01\x12\x0f\n" +
	"\vENVIRONMENT\x10\x02\"\x80\x01\n" +
	"\n" +
	"SecretType\x12\x1b\n" +
	"\x17SECRET_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n" +
	"\vVAULT_KV_V2\x10\x01\x12\x17\n" +
	"\x13AWS_SECRETS_MANAGER\x10\x02\x12\x16\n" +
	"\x12GCP_SECRET_MANAGER\x10\x03\x12\x13\n" +
	"\x0fAZURE_KEY_VAULT\x10\x04\"D\n" +
	"\bAuthType\x12\x19\n" +
	"\x15AUTH_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05TOKEN\x10\x01\x12\x12\n" +
	"\x0eVAULT_APP_ROLE\x10\x02\"M\n" +
	"\tTokenType\x12\x1a\n" +
	"\x16TOKEN_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05PLAIN\x10\x01\x12\x0f\n" +
	"\vENVIRONMENT\x10\x02\x12\b\n" +
	"\x04FILE\x10\x03B\r\n" +
	"\vauth_option\"\xc0\x19\n" +
	"\n" +
	"DataSource\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12/\n" +
	"\x04type\x18\x02 \x01(\x0e2\x1b.bytebase.v1.DataSourceTypeR\x04type\x12\x1a\n" +
	"\busername\x18\x03 \x01(\tR\busername\x12#\n" +
	"\bpassword\x18\x04 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\bpassword\x12\x17\n" +
	"\ause_ssl\x18\x1e \x01(\bR\x06useSsl\x12\x1e\n" +
	"\x06ssl_ca\x18\x05 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x05sslCa\x12\"\n" +
	"\bssl_cert\x18\x06 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\asslCert\x12 \n" +
	"\assl_key\x18\a \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x06sslKey\x12'\n" +
	"\vssl_ca_path\x18) \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\tsslCaPath\x12+\n" +
	"\rssl_cert_path\x18* \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\vsslCertPath\x12)\n" +
	"\fssl_key_path\x18+ \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\n" +
	"sslKeyPath\x12!\n" +
	"\n" +
	"ssl_ca_set\x18, \x01(\bB\x03\xe0A\x03R\bsslCaSet\x12%\n" +
	"\fssl_cert_set\x18- \x01(\bB\x03\xe0A\x03R\n" +
	"sslCertSet\x12#\n" +
	"\vssl_key_set\x18. \x01(\bB\x03\xe0A\x03R\tsslKeySet\x12*\n" +
	"\x0fssl_ca_path_set\x18/ \x01(\bB\x03\xe0A\x03R\fsslCaPathSet\x12.\n" +
	"\x11ssl_cert_path_set\x180 \x01(\bB\x03\xe0A\x03R\x0esslCertPathSet\x12,\n" +
	"\x10ssl_key_path_set\x181 \x01(\bB\x03\xe0A\x03R\rsslKeyPathSet\x124\n" +
	"\x16verify_tls_certificate\x18' \x01(\bR\x14verifyTlsCertificate\x12\x12\n" +
	"\x04host\x18\b \x01(\tR\x04host\x12\x12\n" +
	"\x04port\x18\t \x01(\tR\x04port\x12\x1a\n" +
	"\bdatabase\x18\n" +
	" \x01(\tR\bdatabase\x12\x10\n" +
	"\x03srv\x18\v \x01(\bR\x03srv\x127\n" +
	"\x17authentication_database\x18\f \x01(\tR\x16authenticationDatabase\x12\x1f\n" +
	"\vreplica_set\x18\x19 \x01(\tR\n" +
	"replicaSet\x12\x10\n" +
	"\x03sid\x18\r \x01(\tR\x03sid\x12!\n" +
	"\fservice_name\x18\x0e \x01(\tR\vserviceName\x12\x19\n" +
	"\bssh_host\x18\x0f \x01(\tR\asshHost\x12\x19\n" +
	"\bssh_port\x18\x10 \x01(\tR\asshPort\x12\x19\n" +
	"\bssh_user\x18\x11 \x01(\tR\asshUser\x12*\n" +
	"\fssh_password\x18\x12 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\vsshPassword\x12/\n" +
	"\x0fssh_private_key\x18\x13 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\rsshPrivateKey\x12E\n" +
	"\x1aauthentication_private_key\x18\x14 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x18authenticationPrivateKey\x12Z\n" +
	"%authentication_private_key_passphrase\x18( \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\"authenticationPrivateKeyPassphrase\x12N\n" +
	"\x0fexternal_secret\x18\x15 \x01(\v2%.bytebase.v1.DataSourceExternalSecretR\x0eexternalSecret\x12[\n" +
	"\x13authentication_type\x18\x16 \x01(\x0e2*.bytebase.v1.DataSource.AuthenticationTypeR\x12authenticationType\x12Q\n" +
	"\x11cloud_sql_ip_type\x188 \x01(\x0e2&.bytebase.v1.DataSource.CloudSQLIPTypeR\x0ecloudSqlIpType\x12T\n" +
	"\x10azure_credential\x18\x17 \x01(\v2'.bytebase.v1.DataSource.AzureCredentialH\x00R\x0fazureCredential\x12N\n" +
	"\x0eaws_credential\x18% \x01(\v2%.bytebase.v1.DataSource.AWSCredentialH\x00R\rawsCredential\x12N\n" +
	"\x0egcp_credential\x18& \x01(\v2%.bytebase.v1.DataSource.GCPCredentialH\x00R\rgcpCredential\x128\n" +
	"\vsasl_config\x18\x18 \x01(\v2\x17.bytebase.v1.SASLConfigR\n" +
	"saslConfig\x12W\n" +
	"\x14additional_addresses\x18\x1a \x03(\v2\x1f.bytebase.v1.DataSource.AddressB\x03\xe0A\x01R\x13additionalAddresses\x12+\n" +
	"\x11direct_connection\x18\x1b \x01(\bR\x10directConnection\x12\x16\n" +
	"\x06region\x18\x1c \x01(\tR\x06region\x12!\n" +
	"\fwarehouse_id\x18\x1d \x01(\tR\vwarehouseId\x12\x1f\n" +
	"\vmaster_name\x18\x1f \x01(\tR\n" +
	"masterName\x12'\n" +
	"\x0fmaster_username\x18  \x01(\tR\x0emasterUsername\x120\n" +
	"\x0fmaster_password\x18! \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x0emasterPassword\x12@\n" +
	"\n" +
	"redis_type\x18\" \x01(\x0e2!.bytebase.v1.DataSource.RedisTypeR\tredisType\x12v\n" +
	"\x1bextra_connection_parameters\x18$ \x03(\v26.bytebase.v1.DataSource.ExtraConnectionParametersEntryR\x19extraConnectionParameters\x12\x1d\n" +
	"\n" +
	"project_id\x189 \x01(\tR\tprojectId\x12\x1f\n" +
	"\vinstance_id\x18: \x01(\tR\n" +
	"instanceId\x1ay\n" +
	"\x0fAzureCredential\x12\x1b\n" +
	"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1b\n" +
	"\tclient_id\x18\x02 \x01(\tR\bclientId\x12,\n" +
	"\rclient_secret\x18\x03 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\fclientSecret\x1a\xed\x01\n" +
	"\rAWSCredential\x12+\n" +
	"\raccess_key_id\x18\x01 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\vaccessKeyId\x123\n" +
	"\x11secret_access_key\x18\x02 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\x0fsecretAccessKey\x12,\n" +
	"\rsession_token\x18\x03 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\fsessionToken\x12\"\n" +
	"\brole_arn\x18\x04 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\aroleArn\x12(\n" +
	"\vexternal_id\x18\x05 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\n" +
	"externalId\x1a2\n" +
	"\rGCPCredential\x12!\n" +
	"\acontent\x18\x01 \x01(\tB\a\xe0A\x04\xd0\xea0\x01R\acontent\x1a1\n" +
	"\aAddress\x12\x12\n" +
	"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
	"\x04port\x18\x02 \x01(\tR\x04port\x1aL\n" +
	"\x1eExtraConnectionParametersEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"|\n" +
	"\x12AuthenticationType\x12\x1e\n" +
	"\x1aAUTHENTICATION_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bPASSWORD\x10\x01\x12\x18\n" +
	"\x14GOOGLE_CLOUD_SQL_IAM\x10\x02\x12\x0f\n" +
	"\vAWS_RDS_IAM\x10\x03\x12\r\n" +
	"\tAZURE_IAM\x10\x04\"U\n" +
	"\x0eCloudSQLIPType\x12!\n" +
	"\x1dCLOUD_SQL_IP_TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06PUBLIC\x10\x01\x12\v\n" +
	"\aPRIVATE\x10\x02\x12\a\n" +
	"\x03PSC\x10\x03\"R\n" +
	"\tRedisType\x12\x1a\n" +
	"\x16REDIS_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n" +
	"\n" +
	"STANDALONE\x10\x01\x12\f\n" +
	"\bSENTINEL\x10\x02\x12\v\n" +
	"\aCLUSTER\x10\x03B\x0f\n" +
	"\riam_extensionJ\x04\b#\x10$J\x04\b2\x108\"\xa8\x02\n" +
	"\x10InstanceResource\x12\x14\n" +
	"\x05title\x18\x01 \x01(\tR\x05title\x12+\n" +
	"\x06engine\x18\x02 \x01(\x0e2\x13.bytebase.v1.EngineR\x06engine\x12*\n" +
	"\x0eengine_version\x18\x03 \x01(\tB\x03\xe0A\x03R\rengineVersion\x12:\n" +
	"\fdata_sources\x18\x04 \x03(\v2\x17.bytebase.v1.DataSourceR\vdataSources\x12\x1e\n" +
	"\n" +
	"activation\x18\x05 \x01(\bR\n" +
	"activation\x12\x12\n" +
	"\x04name\x18\x06 \x01(\tR\x04name\x12%\n" +
	"\venvironment\x18\a \x01(\tH\x00R\venvironment\x88\x01\x01B\x0e\n" +
	"\f_environment\"W\n" +
	"\n" +
	"SASLConfig\x12<\n" +
	"\n" +
	"krb_config\x18\x01 \x01(\v2\x1b.bytebase.v1.KerberosConfigH\x00R\tkrbConfigB\v\n" +
	"\tmechanism\"\xe9\x01\n" +
	"\x0eKerberosConfig\x12\x18\n" +
	"\aprimary\x18\x01 \x01(\tR\aprimary\x12\x1a\n" +
	"\binstance\x18\x02 \x01(\tR\binstance\x12\x14\n" +
	"\x05realm\x18\x03 \x01(\tR\x05realm\x12\x1f\n" +
	"\x06keytab\x18\x04 \x01(\fB\a\xe0A\x04\xd0\xea0\x01R\x06keytab\x12\x19\n" +
	"\bkdc_host\x18\x05 \x01(\tR\akdcHost\x12\x19\n" +
	"\bkdc_port\x18\x06 \x01(\tR\akdcPort\x124\n" +
	"\x16kdc_transport_protocol\x18\a \x01(\tR\x14kdcTransportProtocol*G\n" +
	"\x0eDataSourceType\x12\x1b\n" +
	"\x17DATA_SOURCE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05ADMIN\x10\x01\x12\r\n" +
	"\tREAD_ONLY\x10\x022\x95\x18\n" +
	"\x0fInstanceService\x12\xad\x01\n" +
	"\vGetInstance\x12\x1f.bytebase.v1.GetInstanceRequest\x1a\x15.bytebase.v1.Instance\"f\xdaA\x04name\x8a\xea0\x10bb.instances.get\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02=Z#\x12!/v1/{name=projects/*/instances/*}\x12\x16/v1/{name=instances/*}\x12\xb2\x01\n" +
	"\rListInstances\x12!.bytebase.v1.ListInstancesRequest\x1a\".bytebase.v1.ListInstancesResponse\"Z\xdaA\x00\x8a\xea0\x11bb.instances.list\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x024Z#\x12!/v1/{parent=projects/*}/instances\x12\r/v1/instances\x12\xce\x01\n" +
	"\x0eCreateInstance\x12\".bytebase.v1.CreateInstanceRequest\x1a\x15.bytebase.v1.Instance\"\x80\x01\xdaA\binstance\x8a\xea0\x13bb.instances.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02H:\binstanceZ-:\binstance\"!/v1/{parent=projects/*}/instances\"\r/v1/instances\x12\xe2\x01\n" +
	"\x1cPrepareSampleProjectInstance\x120.bytebase.v1.PrepareSampleProjectInstanceRequest\x1a\x15.bytebase.v1.Instance\"y\xdaA\x06parent\x8a\xea0\x13bb.instances.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02C:\x01*\">/v1/{parent=projects/*}/instances:prepareSampleProjectInstance\x12\xf5\x01\n" +
	"\x0eUpdateInstance\x12\".bytebase.v1.UpdateInstanceRequest\x1a\x15.bytebase.v1.Instance\"\xa7\x01\xdaA\x14instance,update_mask\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02c:\binstanceZ6:\binstance2*/v1/{instance.name=projects/*/instances/*}2\x1f/v1/{instance.name=instances/*}\x12\xbf\x01\n" +
	"\x0eDeleteInstance\x12\".bytebase.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"q\xdaA\x04name\x8a\xea0\x13bb.instances.delete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02=Z#*!/v1/{name=projects/*/instances/*}*\x16/v1/{name=instances/*}\x12\xd6\x01\n" +
	"\x10UndeleteInstance\x12$.bytebase.v1.UndeleteInstanceRequest\x1a\x15.bytebase.v1.Instance\"\x84\x01\x8a\xea0\x15bb.instances.undelete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02U:\x01*Z/:\x01*\"*/v1/{name=projects/*/instances/*}:undelete\"\x1f/v1/{name=instances/*}:undelete\x12\xc5\x01\n" +
	"\fSyncInstance\x12 .bytebase.v1.SyncInstanceRequest\x1a!.bytebase.v1.SyncInstanceResponse\"p\x8a\xea0\x11bb.instances.sync\x90\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02M:\x01*Z+:\x01*\"&/v1/{name=projects/*/instances/*}:sync\"\x1b/v1/{name=instances/*}:sync\x12\xea\x01\n" +
	"\x14ListInstanceDatabase\x12(.bytebase.v1.ListInstanceDatabaseRequest\x1a).bytebase.v1.ListInstanceDatabaseResponse\"}\x8a\xea0\x10bb.instances.get\x90\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02W:\x01*Z0:\x01*\"+/v1/{name=projects/*/instances/*}:databases\" /v1/{name=instances/*}:databases\x12\xd8\x01\n" +
	"\x12BatchSyncInstances\x12&.bytebase.v1.BatchSyncInstancesRequest\x1a'.bytebase.v1.BatchSyncInstancesResponse\"q\x8a\xea0\x11bb.instances.sync\x90\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02N:\x01*Z0:\x01*\"+/v1/{parent=projects/*}/instances:batchSync\"\x17/v1/instances:batchSync\x12\xec\x01\n" +
	"\x14BatchUpdateInstances\x12(.bytebase.v1.BatchUpdateInstancesRequest\x1a).bytebase.v1.BatchUpdateInstancesResponse\"\x7f\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02R:\x01*Z2:\x01*\"-/v1/{parent=projects/*}/instances:batchUpdate\"\x19/v1/instances:batchUpdate\x12\xd8\x01\n" +
	"\rAddDataSource\x12!.bytebase.v1.AddDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\x8c\x01\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02_:\x01*Z4:\x01*\"//v1/{name=projects/*/instances/*}:addDataSource\"$/v1/{name=instances/*}:addDataSource\x12\xe4\x01\n" +
	"\x10RemoveDataSource\x12$.bytebase.v1.RemoveDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\x92\x01\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02e:\x01*Z7:\x01*\"2/v1/{name=projects/*/instances/*}:removeDataSource\"'/v1/{name=instances/*}:removeDataSource\x12\x92\x02\n" +
	"\x10UpdateDataSource\x12$.bytebase.v1.UpdateDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\xc0\x01\xdaA\x17data_source,update_mask\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02y:\vdata_sourceZA:\vdata_source22/v1/{name=projects/*/instances/*}:updateDataSource2'/v1/{name=instances/*}:updateDataSourceB\xaa\x01\n" +
	"\x0fcom.bytebase.v1B\x14InstanceServiceProtoP\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_instance_service_proto_rawDescOnce sync.Once
	file_v1_instance_service_proto_rawDescData []byte
)

func file_v1_instance_service_proto_rawDescGZIP() []byte {
	file_v1_instance_service_proto_rawDescOnce.Do(func() {
		file_v1_instance_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_instance_service_proto_rawDesc), len(file_v1_instance_service_proto_rawDesc)))
	})
	return file_v1_instance_service_proto_rawDescData
}

var file_v1_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 8)
var file_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
var file_v1_instance_service_proto_goTypes = []any{
	(DataSourceType)(0),                                        // 0: bytebase.v1.DataSourceType
	(DataSourceExternalSecret_SecretType)(0),                   // 1: bytebase.v1.DataSourceExternalSecret.SecretType
	(DataSourceExternalSecret_AuthType)(0),                     // 2: bytebase.v1.DataSourceExternalSecret.AuthType
	(DataSourceExternalSecret_TokenType)(0),                    // 3: bytebase.v1.DataSourceExternalSecret.TokenType
	(DataSourceExternalSecret_AppRoleAuthOption_SecretType)(0), // 4: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType
	(DataSource_AuthenticationType)(0),                         // 5: bytebase.v1.DataSource.AuthenticationType
	(DataSource_CloudSQLIPType)(0),                             // 6: bytebase.v1.DataSource.CloudSQLIPType
	(DataSource_RedisType)(0),                                  // 7: bytebase.v1.DataSource.RedisType
	(*GetInstanceRequest)(nil),                                 // 8: bytebase.v1.GetInstanceRequest
	(*ListInstancesRequest)(nil),                               // 9: bytebase.v1.ListInstancesRequest
	(*ListInstancesResponse)(nil),                              // 10: bytebase.v1.ListInstancesResponse
	(*CreateInstanceRequest)(nil),                              // 11: bytebase.v1.CreateInstanceRequest
	(*PrepareSampleProjectInstanceRequest)(nil),                // 12: bytebase.v1.PrepareSampleProjectInstanceRequest
	(*UpdateInstanceRequest)(nil),                              // 13: bytebase.v1.UpdateInstanceRequest
	(*DeleteInstanceRequest)(nil),                              // 14: bytebase.v1.DeleteInstanceRequest
	(*UndeleteInstanceRequest)(nil),                            // 15: bytebase.v1.UndeleteInstanceRequest
	(*SyncInstanceRequest)(nil),                                // 16: bytebase.v1.SyncInstanceRequest
	(*ListInstanceDatabaseRequest)(nil),                        // 17: bytebase.v1.ListInstanceDatabaseRequest
	(*ListInstanceDatabaseResponse)(nil),                       // 18: bytebase.v1.ListInstanceDatabaseResponse
	(*SyncInstanceResponse)(nil),                               // 19: bytebase.v1.SyncInstanceResponse
	(*BatchSyncInstancesRequest)(nil),                          // 20: bytebase.v1.BatchSyncInstancesRequest
	(*BatchSyncInstancesResponse)(nil),                         // 21: bytebase.v1.BatchSyncInstancesResponse
	(*BatchUpdateInstancesRequest)(nil),                        // 22: bytebase.v1.BatchUpdateInstancesRequest
	(*BatchUpdateInstancesResponse)(nil),                       // 23: bytebase.v1.BatchUpdateInstancesResponse
	(*AddDataSourceRequest)(nil),                               // 24: bytebase.v1.AddDataSourceRequest
	(*RemoveDataSourceRequest)(nil),                            // 25: bytebase.v1.RemoveDataSourceRequest
	(*UpdateDataSourceRequest)(nil),                            // 26: bytebase.v1.UpdateDataSourceRequest
	(*SyncDatabases)(nil),                                      // 27: bytebase.v1.SyncDatabases
	(*Instance)(nil),                                           // 28: bytebase.v1.Instance
	(*DataSourceExternalSecret)(nil),                           // 29: bytebase.v1.DataSourceExternalSecret
	(*DataSource)(nil),                                         // 30: bytebase.v1.DataSource
	(*InstanceResource)(nil),                                   // 31: bytebase.v1.InstanceResource
	(*SASLConfig)(nil),                                         // 32: bytebase.v1.SASLConfig
	(*KerberosConfig)(nil),                                     // 33: bytebase.v1.KerberosConfig
	nil,                                                        // 34: bytebase.v1.Instance.LabelsEntry
	(*DataSourceExternalSecret_AppRoleAuthOption)(nil),         // 35: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
	(*DataSource_AzureCredential)(nil),                         // 36: bytebase.v1.DataSource.AzureCredential
	(*DataSource_AWSCredential)(nil),                           // 37: bytebase.v1.DataSource.AWSCredential
	(*DataSource_GCPCredential)(nil),                           // 38: bytebase.v1.DataSource.GCPCredential
	(*DataSource_Address)(nil),                                 // 39: bytebase.v1.DataSource.Address
	nil,                                                        // 40: bytebase.v1.DataSource.ExtraConnectionParametersEntry
	(*fieldmaskpb.FieldMask)(nil),                              // 41: google.protobuf.FieldMask
	(State)(0),                                                 // 42: bytebase.v1.State
	(Engine)(0),                                                // 43: bytebase.v1.Engine
	(*InstanceRole)(nil),                                       // 44: bytebase.v1.InstanceRole
	(*durationpb.Duration)(nil),                                // 45: google.protobuf.Duration
	(*timestamppb.Timestamp)(nil),                              // 46: google.protobuf.Timestamp
	(*emptypb.Empty)(nil),                                      // 47: google.protobuf.Empty
}
var file_v1_instance_service_proto_depIdxs = []int32{
	28, // 0: bytebase.v1.ListInstancesResponse.instances:type_name -> bytebase.v1.Instance
	28, // 1: bytebase.v1.CreateInstanceRequest.instance:type_name -> bytebase.v1.Instance
	28, // 2: bytebase.v1.UpdateInstanceRequest.instance:type_name -> bytebase.v1.Instance
	41, // 3: bytebase.v1.UpdateInstanceRequest.update_mask:type_name -> google.protobuf.FieldMask
	28, // 4: bytebase.v1.ListInstanceDatabaseRequest.instance:type_name -> bytebase.v1.Instance
	16, // 5: bytebase.v1.BatchSyncInstancesRequest.requests:type_name -> bytebase.v1.SyncInstanceRequest
	13, // 6: bytebase.v1.BatchUpdateInstancesRequest.requests:type_name -> bytebase.v1.UpdateInstanceRequest
	28, // 7: bytebase.v1.BatchUpdateInstancesResponse.instances:type_name -> bytebase.v1.Instance
	30, // 8: bytebase.v1.AddDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
	30, // 9: bytebase.v1.RemoveDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
	30, // 10: bytebase.v1.UpdateDataSourceRequest.data_source:type_name -> bytebase.v1.DataSource
	41, // 11: bytebase.v1.UpdateDataSourceRequest.update_mask:type_name -> google.protobuf.FieldMask
	42, // 12: bytebase.v1.Instance.state:type_name -> bytebase.v1.State
	43, // 13: bytebase.v1.Instance.engine:type_name -> bytebase.v1.Engine
	30, // 14: bytebase.v1.Instance.data_sources:type_name -> bytebase.v1.DataSource
	44, // 15: bytebase.v1.Instance.roles:type_name -> bytebase.v1.InstanceRole
	45, // 16: bytebase.v1.Instance.sync_interval:type_name -> google.protobuf.Duration
	27, // 17: bytebase.v1.Instance.sync_databases:type_name -> bytebase.v1.SyncDatabases
	46, // 18: bytebase.v1.Instance.last_sync_time:type_name -> google.protobuf.Timestamp
	34, // 19: bytebase.v1.Instance.labels:type_name -> bytebase.v1.Instance.LabelsEntry
	1,  // 20: bytebase.v1.DataSourceExternalSecret.secret_type:type_name -> bytebase.v1.DataSourceExternalSecret.SecretType
	2,  // 21: bytebase.v1.DataSourceExternalSecret.auth_type:type_name -> bytebase.v1.DataSourceExternalSecret.AuthType
	35, // 22: bytebase.v1.DataSourceExternalSecret.app_role:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
	3,  // 23: bytebase.v1.DataSourceExternalSecret.token_type:type_name -> bytebase.v1.DataSourceExternalSecret.TokenType
	0,  // 24: bytebase.v1.DataSource.type:type_name -> bytebase.v1.DataSourceType
	29, // 25: bytebase.v1.DataSource.external_secret:type_name -> bytebase.v1.DataSourceExternalSecret
	5,  // 26: bytebase.v1.DataSource.authentication_type:type_name -> bytebase.v1.DataSource.AuthenticationType
	6,  // 27: bytebase.v1.DataSource.cloud_sql_ip_type:type_name -> bytebase.v1.DataSource.CloudSQLIPType
	36, // 28: bytebase.v1.DataSource.azure_credential:type_name -> bytebase.v1.DataSource.AzureCredential
	37, // 29: bytebase.v1.DataSource.aws_credential:type_name -> bytebase.v1.DataSource.AWSCredential
	38, // 30: bytebase.v1.DataSource.gcp_credential:type_name -> bytebase.v1.DataSource.GCPCredential
	32, // 31: bytebase.v1.DataSource.sasl_config:type_name -> bytebase.v1.SASLConfig
	39, // 32: bytebase.v1.DataSource.additional_addresses:type_name -> bytebase.v1.DataSource.Address
	7,  // 33: bytebase.v1.DataSource.redis_type:type_name -> bytebase.v1.DataSource.RedisType
	40, // 34: bytebase.v1.DataSource.extra_connection_parameters:type_name -> bytebase.v1.DataSource.ExtraConnectionParametersEntry
	43, // 35: bytebase.v1.InstanceResource.engine:type_name -> bytebase.v1.Engine
	30, // 36: bytebase.v1.InstanceResource.data_sources:type_name -> bytebase.v1.DataSource
	33, // 37: bytebase.v1.SASLConfig.krb_config:type_name -> bytebase.v1.KerberosConfig
	4,  // 38: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType
	8,  // 39: bytebase.v1.InstanceService.GetInstance:input_type -> bytebase.v1.GetInstanceRequest
	9,  // 40: bytebase.v1.InstanceService.ListInstances:input_type -> bytebase.v1.ListInstancesRequest
	11, // 41: bytebase.v1.InstanceService.CreateInstance:input_type -> bytebase.v1.CreateInstanceRequest
	12, // 42: bytebase.v1.InstanceService.PrepareSampleProjectInstance:input_type -> bytebase.v1.PrepareSampleProjectInstanceRequest
	13, // 43: bytebase.v1.InstanceService.UpdateInstance:input_type -> bytebase.v1.UpdateInstanceRequest
	14, // 44: bytebase.v1.InstanceService.DeleteInstance:input_type -> bytebase.v1.DeleteInstanceRequest
	15, // 45: bytebase.v1.InstanceService.UndeleteInstance:input_type -> bytebase.v1.UndeleteInstanceRequest
	16, // 46: bytebase.v1.InstanceService.SyncInstance:input_type -> bytebase.v1.SyncInstanceRequest
	17, // 47: bytebase.v1.InstanceService.ListInstanceDatabase:input_type -> bytebase.v1.ListInstanceDatabaseRequest
	20, // 48: bytebase.v1.InstanceService.BatchSyncInstances:input_type -> bytebase.v1.BatchSyncInstancesRequest
	22, // 49: bytebase.v1.InstanceService.BatchUpdateInstances:input_type -> bytebase.v1.BatchUpdateInstancesRequest
	24, // 50: bytebase.v1.InstanceService.AddDataSource:input_type -> bytebase.v1.AddDataSourceRequest
	25, // 51: bytebase.v1.InstanceService.RemoveDataSource:input_type -> bytebase.v1.RemoveDataSourceRequest
	26, // 52: bytebase.v1.InstanceService.UpdateDataSource:input_type -> bytebase.v1.UpdateDataSourceRequest
	28, // 53: bytebase.v1.InstanceService.GetInstance:output_type -> bytebase.v1.Instance
	10, // 54: bytebase.v1.InstanceService.ListInstances:output_type -> bytebase.v1.ListInstancesResponse
	28, // 55: bytebase.v1.InstanceService.CreateInstance:output_type -> bytebase.v1.Instance
	28, // 56: bytebase.v1.InstanceService.PrepareSampleProjectInstance:output_type -> bytebase.v1.Instance
	28, // 57: bytebase.v1.InstanceService.UpdateInstance:output_type -> bytebase.v1.Instance
	47, // 58: bytebase.v1.InstanceService.DeleteInstance:output_type -> google.protobuf.Empty
	28, // 59: bytebase.v1.InstanceService.UndeleteInstance:output_type -> bytebase.v1.Instance
	19, // 60: bytebase.v1.InstanceService.SyncInstance:output_type -> bytebase.v1.SyncInstanceResponse
	18, // 61: bytebase.v1.InstanceService.ListInstanceDatabase:output_type -> bytebase.v1.ListInstanceDatabaseResponse
	21, // 62: bytebase.v1.InstanceService.BatchSyncInstances:output_type -> bytebase.v1.BatchSyncInstancesResponse
	23, // 63: bytebase.v1.InstanceService.BatchUpdateInstances:output_type -> bytebase.v1.BatchUpdateInstancesResponse
	28, // 64: bytebase.v1.InstanceService.AddDataSource:output_type -> bytebase.v1.Instance
	28, // 65: bytebase.v1.InstanceService.RemoveDataSource:output_type -> bytebase.v1.Instance
	28, // 66: bytebase.v1.InstanceService.UpdateDataSource:output_type -> bytebase.v1.Instance
	53, // [53:67] is the sub-list for method output_type
	39, // [39:53] is the sub-list for method input_type
	39, // [39:39] is the sub-list for extension type_name
	39, // [39:39] is the sub-list for extension extendee
	0,  // [0:39] is the sub-list for field type_name
}

func init() { file_v1_instance_service_proto_init() }
func file_v1_instance_service_proto_init() {
	if File_v1_instance_service_proto != nil {
		return
	}
	file_v1_annotation_proto_init()
	file_v1_common_proto_init()
	file_v1_instance_role_service_proto_init()
	file_v1_instance_service_proto_msgTypes[1].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[3].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[9].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[12].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[14].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[20].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[21].OneofWrappers = []any{
		(*DataSourceExternalSecret_AppRole)(nil),
		(*DataSourceExternalSecret_Token)(nil),
	}
	file_v1_instance_service_proto_msgTypes[22].OneofWrappers = []any{
		(*DataSource_AzureCredential_)(nil),
		(*DataSource_AwsCredential)(nil),
		(*DataSource_GcpCredential)(nil),
	}
	file_v1_instance_service_proto_msgTypes[23].OneofWrappers = []any{}
	file_v1_instance_service_proto_msgTypes[24].OneofWrappers = []any{
		(*SASLConfig_KrbConfig)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_instance_service_proto_rawDesc), len(file_v1_instance_service_proto_rawDesc)),
			NumEnums:      8,
			NumMessages:   33,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_v1_instance_service_proto_goTypes,
		DependencyIndexes: file_v1_instance_service_proto_depIdxs,
		EnumInfos:         file_v1_instance_service_proto_enumTypes,
		MessageInfos:      file_v1_instance_service_proto_msgTypes,
	}.Build()
	File_v1_instance_service_proto = out.File
	file_v1_instance_service_proto_goTypes = nil
	file_v1_instance_service_proto_depIdxs = nil
}