Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: v1/database_service.proto
package v1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// SyncStatus is the status of the database sync operation.
type SyncStatus int32
const (
SyncStatus_SYNC_STATUS_UNSPECIFIED SyncStatus = 0
// The database was synced successfully.
SyncStatus_OK SyncStatus = 1
// The database sync failed.
SyncStatus_FAILED SyncStatus = 2
)
// Enum value maps for SyncStatus.
var (
SyncStatus_name = map[int32]string{
0: "SYNC_STATUS_UNSPECIFIED",
1: "OK",
2: "FAILED",
}
SyncStatus_value = map[string]int32{
"SYNC_STATUS_UNSPECIFIED": 0,
"OK": 1,
"FAILED": 2,
}
)
func (x SyncStatus) Enum() *SyncStatus {
p := new(SyncStatus)
*p = x
return p
}
func (x SyncStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SyncStatus) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[0].Descriptor()
}
func (SyncStatus) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[0]
}
func (x SyncStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SyncStatus.Descriptor instead.
func (SyncStatus) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{0}
}
// SDLFormat specifies the output format for SDL schema.
type GetDatabaseSDLSchemaRequest_SDLFormat int32
const (
// Unspecified format. Defaults to SINGLE_FILE.
GetDatabaseSDLSchemaRequest_SDL_FORMAT_UNSPECIFIED GetDatabaseSDLSchemaRequest_SDLFormat = 0
// Single file format: returns the complete SDL schema as a single file.
GetDatabaseSDLSchemaRequest_SINGLE_FILE GetDatabaseSDLSchemaRequest_SDLFormat = 1
// Multi-file format: returns the SDL schema as a ZIP archive containing
// multiple files organized by schema objects (tables, views, functions, etc.).
GetDatabaseSDLSchemaRequest_MULTI_FILE GetDatabaseSDLSchemaRequest_SDLFormat = 2
)
// Enum value maps for GetDatabaseSDLSchemaRequest_SDLFormat.
var (
GetDatabaseSDLSchemaRequest_SDLFormat_name = map[int32]string{
0: "SDL_FORMAT_UNSPECIFIED",
1: "SINGLE_FILE",
2: "MULTI_FILE",
}
GetDatabaseSDLSchemaRequest_SDLFormat_value = map[string]int32{
"SDL_FORMAT_UNSPECIFIED": 0,
"SINGLE_FILE": 1,
"MULTI_FILE": 2,
}
)
func (x GetDatabaseSDLSchemaRequest_SDLFormat) Enum() *GetDatabaseSDLSchemaRequest_SDLFormat {
p := new(GetDatabaseSDLSchemaRequest_SDLFormat)
*p = x
return p
}
func (x GetDatabaseSDLSchemaRequest_SDLFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GetDatabaseSDLSchemaRequest_SDLFormat) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[1].Descriptor()
}
func (GetDatabaseSDLSchemaRequest_SDLFormat) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[1]
}
func (x GetDatabaseSDLSchemaRequest_SDLFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GetDatabaseSDLSchemaRequest_SDLFormat.Descriptor instead.
func (GetDatabaseSDLSchemaRequest_SDLFormat) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{16, 0}
}
// Type is the type of a table partition, some database engines may not
// support all types. Only avilable for the following database engines now:
// MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY,
// LINEAR_KEY
// (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html) TiDB:
// RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY PostgreSQL: RANGE,
// LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
type TablePartitionMetadata_Type int32
const (
TablePartitionMetadata_TYPE_UNSPECIFIED TablePartitionMetadata_Type = 0
TablePartitionMetadata_RANGE TablePartitionMetadata_Type = 1
TablePartitionMetadata_RANGE_COLUMNS TablePartitionMetadata_Type = 2
TablePartitionMetadata_LIST TablePartitionMetadata_Type = 3
TablePartitionMetadata_LIST_COLUMNS TablePartitionMetadata_Type = 4
TablePartitionMetadata_HASH TablePartitionMetadata_Type = 5
TablePartitionMetadata_LINEAR_HASH TablePartitionMetadata_Type = 6
TablePartitionMetadata_KEY TablePartitionMetadata_Type = 7
TablePartitionMetadata_LINEAR_KEY TablePartitionMetadata_Type = 8
)
// Enum value maps for TablePartitionMetadata_Type.
var (
TablePartitionMetadata_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "RANGE",
2: "RANGE_COLUMNS",
3: "LIST",
4: "LIST_COLUMNS",
5: "HASH",
6: "LINEAR_HASH",
7: "KEY",
8: "LINEAR_KEY",
}
TablePartitionMetadata_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"RANGE": 1,
"RANGE_COLUMNS": 2,
"LIST": 3,
"LIST_COLUMNS": 4,
"HASH": 5,
"LINEAR_HASH": 6,
"KEY": 7,
"LINEAR_KEY": 8,
}
)
func (x TablePartitionMetadata_Type) Enum() *TablePartitionMetadata_Type {
p := new(TablePartitionMetadata_Type)
*p = x
return p
}
func (x TablePartitionMetadata_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TablePartitionMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[2].Descriptor()
}
func (TablePartitionMetadata_Type) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[2]
}
func (x TablePartitionMetadata_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TablePartitionMetadata_Type.Descriptor instead.
func (TablePartitionMetadata_Type) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{33, 0}
}
type ColumnMetadata_IdentityGeneration int32
const (
ColumnMetadata_IDENTITY_GENERATION_UNSPECIFIED ColumnMetadata_IdentityGeneration = 0
ColumnMetadata_ALWAYS ColumnMetadata_IdentityGeneration = 1
ColumnMetadata_BY_DEFAULT ColumnMetadata_IdentityGeneration = 2
)
// Enum value maps for ColumnMetadata_IdentityGeneration.
var (
ColumnMetadata_IdentityGeneration_name = map[int32]string{
0: "IDENTITY_GENERATION_UNSPECIFIED",
1: "ALWAYS",
2: "BY_DEFAULT",
}
ColumnMetadata_IdentityGeneration_value = map[string]int32{
"IDENTITY_GENERATION_UNSPECIFIED": 0,
"ALWAYS": 1,
"BY_DEFAULT": 2,
}
)
func (x ColumnMetadata_IdentityGeneration) Enum() *ColumnMetadata_IdentityGeneration {
p := new(ColumnMetadata_IdentityGeneration)
*p = x
return p
}
func (x ColumnMetadata_IdentityGeneration) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ColumnMetadata_IdentityGeneration) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[3].Descriptor()
}
func (ColumnMetadata_IdentityGeneration) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[3]
}
func (x ColumnMetadata_IdentityGeneration) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ColumnMetadata_IdentityGeneration.Descriptor instead.
func (ColumnMetadata_IdentityGeneration) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{34, 0}
}
type GenerationMetadata_Type int32
const (
GenerationMetadata_TYPE_UNSPECIFIED GenerationMetadata_Type = 0
GenerationMetadata_VIRTUAL GenerationMetadata_Type = 1
GenerationMetadata_STORED GenerationMetadata_Type = 2
)
// Enum value maps for GenerationMetadata_Type.
var (
GenerationMetadata_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "VIRTUAL",
2: "STORED",
}
GenerationMetadata_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"VIRTUAL": 1,
"STORED": 2,
}
)
func (x GenerationMetadata_Type) Enum() *GenerationMetadata_Type {
p := new(GenerationMetadata_Type)
*p = x
return p
}
func (x GenerationMetadata_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GenerationMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[4].Descriptor()
}
func (GenerationMetadata_Type) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[4]
}
func (x GenerationMetadata_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GenerationMetadata_Type.Descriptor instead.
func (GenerationMetadata_Type) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{35, 0}
}
type TaskMetadata_State int32
const (
TaskMetadata_STATE_UNSPECIFIED TaskMetadata_State = 0
TaskMetadata_STARTED TaskMetadata_State = 1
TaskMetadata_SUSPENDED TaskMetadata_State = 2
)
// Enum value maps for TaskMetadata_State.
var (
TaskMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "STARTED",
2: "SUSPENDED",
}
TaskMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"STARTED": 1,
"SUSPENDED": 2,
}
)
func (x TaskMetadata_State) Enum() *TaskMetadata_State {
p := new(TaskMetadata_State)
*p = x
return p
}
func (x TaskMetadata_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskMetadata_State) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[5].Descriptor()
}
func (TaskMetadata_State) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[5]
}
func (x TaskMetadata_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskMetadata_State.Descriptor instead.
func (TaskMetadata_State) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{43, 0}
}
type StreamMetadata_Type int32
const (
StreamMetadata_TYPE_UNSPECIFIED StreamMetadata_Type = 0
StreamMetadata_DELTA StreamMetadata_Type = 1
)
// Enum value maps for StreamMetadata_Type.
var (
StreamMetadata_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "DELTA",
}
StreamMetadata_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"DELTA": 1,
}
)
func (x StreamMetadata_Type) Enum() *StreamMetadata_Type {
p := new(StreamMetadata_Type)
*p = x
return p
}
func (x StreamMetadata_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StreamMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[6].Descriptor()
}
func (StreamMetadata_Type) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[6]
}
func (x StreamMetadata_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StreamMetadata_Type.Descriptor instead.
func (StreamMetadata_Type) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{44, 0}
}
type StreamMetadata_Mode int32
const (
StreamMetadata_MODE_UNSPECIFIED StreamMetadata_Mode = 0
StreamMetadata_DEFAULT StreamMetadata_Mode = 1
StreamMetadata_APPEND_ONLY StreamMetadata_Mode = 2
StreamMetadata_INSERT_ONLY StreamMetadata_Mode = 3
)
// Enum value maps for StreamMetadata_Mode.
var (
StreamMetadata_Mode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
1: "DEFAULT",
2: "APPEND_ONLY",
3: "INSERT_ONLY",
}
StreamMetadata_Mode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"DEFAULT": 1,
"APPEND_ONLY": 2,
"INSERT_ONLY": 3,
}
)
func (x StreamMetadata_Mode) Enum() *StreamMetadata_Mode {
p := new(StreamMetadata_Mode)
*p = x
return p
}
func (x StreamMetadata_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StreamMetadata_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[7].Descriptor()
}
func (StreamMetadata_Mode) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[7]
}
func (x StreamMetadata_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StreamMetadata_Mode.Descriptor instead.
func (StreamMetadata_Mode) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{44, 1}
}
type GetSchemaStringRequest_ObjectType int32
const (
GetSchemaStringRequest_OBJECT_TYPE_UNSPECIFIED GetSchemaStringRequest_ObjectType = 0
GetSchemaStringRequest_DATABASE GetSchemaStringRequest_ObjectType = 1
GetSchemaStringRequest_SCHEMA GetSchemaStringRequest_ObjectType = 2
GetSchemaStringRequest_TABLE GetSchemaStringRequest_ObjectType = 3
GetSchemaStringRequest_VIEW GetSchemaStringRequest_ObjectType = 4
GetSchemaStringRequest_MATERIALIZED_VIEW GetSchemaStringRequest_ObjectType = 5
GetSchemaStringRequest_FUNCTION GetSchemaStringRequest_ObjectType = 6
GetSchemaStringRequest_PROCEDURE GetSchemaStringRequest_ObjectType = 7
GetSchemaStringRequest_SEQUENCE GetSchemaStringRequest_ObjectType = 8
)
// Enum value maps for GetSchemaStringRequest_ObjectType.
var (
GetSchemaStringRequest_ObjectType_name = map[int32]string{
0: "OBJECT_TYPE_UNSPECIFIED",
1: "DATABASE",
2: "SCHEMA",
3: "TABLE",
4: "VIEW",
5: "MATERIALIZED_VIEW",
6: "FUNCTION",
7: "PROCEDURE",
8: "SEQUENCE",
}
GetSchemaStringRequest_ObjectType_value = map[string]int32{
"OBJECT_TYPE_UNSPECIFIED": 0,
"DATABASE": 1,
"SCHEMA": 2,
"TABLE": 3,
"VIEW": 4,
"MATERIALIZED_VIEW": 5,
"FUNCTION": 6,
"PROCEDURE": 7,
"SEQUENCE": 8,
}
)
func (x GetSchemaStringRequest_ObjectType) Enum() *GetSchemaStringRequest_ObjectType {
p := new(GetSchemaStringRequest_ObjectType)
*p = x
return p
}
func (x GetSchemaStringRequest_ObjectType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GetSchemaStringRequest_ObjectType) Descriptor() protoreflect.EnumDescriptor {
return file_v1_database_service_proto_enumTypes[8].Descriptor()
}
func (GetSchemaStringRequest_ObjectType) Type() protoreflect.EnumType {
return &file_v1_database_service_proto_enumTypes[8]
}
func (x GetSchemaStringRequest_ObjectType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GetSchemaStringRequest_ObjectType.Descriptor instead.
func (GetSchemaStringRequest_ObjectType) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{57, 0}
}
type GetDatabaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database to retrieve.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDatabaseRequest) Reset() {
*x = GetDatabaseRequest{}
mi := &file_v1_database_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDatabaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDatabaseRequest) ProtoMessage() {}
func (x *GetDatabaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 GetDatabaseRequest.ProtoReflect.Descriptor instead.
func (*GetDatabaseRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{0}
}
func (x *GetDatabaseRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type BatchGetDatabasesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The parent resource shared by all databases being retrieved.
// - projects/{project}: batch get databases in a project;
// - instances/{instance}: batch get databases in an instance;
// - projects/{project}/instances/{instance}: batch get databases in a project instance;
// Use "-" as wildcard to batch get databases across parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The list of database names to retrieve.
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchGetDatabasesRequest) Reset() {
*x = BatchGetDatabasesRequest{}
mi := &file_v1_database_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchGetDatabasesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDatabasesRequest) ProtoMessage() {}
func (x *BatchGetDatabasesRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 BatchGetDatabasesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetDatabasesRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{1}
}
func (x *BatchGetDatabasesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetDatabasesRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetDatabasesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// One database per requested name, in the same order as `names`.
Databases []*Database `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchGetDatabasesResponse) Reset() {
*x = BatchGetDatabasesResponse{}
mi := &file_v1_database_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchGetDatabasesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDatabasesResponse) ProtoMessage() {}
func (x *BatchGetDatabasesResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 BatchGetDatabasesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetDatabasesResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{2}
}
func (x *BatchGetDatabasesResponse) GetDatabases() []*Database {
if x != nil {
return x.Databases
}
return nil
}
type ListDatabasesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// - projects/{project}: list databases in a project, require "bb.databases.list" permission.
// - workspaces/{id}: list databases in the workspace, require "bb.databases.list" permission.
// - instances/{instance}: list databases in an instance, require "bb.instances.get" permission.
// - projects/{project}/instances/{instance}: list databases in a project instance, require "bb.instances.get" permission.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of databases to return. The service may return fewer
// than this value.
// If unspecified, at most 10 databases will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListDatabases` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListDatabases` must
// match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Filter is used to filter databases returned in the list.
// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
//
// Supported filter:
// - environment: the environment full name in "environments/{id}" format, support "==" operator.
// - name: the database name, support ".contains()" operator.
// - project: the project full name in "projects/{id}" format, support "==" operator.
// - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
// - engine: the database engine, check Engine enum for values. Support "==", "in [xx]", "!(in [xx])" operator.
// - exclude_unassigned: should be "true" or "false", will not show unassigned databases if it's true, support "==" operator.
// - table: filter by the database table, support "==" and ".contains()" operator.
// - labels.{key}: the database label, support "==" and "in" operators.
//
// For example:
// environment == "environments/{environment resource id}"
// environment == "" (find databases which environment is not set)
// project == "projects/{project resource id}"
// instance == "instances/{instance resource id}"
// instance == "projects/{project resource id}/instances/{instance resource id}"
// name.contains("database name")
// engine == "MYSQL"
// engine in ["MYSQL", "POSTGRES"]
// !(engine in ["MYSQL", "POSTGRES"])
// exclude_unassigned == true
// table == "sample"
// table.contains("sam")
// labels.environment == "production"
// labels.region == "asia"
// labels.region in ["asia", "europe"]
//
// You can combine filter conditions like:
// environment == "environments/prod" && name.contains("employee")
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Show deleted database if specified.
ShowDeleted bool `protobuf:"varint,5,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// The order by of databases.
// Support name, project, instance. The default sorting order is ascending.
// For example:
// - order_by = "name" - order by name ascending
// - order_by = "name desc"
// - order_by = "name desc, project asc"
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListDatabasesRequest) Reset() {
*x = ListDatabasesRequest{}
mi := &file_v1_database_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListDatabasesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDatabasesRequest) ProtoMessage() {}
func (x *ListDatabasesRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 ListDatabasesRequest.ProtoReflect.Descriptor instead.
func (*ListDatabasesRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{3}
}
func (x *ListDatabasesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListDatabasesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListDatabasesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListDatabasesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListDatabasesRequest) GetShowDeleted() bool {
if x != nil {
return x.ShowDeleted
}
return false
}
func (x *ListDatabasesRequest) GetOrderBy() string {
if x != nil {
return x.OrderBy
}
return ""
}
type ListDatabasesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The databases from the specified request.
Databases []*Database `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,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 *ListDatabasesResponse) Reset() {
*x = ListDatabasesResponse{}
mi := &file_v1_database_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListDatabasesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDatabasesResponse) ProtoMessage() {}
func (x *ListDatabasesResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 ListDatabasesResponse.ProtoReflect.Descriptor instead.
func (*ListDatabasesResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{4}
}
func (x *ListDatabasesResponse) GetDatabases() []*Database {
if x != nil {
return x.Databases
}
return nil
}
func (x *ListDatabasesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type SearchDatabasesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The maximum number of databases to return. The service may return fewer
// than this value.
// If unspecified, at most 10 databases 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 `SearchDatabases` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `SearchDatabases` 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"`
// Filter is used to filter databases returned in the list.
// It supports the same fields and operators as `ListDatabasesRequest.filter`.
//
// For example:
// project == "projects/{project resource id}"
// name.contains("database name") && engine == "POSTGRES"
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDatabasesRequest) Reset() {
*x = SearchDatabasesRequest{}
mi := &file_v1_database_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDatabasesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDatabasesRequest) ProtoMessage() {}
func (x *SearchDatabasesRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 SearchDatabasesRequest.ProtoReflect.Descriptor instead.
func (*SearchDatabasesRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{5}
}
func (x *SearchDatabasesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *SearchDatabasesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *SearchDatabasesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
type SearchDatabasesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The databases from the specified request.
Databases []*Database `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,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 *SearchDatabasesResponse) Reset() {
*x = SearchDatabasesResponse{}
mi := &file_v1_database_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDatabasesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDatabasesResponse) ProtoMessage() {}
func (x *SearchDatabasesResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 SearchDatabasesResponse.ProtoReflect.Descriptor instead.
func (*SearchDatabasesResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{6}
}
func (x *SearchDatabasesResponse) GetDatabases() []*Database {
if x != nil {
return x.Databases
}
return nil
}
func (x *SearchDatabasesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type UpdateDatabaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The database to update.
//
// The database's `name` field is used to identify the database to update.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
Database *Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateDatabaseRequest) Reset() {
*x = UpdateDatabaseRequest{}
mi := &file_v1_database_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateDatabaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDatabaseRequest) ProtoMessage() {}
func (x *UpdateDatabaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 UpdateDatabaseRequest.ProtoReflect.Descriptor instead.
func (*UpdateDatabaseRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{7}
}
func (x *UpdateDatabaseRequest) GetDatabase() *Database {
if x != nil {
return x.Database
}
return nil
}
func (x *UpdateDatabaseRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type BatchUpdateDatabasesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The parent resource shared by all databases being updated.
// Format: instances/{instance} or projects/{project}/instances/{instance}
// If the operation spans parents, a dash (-) may be accepted as a wildcard.
// We only support updating the project of databases for now.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The request message specifying the resources to update.
// A maximum of 1000 databases can be modified in a batch.
Requests []*UpdateDatabaseRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchUpdateDatabasesRequest) Reset() {
*x = BatchUpdateDatabasesRequest{}
mi := &file_v1_database_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchUpdateDatabasesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchUpdateDatabasesRequest) ProtoMessage() {}
func (x *BatchUpdateDatabasesRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 BatchUpdateDatabasesRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateDatabasesRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{8}
}
func (x *BatchUpdateDatabasesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchUpdateDatabasesRequest) GetRequests() []*UpdateDatabaseRequest {
if x != nil {
return x.Requests
}
return nil
}
type BatchUpdateDatabasesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Databases updated.
Databases []*Database `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchUpdateDatabasesResponse) Reset() {
*x = BatchUpdateDatabasesResponse{}
mi := &file_v1_database_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchUpdateDatabasesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchUpdateDatabasesResponse) ProtoMessage() {}
func (x *BatchUpdateDatabasesResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 BatchUpdateDatabasesResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateDatabasesResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{9}
}
func (x *BatchUpdateDatabasesResponse) GetDatabases() []*Database {
if x != nil {
return x.Databases
}
return nil
}
type BatchSyncDatabasesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The parent resource shared by all databases being updated.
// Format: instances/{instance} or projects/{project}/instances/{instance}
// If the operation spans parents, a dash (-) may be accepted as a wildcard.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The list of database names to sync.
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchSyncDatabasesRequest) Reset() {
*x = BatchSyncDatabasesRequest{}
mi := &file_v1_database_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchSyncDatabasesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchSyncDatabasesRequest) ProtoMessage() {}
func (x *BatchSyncDatabasesRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 BatchSyncDatabasesRequest.ProtoReflect.Descriptor instead.
func (*BatchSyncDatabasesRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{10}
}
func (x *BatchSyncDatabasesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchSyncDatabasesRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchSyncDatabasesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchSyncDatabasesResponse) Reset() {
*x = BatchSyncDatabasesResponse{}
mi := &file_v1_database_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchSyncDatabasesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchSyncDatabasesResponse) ProtoMessage() {}
func (x *BatchSyncDatabasesResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 BatchSyncDatabasesResponse.ProtoReflect.Descriptor instead.
func (*BatchSyncDatabasesResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{11}
}
type SyncDatabaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database to sync.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SyncDatabaseRequest) Reset() {
*x = SyncDatabaseRequest{}
mi := &file_v1_database_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SyncDatabaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SyncDatabaseRequest) ProtoMessage() {}
func (x *SyncDatabaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 SyncDatabaseRequest.ProtoReflect.Descriptor instead.
func (*SyncDatabaseRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{12}
}
func (x *SyncDatabaseRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type SyncDatabaseResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SyncDatabaseResponse) Reset() {
*x = SyncDatabaseResponse{}
mi := &file_v1_database_service_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SyncDatabaseResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SyncDatabaseResponse) ProtoMessage() {}
func (x *SyncDatabaseResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 SyncDatabaseResponse.ProtoReflect.Descriptor instead.
func (*SyncDatabaseResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{13}
}
type GetDatabaseMetadataRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database to retrieve metadata.
// Format: instances/{instance}/databases/{database}/metadata or projects/{project}/instances/{instance}/databases/{database}/metadata
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Filter is used to filter databases returned in the list.
// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
//
// Supported filter:
// - schema: the schema name, support "==" operator.
// - table: the table name, support "==" and ".contains()" operator.
//
// For example:
// schema == "schema-a"
// table == "table-a"
// table.contains("table-a")
// schema == "schema-a" && table.contains("sample")
// The filter is used to search for tables containing "sample" in the schema "schemas/schema-a".
// The column masking level will only be returned when a table filter is used.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Limit the response size of returned table metadata per schema.
// For example, if the database has 3 schemas, and each schema has 100 tables,
// if limit is 20, then only 20 tables will be returned for each schema, total 60 tables.
// Default 0, means no limit.
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDatabaseMetadataRequest) Reset() {
*x = GetDatabaseMetadataRequest{}
mi := &file_v1_database_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDatabaseMetadataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDatabaseMetadataRequest) ProtoMessage() {}
func (x *GetDatabaseMetadataRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 GetDatabaseMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetDatabaseMetadataRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{14}
}
func (x *GetDatabaseMetadataRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GetDatabaseMetadataRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *GetDatabaseMetadataRequest) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
type GetDatabaseSchemaRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database to retrieve schema.
// Format: instances/{instance}/databases/{database}/schema or projects/{project}/instances/{instance}/databases/{database}/schema
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDatabaseSchemaRequest) Reset() {
*x = GetDatabaseSchemaRequest{}
mi := &file_v1_database_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDatabaseSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDatabaseSchemaRequest) ProtoMessage() {}
func (x *GetDatabaseSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 GetDatabaseSchemaRequest.ProtoReflect.Descriptor instead.
func (*GetDatabaseSchemaRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{15}
}
func (x *GetDatabaseSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type GetDatabaseSDLSchemaRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database to retrieve SDL schema.
// Format: instances/{instance}/databases/{database}/sdlSchema or projects/{project}/instances/{instance}/databases/{database}/sdlSchema
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The format of the SDL schema output.
Format GetDatabaseSDLSchemaRequest_SDLFormat `protobuf:"varint,2,opt,name=format,proto3,enum=bytebase.v1.GetDatabaseSDLSchemaRequest_SDLFormat" json:"format,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDatabaseSDLSchemaRequest) Reset() {
*x = GetDatabaseSDLSchemaRequest{}
mi := &file_v1_database_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDatabaseSDLSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDatabaseSDLSchemaRequest) ProtoMessage() {}
func (x *GetDatabaseSDLSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 GetDatabaseSDLSchemaRequest.ProtoReflect.Descriptor instead.
func (*GetDatabaseSDLSchemaRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{16}
}
func (x *GetDatabaseSDLSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GetDatabaseSDLSchemaRequest) GetFormat() GetDatabaseSDLSchemaRequest_SDLFormat {
if x != nil {
return x.Format
}
return GetDatabaseSDLSchemaRequest_SDL_FORMAT_UNSPECIFIED
}
type DiffSchemaRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database or changelog.
// Format:
// database: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
// changelog: instances/{instance}/databases/{database}/changelogs/{changelog} or projects/{project}/instances/{instance}/databases/{database}/changelogs/{changelog}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Target:
//
// *DiffSchemaRequest_Schema
// *DiffSchemaRequest_Changelog
Target isDiffSchemaRequest_Target `protobuf_oneof:"target"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiffSchemaRequest) Reset() {
*x = DiffSchemaRequest{}
mi := &file_v1_database_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiffSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiffSchemaRequest) ProtoMessage() {}
func (x *DiffSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 DiffSchemaRequest.ProtoReflect.Descriptor instead.
func (*DiffSchemaRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{17}
}
func (x *DiffSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DiffSchemaRequest) GetTarget() isDiffSchemaRequest_Target {
if x != nil {
return x.Target
}
return nil
}
func (x *DiffSchemaRequest) GetSchema() string {
if x != nil {
if x, ok := x.Target.(*DiffSchemaRequest_Schema); ok {
return x.Schema
}
}
return ""
}
func (x *DiffSchemaRequest) GetChangelog() string {
if x != nil {
if x, ok := x.Target.(*DiffSchemaRequest_Changelog); ok {
return x.Changelog
}
}
return ""
}
type isDiffSchemaRequest_Target interface {
isDiffSchemaRequest_Target()
}
type DiffSchemaRequest_Schema struct {
// The target schema.
Schema string `protobuf:"bytes,2,opt,name=schema,proto3,oneof"`
}
type DiffSchemaRequest_Changelog struct {
// The resource name of the changelog
// Format:
// instances/{instance}/databases/{database}/changelogs/{changelog} or projects/{project}/instances/{instance}/databases/{database}/changelogs/{changelog}
Changelog string `protobuf:"bytes,3,opt,name=changelog,proto3,oneof"`
}
func (*DiffSchemaRequest_Schema) isDiffSchemaRequest_Target() {}
func (*DiffSchemaRequest_Changelog) isDiffSchemaRequest_Target() {}
type DiffSchemaResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiffSchemaResponse) Reset() {
*x = DiffSchemaResponse{}
mi := &file_v1_database_service_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiffSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiffSchemaResponse) ProtoMessage() {}
func (x *DiffSchemaResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 DiffSchemaResponse.ProtoReflect.Descriptor instead.
func (*DiffSchemaResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{18}
}
func (x *DiffSchemaResponse) GetDiff() string {
if x != nil {
return x.Diff
}
return ""
}
type DiffMetadataRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The database whose current schema is the diff source.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The metadata of the target schema. The source metadata and the engine are
// read from the database, so only the target travels in the request.
// Must describe the COMPLETE target schema: the diff runs against the full
// stored source, so any object omitted from the target (for example by a
// truncated metadata fetch) is treated as dropped.
TargetMetadata *DatabaseMetadata `protobuf:"bytes,2,opt,name=target_metadata,json=targetMetadata,proto3" json:"target_metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiffMetadataRequest) Reset() {
*x = DiffMetadataRequest{}
mi := &file_v1_database_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiffMetadataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiffMetadataRequest) ProtoMessage() {}
func (x *DiffMetadataRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 DiffMetadataRequest.ProtoReflect.Descriptor instead.
func (*DiffMetadataRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{19}
}
func (x *DiffMetadataRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DiffMetadataRequest) GetTargetMetadata() *DatabaseMetadata {
if x != nil {
return x.TargetMetadata
}
return nil
}
type DiffMetadataResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The generated migration statements.
Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiffMetadataResponse) Reset() {
*x = DiffMetadataResponse{}
mi := &file_v1_database_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiffMetadataResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiffMetadataResponse) ProtoMessage() {}
func (x *DiffMetadataResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 DiffMetadataResponse.ProtoReflect.Descriptor instead.
func (*DiffMetadataResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{20}
}
func (x *DiffMetadataResponse) GetDiff() string {
if x != nil {
return x.Diff
}
return ""
}
type Database struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
// {database} is the database name in the instance.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The existence of a database.
State State `protobuf:"varint,2,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`
// The latest synchronization time.
SuccessfulSyncTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=successful_sync_time,json=successfulSyncTime,proto3" json:"successful_sync_time,omitempty"`
// The project for a database.
// Format: projects/{project}
Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
// The release that was last applied to this database.
// Format: projects/{project}/releases/{release_id}
// Example: projects/my-project/releases/release_20260115-RC00
Release string `protobuf:"bytes,5,opt,name=release,proto3" json:"release,omitempty"`
// The environment resource.
// Format: environments/prod where prod is the environment resource ID.
Environment *string `protobuf:"bytes,6,opt,name=environment,proto3,oneof" json:"environment,omitempty"`
// The effective environment based on environment tag above and environment
// tag on the instance. Inheritance follows
// https://cloud.google.com/resource-manager/docs/tags/tags-overview.
EffectiveEnvironment *string `protobuf:"bytes,7,opt,name=effective_environment,json=effectiveEnvironment,proto3,oneof" json:"effective_environment,omitempty"`
// Labels will be used for deployment and policy control.
Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The instance resource.
InstanceResource *InstanceResource `protobuf:"bytes,9,opt,name=instance_resource,json=instanceResource,proto3" json:"instance_resource,omitempty"`
// The database is available for DML prior backup.
BackupAvailable bool `protobuf:"varint,10,opt,name=backup_available,json=backupAvailable,proto3" json:"backup_available,omitempty"`
// The sync status of the database.
SyncStatus SyncStatus `protobuf:"varint,11,opt,name=sync_status,json=syncStatus,proto3,enum=bytebase.v1.SyncStatus" json:"sync_status,omitempty"`
// The error message if sync failed.
SyncError string `protobuf:"bytes,12,opt,name=sync_error,json=syncError,proto3" json:"sync_error,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Database) Reset() {
*x = Database{}
mi := &file_v1_database_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Database) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Database) ProtoMessage() {}
func (x *Database) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 Database.ProtoReflect.Descriptor instead.
func (*Database) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{21}
}
func (x *Database) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Database) GetState() State {
if x != nil {
return x.State
}
return State_STATE_UNSPECIFIED
}
func (x *Database) GetSuccessfulSyncTime() *timestamppb.Timestamp {
if x != nil {
return x.SuccessfulSyncTime
}
return nil
}
func (x *Database) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *Database) GetRelease() string {
if x != nil {
return x.Release
}
return ""
}
func (x *Database) GetEnvironment() string {
if x != nil && x.Environment != nil {
return *x.Environment
}
return ""
}
func (x *Database) GetEffectiveEnvironment() string {
if x != nil && x.EffectiveEnvironment != nil {
return *x.EffectiveEnvironment
}
return ""
}
func (x *Database) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Database) GetInstanceResource() *InstanceResource {
if x != nil {
return x.InstanceResource
}
return nil
}
func (x *Database) GetBackupAvailable() bool {
if x != nil {
return x.BackupAvailable
}
return false
}
func (x *Database) GetSyncStatus() SyncStatus {
if x != nil {
return x.SyncStatus
}
return SyncStatus_SYNC_STATUS_UNSPECIFIED
}
func (x *Database) GetSyncError() string {
if x != nil {
return x.SyncError
}
return ""
}
// DatabaseMetadata is the metadata for databases.
type DatabaseMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The database metadata name.
//
// Format: instances/{instance}/databases/{database}/metadata or projects/{project}/instances/{instance}/databases/{database}/metadata
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The schemas is the list of schemas in a database.
Schemas []*SchemaMetadata `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
// The character_set is the character set of a database.
CharacterSet string `protobuf:"bytes,3,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
// The collation is the collation of a database.
Collation string `protobuf:"bytes,4,opt,name=collation,proto3" json:"collation,omitempty"`
// The extensions is the list of extensions in a database.
Extensions []*ExtensionMetadata `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty"`
// The owner of the database.
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
// The search_path is the search path of a PostgreSQL database.
SearchPath string `protobuf:"bytes,7,opt,name=search_path,json=searchPath,proto3" json:"search_path,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DatabaseMetadata) Reset() {
*x = DatabaseMetadata{}
mi := &file_v1_database_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DatabaseMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DatabaseMetadata) ProtoMessage() {}
func (x *DatabaseMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 DatabaseMetadata.ProtoReflect.Descriptor instead.
func (*DatabaseMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{22}
}
func (x *DatabaseMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DatabaseMetadata) GetSchemas() []*SchemaMetadata {
if x != nil {
return x.Schemas
}
return nil
}
func (x *DatabaseMetadata) GetCharacterSet() string {
if x != nil {
return x.CharacterSet
}
return ""
}
func (x *DatabaseMetadata) GetCollation() string {
if x != nil {
return x.Collation
}
return ""
}
func (x *DatabaseMetadata) GetExtensions() []*ExtensionMetadata {
if x != nil {
return x.Extensions
}
return nil
}
func (x *DatabaseMetadata) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *DatabaseMetadata) GetSearchPath() string {
if x != nil {
return x.SearchPath
}
return ""
}
// SchemaMetadata is the metadata for schemas.
// This is the concept of schema in Postgres, but it's a no-op for MySQL.
type SchemaMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the schema name.
// It is an empty string for databases without such concept such as MySQL.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The tables is the list of tables in a schema.
Tables []*TableMetadata `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
// The external_tables is the list of external tables in a schema.
ExternalTables []*ExternalTableMetadata `protobuf:"bytes,3,rep,name=external_tables,json=externalTables,proto3" json:"external_tables,omitempty"`
// The views is the list of views in a schema.
Views []*ViewMetadata `protobuf:"bytes,4,rep,name=views,proto3" json:"views,omitempty"`
// The functions is the list of functions in a schema.
Functions []*FunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"`
// The procedures is the list of procedures in a schema.
Procedures []*ProcedureMetadata `protobuf:"bytes,6,rep,name=procedures,proto3" json:"procedures,omitempty"`
// The streams is the list of streams in a schema, currently, only used for
// Snowflake.
Streams []*StreamMetadata `protobuf:"bytes,7,rep,name=streams,proto3" json:"streams,omitempty"`
// The routines is the list of routines in a schema, currently, only used for
// Snowflake.
Tasks []*TaskMetadata `protobuf:"bytes,8,rep,name=tasks,proto3" json:"tasks,omitempty"`
// The materialized_views is the list of materialized views in a schema.
MaterializedViews []*MaterializedViewMetadata `protobuf:"bytes,9,rep,name=materialized_views,json=materializedViews,proto3" json:"materialized_views,omitempty"`
// The packages is the list of packages in a schema.
Packages []*PackageMetadata `protobuf:"bytes,10,rep,name=packages,proto3" json:"packages,omitempty"`
// The owner of the schema.
Owner string `protobuf:"bytes,11,opt,name=owner,proto3" json:"owner,omitempty"`
// The sequences is the list of sequences in a schema, sorted by name.
Sequences []*SequenceMetadata `protobuf:"bytes,12,rep,name=sequences,proto3" json:"sequences,omitempty"`
// The events is the list of scheduled events in a schema.
Events []*EventMetadata `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"`
// The enum_types is the list of user-defined enum types in a schema.
EnumTypes []*EnumTypeMetadata `protobuf:"bytes,14,rep,name=enum_types,json=enumTypes,proto3" json:"enum_types,omitempty"`
// Whether to skip this schema during schema dump operations.
SkipDump bool `protobuf:"varint,15,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
// The comment is the comment of a schema.
Comment string `protobuf:"bytes,16,opt,name=comment,proto3" json:"comment,omitempty"`
// The composite_types is the list of user-defined composite types in a
// schema (PostgreSQL family, CREATE TYPE ... AS). Excludes table/view row
// types and derived types.
CompositeTypes []*CompositeTypeMetadata `protobuf:"bytes,17,rep,name=composite_types,json=compositeTypes,proto3" json:"composite_types,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SchemaMetadata) Reset() {
*x = SchemaMetadata{}
mi := &file_v1_database_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SchemaMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SchemaMetadata) ProtoMessage() {}
func (x *SchemaMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 SchemaMetadata.ProtoReflect.Descriptor instead.
func (*SchemaMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{23}
}
func (x *SchemaMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SchemaMetadata) GetTables() []*TableMetadata {
if x != nil {
return x.Tables
}
return nil
}
func (x *SchemaMetadata) GetExternalTables() []*ExternalTableMetadata {
if x != nil {
return x.ExternalTables
}
return nil
}
func (x *SchemaMetadata) GetViews() []*ViewMetadata {
if x != nil {
return x.Views
}
return nil
}
func (x *SchemaMetadata) GetFunctions() []*FunctionMetadata {
if x != nil {
return x.Functions
}
return nil
}
func (x *SchemaMetadata) GetProcedures() []*ProcedureMetadata {
if x != nil {
return x.Procedures
}
return nil
}
func (x *SchemaMetadata) GetStreams() []*StreamMetadata {
if x != nil {
return x.Streams
}
return nil
}
func (x *SchemaMetadata) GetTasks() []*TaskMetadata {
if x != nil {
return x.Tasks
}
return nil
}
func (x *SchemaMetadata) GetMaterializedViews() []*MaterializedViewMetadata {
if x != nil {
return x.MaterializedViews
}
return nil
}
func (x *SchemaMetadata) GetPackages() []*PackageMetadata {
if x != nil {
return x.Packages
}
return nil
}
func (x *SchemaMetadata) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *SchemaMetadata) GetSequences() []*SequenceMetadata {
if x != nil {
return x.Sequences
}
return nil
}
func (x *SchemaMetadata) GetEvents() []*EventMetadata {
if x != nil {
return x.Events
}
return nil
}
func (x *SchemaMetadata) GetEnumTypes() []*EnumTypeMetadata {
if x != nil {
return x.EnumTypes
}
return nil
}
func (x *SchemaMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
func (x *SchemaMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *SchemaMetadata) GetCompositeTypes() []*CompositeTypeMetadata {
if x != nil {
return x.CompositeTypes
}
return nil
}
type EnumTypeMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of a type.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The enum values of a type.
Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
// The comment describing the enum type.
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
// Whether to skip this enum type during schema dump operations.
SkipDump bool `protobuf:"varint,4,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumTypeMetadata) Reset() {
*x = EnumTypeMetadata{}
mi := &file_v1_database_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnumTypeMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnumTypeMetadata) ProtoMessage() {}
func (x *EnumTypeMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 EnumTypeMetadata.ProtoReflect.Descriptor instead.
func (*EnumTypeMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{24}
}
func (x *EnumTypeMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EnumTypeMetadata) GetValues() []string {
if x != nil {
return x.Values
}
return nil
}
func (x *EnumTypeMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *EnumTypeMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
type CompositeTypeMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the composite type.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The ordered attributes of the composite type.
Attributes []*CompositeTypeAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
// The comment describing the composite type.
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CompositeTypeMetadata) Reset() {
*x = CompositeTypeMetadata{}
mi := &file_v1_database_service_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CompositeTypeMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CompositeTypeMetadata) ProtoMessage() {}
func (x *CompositeTypeMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 CompositeTypeMetadata.ProtoReflect.Descriptor instead.
func (*CompositeTypeMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{25}
}
func (x *CompositeTypeMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CompositeTypeMetadata) GetAttributes() []*CompositeTypeAttribute {
if x != nil {
return x.Attributes
}
return nil
}
func (x *CompositeTypeMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
type CompositeTypeAttribute struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the attribute.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The attribute type. User-defined types are always schema-qualified.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The non-default collation of the attribute as an emit-ready SQL
// identifier reference (quoted as needed, schema-qualified when outside
// pg_catalog), empty otherwise. e.g. `"C"` or `locale.en_us`.
Collation string `protobuf:"bytes,3,opt,name=collation,proto3" json:"collation,omitempty"`
// The comment describing the attribute.
Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CompositeTypeAttribute) Reset() {
*x = CompositeTypeAttribute{}
mi := &file_v1_database_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CompositeTypeAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CompositeTypeAttribute) ProtoMessage() {}
func (x *CompositeTypeAttribute) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[26]
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 CompositeTypeAttribute.ProtoReflect.Descriptor instead.
func (*CompositeTypeAttribute) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{26}
}
func (x *CompositeTypeAttribute) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CompositeTypeAttribute) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *CompositeTypeAttribute) GetCollation() string {
if x != nil {
return x.Collation
}
return ""
}
func (x *CompositeTypeAttribute) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
type EventMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the event.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The schedule of the event.
Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
// The time zone of the event.
TimeZone string `protobuf:"bytes,3,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// The SQL mode setting for the event.
SqlMode string `protobuf:"bytes,4,opt,name=sql_mode,json=sqlMode,proto3" json:"sql_mode,omitempty"`
// The character set used by the client creating the event.
CharacterSetClient string `protobuf:"bytes,5,opt,name=character_set_client,json=characterSetClient,proto3" json:"character_set_client,omitempty"`
// The collation used for the connection when creating the event.
CollationConnection string `protobuf:"bytes,6,opt,name=collation_connection,json=collationConnection,proto3" json:"collation_connection,omitempty"`
// The comment is the comment of an event.
Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EventMetadata) Reset() {
*x = EventMetadata{}
mi := &file_v1_database_service_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EventMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventMetadata) ProtoMessage() {}
func (x *EventMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 EventMetadata.ProtoReflect.Descriptor instead.
func (*EventMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{27}
}
func (x *EventMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EventMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *EventMetadata) GetTimeZone() string {
if x != nil {
return x.TimeZone
}
return ""
}
func (x *EventMetadata) GetSqlMode() string {
if x != nil {
return x.SqlMode
}
return ""
}
func (x *EventMetadata) GetCharacterSetClient() string {
if x != nil {
return x.CharacterSetClient
}
return ""
}
func (x *EventMetadata) GetCollationConnection() string {
if x != nil {
return x.CollationConnection
}
return ""
}
func (x *EventMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
type SequenceMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of a sequence.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The data type of a sequence.
DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
// The start value of a sequence.
Start string `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
// The minimum value of a sequence.
MinValue string `protobuf:"bytes,4,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
// The maximum value of a sequence.
MaxValue string `protobuf:"bytes,5,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
// Increment value of a sequence.
Increment string `protobuf:"bytes,6,opt,name=increment,proto3" json:"increment,omitempty"`
// Cycle is whether the sequence cycles.
Cycle bool `protobuf:"varint,7,opt,name=cycle,proto3" json:"cycle,omitempty"`
// Cache size of a sequence.
CacheSize string `protobuf:"bytes,8,opt,name=cache_size,json=cacheSize,proto3" json:"cache_size,omitempty"`
// Last value of a sequence.
LastValue string `protobuf:"bytes,9,opt,name=last_value,json=lastValue,proto3" json:"last_value,omitempty"`
// The owner table of the sequence.
OwnerTable string `protobuf:"bytes,10,opt,name=owner_table,json=ownerTable,proto3" json:"owner_table,omitempty"`
// The owner column of the sequence.
OwnerColumn string `protobuf:"bytes,11,opt,name=owner_column,json=ownerColumn,proto3" json:"owner_column,omitempty"`
// The comment describing the sequence.
Comment string `protobuf:"bytes,12,opt,name=comment,proto3" json:"comment,omitempty"`
// Whether to skip this sequence during schema dump operations.
SkipDump bool `protobuf:"varint,13,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SequenceMetadata) Reset() {
*x = SequenceMetadata{}
mi := &file_v1_database_service_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SequenceMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SequenceMetadata) ProtoMessage() {}
func (x *SequenceMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 SequenceMetadata.ProtoReflect.Descriptor instead.
func (*SequenceMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{28}
}
func (x *SequenceMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SequenceMetadata) GetDataType() string {
if x != nil {
return x.DataType
}
return ""
}
func (x *SequenceMetadata) GetStart() string {
if x != nil {
return x.Start
}
return ""
}
func (x *SequenceMetadata) GetMinValue() string {
if x != nil {
return x.MinValue
}
return ""
}
func (x *SequenceMetadata) GetMaxValue() string {
if x != nil {
return x.MaxValue
}
return ""
}
func (x *SequenceMetadata) GetIncrement() string {
if x != nil {
return x.Increment
}
return ""
}
func (x *SequenceMetadata) GetCycle() bool {
if x != nil {
return x.Cycle
}
return false
}
func (x *SequenceMetadata) GetCacheSize() string {
if x != nil {
return x.CacheSize
}
return ""
}
func (x *SequenceMetadata) GetLastValue() string {
if x != nil {
return x.LastValue
}
return ""
}
func (x *SequenceMetadata) GetOwnerTable() string {
if x != nil {
return x.OwnerTable
}
return ""
}
func (x *SequenceMetadata) GetOwnerColumn() string {
if x != nil {
return x.OwnerColumn
}
return ""
}
func (x *SequenceMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *SequenceMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
type TriggerMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of the trigger.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The event is the event of the trigger, such as INSERT, UPDATE, DELETE,
// TRUNCATE.
Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
// The timing is the timing of the trigger, such as BEFORE, AFTER.
Timing string `protobuf:"bytes,3,opt,name=timing,proto3" json:"timing,omitempty"`
// The body is the body of the trigger.
Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
// The SQL mode setting for the trigger.
SqlMode string `protobuf:"bytes,5,opt,name=sql_mode,json=sqlMode,proto3" json:"sql_mode,omitempty"`
// The character set used by the client creating the trigger.
CharacterSetClient string `protobuf:"bytes,6,opt,name=character_set_client,json=characterSetClient,proto3" json:"character_set_client,omitempty"`
// The collation used for the connection when creating the trigger.
CollationConnection string `protobuf:"bytes,7,opt,name=collation_connection,json=collationConnection,proto3" json:"collation_connection,omitempty"`
// The comment describing the trigger.
Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
// Whether to skip this trigger during schema dump operations.
SkipDump bool `protobuf:"varint,9,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TriggerMetadata) Reset() {
*x = TriggerMetadata{}
mi := &file_v1_database_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TriggerMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TriggerMetadata) ProtoMessage() {}
func (x *TriggerMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 TriggerMetadata.ProtoReflect.Descriptor instead.
func (*TriggerMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{29}
}
func (x *TriggerMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TriggerMetadata) GetEvent() string {
if x != nil {
return x.Event
}
return ""
}
func (x *TriggerMetadata) GetTiming() string {
if x != nil {
return x.Timing
}
return ""
}
func (x *TriggerMetadata) GetBody() string {
if x != nil {
return x.Body
}
return ""
}
func (x *TriggerMetadata) GetSqlMode() string {
if x != nil {
return x.SqlMode
}
return ""
}
func (x *TriggerMetadata) GetCharacterSetClient() string {
if x != nil {
return x.CharacterSetClient
}
return ""
}
func (x *TriggerMetadata) GetCollationConnection() string {
if x != nil {
return x.CollationConnection
}
return ""
}
func (x *TriggerMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *TriggerMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
type ExternalTableMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a external table.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The external_server_name is the name of the external server.
ExternalServerName string `protobuf:"bytes,2,opt,name=external_server_name,json=externalServerName,proto3" json:"external_server_name,omitempty"`
// The external_database_name is the name of the external database.
ExternalDatabaseName string `protobuf:"bytes,3,opt,name=external_database_name,json=externalDatabaseName,proto3" json:"external_database_name,omitempty"`
// The columns is the ordered list of columns in a foreign table.
Columns []*ColumnMetadata `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExternalTableMetadata) Reset() {
*x = ExternalTableMetadata{}
mi := &file_v1_database_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExternalTableMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExternalTableMetadata) ProtoMessage() {}
func (x *ExternalTableMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 ExternalTableMetadata.ProtoReflect.Descriptor instead.
func (*ExternalTableMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{30}
}
func (x *ExternalTableMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ExternalTableMetadata) GetExternalServerName() string {
if x != nil {
return x.ExternalServerName
}
return ""
}
func (x *ExternalTableMetadata) GetExternalDatabaseName() string {
if x != nil {
return x.ExternalDatabaseName
}
return ""
}
func (x *ExternalTableMetadata) GetColumns() []*ColumnMetadata {
if x != nil {
return x.Columns
}
return nil
}
// TableMetadata is the metadata for tables.
type TableMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a table.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The columns is the ordered list of columns in a table.
Columns []*ColumnMetadata `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
// The indexes is the list of indexes in a table.
Indexes []*IndexMetadata `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"`
// The engine is the engine of a table.
Engine string `protobuf:"bytes,4,opt,name=engine,proto3" json:"engine,omitempty"`
// The collation is the collation of a table.
Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`
// The character set of table.
Charset string `protobuf:"bytes,6,opt,name=charset,proto3" json:"charset,omitempty"`
// The row_count is the estimated number of rows of a table.
RowCount int64 `protobuf:"varint,7,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
// The data_size is the estimated data size of a table.
DataSize int64 `protobuf:"varint,8,opt,name=data_size,json=dataSize,proto3" json:"data_size,omitempty"`
// The index_size is the estimated index size of a table.
IndexSize int64 `protobuf:"varint,9,opt,name=index_size,json=indexSize,proto3" json:"index_size,omitempty"`
// The data_free is the estimated free data size of a table.
DataFree int64 `protobuf:"varint,10,opt,name=data_free,json=dataFree,proto3" json:"data_free,omitempty"`
// The create_options is the create option of a table.
CreateOptions string `protobuf:"bytes,11,opt,name=create_options,json=createOptions,proto3" json:"create_options,omitempty"`
// The comment is the comment of a table.
Comment string `protobuf:"bytes,12,opt,name=comment,proto3" json:"comment,omitempty"`
// The foreign_keys is the list of foreign keys in a table.
ForeignKeys []*ForeignKeyMetadata `protobuf:"bytes,13,rep,name=foreign_keys,json=foreignKeys,proto3" json:"foreign_keys,omitempty"`
// The partitions is the list of partitions in a table.
Partitions []*TablePartitionMetadata `protobuf:"bytes,14,rep,name=partitions,proto3" json:"partitions,omitempty"`
// The check_constraints is the list of check constraints in a table.
CheckConstraints []*CheckConstraintMetadata `protobuf:"bytes,15,rep,name=check_constraints,json=checkConstraints,proto3" json:"check_constraints,omitempty"`
// The owner of the table.
Owner string `protobuf:"bytes,16,opt,name=owner,proto3" json:"owner,omitempty"`
// The sorting_keys is a tuple of column names or arbitrary expressions. ClickHouse specific field.
// Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by
SortingKeys []string `protobuf:"bytes,17,rep,name=sorting_keys,json=sortingKeys,proto3" json:"sorting_keys,omitempty"`
// The triggers is the list of triggers associated with the table.
Triggers []*TriggerMetadata `protobuf:"bytes,18,rep,name=triggers,proto3" json:"triggers,omitempty"`
// Whether to skip this table during schema dump operations.
SkipDump bool `protobuf:"varint,19,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
// https://docs.pingcap.com/tidb/stable/information-schema-tables/
ShardingInfo string `protobuf:"bytes,20,opt,name=sharding_info,json=shardingInfo,proto3" json:"sharding_info,omitempty"`
// https://docs.pingcap.com/tidb/stable/clustered-indexes/#clustered-indexes
// CLUSTERED or NONCLUSTERED.
PrimaryKeyType string `protobuf:"bytes,21,opt,name=primary_key_type,json=primaryKeyType,proto3" json:"primary_key_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TableMetadata) Reset() {
*x = TableMetadata{}
mi := &file_v1_database_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TableMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TableMetadata) ProtoMessage() {}
func (x *TableMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_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 TableMetadata.ProtoReflect.Descriptor instead.
func (*TableMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{31}
}
func (x *TableMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TableMetadata) GetColumns() []*ColumnMetadata {
if x != nil {
return x.Columns
}
return nil
}
func (x *TableMetadata) GetIndexes() []*IndexMetadata {
if x != nil {
return x.Indexes
}
return nil
}
func (x *TableMetadata) GetEngine() string {
if x != nil {
return x.Engine
}
return ""
}
func (x *TableMetadata) GetCollation() string {
if x != nil {
return x.Collation
}
return ""
}
func (x *TableMetadata) GetCharset() string {
if x != nil {
return x.Charset
}
return ""
}
func (x *TableMetadata) GetRowCount() int64 {
if x != nil {
return x.RowCount
}
return 0
}
func (x *TableMetadata) GetDataSize() int64 {
if x != nil {
return x.DataSize
}
return 0
}
func (x *TableMetadata) GetIndexSize() int64 {
if x != nil {
return x.IndexSize
}
return 0
}
func (x *TableMetadata) GetDataFree() int64 {
if x != nil {
return x.DataFree
}
return 0
}
func (x *TableMetadata) GetCreateOptions() string {
if x != nil {
return x.CreateOptions
}
return ""
}
func (x *TableMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *TableMetadata) GetForeignKeys() []*ForeignKeyMetadata {
if x != nil {
return x.ForeignKeys
}
return nil
}
func (x *TableMetadata) GetPartitions() []*TablePartitionMetadata {
if x != nil {
return x.Partitions
}
return nil
}
func (x *TableMetadata) GetCheckConstraints() []*CheckConstraintMetadata {
if x != nil {
return x.CheckConstraints
}
return nil
}
func (x *TableMetadata) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *TableMetadata) GetSortingKeys() []string {
if x != nil {
return x.SortingKeys
}
return nil
}
func (x *TableMetadata) GetTriggers() []*TriggerMetadata {
if x != nil {
return x.Triggers
}
return nil
}
func (x *TableMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
func (x *TableMetadata) GetShardingInfo() string {
if x != nil {
return x.ShardingInfo
}
return ""
}
func (x *TableMetadata) GetPrimaryKeyType() string {
if x != nil {
return x.PrimaryKeyType
}
return ""
}
// CheckConstraintMetadata is the metadata for check constraints.
type CheckConstraintMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a check constraint.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The expression is the expression of a check constraint.
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CheckConstraintMetadata) Reset() {
*x = CheckConstraintMetadata{}
mi := &file_v1_database_service_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CheckConstraintMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckConstraintMetadata) ProtoMessage() {}
func (x *CheckConstraintMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[32]
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 CheckConstraintMetadata.ProtoReflect.Descriptor instead.
func (*CheckConstraintMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{32}
}
func (x *CheckConstraintMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CheckConstraintMetadata) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
// TablePartitionMetadata is the metadata for table partitions.
type TablePartitionMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a table partition.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of a table partition.
Type TablePartitionMetadata_Type `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.v1.TablePartitionMetadata_Type" json:"type,omitempty"`
// The expression is the expression of a table partition.
// For PostgreSQL, the expression is the text of {FOR VALUES
// partition_bound_spec}, see
// https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL,
// the expression is the `expr` or `column_list` of the following syntax.
// PARTITION BY
//
// { [LINEAR] HASH(expr)
// | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
// | RANGE{(expr) | COLUMNS(column_list)}
// | LIST{(expr) | COLUMNS(column_list)} }.
Expression string `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"`
// The value is the value of a table partition.
// For MySQL, the value is for RANGE and LIST partition types,
// - For a RANGE partition, it contains the value set in the partition's
// VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
// - For a LIST partition, this column contains the values defined in the
// partition's VALUES IN clause, which is a list of comma-separated integer
// values.
// - For others, it's an empty string.
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// The use_default is whether the users use the default partition, it stores
// the different value for different database engines. For MySQL, it's [INT]
// type, 0 means not use default partition, otherwise, it's equals to number
// in syntax [SUB]PARTITION {number}.
UseDefault string `protobuf:"bytes,5,opt,name=use_default,json=useDefault,proto3" json:"use_default,omitempty"`
// The subpartitions is the list of subpartitions in a table partition.
Subpartitions []*TablePartitionMetadata `protobuf:"bytes,6,rep,name=subpartitions,proto3" json:"subpartitions,omitempty"`
Indexes []*IndexMetadata `protobuf:"bytes,7,rep,name=indexes,proto3" json:"indexes,omitempty"`
CheckConstraints []*CheckConstraintMetadata `protobuf:"bytes,8,rep,name=check_constraints,json=checkConstraints,proto3" json:"check_constraints,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TablePartitionMetadata) Reset() {
*x = TablePartitionMetadata{}
mi := &file_v1_database_service_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TablePartitionMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TablePartitionMetadata) ProtoMessage() {}
func (x *TablePartitionMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[33]
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 TablePartitionMetadata.ProtoReflect.Descriptor instead.
func (*TablePartitionMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{33}
}
func (x *TablePartitionMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TablePartitionMetadata) GetType() TablePartitionMetadata_Type {
if x != nil {
return x.Type
}
return TablePartitionMetadata_TYPE_UNSPECIFIED
}
func (x *TablePartitionMetadata) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
func (x *TablePartitionMetadata) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *TablePartitionMetadata) GetUseDefault() string {
if x != nil {
return x.UseDefault
}
return ""
}
func (x *TablePartitionMetadata) GetSubpartitions() []*TablePartitionMetadata {
if x != nil {
return x.Subpartitions
}
return nil
}
func (x *TablePartitionMetadata) GetIndexes() []*IndexMetadata {
if x != nil {
return x.Indexes
}
return nil
}
func (x *TablePartitionMetadata) GetCheckConstraints() []*CheckConstraintMetadata {
if x != nil {
return x.CheckConstraints
}
return nil
}
// ColumnMetadata is the metadata for columns.
type ColumnMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a column.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The position is the position in columns.
Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
HasDefault bool `protobuf:"varint,3,opt,name=has_default,json=hasDefault,proto3" json:"has_default,omitempty"`
// The default value of column.
Default string `protobuf:"bytes,4,opt,name=default,proto3" json:"default,omitempty"`
// Oracle specific metadata.
// The default_on_null is the default on null of a column.
DefaultOnNull bool `protobuf:"varint,5,opt,name=default_on_null,json=defaultOnNull,proto3" json:"default_on_null,omitempty"`
// The on_update is the on update action of a column.
// For MySQL like databases, it's only supported for TIMESTAMP columns with
// CURRENT_TIMESTAMP as on update value.
OnUpdate string `protobuf:"bytes,6,opt,name=on_update,json=onUpdate,proto3" json:"on_update,omitempty"`
// The nullable is the nullable of a column.
Nullable bool `protobuf:"varint,7,opt,name=nullable,proto3" json:"nullable,omitempty"`
// The type is the type of a column.
Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
// The character_set is the character_set of a column.
CharacterSet string `protobuf:"bytes,9,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
// The collation is the collation of a column.
Collation string `protobuf:"bytes,10,opt,name=collation,proto3" json:"collation,omitempty"`
// The comment is the comment of a column.
Comment string `protobuf:"bytes,11,opt,name=comment,proto3" json:"comment,omitempty"`
// The generation is the generation of a column.
Generation *GenerationMetadata `protobuf:"bytes,12,opt,name=generation,proto3" json:"generation,omitempty"`
IsIdentity bool `protobuf:"varint,13,opt,name=is_identity,json=isIdentity,proto3" json:"is_identity,omitempty"`
// The identity_generation is for identity columns, PG only.
IdentityGeneration ColumnMetadata_IdentityGeneration `protobuf:"varint,14,opt,name=identity_generation,json=identityGeneration,proto3,enum=bytebase.v1.ColumnMetadata_IdentityGeneration" json:"identity_generation,omitempty"`
// The identity_seed is for identity columns, MSSQL only.
IdentitySeed int64 `protobuf:"varint,15,opt,name=identity_seed,json=identitySeed,proto3" json:"identity_seed,omitempty"`
// The identity_increment is for identity columns, MSSQL only.
IdentityIncrement int64 `protobuf:"varint,16,opt,name=identity_increment,json=identityIncrement,proto3" json:"identity_increment,omitempty"`
// The default_constraint_name is the name of the default constraint, MSSQL only.
// In MSSQL, default values are implemented as named constraints. When modifying or
// dropping a column's default value, you must reference the constraint by name.
// This field stores the actual constraint name from the database.
//
// Example: A column definition like:
//
// CREATE TABLE employees (
// status NVARCHAR(20) DEFAULT 'active'
// )
//
// Will create a constraint with an auto-generated name like 'DF__employees__statu__3B75D760'
// or a user-defined name if specified:
//
// ALTER TABLE employees ADD CONSTRAINT DF_employees_status DEFAULT 'active' FOR status
//
// To modify the default, you must first drop the existing constraint by name:
//
// ALTER TABLE employees DROP CONSTRAINT DF__employees__statu__3B75D760
// ALTER TABLE employees ADD CONSTRAINT DF_employees_status DEFAULT 'inactive' FOR status
//
// This field is populated when syncing from the database. When empty (e.g., when parsing
// from SQL files), the system cannot automatically drop the constraint.
DefaultConstraintName string `protobuf:"bytes,17,opt,name=default_constraint_name,json=defaultConstraintName,proto3" json:"default_constraint_name,omitempty"`
// The spatial reference system identifier of a spatial column, MySQL 8.0 only.
// Unset means the column declares no SRID; presence carries the explicit SRID,
// including the valid SRID 0. SRS_IDs are unsigned 32-bit (custom SRSs may exceed
// int32).
Srid *uint32 `protobuf:"varint,18,opt,name=srid,proto3,oneof" json:"srid,omitempty"`
// Whether the column is invisible (hidden from SELECT *), MySQL 8.0.23+ only.
IsInvisible bool `protobuf:"varint,19,opt,name=is_invisible,json=isInvisible,proto3" json:"is_invisible,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ColumnMetadata) Reset() {
*x = ColumnMetadata{}
mi := &file_v1_database_service_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ColumnMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ColumnMetadata) ProtoMessage() {}
func (x *ColumnMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[34]
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 ColumnMetadata.ProtoReflect.Descriptor instead.
func (*ColumnMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{34}
}
func (x *ColumnMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ColumnMetadata) GetPosition() int32 {
if x != nil {
return x.Position
}
return 0
}
func (x *ColumnMetadata) GetHasDefault() bool {
if x != nil {
return x.HasDefault
}
return false
}
func (x *ColumnMetadata) GetDefault() string {
if x != nil {
return x.Default
}
return ""
}
func (x *ColumnMetadata) GetDefaultOnNull() bool {
if x != nil {
return x.DefaultOnNull
}
return false
}
func (x *ColumnMetadata) GetOnUpdate() string {
if x != nil {
return x.OnUpdate
}
return ""
}
func (x *ColumnMetadata) GetNullable() bool {
if x != nil {
return x.Nullable
}
return false
}
func (x *ColumnMetadata) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *ColumnMetadata) GetCharacterSet() string {
if x != nil {
return x.CharacterSet
}
return ""
}
func (x *ColumnMetadata) GetCollation() string {
if x != nil {
return x.Collation
}
return ""
}
func (x *ColumnMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *ColumnMetadata) GetGeneration() *GenerationMetadata {
if x != nil {
return x.Generation
}
return nil
}
func (x *ColumnMetadata) GetIsIdentity() bool {
if x != nil {
return x.IsIdentity
}
return false
}
func (x *ColumnMetadata) GetIdentityGeneration() ColumnMetadata_IdentityGeneration {
if x != nil {
return x.IdentityGeneration
}
return ColumnMetadata_IDENTITY_GENERATION_UNSPECIFIED
}
func (x *ColumnMetadata) GetIdentitySeed() int64 {
if x != nil {
return x.IdentitySeed
}
return 0
}
func (x *ColumnMetadata) GetIdentityIncrement() int64 {
if x != nil {
return x.IdentityIncrement
}
return 0
}
func (x *ColumnMetadata) GetDefaultConstraintName() string {
if x != nil {
return x.DefaultConstraintName
}
return ""
}
func (x *ColumnMetadata) GetSrid() uint32 {
if x != nil && x.Srid != nil {
return *x.Srid
}
return 0
}
func (x *ColumnMetadata) GetIsInvisible() bool {
if x != nil {
return x.IsInvisible
}
return false
}
type GenerationMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type GenerationMetadata_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.GenerationMetadata_Type" json:"type,omitempty"`
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GenerationMetadata) Reset() {
*x = GenerationMetadata{}
mi := &file_v1_database_service_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GenerationMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenerationMetadata) ProtoMessage() {}
func (x *GenerationMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[35]
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 GenerationMetadata.ProtoReflect.Descriptor instead.
func (*GenerationMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{35}
}
func (x *GenerationMetadata) GetType() GenerationMetadata_Type {
if x != nil {
return x.Type
}
return GenerationMetadata_TYPE_UNSPECIFIED
}
func (x *GenerationMetadata) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
// ViewMetadata is the metadata for views.
type ViewMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a view.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The definition is the definition of a view.
Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
// The comment is the comment of a view.
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
// The dependency_columns is the list of dependency columns of a view.
DependencyColumns []*DependencyColumn `protobuf:"bytes,4,rep,name=dependency_columns,json=dependencyColumns,proto3" json:"dependency_columns,omitempty"`
// The columns is the ordered list of columns in a table.
Columns []*ColumnMetadata `protobuf:"bytes,5,rep,name=columns,proto3" json:"columns,omitempty"`
// The triggers is the list of triggers in a view.
Triggers []*TriggerMetadata `protobuf:"bytes,6,rep,name=triggers,proto3" json:"triggers,omitempty"`
SkipDump bool `protobuf:"varint,7,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ViewMetadata) Reset() {
*x = ViewMetadata{}
mi := &file_v1_database_service_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ViewMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ViewMetadata) ProtoMessage() {}
func (x *ViewMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[36]
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 ViewMetadata.ProtoReflect.Descriptor instead.
func (*ViewMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{36}
}
func (x *ViewMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ViewMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *ViewMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *ViewMetadata) GetDependencyColumns() []*DependencyColumn {
if x != nil {
return x.DependencyColumns
}
return nil
}
func (x *ViewMetadata) GetColumns() []*ColumnMetadata {
if x != nil {
return x.Columns
}
return nil
}
func (x *ViewMetadata) GetTriggers() []*TriggerMetadata {
if x != nil {
return x.Triggers
}
return nil
}
func (x *ViewMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
// DependencyColumn is the metadata for dependency columns.
type DependencyColumn struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The schema is the schema of a reference column.
Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
// The table is the table of a reference column.
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
// The column is the name of a reference column.
Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DependencyColumn) Reset() {
*x = DependencyColumn{}
mi := &file_v1_database_service_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DependencyColumn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DependencyColumn) ProtoMessage() {}
func (x *DependencyColumn) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[37]
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 DependencyColumn.ProtoReflect.Descriptor instead.
func (*DependencyColumn) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{37}
}
func (x *DependencyColumn) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
func (x *DependencyColumn) GetTable() string {
if x != nil {
return x.Table
}
return ""
}
func (x *DependencyColumn) GetColumn() string {
if x != nil {
return x.Column
}
return ""
}
// MaterializedViewMetadata is the metadata for materialized views.
type MaterializedViewMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a materialized view.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The definition is the definition of a materialized view.
Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
// The comment is the comment of a materialized view.
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
// The dependency_columns is the list of dependency columns of a materialized
// view.
DependencyColumns []*DependencyColumn `protobuf:"bytes,4,rep,name=dependency_columns,json=dependencyColumns,proto3" json:"dependency_columns,omitempty"`
// The columns is the ordered list of columns in a table.
Triggers []*TriggerMetadata `protobuf:"bytes,5,rep,name=triggers,proto3" json:"triggers,omitempty"`
// The indexes is the list of indexes in a table.
Indexes []*IndexMetadata `protobuf:"bytes,6,rep,name=indexes,proto3" json:"indexes,omitempty"`
SkipDump bool `protobuf:"varint,7,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MaterializedViewMetadata) Reset() {
*x = MaterializedViewMetadata{}
mi := &file_v1_database_service_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MaterializedViewMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MaterializedViewMetadata) ProtoMessage() {}
func (x *MaterializedViewMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[38]
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 MaterializedViewMetadata.ProtoReflect.Descriptor instead.
func (*MaterializedViewMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{38}
}
func (x *MaterializedViewMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *MaterializedViewMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *MaterializedViewMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *MaterializedViewMetadata) GetDependencyColumns() []*DependencyColumn {
if x != nil {
return x.DependencyColumns
}
return nil
}
func (x *MaterializedViewMetadata) GetTriggers() []*TriggerMetadata {
if x != nil {
return x.Triggers
}
return nil
}
func (x *MaterializedViewMetadata) GetIndexes() []*IndexMetadata {
if x != nil {
return x.Indexes
}
return nil
}
func (x *MaterializedViewMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
type DependencyTable struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The schema is the schema of a reference table.
Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
// The table is the name of a reference table.
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DependencyTable) Reset() {
*x = DependencyTable{}
mi := &file_v1_database_service_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DependencyTable) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DependencyTable) ProtoMessage() {}
func (x *DependencyTable) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[39]
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 DependencyTable.ProtoReflect.Descriptor instead.
func (*DependencyTable) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{39}
}
func (x *DependencyTable) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
func (x *DependencyTable) GetTable() string {
if x != nil {
return x.Table
}
return ""
}
// FunctionMetadata is the metadata for functions.
type FunctionMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a function.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The definition is the definition of a function.
Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
// The signature is the name with the number and type of input arguments the
// function takes.
Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// MySQL specific metadata.
CharacterSetClient string `protobuf:"bytes,4,opt,name=character_set_client,json=characterSetClient,proto3" json:"character_set_client,omitempty"`
CollationConnection string `protobuf:"bytes,5,opt,name=collation_connection,json=collationConnection,proto3" json:"collation_connection,omitempty"`
DatabaseCollation string `protobuf:"bytes,6,opt,name=database_collation,json=databaseCollation,proto3" json:"database_collation,omitempty"`
SqlMode string `protobuf:"bytes,7,opt,name=sql_mode,json=sqlMode,proto3" json:"sql_mode,omitempty"`
Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
// The dependency_tables is the list of dependency tables of a function.
// For PostgreSQL, it's the list of tables that the function depends on the return type definition.
DependencyTables []*DependencyTable `protobuf:"bytes,9,rep,name=dependency_tables,json=dependencyTables,proto3" json:"dependency_tables,omitempty"`
SkipDump bool `protobuf:"varint,10,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FunctionMetadata) Reset() {
*x = FunctionMetadata{}
mi := &file_v1_database_service_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FunctionMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionMetadata) ProtoMessage() {}
func (x *FunctionMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[40]
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 FunctionMetadata.ProtoReflect.Descriptor instead.
func (*FunctionMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{40}
}
func (x *FunctionMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *FunctionMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *FunctionMetadata) GetSignature() string {
if x != nil {
return x.Signature
}
return ""
}
func (x *FunctionMetadata) GetCharacterSetClient() string {
if x != nil {
return x.CharacterSetClient
}
return ""
}
func (x *FunctionMetadata) GetCollationConnection() string {
if x != nil {
return x.CollationConnection
}
return ""
}
func (x *FunctionMetadata) GetDatabaseCollation() string {
if x != nil {
return x.DatabaseCollation
}
return ""
}
func (x *FunctionMetadata) GetSqlMode() string {
if x != nil {
return x.SqlMode
}
return ""
}
func (x *FunctionMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *FunctionMetadata) GetDependencyTables() []*DependencyTable {
if x != nil {
return x.DependencyTables
}
return nil
}
func (x *FunctionMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
// ProcedureMetadata is the metadata for procedures.
type ProcedureMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a procedure.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The definition is the definition of a procedure.
Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
// The signature is the name with the number and type of input arguments the
// procedure takes.
Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// MySQL specific metadata.
CharacterSetClient string `protobuf:"bytes,4,opt,name=character_set_client,json=characterSetClient,proto3" json:"character_set_client,omitempty"`
CollationConnection string `protobuf:"bytes,5,opt,name=collation_connection,json=collationConnection,proto3" json:"collation_connection,omitempty"`
DatabaseCollation string `protobuf:"bytes,6,opt,name=database_collation,json=databaseCollation,proto3" json:"database_collation,omitempty"`
SqlMode string `protobuf:"bytes,7,opt,name=sql_mode,json=sqlMode,proto3" json:"sql_mode,omitempty"`
// The comment is the comment of a procedure.
Comment string `protobuf:"bytes,9,opt,name=comment,proto3" json:"comment,omitempty"`
SkipDump bool `protobuf:"varint,8,opt,name=skip_dump,json=skipDump,proto3" json:"skip_dump,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProcedureMetadata) Reset() {
*x = ProcedureMetadata{}
mi := &file_v1_database_service_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProcedureMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProcedureMetadata) ProtoMessage() {}
func (x *ProcedureMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[41]
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 ProcedureMetadata.ProtoReflect.Descriptor instead.
func (*ProcedureMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{41}
}
func (x *ProcedureMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ProcedureMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *ProcedureMetadata) GetSignature() string {
if x != nil {
return x.Signature
}
return ""
}
func (x *ProcedureMetadata) GetCharacterSetClient() string {
if x != nil {
return x.CharacterSetClient
}
return ""
}
func (x *ProcedureMetadata) GetCollationConnection() string {
if x != nil {
return x.CollationConnection
}
return ""
}
func (x *ProcedureMetadata) GetDatabaseCollation() string {
if x != nil {
return x.DatabaseCollation
}
return ""
}
func (x *ProcedureMetadata) GetSqlMode() string {
if x != nil {
return x.SqlMode
}
return ""
}
func (x *ProcedureMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *ProcedureMetadata) GetSkipDump() bool {
if x != nil {
return x.SkipDump
}
return false
}
// PackageMetadata is the metadata for packages.
type PackageMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a package.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The definition is the definition of a package.
Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PackageMetadata) Reset() {
*x = PackageMetadata{}
mi := &file_v1_database_service_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PackageMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PackageMetadata) ProtoMessage() {}
func (x *PackageMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[42]
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 PackageMetadata.ProtoReflect.Descriptor instead.
func (*PackageMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{42}
}
func (x *PackageMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PackageMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
type TaskMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a task.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The id is the snowflake-generated id of a task.
// Example: 01ad32a0-1bb6-5e93-0000-000000000001
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The owner of the task.
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// The comment of the task.
Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
// The warehouse of the task.
Warehouse string `protobuf:"bytes,5,opt,name=warehouse,proto3" json:"warehouse,omitempty"`
// The schedule interval of the task.
Schedule string `protobuf:"bytes,6,opt,name=schedule,proto3" json:"schedule,omitempty"`
// The predecessor tasks of the task.
Predecessors []string `protobuf:"bytes,7,rep,name=predecessors,proto3" json:"predecessors,omitempty"`
// The state of the task.
State TaskMetadata_State `protobuf:"varint,8,opt,name=state,proto3,enum=bytebase.v1.TaskMetadata_State" json:"state,omitempty"`
// The condition of the task.
Condition string `protobuf:"bytes,9,opt,name=condition,proto3" json:"condition,omitempty"`
// The definition of the task.
Definition string `protobuf:"bytes,10,opt,name=definition,proto3" json:"definition,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TaskMetadata) Reset() {
*x = TaskMetadata{}
mi := &file_v1_database_service_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TaskMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskMetadata) ProtoMessage() {}
func (x *TaskMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[43]
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 TaskMetadata.ProtoReflect.Descriptor instead.
func (*TaskMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{43}
}
func (x *TaskMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TaskMetadata) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TaskMetadata) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *TaskMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *TaskMetadata) GetWarehouse() string {
if x != nil {
return x.Warehouse
}
return ""
}
func (x *TaskMetadata) GetSchedule() string {
if x != nil {
return x.Schedule
}
return ""
}
func (x *TaskMetadata) GetPredecessors() []string {
if x != nil {
return x.Predecessors
}
return nil
}
func (x *TaskMetadata) GetState() TaskMetadata_State {
if x != nil {
return x.State
}
return TaskMetadata_STATE_UNSPECIFIED
}
func (x *TaskMetadata) GetCondition() string {
if x != nil {
return x.Condition
}
return ""
}
func (x *TaskMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
type StreamMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a stream.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The table_name is the name of the table/view that the stream is created on.
TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// The owner of the stream.
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// The comment of the stream.
Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
// The type of the stream.
Type StreamMetadata_Type `protobuf:"varint,5,opt,name=type,proto3,enum=bytebase.v1.StreamMetadata_Type" json:"type,omitempty"`
// Indicates whether the stream was last read before the `stale_after` time.
Stale bool `protobuf:"varint,6,opt,name=stale,proto3" json:"stale,omitempty"`
// The mode of the stream.
Mode StreamMetadata_Mode `protobuf:"varint,7,opt,name=mode,proto3,enum=bytebase.v1.StreamMetadata_Mode" json:"mode,omitempty"`
// The definition of the stream.
Definition string `protobuf:"bytes,8,opt,name=definition,proto3" json:"definition,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StreamMetadata) Reset() {
*x = StreamMetadata{}
mi := &file_v1_database_service_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StreamMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StreamMetadata) ProtoMessage() {}
func (x *StreamMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[44]
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 StreamMetadata.ProtoReflect.Descriptor instead.
func (*StreamMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{44}
}
func (x *StreamMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *StreamMetadata) GetTableName() string {
if x != nil {
return x.TableName
}
return ""
}
func (x *StreamMetadata) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *StreamMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *StreamMetadata) GetType() StreamMetadata_Type {
if x != nil {
return x.Type
}
return StreamMetadata_TYPE_UNSPECIFIED
}
func (x *StreamMetadata) GetStale() bool {
if x != nil {
return x.Stale
}
return false
}
func (x *StreamMetadata) GetMode() StreamMetadata_Mode {
if x != nil {
return x.Mode
}
return StreamMetadata_MODE_UNSPECIFIED
}
func (x *StreamMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
// SpatialIndexConfig defines the spatial index configuration for spatial databases.
type SpatialIndexConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Spatial indexing method (e.g., "SPATIAL", "R-TREE", "GIST")
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
// Tessellation configuration for grid-based spatial indexes
Tessellation *TessellationConfig `protobuf:"bytes,2,opt,name=tessellation,proto3" json:"tessellation,omitempty"`
// Storage and performance configuration
Storage *StorageConfig `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty"`
// Dimensional configuration
Dimensional *DimensionalConfig `protobuf:"bytes,4,opt,name=dimensional,proto3" json:"dimensional,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SpatialIndexConfig) Reset() {
*x = SpatialIndexConfig{}
mi := &file_v1_database_service_proto_msgTypes[45]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SpatialIndexConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SpatialIndexConfig) ProtoMessage() {}
func (x *SpatialIndexConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[45]
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 SpatialIndexConfig.ProtoReflect.Descriptor instead.
func (*SpatialIndexConfig) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{45}
}
func (x *SpatialIndexConfig) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *SpatialIndexConfig) GetTessellation() *TessellationConfig {
if x != nil {
return x.Tessellation
}
return nil
}
func (x *SpatialIndexConfig) GetStorage() *StorageConfig {
if x != nil {
return x.Storage
}
return nil
}
func (x *SpatialIndexConfig) GetDimensional() *DimensionalConfig {
if x != nil {
return x.Dimensional
}
return nil
}
// TessellationConfig defines tessellation parameters for spatial indexes.
type TessellationConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Tessellation scheme (e.g., "GEOMETRY_GRID", "GEOGRAPHY_GRID", "GEOMETRY_AUTO_GRID")
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
// Grid levels and densities for multi-level tessellation
GridLevels []*GridLevel `protobuf:"bytes,2,rep,name=grid_levels,json=gridLevels,proto3" json:"grid_levels,omitempty"`
// Number of cells per object (1-8192 for SQL Server)
CellsPerObject int32 `protobuf:"varint,3,opt,name=cells_per_object,json=cellsPerObject,proto3" json:"cells_per_object,omitempty"`
// Bounding box for GEOMETRY tessellation (not used for GEOGRAPHY)
BoundingBox *BoundingBox `protobuf:"bytes,4,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TessellationConfig) Reset() {
*x = TessellationConfig{}
mi := &file_v1_database_service_proto_msgTypes[46]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TessellationConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TessellationConfig) ProtoMessage() {}
func (x *TessellationConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[46]
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 TessellationConfig.ProtoReflect.Descriptor instead.
func (*TessellationConfig) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{46}
}
func (x *TessellationConfig) GetScheme() string {
if x != nil {
return x.Scheme
}
return ""
}
func (x *TessellationConfig) GetGridLevels() []*GridLevel {
if x != nil {
return x.GridLevels
}
return nil
}
func (x *TessellationConfig) GetCellsPerObject() int32 {
if x != nil {
return x.CellsPerObject
}
return 0
}
func (x *TessellationConfig) GetBoundingBox() *BoundingBox {
if x != nil {
return x.BoundingBox
}
return nil
}
// GridLevel defines a tessellation grid level with its density.
type GridLevel struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Grid level number (1-4 for SQL Server)
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
// Grid density (LOW, MEDIUM, HIGH)
Density string `protobuf:"bytes,2,opt,name=density,proto3" json:"density,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GridLevel) Reset() {
*x = GridLevel{}
mi := &file_v1_database_service_proto_msgTypes[47]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GridLevel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GridLevel) ProtoMessage() {}
func (x *GridLevel) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[47]
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 GridLevel.ProtoReflect.Descriptor instead.
func (*GridLevel) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{47}
}
func (x *GridLevel) GetLevel() int32 {
if x != nil {
return x.Level
}
return 0
}
func (x *GridLevel) GetDensity() string {
if x != nil {
return x.Density
}
return ""
}
// BoundingBox defines the spatial bounds for GEOMETRY spatial indexes.
type BoundingBox struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Minimum X coordinate
Xmin float64 `protobuf:"fixed64,1,opt,name=xmin,proto3" json:"xmin,omitempty"`
// Minimum Y coordinate
Ymin float64 `protobuf:"fixed64,2,opt,name=ymin,proto3" json:"ymin,omitempty"`
// Maximum X coordinate
Xmax float64 `protobuf:"fixed64,3,opt,name=xmax,proto3" json:"xmax,omitempty"`
// Maximum Y coordinate
Ymax float64 `protobuf:"fixed64,4,opt,name=ymax,proto3" json:"ymax,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BoundingBox) Reset() {
*x = BoundingBox{}
mi := &file_v1_database_service_proto_msgTypes[48]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BoundingBox) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BoundingBox) ProtoMessage() {}
func (x *BoundingBox) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[48]
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 BoundingBox.ProtoReflect.Descriptor instead.
func (*BoundingBox) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{48}
}
func (x *BoundingBox) GetXmin() float64 {
if x != nil {
return x.Xmin
}
return 0
}
func (x *BoundingBox) GetYmin() float64 {
if x != nil {
return x.Ymin
}
return 0
}
func (x *BoundingBox) GetXmax() float64 {
if x != nil {
return x.Xmax
}
return 0
}
func (x *BoundingBox) GetYmax() float64 {
if x != nil {
return x.Ymax
}
return 0
}
// StorageConfig defines storage and performance parameters for spatial indexes.
type StorageConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Fill factor percentage (1-100)
Fillfactor int32 `protobuf:"varint,1,opt,name=fillfactor,proto3" json:"fillfactor,omitempty"`
// Buffering mode for PostgreSQL (auto, on, off)
Buffering string `protobuf:"bytes,2,opt,name=buffering,proto3" json:"buffering,omitempty"`
// Tablespace configuration for Oracle
Tablespace string `protobuf:"bytes,3,opt,name=tablespace,proto3" json:"tablespace,omitempty"`
WorkTablespace string `protobuf:"bytes,4,opt,name=work_tablespace,json=workTablespace,proto3" json:"work_tablespace,omitempty"`
SdoLevel int32 `protobuf:"varint,5,opt,name=sdo_level,json=sdoLevel,proto3" json:"sdo_level,omitempty"`
CommitInterval int32 `protobuf:"varint,6,opt,name=commit_interval,json=commitInterval,proto3" json:"commit_interval,omitempty"`
// SQL Server specific parameters
PadIndex bool `protobuf:"varint,7,opt,name=pad_index,json=padIndex,proto3" json:"pad_index,omitempty"`
SortInTempdb string `protobuf:"bytes,8,opt,name=sort_in_tempdb,json=sortInTempdb,proto3" json:"sort_in_tempdb,omitempty"` // ON, OFF
DropExisting bool `protobuf:"varint,9,opt,name=drop_existing,json=dropExisting,proto3" json:"drop_existing,omitempty"`
Online bool `protobuf:"varint,10,opt,name=online,proto3" json:"online,omitempty"`
AllowRowLocks bool `protobuf:"varint,11,opt,name=allow_row_locks,json=allowRowLocks,proto3" json:"allow_row_locks,omitempty"`
AllowPageLocks bool `protobuf:"varint,12,opt,name=allow_page_locks,json=allowPageLocks,proto3" json:"allow_page_locks,omitempty"`
Maxdop int32 `protobuf:"varint,13,opt,name=maxdop,proto3" json:"maxdop,omitempty"`
DataCompression string `protobuf:"bytes,14,opt,name=data_compression,json=dataCompression,proto3" json:"data_compression,omitempty"` // NONE, ROW, PAGE
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StorageConfig) Reset() {
*x = StorageConfig{}
mi := &file_v1_database_service_proto_msgTypes[49]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StorageConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StorageConfig) ProtoMessage() {}
func (x *StorageConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[49]
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 StorageConfig.ProtoReflect.Descriptor instead.
func (*StorageConfig) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{49}
}
func (x *StorageConfig) GetFillfactor() int32 {
if x != nil {
return x.Fillfactor
}
return 0
}
func (x *StorageConfig) GetBuffering() string {
if x != nil {
return x.Buffering
}
return ""
}
func (x *StorageConfig) GetTablespace() string {
if x != nil {
return x.Tablespace
}
return ""
}
func (x *StorageConfig) GetWorkTablespace() string {
if x != nil {
return x.WorkTablespace
}
return ""
}
func (x *StorageConfig) GetSdoLevel() int32 {
if x != nil {
return x.SdoLevel
}
return 0
}
func (x *StorageConfig) GetCommitInterval() int32 {
if x != nil {
return x.CommitInterval
}
return 0
}
func (x *StorageConfig) GetPadIndex() bool {
if x != nil {
return x.PadIndex
}
return false
}
func (x *StorageConfig) GetSortInTempdb() string {
if x != nil {
return x.SortInTempdb
}
return ""
}
func (x *StorageConfig) GetDropExisting() bool {
if x != nil {
return x.DropExisting
}
return false
}
func (x *StorageConfig) GetOnline() bool {
if x != nil {
return x.Online
}
return false
}
func (x *StorageConfig) GetAllowRowLocks() bool {
if x != nil {
return x.AllowRowLocks
}
return false
}
func (x *StorageConfig) GetAllowPageLocks() bool {
if x != nil {
return x.AllowPageLocks
}
return false
}
func (x *StorageConfig) GetMaxdop() int32 {
if x != nil {
return x.Maxdop
}
return 0
}
func (x *StorageConfig) GetDataCompression() string {
if x != nil {
return x.DataCompression
}
return ""
}
// DimensionalConfig defines dimensional and constraint parameters for spatial indexes.
type DimensionalConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Number of dimensions (2-4, default 2)
Dimensions int32 `protobuf:"varint,1,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
// Spatial data type (GEOMETRY, GEOGRAPHY, POINT, POLYGON, etc.)
DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
// Spatial reference system identifier (SRID)
Srid int32 `protobuf:"varint,3,opt,name=srid,proto3" json:"srid,omitempty"`
// Coordinate system constraints
Constraints []*DimensionConstraint `protobuf:"bytes,4,rep,name=constraints,proto3" json:"constraints,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DimensionalConfig) Reset() {
*x = DimensionalConfig{}
mi := &file_v1_database_service_proto_msgTypes[50]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DimensionalConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DimensionalConfig) ProtoMessage() {}
func (x *DimensionalConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[50]
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 DimensionalConfig.ProtoReflect.Descriptor instead.
func (*DimensionalConfig) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{50}
}
func (x *DimensionalConfig) GetDimensions() int32 {
if x != nil {
return x.Dimensions
}
return 0
}
func (x *DimensionalConfig) GetDataType() string {
if x != nil {
return x.DataType
}
return ""
}
func (x *DimensionalConfig) GetSrid() int32 {
if x != nil {
return x.Srid
}
return 0
}
func (x *DimensionalConfig) GetConstraints() []*DimensionConstraint {
if x != nil {
return x.Constraints
}
return nil
}
// DimensionConstraint defines constraints for a spatial dimension.
type DimensionConstraint struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Dimension name/type (X, Y, Z, M, etc.)
Dimension string `protobuf:"bytes,1,opt,name=dimension,proto3" json:"dimension,omitempty"`
// Minimum value for this dimension
MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
// Maximum value for this dimension
MaxValue float64 `protobuf:"fixed64,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
// Tolerance for this dimension
Tolerance float64 `protobuf:"fixed64,4,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DimensionConstraint) Reset() {
*x = DimensionConstraint{}
mi := &file_v1_database_service_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DimensionConstraint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DimensionConstraint) ProtoMessage() {}
func (x *DimensionConstraint) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[51]
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 DimensionConstraint.ProtoReflect.Descriptor instead.
func (*DimensionConstraint) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{51}
}
func (x *DimensionConstraint) GetDimension() string {
if x != nil {
return x.Dimension
}
return ""
}
func (x *DimensionConstraint) GetMinValue() float64 {
if x != nil {
return x.MinValue
}
return 0
}
func (x *DimensionConstraint) GetMaxValue() float64 {
if x != nil {
return x.MaxValue
}
return 0
}
func (x *DimensionConstraint) GetTolerance() float64 {
if x != nil {
return x.Tolerance
}
return 0
}
// IndexMetadata is the metadata for indexes.
type IndexMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of an index.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The expressions are the ordered columns or expressions of an index.
// This could refer to a column or an expression.
Expressions []string `protobuf:"bytes,2,rep,name=expressions,proto3" json:"expressions,omitempty"`
// The key_lengths are the ordered key lengths of an index.
// If the key length is not specified, it's -1.
KeyLength []int64 `protobuf:"varint,3,rep,packed,name=key_length,json=keyLength,proto3" json:"key_length,omitempty"`
// The descending is the ordered descending of an index.
Descending []bool `protobuf:"varint,4,rep,packed,name=descending,proto3" json:"descending,omitempty"`
// The type is the type of an index.
Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
// The unique is whether the index is unique.
Unique bool `protobuf:"varint,6,opt,name=unique,proto3" json:"unique,omitempty"`
// The primary is whether the index is a primary key index.
Primary bool `protobuf:"varint,7,opt,name=primary,proto3" json:"primary,omitempty"`
// The visible is whether the index is visible.
Visible bool `protobuf:"varint,8,opt,name=visible,proto3" json:"visible,omitempty"`
// The comment is the comment of an index.
Comment string `protobuf:"bytes,9,opt,name=comment,proto3" json:"comment,omitempty"`
// The definition of an index.
Definition string `protobuf:"bytes,10,opt,name=definition,proto3" json:"definition,omitempty"`
// The schema name of the parent index.
ParentIndexSchema string `protobuf:"bytes,11,opt,name=parent_index_schema,json=parentIndexSchema,proto3" json:"parent_index_schema,omitempty"`
// The index name of the parent index.
ParentIndexName string `protobuf:"bytes,12,opt,name=parent_index_name,json=parentIndexName,proto3" json:"parent_index_name,omitempty"`
// The number of granules in the block. It's a ClickHouse specific field.
Granularity int64 `protobuf:"varint,13,opt,name=granularity,proto3" json:"granularity,omitempty"`
// It's a PostgreSQL specific field.
// The unique constraint and unique index are not the same thing in PostgreSQL.
IsConstraint bool `protobuf:"varint,14,opt,name=is_constraint,json=isConstraint,proto3" json:"is_constraint,omitempty"`
// Spatial index configuration for spatial databases like SQL Server, PostgreSQL with PostGIS, etc.
SpatialConfig *SpatialIndexConfig `protobuf:"bytes,15,opt,name=spatial_config,json=spatialConfig,proto3" json:"spatial_config,omitempty"`
// https://www.postgresql.org/docs/current/catalog-pg-opclass.html
// Name of the operator class for each column. (PostgreSQL specific).
OpclassNames []string `protobuf:"bytes,16,rep,name=opclass_names,json=opclassNames,proto3" json:"opclass_names,omitempty"`
// True if the operator class is the default. (PostgreSQL specific).
OpclassDefaults []bool `protobuf:"varint,17,rep,packed,name=opclass_defaults,json=opclassDefaults,proto3" json:"opclass_defaults,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IndexMetadata) Reset() {
*x = IndexMetadata{}
mi := &file_v1_database_service_proto_msgTypes[52]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IndexMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IndexMetadata) ProtoMessage() {}
func (x *IndexMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[52]
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 IndexMetadata.ProtoReflect.Descriptor instead.
func (*IndexMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{52}
}
func (x *IndexMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *IndexMetadata) GetExpressions() []string {
if x != nil {
return x.Expressions
}
return nil
}
func (x *IndexMetadata) GetKeyLength() []int64 {
if x != nil {
return x.KeyLength
}
return nil
}
func (x *IndexMetadata) GetDescending() []bool {
if x != nil {
return x.Descending
}
return nil
}
func (x *IndexMetadata) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *IndexMetadata) GetUnique() bool {
if x != nil {
return x.Unique
}
return false
}
func (x *IndexMetadata) GetPrimary() bool {
if x != nil {
return x.Primary
}
return false
}
func (x *IndexMetadata) GetVisible() bool {
if x != nil {
return x.Visible
}
return false
}
func (x *IndexMetadata) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *IndexMetadata) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *IndexMetadata) GetParentIndexSchema() string {
if x != nil {
return x.ParentIndexSchema
}
return ""
}
func (x *IndexMetadata) GetParentIndexName() string {
if x != nil {
return x.ParentIndexName
}
return ""
}
func (x *IndexMetadata) GetGranularity() int64 {
if x != nil {
return x.Granularity
}
return 0
}
func (x *IndexMetadata) GetIsConstraint() bool {
if x != nil {
return x.IsConstraint
}
return false
}
func (x *IndexMetadata) GetSpatialConfig() *SpatialIndexConfig {
if x != nil {
return x.SpatialConfig
}
return nil
}
func (x *IndexMetadata) GetOpclassNames() []string {
if x != nil {
return x.OpclassNames
}
return nil
}
func (x *IndexMetadata) GetOpclassDefaults() []bool {
if x != nil {
return x.OpclassDefaults
}
return nil
}
// ExtensionMetadata is the metadata for extensions.
type ExtensionMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of an extension.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The schema is the extension that is installed to. But the extension usage
// is not limited to the schema.
Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
// The version is the version of an extension.
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// The description is the description of an extension.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtensionMetadata) Reset() {
*x = ExtensionMetadata{}
mi := &file_v1_database_service_proto_msgTypes[53]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExtensionMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExtensionMetadata) ProtoMessage() {}
func (x *ExtensionMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[53]
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 ExtensionMetadata.ProtoReflect.Descriptor instead.
func (*ExtensionMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{53}
}
func (x *ExtensionMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ExtensionMetadata) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
func (x *ExtensionMetadata) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *ExtensionMetadata) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// ForeignKeyMetadata is the metadata for foreign keys.
type ForeignKeyMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name is the name of a foreign key.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The columns are the ordered referencing columns of a foreign key.
Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
// The referenced_schema is the referenced schema name of a foreign key.
// It is an empty string for databases without such concept such as MySQL.
ReferencedSchema string `protobuf:"bytes,3,opt,name=referenced_schema,json=referencedSchema,proto3" json:"referenced_schema,omitempty"`
// The referenced_table is the referenced table name of a foreign key.
ReferencedTable string `protobuf:"bytes,4,opt,name=referenced_table,json=referencedTable,proto3" json:"referenced_table,omitempty"`
// The referenced_columns are the ordered referenced columns of a foreign key.
ReferencedColumns []string `protobuf:"bytes,5,rep,name=referenced_columns,json=referencedColumns,proto3" json:"referenced_columns,omitempty"`
// The on_delete is the on delete action of a foreign key.
OnDelete string `protobuf:"bytes,6,opt,name=on_delete,json=onDelete,proto3" json:"on_delete,omitempty"`
// The on_update is the on update action of a foreign key.
OnUpdate string `protobuf:"bytes,7,opt,name=on_update,json=onUpdate,proto3" json:"on_update,omitempty"`
// The match_type is the match type of a foreign key.
// The match_type is the PostgreSQL specific field.
// It's empty string for other databases.
MatchType string `protobuf:"bytes,8,opt,name=match_type,json=matchType,proto3" json:"match_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ForeignKeyMetadata) Reset() {
*x = ForeignKeyMetadata{}
mi := &file_v1_database_service_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ForeignKeyMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForeignKeyMetadata) ProtoMessage() {}
func (x *ForeignKeyMetadata) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[54]
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 ForeignKeyMetadata.ProtoReflect.Descriptor instead.
func (*ForeignKeyMetadata) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{54}
}
func (x *ForeignKeyMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ForeignKeyMetadata) GetColumns() []string {
if x != nil {
return x.Columns
}
return nil
}
func (x *ForeignKeyMetadata) GetReferencedSchema() string {
if x != nil {
return x.ReferencedSchema
}
return ""
}
func (x *ForeignKeyMetadata) GetReferencedTable() string {
if x != nil {
return x.ReferencedTable
}
return ""
}
func (x *ForeignKeyMetadata) GetReferencedColumns() []string {
if x != nil {
return x.ReferencedColumns
}
return nil
}
func (x *ForeignKeyMetadata) GetOnDelete() string {
if x != nil {
return x.OnDelete
}
return ""
}
func (x *ForeignKeyMetadata) GetOnUpdate() string {
if x != nil {
return x.OnUpdate
}
return ""
}
func (x *ForeignKeyMetadata) GetMatchType() string {
if x != nil {
return x.MatchType
}
return ""
}
// DatabaseSchema is the metadata for databases.
type DatabaseSchema struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The schema dump from database.
Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DatabaseSchema) Reset() {
*x = DatabaseSchema{}
mi := &file_v1_database_service_proto_msgTypes[55]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DatabaseSchema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DatabaseSchema) ProtoMessage() {}
func (x *DatabaseSchema) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[55]
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 DatabaseSchema.ProtoReflect.Descriptor instead.
func (*DatabaseSchema) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{55}
}
func (x *DatabaseSchema) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
// DatabaseSDLSchema contains the schema in SDL format.
type DatabaseSDLSchema struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The SDL schema content.
// - For SINGLE_FILE format: contains the complete SDL schema as a text string.
// - For MULTI_FILE format: contains the ZIP archive as binary data.
Schema []byte `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
// The MIME type of the schema content.
// Indicates how the client should interpret the schema field.
// Examples:
// - "text/plain; charset=utf-8" for SINGLE_FILE format
// - "application/zip" for MULTI_FILE format
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DatabaseSDLSchema) Reset() {
*x = DatabaseSDLSchema{}
mi := &file_v1_database_service_proto_msgTypes[56]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DatabaseSDLSchema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DatabaseSDLSchema) ProtoMessage() {}
func (x *DatabaseSDLSchema) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[56]
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 DatabaseSDLSchema.ProtoReflect.Descriptor instead.
func (*DatabaseSDLSchema) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{56}
}
func (x *DatabaseSDLSchema) GetSchema() []byte {
if x != nil {
return x.Schema
}
return nil
}
func (x *DatabaseSDLSchema) GetContentType() string {
if x != nil {
return x.ContentType
}
return ""
}
type GetSchemaStringRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database.
// Format: instances/{instance}/databases/{database} or projects/{project}/instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type GetSchemaStringRequest_ObjectType `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.v1.GetSchemaStringRequest_ObjectType" json:"type,omitempty"`
// It's empty for DATABASE.
Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
// It's empty for DATABASE and SCHEMA.
Object string `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"`
// If use the metadata to generate the schema string, the type is OBJECT_TYPE_UNSPECIFIED.
// Also the schema and object are empty.
Metadata *DatabaseMetadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetSchemaStringRequest) Reset() {
*x = GetSchemaStringRequest{}
mi := &file_v1_database_service_proto_msgTypes[57]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetSchemaStringRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSchemaStringRequest) ProtoMessage() {}
func (x *GetSchemaStringRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[57]
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 GetSchemaStringRequest.ProtoReflect.Descriptor instead.
func (*GetSchemaStringRequest) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{57}
}
func (x *GetSchemaStringRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GetSchemaStringRequest) GetType() GetSchemaStringRequest_ObjectType {
if x != nil {
return x.Type
}
return GetSchemaStringRequest_OBJECT_TYPE_UNSPECIFIED
}
func (x *GetSchemaStringRequest) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
func (x *GetSchemaStringRequest) GetObject() string {
if x != nil {
return x.Object
}
return ""
}
func (x *GetSchemaStringRequest) GetMetadata() *DatabaseMetadata {
if x != nil {
return x.Metadata
}
return nil
}
type GetSchemaStringResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
SchemaString string `protobuf:"bytes,1,opt,name=schema_string,json=schemaString,proto3" json:"schema_string,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetSchemaStringResponse) Reset() {
*x = GetSchemaStringResponse{}
mi := &file_v1_database_service_proto_msgTypes[58]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetSchemaStringResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSchemaStringResponse) ProtoMessage() {}
func (x *GetSchemaStringResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_database_service_proto_msgTypes[58]
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 GetSchemaStringResponse.ProtoReflect.Descriptor instead.
func (*GetSchemaStringResponse) Descriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{58}
}
func (x *GetSchemaStringResponse) GetSchemaString() string {
if x != nil {
return x.SchemaString
}
return ""
}
var File_v1_database_service_proto protoreflect.FileDescriptor
const file_v1_database_service_proto_rawDesc = "" +
"\n" +
"\x19v1/database_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x19v1/instance_service.proto\"G\n" +
"\x12GetDatabaseRequest\x121\n" +
"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x04name\"\x86\x01\n" +
"\x18BatchGetDatabasesRequest\x125\n" +
"\x06parent\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\x12\x15bytebase.com/DatabaseR\x06parent\x123\n" +
"\x05names\x18\x02 \x03(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x05names\"P\n" +
"\x19BatchGetDatabasesResponse\x123\n" +
"\tdatabases\x18\x01 \x03(\v2\x15.bytebase.v1.DatabaseR\tdatabases\"\xdf\x01\n" +
"\x14ListDatabasesRequest\x125\n" +
"\x06parent\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\x12\x15bytebase.com/DatabaseR\x06parent\x12\x1b\n" +
"\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" +
"\n" +
"page_token\x18\x03 \x01(\tR\tpageToken\x12\x16\n" +
"\x06filter\x18\x04 \x01(\tR\x06filter\x12!\n" +
"\fshow_deleted\x18\x05 \x01(\bR\vshowDeleted\x12\x19\n" +
"\border_by\x18\x06 \x01(\tR\aorderBy\"t\n" +
"\x15ListDatabasesResponse\x123\n" +
"\tdatabases\x18\x01 \x03(\v2\x15.bytebase.v1.DatabaseR\tdatabases\x12&\n" +
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"l\n" +
"\x16SearchDatabasesRequest\x12\x1b\n" +
"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +
"\n" +
"page_token\x18\x02 \x01(\tR\tpageToken\x12\x16\n" +
"\x06filter\x18\x03 \x01(\tR\x06filter\"v\n" +
"\x17SearchDatabasesResponse\x123\n" +
"\tdatabases\x18\x01 \x03(\v2\x15.bytebase.v1.DatabaseR\tdatabases\x12&\n" +
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x8c\x01\n" +
"\x15UpdateDatabaseRequest\x126\n" +
"\bdatabase\x18\x01 \x01(\v2\x15.bytebase.v1.DatabaseB\x03\xe0A\x02R\bdatabase\x12;\n" +
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
"updateMask\"z\n" +
"\x1bBatchUpdateDatabasesRequest\x12\x16\n" +
"\x06parent\x18\x01 \x01(\tR\x06parent\x12C\n" +
"\brequests\x18\x02 \x03(\v2\".bytebase.v1.UpdateDatabaseRequestB\x03\xe0A\x02R\brequests\"S\n" +
"\x1cBatchUpdateDatabasesResponse\x123\n" +
"\tdatabases\x18\x01 \x03(\v2\x15.bytebase.v1.DatabaseR\tdatabases\"h\n" +
"\x19BatchSyncDatabasesRequest\x12\x16\n" +
"\x06parent\x18\x01 \x01(\tR\x06parent\x123\n" +
"\x05names\x18\x02 \x03(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x05names\"\x1c\n" +
"\x1aBatchSyncDatabasesResponse\"H\n" +
"\x13SyncDatabaseRequest\x121\n" +
"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x04name\"\x16\n" +
"\x14SyncDatabaseResponse\"\x85\x01\n" +
"\x1aGetDatabaseMetadataRequest\x129\n" +
"\x04name\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
"\x1dbytebase.com/DatabaseMetadataR\x04name\x12\x16\n" +
"\x06filter\x18\x02 \x01(\tR\x06filter\x12\x14\n" +
"\x05limit\x18\x03 \x01(\x05R\x05limit\"S\n" +
"\x18GetDatabaseSchemaRequest\x127\n" +
"\x04name\x18\x01 \x01(\tB#\xe0A\x02\xfaA\x1d\n" +
"\x1bbytebase.com/DatabaseSchemaR\x04name\"\xe6\x01\n" +
"\x1bGetDatabaseSDLSchemaRequest\x121\n" +
"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x04name\x12J\n" +
"\x06format\x18\x02 \x01(\x0e22.bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormatR\x06format\"H\n" +
"\tSDLFormat\x12\x1a\n" +
"\x16SDL_FORMAT_UNSPECIFIED\x10\x00\x12\x0f\n" +
"\vSINGLE_FILE\x10\x01\x12\x0e\n" +
"\n" +
"MULTI_FILE\x10\x02\"\x8a\x01\n" +
"\x11DiffSchemaRequest\x121\n" +
"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x04name\x12\x18\n" +
"\x06schema\x18\x02 \x01(\tH\x00R\x06schema\x12\x1e\n" +
"\tchangelog\x18\x03 \x01(\tH\x00R\tchangelogB\b\n" +
"\x06target\"(\n" +
"\x12DiffSchemaResponse\x12\x12\n" +
"\x04diff\x18\x01 \x01(\tR\x04diff\"\x95\x01\n" +
"\x13DiffMetadataRequest\x121\n" +
"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x04name\x12K\n" +
"\x0ftarget_metadata\x18\x02 \x01(\v2\x1d.bytebase.v1.DatabaseMetadataB\x03\xe0A\x02R\x0etargetMetadata\"*\n" +
"\x14DiffMetadataResponse\x12\x12\n" +
"\x04diff\x18\x01 \x01(\tR\x04diff\"\xcf\x06\n" +
"\bDatabase\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12-\n" +
"\x05state\x18\x02 \x01(\x0e2\x12.bytebase.v1.StateB\x03\xe0A\x03R\x05state\x12Q\n" +
"\x14successful_sync_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\x12successfulSyncTime\x12\x18\n" +
"\aproject\x18\x04 \x01(\tR\aproject\x12\x1d\n" +
"\arelease\x18\x05 \x01(\tB\x03\xe0A\x03R\arelease\x12*\n" +
"\venvironment\x18\x06 \x01(\tB\x03\xe0A\x01H\x00R\venvironment\x88\x01\x01\x12=\n" +
"\x15effective_environment\x18\a \x01(\tB\x03\xe0A\x03H\x01R\x14effectiveEnvironment\x88\x01\x01\x129\n" +
"\x06labels\x18\b \x03(\v2!.bytebase.v1.Database.LabelsEntryR\x06labels\x12O\n" +
"\x11instance_resource\x18\t \x01(\v2\x1d.bytebase.v1.InstanceResourceB\x03\xe0A\x03R\x10instanceResource\x12.\n" +
"\x10backup_available\x18\n" +
" \x01(\bB\x03\xe0A\x03R\x0fbackupAvailable\x12=\n" +
"\vsync_status\x18\v \x01(\x0e2\x17.bytebase.v1.SyncStatusB\x03\xe0A\x03R\n" +
"syncStatus\x12\"\n" +
"\n" +
"sync_error\x18\f \x01(\tB\x03\xe0A\x03R\tsyncError\x1a9\n" +
"\vLabelsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:\x84\x01\xeaA\x80\x01\n" +
"\x15bytebase.com/Database\x12)instances/{instance}/databases/{database}\x12<projects/{project}/instances/{instance}/databases/{database}B\x0e\n" +
"\f_environmentB\x18\n" +
"\x16_effective_environment\"\xb8\x03\n" +
"\x10DatabaseMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x125\n" +
"\aschemas\x18\x02 \x03(\v2\x1b.bytebase.v1.SchemaMetadataR\aschemas\x12#\n" +
"\rcharacter_set\x18\x03 \x01(\tR\fcharacterSet\x12\x1c\n" +
"\tcollation\x18\x04 \x01(\tR\tcollation\x12>\n" +
"\n" +
"extensions\x18\x05 \x03(\v2\x1e.bytebase.v1.ExtensionMetadataR\n" +
"extensions\x12\x14\n" +
"\x05owner\x18\x06 \x01(\tR\x05owner\x12\x1f\n" +
"\vsearch_path\x18\a \x01(\tR\n" +
"searchPath:\x9e\x01\xeaA\x9a\x01\n" +
"\x1dbytebase.com/DatabaseMetadata\x122instances/{instance}/databases/{database}/metadata\x12Eprojects/{project}/instances/{instance}/databases/{database}/metadata\"\x94\a\n" +
"\x0eSchemaMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x122\n" +
"\x06tables\x18\x02 \x03(\v2\x1a.bytebase.v1.TableMetadataR\x06tables\x12K\n" +
"\x0fexternal_tables\x18\x03 \x03(\v2\".bytebase.v1.ExternalTableMetadataR\x0eexternalTables\x12/\n" +
"\x05views\x18\x04 \x03(\v2\x19.bytebase.v1.ViewMetadataR\x05views\x12;\n" +
"\tfunctions\x18\x05 \x03(\v2\x1d.bytebase.v1.FunctionMetadataR\tfunctions\x12>\n" +
"\n" +
"procedures\x18\x06 \x03(\v2\x1e.bytebase.v1.ProcedureMetadataR\n" +
"procedures\x125\n" +
"\astreams\x18\a \x03(\v2\x1b.bytebase.v1.StreamMetadataR\astreams\x12/\n" +
"\x05tasks\x18\b \x03(\v2\x19.bytebase.v1.TaskMetadataR\x05tasks\x12T\n" +
"\x12materialized_views\x18\t \x03(\v2%.bytebase.v1.MaterializedViewMetadataR\x11materializedViews\x128\n" +
"\bpackages\x18\n" +
" \x03(\v2\x1c.bytebase.v1.PackageMetadataR\bpackages\x12\x14\n" +
"\x05owner\x18\v \x01(\tR\x05owner\x12;\n" +
"\tsequences\x18\f \x03(\v2\x1d.bytebase.v1.SequenceMetadataR\tsequences\x122\n" +
"\x06events\x18\r \x03(\v2\x1a.bytebase.v1.EventMetadataR\x06events\x12<\n" +
"\n" +
"enum_types\x18\x0e \x03(\v2\x1d.bytebase.v1.EnumTypeMetadataR\tenumTypes\x12\x1b\n" +
"\tskip_dump\x18\x0f \x01(\bR\bskipDump\x12\x18\n" +
"\acomment\x18\x10 \x01(\tR\acomment\x12K\n" +
"\x0fcomposite_types\x18\x11 \x03(\v2\".bytebase.v1.CompositeTypeMetadataR\x0ecompositeTypes\"u\n" +
"\x10EnumTypeMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
"\x06values\x18\x02 \x03(\tR\x06values\x12\x18\n" +
"\acomment\x18\x03 \x01(\tR\acomment\x12\x1b\n" +
"\tskip_dump\x18\x04 \x01(\bR\bskipDump\"\x8a\x01\n" +
"\x15CompositeTypeMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12C\n" +
"\n" +
"attributes\x18\x02 \x03(\v2#.bytebase.v1.CompositeTypeAttributeR\n" +
"attributes\x12\x18\n" +
"\acomment\x18\x03 \x01(\tR\acomment\"x\n" +
"\x16CompositeTypeAttribute\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x1c\n" +
"\tcollation\x18\x03 \x01(\tR\tcollation\x12\x18\n" +
"\acomment\x18\x04 \x01(\tR\acomment\"\xfa\x01\n" +
"\rEventMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"definition\x18\x02 \x01(\tR\n" +
"definition\x12\x1b\n" +
"\ttime_zone\x18\x03 \x01(\tR\btimeZone\x12\x19\n" +
"\bsql_mode\x18\x04 \x01(\tR\asqlMode\x120\n" +
"\x14character_set_client\x18\x05 \x01(\tR\x12characterSetClient\x121\n" +
"\x14collation_connection\x18\x06 \x01(\tR\x13collationConnection\x12\x18\n" +
"\acomment\x18\a \x01(\tR\acomment\"\x80\x03\n" +
"\x10SequenceMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n" +
"\tdata_type\x18\x02 \x01(\tR\bdataType\x12\x14\n" +
"\x05start\x18\x03 \x01(\tR\x05start\x12\x1b\n" +
"\tmin_value\x18\x04 \x01(\tR\bminValue\x12\x1b\n" +
"\tmax_value\x18\x05 \x01(\tR\bmaxValue\x12\x1c\n" +
"\tincrement\x18\x06 \x01(\tR\tincrement\x12\x14\n" +
"\x05cycle\x18\a \x01(\bR\x05cycle\x12\x1d\n" +
"\n" +
"cache_size\x18\b \x01(\tR\tcacheSize\x12\x1d\n" +
"\n" +
"last_value\x18\t \x01(\tR\tlastValue\x12\x1f\n" +
"\vowner_table\x18\n" +
" \x01(\tR\n" +
"ownerTable\x12!\n" +
"\fowner_column\x18\v \x01(\tR\vownerColumn\x12\x18\n" +
"\acomment\x18\f \x01(\tR\acomment\x12\x1b\n" +
"\tskip_dump\x18\r \x01(\bR\bskipDump\"\x9e\x02\n" +
"\x0fTriggerMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
"\x05event\x18\x02 \x01(\tR\x05event\x12\x16\n" +
"\x06timing\x18\x03 \x01(\tR\x06timing\x12\x12\n" +
"\x04body\x18\x04 \x01(\tR\x04body\x12\x19\n" +
"\bsql_mode\x18\x05 \x01(\tR\asqlMode\x120\n" +
"\x14character_set_client\x18\x06 \x01(\tR\x12characterSetClient\x121\n" +
"\x14collation_connection\x18\a \x01(\tR\x13collationConnection\x12\x18\n" +
"\acomment\x18\b \x01(\tR\acomment\x12\x1b\n" +
"\tskip_dump\x18\t \x01(\bR\bskipDump\"\xca\x01\n" +
"\x15ExternalTableMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x120\n" +
"\x14external_server_name\x18\x02 \x01(\tR\x12externalServerName\x124\n" +
"\x16external_database_name\x18\x03 \x01(\tR\x14externalDatabaseName\x125\n" +
"\acolumns\x18\x04 \x03(\v2\x1b.bytebase.v1.ColumnMetadataR\acolumns\"\xd2\x06\n" +
"\rTableMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x125\n" +
"\acolumns\x18\x02 \x03(\v2\x1b.bytebase.v1.ColumnMetadataR\acolumns\x124\n" +
"\aindexes\x18\x03 \x03(\v2\x1a.bytebase.v1.IndexMetadataR\aindexes\x12\x16\n" +
"\x06engine\x18\x04 \x01(\tR\x06engine\x12\x1c\n" +
"\tcollation\x18\x05 \x01(\tR\tcollation\x12\x18\n" +
"\acharset\x18\x06 \x01(\tR\acharset\x12\x1b\n" +
"\trow_count\x18\a \x01(\x03R\browCount\x12\x1b\n" +
"\tdata_size\x18\b \x01(\x03R\bdataSize\x12\x1d\n" +
"\n" +
"index_size\x18\t \x01(\x03R\tindexSize\x12\x1b\n" +
"\tdata_free\x18\n" +
" \x01(\x03R\bdataFree\x12%\n" +
"\x0ecreate_options\x18\v \x01(\tR\rcreateOptions\x12\x18\n" +
"\acomment\x18\f \x01(\tR\acomment\x12B\n" +
"\fforeign_keys\x18\r \x03(\v2\x1f.bytebase.v1.ForeignKeyMetadataR\vforeignKeys\x12C\n" +
"\n" +
"partitions\x18\x0e \x03(\v2#.bytebase.v1.TablePartitionMetadataR\n" +
"partitions\x12Q\n" +
"\x11check_constraints\x18\x0f \x03(\v2$.bytebase.v1.CheckConstraintMetadataR\x10checkConstraints\x12\x14\n" +
"\x05owner\x18\x10 \x01(\tR\x05owner\x12!\n" +
"\fsorting_keys\x18\x11 \x03(\tR\vsortingKeys\x128\n" +
"\btriggers\x18\x12 \x03(\v2\x1c.bytebase.v1.TriggerMetadataR\btriggers\x12\x1b\n" +
"\tskip_dump\x18\x13 \x01(\bR\bskipDump\x12#\n" +
"\rsharding_info\x18\x14 \x01(\tR\fshardingInfo\x12(\n" +
"\x10primary_key_type\x18\x15 \x01(\tR\x0eprimaryKeyType\"M\n" +
"\x17CheckConstraintMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"expression\x18\x02 \x01(\tR\n" +
"expression\"\xa2\x04\n" +
"\x16TablePartitionMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12<\n" +
"\x04type\x18\x02 \x01(\x0e2(.bytebase.v1.TablePartitionMetadata.TypeR\x04type\x12\x1e\n" +
"\n" +
"expression\x18\x03 \x01(\tR\n" +
"expression\x12\x14\n" +
"\x05value\x18\x04 \x01(\tR\x05value\x12\x1f\n" +
"\vuse_default\x18\x05 \x01(\tR\n" +
"useDefault\x12I\n" +
"\rsubpartitions\x18\x06 \x03(\v2#.bytebase.v1.TablePartitionMetadataR\rsubpartitions\x124\n" +
"\aindexes\x18\a \x03(\v2\x1a.bytebase.v1.IndexMetadataR\aindexes\x12Q\n" +
"\x11check_constraints\x18\b \x03(\v2$.bytebase.v1.CheckConstraintMetadataR\x10checkConstraints\"\x8a\x01\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05RANGE\x10\x01\x12\x11\n" +
"\rRANGE_COLUMNS\x10\x02\x12\b\n" +
"\x04LIST\x10\x03\x12\x10\n" +
"\fLIST_COLUMNS\x10\x04\x12\b\n" +
"\x04HASH\x10\x05\x12\x0f\n" +
"\vLINEAR_HASH\x10\x06\x12\a\n" +
"\x03KEY\x10\a\x12\x0e\n" +
"\n" +
"LINEAR_KEY\x10\b\"\xb8\x06\n" +
"\x0eColumnMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
"\bposition\x18\x02 \x01(\x05R\bposition\x12\x1f\n" +
"\vhas_default\x18\x03 \x01(\bR\n" +
"hasDefault\x12\x18\n" +
"\adefault\x18\x04 \x01(\tR\adefault\x12&\n" +
"\x0fdefault_on_null\x18\x05 \x01(\bR\rdefaultOnNull\x12\x1b\n" +
"\ton_update\x18\x06 \x01(\tR\bonUpdate\x12\x1a\n" +
"\bnullable\x18\a \x01(\bR\bnullable\x12\x12\n" +
"\x04type\x18\b \x01(\tR\x04type\x12#\n" +
"\rcharacter_set\x18\t \x01(\tR\fcharacterSet\x12\x1c\n" +
"\tcollation\x18\n" +
" \x01(\tR\tcollation\x12\x18\n" +
"\acomment\x18\v \x01(\tR\acomment\x12?\n" +
"\n" +
"generation\x18\f \x01(\v2\x1f.bytebase.v1.GenerationMetadataR\n" +
"generation\x12\x1f\n" +
"\vis_identity\x18\r \x01(\bR\n" +
"isIdentity\x12_\n" +
"\x13identity_generation\x18\x0e \x01(\x0e2..bytebase.v1.ColumnMetadata.IdentityGenerationR\x12identityGeneration\x12#\n" +
"\ridentity_seed\x18\x0f \x01(\x03R\fidentitySeed\x12-\n" +
"\x12identity_increment\x18\x10 \x01(\x03R\x11identityIncrement\x126\n" +
"\x17default_constraint_name\x18\x11 \x01(\tR\x15defaultConstraintName\x12\x17\n" +
"\x04srid\x18\x12 \x01(\rH\x00R\x04srid\x88\x01\x01\x12!\n" +
"\fis_invisible\x18\x13 \x01(\bR\visInvisible\"U\n" +
"\x12IdentityGeneration\x12#\n" +
"\x1fIDENTITY_GENERATION_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
"\x06ALWAYS\x10\x01\x12\x0e\n" +
"\n" +
"BY_DEFAULT\x10\x02B\a\n" +
"\x05_srid\"\xa5\x01\n" +
"\x12GenerationMetadata\x128\n" +
"\x04type\x18\x01 \x01(\x0e2$.bytebase.v1.GenerationMetadata.TypeR\x04type\x12\x1e\n" +
"\n" +
"expression\x18\x02 \x01(\tR\n" +
"expression\"5\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\v\n" +
"\aVIRTUAL\x10\x01\x12\n" +
"\n" +
"\x06STORED\x10\x02\"\xb8\x02\n" +
"\fViewMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"definition\x18\x02 \x01(\tR\n" +
"definition\x12\x18\n" +
"\acomment\x18\x03 \x01(\tR\acomment\x12L\n" +
"\x12dependency_columns\x18\x04 \x03(\v2\x1d.bytebase.v1.DependencyColumnR\x11dependencyColumns\x125\n" +
"\acolumns\x18\x05 \x03(\v2\x1b.bytebase.v1.ColumnMetadataR\acolumns\x128\n" +
"\btriggers\x18\x06 \x03(\v2\x1c.bytebase.v1.TriggerMetadataR\btriggers\x12\x1b\n" +
"\tskip_dump\x18\a \x01(\bR\bskipDump\"X\n" +
"\x10DependencyColumn\x12\x16\n" +
"\x06schema\x18\x01 \x01(\tR\x06schema\x12\x14\n" +
"\x05table\x18\x02 \x01(\tR\x05table\x12\x16\n" +
"\x06column\x18\x03 \x01(\tR\x06column\"\xc3\x02\n" +
"\x18MaterializedViewMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"definition\x18\x02 \x01(\tR\n" +
"definition\x12\x18\n" +
"\acomment\x18\x03 \x01(\tR\acomment\x12L\n" +
"\x12dependency_columns\x18\x04 \x03(\v2\x1d.bytebase.v1.DependencyColumnR\x11dependencyColumns\x128\n" +
"\btriggers\x18\x05 \x03(\v2\x1c.bytebase.v1.TriggerMetadataR\btriggers\x124\n" +
"\aindexes\x18\x06 \x03(\v2\x1a.bytebase.v1.IndexMetadataR\aindexes\x12\x1b\n" +
"\tskip_dump\x18\a \x01(\bR\bskipDump\"?\n" +
"\x0fDependencyTable\x12\x16\n" +
"\x06schema\x18\x01 \x01(\tR\x06schema\x12\x14\n" +
"\x05table\x18\x02 \x01(\tR\x05table\"\x95\x03\n" +
"\x10FunctionMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"definition\x18\x02 \x01(\tR\n" +
"definition\x12\x1c\n" +
"\tsignature\x18\x03 \x01(\tR\tsignature\x120\n" +
"\x14character_set_client\x18\x04 \x01(\tR\x12characterSetClient\x121\n" +
"\x14collation_connection\x18\x05 \x01(\tR\x13collationConnection\x12-\n" +
"\x12database_collation\x18\x06 \x01(\tR\x11databaseCollation\x12\x19\n" +
"\bsql_mode\x18\a \x01(\tR\asqlMode\x12\x18\n" +
"\acomment\x18\b \x01(\tR\acomment\x12I\n" +
"\x11dependency_tables\x18\t \x03(\v2\x1c.bytebase.v1.DependencyTableR\x10dependencyTables\x12\x1b\n" +
"\tskip_dump\x18\n" +
" \x01(\bR\bskipDump\"\xcb\x02\n" +
"\x11ProcedureMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"definition\x18\x02 \x01(\tR\n" +
"definition\x12\x1c\n" +
"\tsignature\x18\x03 \x01(\tR\tsignature\x120\n" +
"\x14character_set_client\x18\x04 \x01(\tR\x12characterSetClient\x121\n" +
"\x14collation_connection\x18\x05 \x01(\tR\x13collationConnection\x12-\n" +
"\x12database_collation\x18\x06 \x01(\tR\x11databaseCollation\x12\x19\n" +
"\bsql_mode\x18\a \x01(\tR\asqlMode\x12\x18\n" +
"\acomment\x18\t \x01(\tR\acomment\x12\x1b\n" +
"\tskip_dump\x18\b \x01(\bR\bskipDump\"E\n" +
"\x0fPackageMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"definition\x18\x02 \x01(\tR\n" +
"definition\"\xf1\x02\n" +
"\fTaskMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" +
"\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n" +
"\x05owner\x18\x03 \x01(\tR\x05owner\x12\x18\n" +
"\acomment\x18\x04 \x01(\tR\acomment\x12\x1c\n" +
"\twarehouse\x18\x05 \x01(\tR\twarehouse\x12\x1a\n" +
"\bschedule\x18\x06 \x01(\tR\bschedule\x12\"\n" +
"\fpredecessors\x18\a \x03(\tR\fpredecessors\x125\n" +
"\x05state\x18\b \x01(\x0e2\x1f.bytebase.v1.TaskMetadata.StateR\x05state\x12\x1c\n" +
"\tcondition\x18\t \x01(\tR\tcondition\x12\x1e\n" +
"\n" +
"definition\x18\n" +
" \x01(\tR\n" +
"definition\":\n" +
"\x05State\x12\x15\n" +
"\x11STATE_UNSPECIFIED\x10\x00\x12\v\n" +
"\aSTARTED\x10\x01\x12\r\n" +
"\tSUSPENDED\x10\x02\"\x8b\x03\n" +
"\x0eStreamMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" +
"\n" +
"table_name\x18\x02 \x01(\tR\ttableName\x12\x14\n" +
"\x05owner\x18\x03 \x01(\tR\x05owner\x12\x18\n" +
"\acomment\x18\x04 \x01(\tR\acomment\x124\n" +
"\x04type\x18\x05 \x01(\x0e2 .bytebase.v1.StreamMetadata.TypeR\x04type\x12\x14\n" +
"\x05stale\x18\x06 \x01(\bR\x05stale\x124\n" +
"\x04mode\x18\a \x01(\x0e2 .bytebase.v1.StreamMetadata.ModeR\x04mode\x12\x1e\n" +
"\n" +
"definition\x18\b \x01(\tR\n" +
"definition\"'\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05DELTA\x10\x01\"K\n" +
"\x04Mode\x12\x14\n" +
"\x10MODE_UNSPECIFIED\x10\x00\x12\v\n" +
"\aDEFAULT\x10\x01\x12\x0f\n" +
"\vAPPEND_ONLY\x10\x02\x12\x0f\n" +
"\vINSERT_ONLY\x10\x03\"\xe9\x01\n" +
"\x12SpatialIndexConfig\x12\x16\n" +
"\x06method\x18\x01 \x01(\tR\x06method\x12C\n" +
"\ftessellation\x18\x02 \x01(\v2\x1f.bytebase.v1.TessellationConfigR\ftessellation\x124\n" +
"\astorage\x18\x03 \x01(\v2\x1a.bytebase.v1.StorageConfigR\astorage\x12@\n" +
"\vdimensional\x18\x04 \x01(\v2\x1e.bytebase.v1.DimensionalConfigR\vdimensional\"\xcc\x01\n" +
"\x12TessellationConfig\x12\x16\n" +
"\x06scheme\x18\x01 \x01(\tR\x06scheme\x127\n" +
"\vgrid_levels\x18\x02 \x03(\v2\x16.bytebase.v1.GridLevelR\n" +
"gridLevels\x12(\n" +
"\x10cells_per_object\x18\x03 \x01(\x05R\x0ecellsPerObject\x12;\n" +
"\fbounding_box\x18\x04 \x01(\v2\x18.bytebase.v1.BoundingBoxR\vboundingBox\";\n" +
"\tGridLevel\x12\x14\n" +
"\x05level\x18\x01 \x01(\x05R\x05level\x12\x18\n" +
"\adensity\x18\x02 \x01(\tR\adensity\"]\n" +
"\vBoundingBox\x12\x12\n" +
"\x04xmin\x18\x01 \x01(\x01R\x04xmin\x12\x12\n" +
"\x04ymin\x18\x02 \x01(\x01R\x04ymin\x12\x12\n" +
"\x04xmax\x18\x03 \x01(\x01R\x04xmax\x12\x12\n" +
"\x04ymax\x18\x04 \x01(\x01R\x04ymax\"\xf1\x03\n" +
"\rStorageConfig\x12\x1e\n" +
"\n" +
"fillfactor\x18\x01 \x01(\x05R\n" +
"fillfactor\x12\x1c\n" +
"\tbuffering\x18\x02 \x01(\tR\tbuffering\x12\x1e\n" +
"\n" +
"tablespace\x18\x03 \x01(\tR\n" +
"tablespace\x12'\n" +
"\x0fwork_tablespace\x18\x04 \x01(\tR\x0eworkTablespace\x12\x1b\n" +
"\tsdo_level\x18\x05 \x01(\x05R\bsdoLevel\x12'\n" +
"\x0fcommit_interval\x18\x06 \x01(\x05R\x0ecommitInterval\x12\x1b\n" +
"\tpad_index\x18\a \x01(\bR\bpadIndex\x12$\n" +
"\x0esort_in_tempdb\x18\b \x01(\tR\fsortInTempdb\x12#\n" +
"\rdrop_existing\x18\t \x01(\bR\fdropExisting\x12\x16\n" +
"\x06online\x18\n" +
" \x01(\bR\x06online\x12&\n" +
"\x0fallow_row_locks\x18\v \x01(\bR\rallowRowLocks\x12(\n" +
"\x10allow_page_locks\x18\f \x01(\bR\x0eallowPageLocks\x12\x16\n" +
"\x06maxdop\x18\r \x01(\x05R\x06maxdop\x12)\n" +
"\x10data_compression\x18\x0e \x01(\tR\x0fdataCompression\"\xa8\x01\n" +
"\x11DimensionalConfig\x12\x1e\n" +
"\n" +
"dimensions\x18\x01 \x01(\x05R\n" +
"dimensions\x12\x1b\n" +
"\tdata_type\x18\x02 \x01(\tR\bdataType\x12\x12\n" +
"\x04srid\x18\x03 \x01(\x05R\x04srid\x12B\n" +
"\vconstraints\x18\x04 \x03(\v2 .bytebase.v1.DimensionConstraintR\vconstraints\"\x8b\x01\n" +
"\x13DimensionConstraint\x12\x1c\n" +
"\tdimension\x18\x01 \x01(\tR\tdimension\x12\x1b\n" +
"\tmin_value\x18\x02 \x01(\x01R\bminValue\x12\x1b\n" +
"\tmax_value\x18\x03 \x01(\x01R\bmaxValue\x12\x1c\n" +
"\ttolerance\x18\x04 \x01(\x01R\ttolerance\"\xd9\x04\n" +
"\rIndexMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
"\vexpressions\x18\x02 \x03(\tR\vexpressions\x12\x1d\n" +
"\n" +
"key_length\x18\x03 \x03(\x03R\tkeyLength\x12\x1e\n" +
"\n" +
"descending\x18\x04 \x03(\bR\n" +
"descending\x12\x12\n" +
"\x04type\x18\x05 \x01(\tR\x04type\x12\x16\n" +
"\x06unique\x18\x06 \x01(\bR\x06unique\x12\x18\n" +
"\aprimary\x18\a \x01(\bR\aprimary\x12\x18\n" +
"\avisible\x18\b \x01(\bR\avisible\x12\x18\n" +
"\acomment\x18\t \x01(\tR\acomment\x12\x1e\n" +
"\n" +
"definition\x18\n" +
" \x01(\tR\n" +
"definition\x12.\n" +
"\x13parent_index_schema\x18\v \x01(\tR\x11parentIndexSchema\x12*\n" +
"\x11parent_index_name\x18\f \x01(\tR\x0fparentIndexName\x12 \n" +
"\vgranularity\x18\r \x01(\x03R\vgranularity\x12#\n" +
"\ris_constraint\x18\x0e \x01(\bR\fisConstraint\x12F\n" +
"\x0espatial_config\x18\x0f \x01(\v2\x1f.bytebase.v1.SpatialIndexConfigR\rspatialConfig\x12#\n" +
"\ropclass_names\x18\x10 \x03(\tR\fopclassNames\x12)\n" +
"\x10opclass_defaults\x18\x11 \x03(\bR\x0fopclassDefaults\"{\n" +
"\x11ExtensionMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
"\x06schema\x18\x02 \x01(\tR\x06schema\x12\x18\n" +
"\aversion\x18\x03 \x01(\tR\aversion\x12 \n" +
"\vdescription\x18\x04 \x01(\tR\vdescription\"\xa2\x02\n" +
"\x12ForeignKeyMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
"\acolumns\x18\x02 \x03(\tR\acolumns\x12+\n" +
"\x11referenced_schema\x18\x03 \x01(\tR\x10referencedSchema\x12)\n" +
"\x10referenced_table\x18\x04 \x01(\tR\x0freferencedTable\x12-\n" +
"\x12referenced_columns\x18\x05 \x03(\tR\x11referencedColumns\x12\x1b\n" +
"\ton_delete\x18\x06 \x01(\tR\bonDelete\x12\x1b\n" +
"\ton_update\x18\a \x01(\tR\bonUpdate\x12\x1d\n" +
"\n" +
"match_type\x18\b \x01(\tR\tmatchType\"(\n" +
"\x0eDatabaseSchema\x12\x16\n" +
"\x06schema\x18\x01 \x01(\tR\x06schema\"S\n" +
"\x11DatabaseSDLSchema\x12\x16\n" +
"\x06schema\x18\x01 \x01(\fR\x06schema\x12&\n" +
"\fcontent_type\x18\x02 \x01(\tB\x03\xe0A\x03R\vcontentType\"\x97\x03\n" +
"\x16GetSchemaStringRequest\x121\n" +
"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x04name\x12B\n" +
"\x04type\x18\x02 \x01(\x0e2..bytebase.v1.GetSchemaStringRequest.ObjectTypeR\x04type\x12\x16\n" +
"\x06schema\x18\x03 \x01(\tR\x06schema\x12\x16\n" +
"\x06object\x18\x04 \x01(\tR\x06object\x129\n" +
"\bmetadata\x18\x05 \x01(\v2\x1d.bytebase.v1.DatabaseMetadataR\bmetadata\"\x9a\x01\n" +
"\n" +
"ObjectType\x12\x1b\n" +
"\x17OBJECT_TYPE_UNSPECIFIED\x10\x00\x12\f\n" +
"\bDATABASE\x10\x01\x12\n" +
"\n" +
"\x06SCHEMA\x10\x02\x12\t\n" +
"\x05TABLE\x10\x03\x12\b\n" +
"\x04VIEW\x10\x04\x12\x15\n" +
"\x11MATERIALIZED_VIEW\x10\x05\x12\f\n" +
"\bFUNCTION\x10\x06\x12\r\n" +
"\tPROCEDURE\x10\a\x12\f\n" +
"\bSEQUENCE\x10\b\">\n" +
"\x17GetSchemaStringResponse\x12#\n" +
"\rschema_string\x18\x01 \x01(\tR\fschemaString*=\n" +
"\n" +
"SyncStatus\x12\x1b\n" +
"\x17SYNC_STATUS_UNSPECIFIED\x10\x00\x12\x06\n" +
"\x02OK\x10\x01\x12\n" +
"\n" +
"\x06FAILED\x10\x022\xf9\x1b\n" +
"\x0fDatabaseService\x12\xc5\x01\n" +
"\vGetDatabase\x12\x1f.bytebase.v1.GetDatabaseRequest\x1a\x15.bytebase.v1.Database\"~\xdaA\x04name\x8a\xea0\x10bb.databases.get\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02UZ/\x12-/v1/{name=projects/*/instances/*/databases/*}\x12\"/v1/{name=instances/*/databases/*}\x12\x9d\x02\n" +
"\x11BatchGetDatabases\x12%.bytebase.v1.BatchGetDatabasesRequest\x1a&.bytebase.v1.BatchGetDatabasesResponse\"\xb8\x01\x8a\xea0\x10bb.databases.get\x90\xea0\x02\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x95\x01Z-\x12+/v1/{parent=instances/*}/databases:batchGetZ8\x126/v1/{parent=projects/*/instances/*}/databases:batchGet\x12*/v1/{parent=projects/*}/databases:batchGet\x12\xa1\x02\n" +
"\rListDatabases\x12!.bytebase.v1.ListDatabasesRequest\x1a\".bytebase.v1.ListDatabasesResponse\"\xc8\x01\xdaA\x00\x8a\xea0\x11bb.databases.list\x90\xea0\x02\xa0\xea0\x01\x82\xd3\xe4\x93\x02\xa1\x01Z$\x12\"/v1/{parent=instances/*}/databasesZ%\x12#/v1/{parent=workspaces/*}/databasesZ/\x12-/v1/{parent=projects/*/instances/*}/databases\x12!/v1/{parent=projects/*}/databases\x12\x9c\x01\n" +
"\x0fSearchDatabases\x12#.bytebase.v1.SearchDatabasesRequest\x1a$.bytebase.v1.SearchDatabasesResponse\">\xdaA\x00\x8a\xea0\x10bb.databases.get\x90\xea0\x02\xa0\xea0\x01\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/v1/databases:search\x12\x8d\x02\n" +
"\x0eUpdateDatabase\x12\".bytebase.v1.UpdateDatabaseRequest\x1a\x15.bytebase.v1.Database\"\xbf\x01\xdaA\x14database,update_mask\x8a\xea0\x13bb.databases.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\x0e\x82\xd3\xe4\x93\x02{:\bdatabaseZB:\bdatabase26/v1/{database.name=projects/*/instances/*/databases/*}2+/v1/{database.name=instances/*/databases/*}\x12\x8e\x02\n" +
"\x14BatchUpdateDatabases\x12(.bytebase.v1.BatchUpdateDatabasesRequest\x1a).bytebase.v1.BatchUpdateDatabasesResponse\"\xa0\x01\x8a\xea0\x13bb.databases.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\x0e\x82\xd3\xe4\x93\x02s:\x01*Z>:\x01*\"9/v1/{parent=projects/*/instances/*}/databases:batchUpdate\"./v1/{parent=instances/*}/databases:batchUpdate\x12\xde\x01\n" +
"\fSyncDatabase\x12 .bytebase.v1.SyncDatabaseRequest\x1a!.bytebase.v1.SyncDatabaseResponse\"\x88\x01\x8a\xea0\x11bb.databases.sync\x90\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02e:\x01*Z7:\x01*\"2/v1/{name=projects/*/instances/*/databases/*}:sync\"'/v1/{name=instances/*/databases/*}:sync\x12\xfa\x01\n" +
"\x12BatchSyncDatabases\x12&.bytebase.v1.BatchSyncDatabasesRequest\x1a'.bytebase.v1.BatchSyncDatabasesResponse\"\x92\x01\x8a\xea0\x11bb.databases.sync\x90\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02o:\x01*Z<:\x01*\"7/v1/{parent=projects/*/instances/*}/databases:batchSync\",/v1/{parent=instances/*}/databases:batchSync\x12\xef\x01\n" +
"\x13GetDatabaseMetadata\x12'.bytebase.v1.GetDatabaseMetadataRequest\x1a\x1d.bytebase.v1.DatabaseMetadata\"\x8f\x01\x8a\xea0\x16bb.databases.getSchema\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02gZ8\x126/v1/{name=projects/*/instances/*/databases/*/metadata}\x12+/v1/{name=instances/*/databases/*/metadata}\x12\xe5\x01\n" +
"\x11GetDatabaseSchema\x12%.bytebase.v1.GetDatabaseSchemaRequest\x1a\x1b.bytebase.v1.DatabaseSchema\"\x8b\x01\x8a\xea0\x16bb.databases.getSchema\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02cZ6\x124/v1/{name=projects/*/instances/*/databases/*/schema}\x12)/v1/{name=instances/*/databases/*/schema}\x12\xf4\x01\n" +
"\x14GetDatabaseSDLSchema\x12(.bytebase.v1.GetDatabaseSDLSchemaRequest\x1a\x1e.bytebase.v1.DatabaseSDLSchema\"\x91\x01\x8a\xea0\x16bb.databases.getSchema\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02iZ9\x127/v1/{name=projects/*/instances/*/databases/*/sdlSchema}\x12,/v1/{name=instances/*/databases/*/sdlSchema}\x12\xf1\x02\n" +
"\n" +
"DiffSchema\x12\x1e.bytebase.v1.DiffSchemaRequest\x1a\x1f.bytebase.v1.DiffSchemaResponse\"\xa1\x02\x8a\xea0\x10bb.databases.get\x90\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02\xfe\x01:\x01*Z=:\x01*\"8/v1/{name=projects/*/instances/*/databases/*}:diffSchemaZ?:\x01*\":/v1/{name=instances/*/databases/*/changelogs/*}:diffSchemaZJ:\x01*\"E/v1/{name=projects/*/instances/*/databases/*/changelogs/*}:diffSchema\"-/v1/{name=instances/*/databases/*}:diffSchema\x12\xf6\x01\n" +
"\fDiffMetadata\x12 .bytebase.v1.DiffMetadataRequest\x1a!.bytebase.v1.DiffMetadataResponse\"\xa0\x01\x8a\xea0\x19bb.databases.diffMetadata\x90\xea0\x01\xa0\xea0\x02\x82\xd3\xe4\x93\x02u:\x01*Z?:\x01*\":/v1/{name=projects/*/instances/*/databases/*}:diffMetadata\"//v1/{name=instances/*/databases/*}:diffMetadata\x12\xfd\x01\n" +
"\x0fGetSchemaString\x12#.bytebase.v1.GetSchemaStringRequest\x1a$.bytebase.v1.GetSchemaStringResponse\"\x9e\x01\xdaA\x04name\x8a\xea0\x16bb.databases.getSchema\x90\xea0\x01\xa0\xea0\x01\x82\xd3\xe4\x93\x02oZ<\x12:/v1/{name=projects/*/instances/*/databases/*/schemaString}\x12//v1/{name=instances/*/databases/*/schemaString}B\xaa\x01\n" +
"\x0fcom.bytebase.v1B\x14DatabaseServiceProtoP\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_database_service_proto_rawDescOnce sync.Once
file_v1_database_service_proto_rawDescData []byte
)
func file_v1_database_service_proto_rawDescGZIP() []byte {
file_v1_database_service_proto_rawDescOnce.Do(func() {
file_v1_database_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_database_service_proto_rawDesc), len(file_v1_database_service_proto_rawDesc)))
})
return file_v1_database_service_proto_rawDescData
}
var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 9)
var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 60)
var file_v1_database_service_proto_goTypes = []any{
(SyncStatus)(0), // 0: bytebase.v1.SyncStatus
(GetDatabaseSDLSchemaRequest_SDLFormat)(0), // 1: bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat
(TablePartitionMetadata_Type)(0), // 2: bytebase.v1.TablePartitionMetadata.Type
(ColumnMetadata_IdentityGeneration)(0), // 3: bytebase.v1.ColumnMetadata.IdentityGeneration
(GenerationMetadata_Type)(0), // 4: bytebase.v1.GenerationMetadata.Type
(TaskMetadata_State)(0), // 5: bytebase.v1.TaskMetadata.State
(StreamMetadata_Type)(0), // 6: bytebase.v1.StreamMetadata.Type
(StreamMetadata_Mode)(0), // 7: bytebase.v1.StreamMetadata.Mode
(GetSchemaStringRequest_ObjectType)(0), // 8: bytebase.v1.GetSchemaStringRequest.ObjectType
(*GetDatabaseRequest)(nil), // 9: bytebase.v1.GetDatabaseRequest
(*BatchGetDatabasesRequest)(nil), // 10: bytebase.v1.BatchGetDatabasesRequest
(*BatchGetDatabasesResponse)(nil), // 11: bytebase.v1.BatchGetDatabasesResponse
(*ListDatabasesRequest)(nil), // 12: bytebase.v1.ListDatabasesRequest
(*ListDatabasesResponse)(nil), // 13: bytebase.v1.ListDatabasesResponse
(*SearchDatabasesRequest)(nil), // 14: bytebase.v1.SearchDatabasesRequest
(*SearchDatabasesResponse)(nil), // 15: bytebase.v1.SearchDatabasesResponse
(*UpdateDatabaseRequest)(nil), // 16: bytebase.v1.UpdateDatabaseRequest
(*BatchUpdateDatabasesRequest)(nil), // 17: bytebase.v1.BatchUpdateDatabasesRequest
(*BatchUpdateDatabasesResponse)(nil), // 18: bytebase.v1.BatchUpdateDatabasesResponse
(*BatchSyncDatabasesRequest)(nil), // 19: bytebase.v1.BatchSyncDatabasesRequest
(*BatchSyncDatabasesResponse)(nil), // 20: bytebase.v1.BatchSyncDatabasesResponse
(*SyncDatabaseRequest)(nil), // 21: bytebase.v1.SyncDatabaseRequest
(*SyncDatabaseResponse)(nil), // 22: bytebase.v1.SyncDatabaseResponse
(*GetDatabaseMetadataRequest)(nil), // 23: bytebase.v1.GetDatabaseMetadataRequest
(*GetDatabaseSchemaRequest)(nil), // 24: bytebase.v1.GetDatabaseSchemaRequest
(*GetDatabaseSDLSchemaRequest)(nil), // 25: bytebase.v1.GetDatabaseSDLSchemaRequest
(*DiffSchemaRequest)(nil), // 26: bytebase.v1.DiffSchemaRequest
(*DiffSchemaResponse)(nil), // 27: bytebase.v1.DiffSchemaResponse
(*DiffMetadataRequest)(nil), // 28: bytebase.v1.DiffMetadataRequest
(*DiffMetadataResponse)(nil), // 29: bytebase.v1.DiffMetadataResponse
(*Database)(nil), // 30: bytebase.v1.Database
(*DatabaseMetadata)(nil), // 31: bytebase.v1.DatabaseMetadata
(*SchemaMetadata)(nil), // 32: bytebase.v1.SchemaMetadata
(*EnumTypeMetadata)(nil), // 33: bytebase.v1.EnumTypeMetadata
(*CompositeTypeMetadata)(nil), // 34: bytebase.v1.CompositeTypeMetadata
(*CompositeTypeAttribute)(nil), // 35: bytebase.v1.CompositeTypeAttribute
(*EventMetadata)(nil), // 36: bytebase.v1.EventMetadata
(*SequenceMetadata)(nil), // 37: bytebase.v1.SequenceMetadata
(*TriggerMetadata)(nil), // 38: bytebase.v1.TriggerMetadata
(*ExternalTableMetadata)(nil), // 39: bytebase.v1.ExternalTableMetadata
(*TableMetadata)(nil), // 40: bytebase.v1.TableMetadata
(*CheckConstraintMetadata)(nil), // 41: bytebase.v1.CheckConstraintMetadata
(*TablePartitionMetadata)(nil), // 42: bytebase.v1.TablePartitionMetadata
(*ColumnMetadata)(nil), // 43: bytebase.v1.ColumnMetadata
(*GenerationMetadata)(nil), // 44: bytebase.v1.GenerationMetadata
(*ViewMetadata)(nil), // 45: bytebase.v1.ViewMetadata
(*DependencyColumn)(nil), // 46: bytebase.v1.DependencyColumn
(*MaterializedViewMetadata)(nil), // 47: bytebase.v1.MaterializedViewMetadata
(*DependencyTable)(nil), // 48: bytebase.v1.DependencyTable
(*FunctionMetadata)(nil), // 49: bytebase.v1.FunctionMetadata
(*ProcedureMetadata)(nil), // 50: bytebase.v1.ProcedureMetadata
(*PackageMetadata)(nil), // 51: bytebase.v1.PackageMetadata
(*TaskMetadata)(nil), // 52: bytebase.v1.TaskMetadata
(*StreamMetadata)(nil), // 53: bytebase.v1.StreamMetadata
(*SpatialIndexConfig)(nil), // 54: bytebase.v1.SpatialIndexConfig
(*TessellationConfig)(nil), // 55: bytebase.v1.TessellationConfig
(*GridLevel)(nil), // 56: bytebase.v1.GridLevel
(*BoundingBox)(nil), // 57: bytebase.v1.BoundingBox
(*StorageConfig)(nil), // 58: bytebase.v1.StorageConfig
(*DimensionalConfig)(nil), // 59: bytebase.v1.DimensionalConfig
(*DimensionConstraint)(nil), // 60: bytebase.v1.DimensionConstraint
(*IndexMetadata)(nil), // 61: bytebase.v1.IndexMetadata
(*ExtensionMetadata)(nil), // 62: bytebase.v1.ExtensionMetadata
(*ForeignKeyMetadata)(nil), // 63: bytebase.v1.ForeignKeyMetadata
(*DatabaseSchema)(nil), // 64: bytebase.v1.DatabaseSchema
(*DatabaseSDLSchema)(nil), // 65: bytebase.v1.DatabaseSDLSchema
(*GetSchemaStringRequest)(nil), // 66: bytebase.v1.GetSchemaStringRequest
(*GetSchemaStringResponse)(nil), // 67: bytebase.v1.GetSchemaStringResponse
nil, // 68: bytebase.v1.Database.LabelsEntry
(*fieldmaskpb.FieldMask)(nil), // 69: google.protobuf.FieldMask
(State)(0), // 70: bytebase.v1.State
(*timestamppb.Timestamp)(nil), // 71: google.protobuf.Timestamp
(*InstanceResource)(nil), // 72: bytebase.v1.InstanceResource
}
var file_v1_database_service_proto_depIdxs = []int32{
30, // 0: bytebase.v1.BatchGetDatabasesResponse.databases:type_name -> bytebase.v1.Database
30, // 1: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
30, // 2: bytebase.v1.SearchDatabasesResponse.databases:type_name -> bytebase.v1.Database
30, // 3: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database
69, // 4: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
16, // 5: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest
30, // 6: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database
1, // 7: bytebase.v1.GetDatabaseSDLSchemaRequest.format:type_name -> bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat
31, // 8: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata
70, // 9: bytebase.v1.Database.state:type_name -> bytebase.v1.State
71, // 10: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
68, // 11: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
72, // 12: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource
0, // 13: bytebase.v1.Database.sync_status:type_name -> bytebase.v1.SyncStatus
32, // 14: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata
62, // 15: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
40, // 16: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata
39, // 17: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata
45, // 18: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata
49, // 19: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata
50, // 20: bytebase.v1.SchemaMetadata.procedures:type_name -> bytebase.v1.ProcedureMetadata
53, // 21: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata
52, // 22: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata
47, // 23: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata
51, // 24: bytebase.v1.SchemaMetadata.packages:type_name -> bytebase.v1.PackageMetadata
37, // 25: bytebase.v1.SchemaMetadata.sequences:type_name -> bytebase.v1.SequenceMetadata
36, // 26: bytebase.v1.SchemaMetadata.events:type_name -> bytebase.v1.EventMetadata
33, // 27: bytebase.v1.SchemaMetadata.enum_types:type_name -> bytebase.v1.EnumTypeMetadata
34, // 28: bytebase.v1.SchemaMetadata.composite_types:type_name -> bytebase.v1.CompositeTypeMetadata
35, // 29: bytebase.v1.CompositeTypeMetadata.attributes:type_name -> bytebase.v1.CompositeTypeAttribute
43, // 30: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
43, // 31: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
61, // 32: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
63, // 33: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata
42, // 34: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata
41, // 35: bytebase.v1.TableMetadata.check_constraints:type_name -> bytebase.v1.CheckConstraintMetadata
38, // 36: bytebase.v1.TableMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
2, // 37: bytebase.v1.TablePartitionMetadata.type:type_name -> bytebase.v1.TablePartitionMetadata.Type
42, // 38: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata
61, // 39: bytebase.v1.TablePartitionMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
41, // 40: bytebase.v1.TablePartitionMetadata.check_constraints:type_name -> bytebase.v1.CheckConstraintMetadata
44, // 41: bytebase.v1.ColumnMetadata.generation:type_name -> bytebase.v1.GenerationMetadata
3, // 42: bytebase.v1.ColumnMetadata.identity_generation:type_name -> bytebase.v1.ColumnMetadata.IdentityGeneration
4, // 43: bytebase.v1.GenerationMetadata.type:type_name -> bytebase.v1.GenerationMetadata.Type
46, // 44: bytebase.v1.ViewMetadata.dependency_columns:type_name -> bytebase.v1.DependencyColumn
43, // 45: bytebase.v1.ViewMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
38, // 46: bytebase.v1.ViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
46, // 47: bytebase.v1.MaterializedViewMetadata.dependency_columns:type_name -> bytebase.v1.DependencyColumn
38, // 48: bytebase.v1.MaterializedViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
61, // 49: bytebase.v1.MaterializedViewMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
48, // 50: bytebase.v1.FunctionMetadata.dependency_tables:type_name -> bytebase.v1.DependencyTable
5, // 51: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State
6, // 52: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type
7, // 53: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode
55, // 54: bytebase.v1.SpatialIndexConfig.tessellation:type_name -> bytebase.v1.TessellationConfig
58, // 55: bytebase.v1.SpatialIndexConfig.storage:type_name -> bytebase.v1.StorageConfig
59, // 56: bytebase.v1.SpatialIndexConfig.dimensional:type_name -> bytebase.v1.DimensionalConfig
56, // 57: bytebase.v1.TessellationConfig.grid_levels:type_name -> bytebase.v1.GridLevel
57, // 58: bytebase.v1.TessellationConfig.bounding_box:type_name -> bytebase.v1.BoundingBox
60, // 59: bytebase.v1.DimensionalConfig.constraints:type_name -> bytebase.v1.DimensionConstraint
54, // 60: bytebase.v1.IndexMetadata.spatial_config:type_name -> bytebase.v1.SpatialIndexConfig
8, // 61: bytebase.v1.GetSchemaStringRequest.type:type_name -> bytebase.v1.GetSchemaStringRequest.ObjectType
31, // 62: bytebase.v1.GetSchemaStringRequest.metadata:type_name -> bytebase.v1.DatabaseMetadata
9, // 63: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
10, // 64: bytebase.v1.DatabaseService.BatchGetDatabases:input_type -> bytebase.v1.BatchGetDatabasesRequest
12, // 65: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
14, // 66: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest
16, // 67: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
17, // 68: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
21, // 69: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
19, // 70: bytebase.v1.DatabaseService.BatchSyncDatabases:input_type -> bytebase.v1.BatchSyncDatabasesRequest
23, // 71: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
24, // 72: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
25, // 73: bytebase.v1.DatabaseService.GetDatabaseSDLSchema:input_type -> bytebase.v1.GetDatabaseSDLSchemaRequest
26, // 74: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
28, // 75: bytebase.v1.DatabaseService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest
66, // 76: bytebase.v1.DatabaseService.GetSchemaString:input_type -> bytebase.v1.GetSchemaStringRequest
30, // 77: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
11, // 78: bytebase.v1.DatabaseService.BatchGetDatabases:output_type -> bytebase.v1.BatchGetDatabasesResponse
13, // 79: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
15, // 80: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse
30, // 81: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
18, // 82: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
22, // 83: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
20, // 84: bytebase.v1.DatabaseService.BatchSyncDatabases:output_type -> bytebase.v1.BatchSyncDatabasesResponse
31, // 85: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
64, // 86: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
65, // 87: bytebase.v1.DatabaseService.GetDatabaseSDLSchema:output_type -> bytebase.v1.DatabaseSDLSchema
27, // 88: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
29, // 89: bytebase.v1.DatabaseService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse
67, // 90: bytebase.v1.DatabaseService.GetSchemaString:output_type -> bytebase.v1.GetSchemaStringResponse
77, // [77:91] is the sub-list for method output_type
63, // [63:77] is the sub-list for method input_type
63, // [63:63] is the sub-list for extension type_name
63, // [63:63] is the sub-list for extension extendee
0, // [0:63] is the sub-list for field type_name
}
func init() { file_v1_database_service_proto_init() }
func file_v1_database_service_proto_init() {
if File_v1_database_service_proto != nil {
return
}
file_v1_annotation_proto_init()
file_v1_common_proto_init()
file_v1_instance_service_proto_init()
file_v1_database_service_proto_msgTypes[17].OneofWrappers = []any{
(*DiffSchemaRequest_Schema)(nil),
(*DiffSchemaRequest_Changelog)(nil),
}
file_v1_database_service_proto_msgTypes[21].OneofWrappers = []any{}
file_v1_database_service_proto_msgTypes[34].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_database_service_proto_rawDesc), len(file_v1_database_service_proto_rawDesc)),
NumEnums: 9,
NumMessages: 60,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_v1_database_service_proto_goTypes,
DependencyIndexes: file_v1_database_service_proto_depIdxs,
EnumInfos: file_v1_database_service_proto_enumTypes,
MessageInfos: file_v1_database_service_proto_msgTypes,
}.Build()
File_v1_database_service_proto = out.File
file_v1_database_service_proto_goTypes = nil
file_v1_database_service_proto_depIdxs = nil
}