| // Copyright (c) HashiCorp, Inc. |
| // SPDX-License-Identifier: MPL-2.0 |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.28.1 |
| // protoc v3.21.12 |
| // source: sdk/database/dbplugin/database.proto |
| |
| package dbplugin |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| reflect "reflect" |
| sync "sync" |
| ) |
| |
| 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) |
| ) |
| |
| // Deprecated: Do not use. |
| type InitializeRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` |
| VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"` |
| } |
| |
| func (x *InitializeRequest) Reset() { |
| *x = InitializeRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *InitializeRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*InitializeRequest) ProtoMessage() {} |
| |
| func (x *InitializeRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use InitializeRequest.ProtoReflect.Descriptor instead. |
| func (*InitializeRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *InitializeRequest) GetConfig() []byte { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| func (x *InitializeRequest) GetVerifyConnection() bool { |
| if x != nil { |
| return x.VerifyConnection |
| } |
| return false |
| } |
| |
| type InitRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` |
| VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"` |
| } |
| |
| func (x *InitRequest) Reset() { |
| *x = InitRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *InitRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*InitRequest) ProtoMessage() {} |
| |
| func (x *InitRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use InitRequest.ProtoReflect.Descriptor instead. |
| func (*InitRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *InitRequest) GetConfig() []byte { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| func (x *InitRequest) GetVerifyConnection() bool { |
| if x != nil { |
| return x.VerifyConnection |
| } |
| return false |
| } |
| |
| type CreateUserRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Statements *Statements `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"` |
| UsernameConfig *UsernameConfig `protobuf:"bytes,2,opt,name=username_config,json=usernameConfig,proto3" json:"username_config,omitempty"` |
| Expiration *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` |
| } |
| |
| func (x *CreateUserRequest) Reset() { |
| *x = CreateUserRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CreateUserRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CreateUserRequest) ProtoMessage() {} |
| |
| func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[2] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. |
| func (*CreateUserRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *CreateUserRequest) GetStatements() *Statements { |
| if x != nil { |
| return x.Statements |
| } |
| return nil |
| } |
| |
| func (x *CreateUserRequest) GetUsernameConfig() *UsernameConfig { |
| if x != nil { |
| return x.UsernameConfig |
| } |
| return nil |
| } |
| |
| func (x *CreateUserRequest) GetExpiration() *timestamppb.Timestamp { |
| if x != nil { |
| return x.Expiration |
| } |
| return nil |
| } |
| |
| type RenewUserRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Statements *Statements `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"` |
| Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` |
| Expiration *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` |
| } |
| |
| func (x *RenewUserRequest) Reset() { |
| *x = RenewUserRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RenewUserRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RenewUserRequest) ProtoMessage() {} |
| |
| func (x *RenewUserRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[3] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RenewUserRequest.ProtoReflect.Descriptor instead. |
| func (*RenewUserRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *RenewUserRequest) GetStatements() *Statements { |
| if x != nil { |
| return x.Statements |
| } |
| return nil |
| } |
| |
| func (x *RenewUserRequest) GetUsername() string { |
| if x != nil { |
| return x.Username |
| } |
| return "" |
| } |
| |
| func (x *RenewUserRequest) GetExpiration() *timestamppb.Timestamp { |
| if x != nil { |
| return x.Expiration |
| } |
| return nil |
| } |
| |
| type RevokeUserRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Statements *Statements `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"` |
| Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` |
| } |
| |
| func (x *RevokeUserRequest) Reset() { |
| *x = RevokeUserRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RevokeUserRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RevokeUserRequest) ProtoMessage() {} |
| |
| func (x *RevokeUserRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[4] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RevokeUserRequest.ProtoReflect.Descriptor instead. |
| func (*RevokeUserRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *RevokeUserRequest) GetStatements() *Statements { |
| if x != nil { |
| return x.Statements |
| } |
| return nil |
| } |
| |
| func (x *RevokeUserRequest) GetUsername() string { |
| if x != nil { |
| return x.Username |
| } |
| return "" |
| } |
| |
| type RotateRootCredentialsRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Statements []string `protobuf:"bytes,1,rep,name=statements,proto3" json:"statements,omitempty"` |
| } |
| |
| func (x *RotateRootCredentialsRequest) Reset() { |
| *x = RotateRootCredentialsRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RotateRootCredentialsRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RotateRootCredentialsRequest) ProtoMessage() {} |
| |
| func (x *RotateRootCredentialsRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[5] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RotateRootCredentialsRequest.ProtoReflect.Descriptor instead. |
| func (*RotateRootCredentialsRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *RotateRootCredentialsRequest) GetStatements() []string { |
| if x != nil { |
| return x.Statements |
| } |
| return nil |
| } |
| |
| type Statements struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // DEPRECATED, will be removed in 0.12 |
| // |
| // Deprecated: Do not use. |
| CreationStatements string `protobuf:"bytes,1,opt,name=creation_statements,json=creationStatements,proto3" json:"creation_statements,omitempty"` |
| // DEPRECATED, will be removed in 0.12 |
| // |
| // Deprecated: Do not use. |
| RevocationStatements string `protobuf:"bytes,2,opt,name=revocation_statements,json=revocationStatements,proto3" json:"revocation_statements,omitempty"` |
| // DEPRECATED, will be removed in 0.12 |
| // |
| // Deprecated: Do not use. |
| RollbackStatements string `protobuf:"bytes,3,opt,name=rollback_statements,json=rollbackStatements,proto3" json:"rollback_statements,omitempty"` |
| // DEPRECATED, will be removed in 0.12 |
| // |
| // Deprecated: Do not use. |
| RenewStatements string `protobuf:"bytes,4,opt,name=renew_statements,json=renewStatements,proto3" json:"renew_statements,omitempty"` |
| Creation []string `protobuf:"bytes,5,rep,name=creation,proto3" json:"creation,omitempty"` |
| Revocation []string `protobuf:"bytes,6,rep,name=revocation,proto3" json:"revocation,omitempty"` |
| Rollback []string `protobuf:"bytes,7,rep,name=rollback,proto3" json:"rollback,omitempty"` |
| Renewal []string `protobuf:"bytes,8,rep,name=renewal,proto3" json:"renewal,omitempty"` |
| Rotation []string `protobuf:"bytes,9,rep,name=rotation,proto3" json:"rotation,omitempty"` |
| } |
| |
| func (x *Statements) Reset() { |
| *x = Statements{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Statements) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Statements) ProtoMessage() {} |
| |
| func (x *Statements) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[6] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Statements.ProtoReflect.Descriptor instead. |
| func (*Statements) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{6} |
| } |
| |
| // Deprecated: Do not use. |
| func (x *Statements) GetCreationStatements() string { |
| if x != nil { |
| return x.CreationStatements |
| } |
| return "" |
| } |
| |
| // Deprecated: Do not use. |
| func (x *Statements) GetRevocationStatements() string { |
| if x != nil { |
| return x.RevocationStatements |
| } |
| return "" |
| } |
| |
| // Deprecated: Do not use. |
| func (x *Statements) GetRollbackStatements() string { |
| if x != nil { |
| return x.RollbackStatements |
| } |
| return "" |
| } |
| |
| // Deprecated: Do not use. |
| func (x *Statements) GetRenewStatements() string { |
| if x != nil { |
| return x.RenewStatements |
| } |
| return "" |
| } |
| |
| func (x *Statements) GetCreation() []string { |
| if x != nil { |
| return x.Creation |
| } |
| return nil |
| } |
| |
| func (x *Statements) GetRevocation() []string { |
| if x != nil { |
| return x.Revocation |
| } |
| return nil |
| } |
| |
| func (x *Statements) GetRollback() []string { |
| if x != nil { |
| return x.Rollback |
| } |
| return nil |
| } |
| |
| func (x *Statements) GetRenewal() []string { |
| if x != nil { |
| return x.Renewal |
| } |
| return nil |
| } |
| |
| func (x *Statements) GetRotation() []string { |
| if x != nil { |
| return x.Rotation |
| } |
| return nil |
| } |
| |
| type UsernameConfig struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| DisplayName string `protobuf:"bytes,1,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"` |
| RoleName string `protobuf:"bytes,2,opt,name=RoleName,proto3" json:"RoleName,omitempty"` |
| } |
| |
| func (x *UsernameConfig) Reset() { |
| *x = UsernameConfig{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *UsernameConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*UsernameConfig) ProtoMessage() {} |
| |
| func (x *UsernameConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[7] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use UsernameConfig.ProtoReflect.Descriptor instead. |
| func (*UsernameConfig) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{7} |
| } |
| |
| func (x *UsernameConfig) GetDisplayName() string { |
| if x != nil { |
| return x.DisplayName |
| } |
| return "" |
| } |
| |
| func (x *UsernameConfig) GetRoleName() string { |
| if x != nil { |
| return x.RoleName |
| } |
| return "" |
| } |
| |
| type InitResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` |
| } |
| |
| func (x *InitResponse) Reset() { |
| *x = InitResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *InitResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*InitResponse) ProtoMessage() {} |
| |
| func (x *InitResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[8] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use InitResponse.ProtoReflect.Descriptor instead. |
| func (*InitResponse) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{8} |
| } |
| |
| func (x *InitResponse) GetConfig() []byte { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| type CreateUserResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| } |
| |
| func (x *CreateUserResponse) Reset() { |
| *x = CreateUserResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CreateUserResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CreateUserResponse) ProtoMessage() {} |
| |
| func (x *CreateUserResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[9] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead. |
| func (*CreateUserResponse) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{9} |
| } |
| |
| func (x *CreateUserResponse) GetUsername() string { |
| if x != nil { |
| return x.Username |
| } |
| return "" |
| } |
| |
| func (x *CreateUserResponse) GetPassword() string { |
| if x != nil { |
| return x.Password |
| } |
| return "" |
| } |
| |
| type TypeResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
| } |
| |
| func (x *TypeResponse) Reset() { |
| *x = TypeResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[10] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *TypeResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*TypeResponse) ProtoMessage() {} |
| |
| func (x *TypeResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[10] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use TypeResponse.ProtoReflect.Descriptor instead. |
| func (*TypeResponse) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{10} |
| } |
| |
| func (x *TypeResponse) GetType() string { |
| if x != nil { |
| return x.Type |
| } |
| return "" |
| } |
| |
| type RotateRootCredentialsResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` |
| } |
| |
| func (x *RotateRootCredentialsResponse) Reset() { |
| *x = RotateRootCredentialsResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[11] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RotateRootCredentialsResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RotateRootCredentialsResponse) ProtoMessage() {} |
| |
| func (x *RotateRootCredentialsResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[11] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RotateRootCredentialsResponse.ProtoReflect.Descriptor instead. |
| func (*RotateRootCredentialsResponse) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{11} |
| } |
| |
| func (x *RotateRootCredentialsResponse) GetConfig() []byte { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| type Empty struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| } |
| |
| func (x *Empty) Reset() { |
| *x = Empty{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[12] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Empty) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Empty) ProtoMessage() {} |
| |
| func (x *Empty) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[12] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Empty.ProtoReflect.Descriptor instead. |
| func (*Empty) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{12} |
| } |
| |
| type GenerateCredentialsResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` |
| } |
| |
| func (x *GenerateCredentialsResponse) Reset() { |
| *x = GenerateCredentialsResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[13] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GenerateCredentialsResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GenerateCredentialsResponse) ProtoMessage() {} |
| |
| func (x *GenerateCredentialsResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[13] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GenerateCredentialsResponse.ProtoReflect.Descriptor instead. |
| func (*GenerateCredentialsResponse) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{13} |
| } |
| |
| func (x *GenerateCredentialsResponse) GetPassword() string { |
| if x != nil { |
| return x.Password |
| } |
| return "" |
| } |
| |
| type StaticUserConfig struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| Create bool `protobuf:"varint,3,opt,name=create,proto3" json:"create,omitempty"` |
| } |
| |
| func (x *StaticUserConfig) Reset() { |
| *x = StaticUserConfig{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[14] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *StaticUserConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*StaticUserConfig) ProtoMessage() {} |
| |
| func (x *StaticUserConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[14] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use StaticUserConfig.ProtoReflect.Descriptor instead. |
| func (*StaticUserConfig) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{14} |
| } |
| |
| func (x *StaticUserConfig) GetUsername() string { |
| if x != nil { |
| return x.Username |
| } |
| return "" |
| } |
| |
| func (x *StaticUserConfig) GetPassword() string { |
| if x != nil { |
| return x.Password |
| } |
| return "" |
| } |
| |
| func (x *StaticUserConfig) GetCreate() bool { |
| if x != nil { |
| return x.Create |
| } |
| return false |
| } |
| |
| type SetCredentialsRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Statements *Statements `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"` |
| StaticUserConfig *StaticUserConfig `protobuf:"bytes,2,opt,name=static_user_config,json=staticUserConfig,proto3" json:"static_user_config,omitempty"` |
| } |
| |
| func (x *SetCredentialsRequest) Reset() { |
| *x = SetCredentialsRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[15] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *SetCredentialsRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SetCredentialsRequest) ProtoMessage() {} |
| |
| func (x *SetCredentialsRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[15] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SetCredentialsRequest.ProtoReflect.Descriptor instead. |
| func (*SetCredentialsRequest) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{15} |
| } |
| |
| func (x *SetCredentialsRequest) GetStatements() *Statements { |
| if x != nil { |
| return x.Statements |
| } |
| return nil |
| } |
| |
| func (x *SetCredentialsRequest) GetStaticUserConfig() *StaticUserConfig { |
| if x != nil { |
| return x.StaticUserConfig |
| } |
| return nil |
| } |
| |
| type SetCredentialsResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| } |
| |
| func (x *SetCredentialsResponse) Reset() { |
| *x = SetCredentialsResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[16] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *SetCredentialsResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SetCredentialsResponse) ProtoMessage() {} |
| |
| func (x *SetCredentialsResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_sdk_database_dbplugin_database_proto_msgTypes[16] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SetCredentialsResponse.ProtoReflect.Descriptor instead. |
| func (*SetCredentialsResponse) Descriptor() ([]byte, []int) { |
| return file_sdk_database_dbplugin_database_proto_rawDescGZIP(), []int{16} |
| } |
| |
| func (x *SetCredentialsResponse) GetUsername() string { |
| if x != nil { |
| return x.Username |
| } |
| return "" |
| } |
| |
| func (x *SetCredentialsResponse) GetPassword() string { |
| if x != nil { |
| return x.Password |
| } |
| return "" |
| } |
| |
| var File_sdk_database_dbplugin_database_proto protoreflect.FileDescriptor |
| |
| var file_sdk_database_dbplugin_database_proto_rawDesc = []byte{ |
| 0x0a, 0x24, 0x73, 0x64, 0x6b, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x64, |
| 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, |
| 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, |
| 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 0x6f, 0x22, 0x5c, 0x0a, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, |
| 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, |
| 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, |
| 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, |
| 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x02, 0x18, 0x01, 0x22, |
| 0x52, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, |
| 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, |
| 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, |
| 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 0x08, 0x52, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, |
| 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, |
| 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x73, 0x74, 0x61, |
| 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, |
| 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, |
| 0x6e, 0x74, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, |
| 0x41, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, |
| 0x67, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, |
| 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa0, |
| 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, |
| 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, |
| 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, |
| 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x0a, 0x73, |
| 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, |
| 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, |
| 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, |
| 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, |
| 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, |
| 0x6e, 0x22, 0x65, 0x0a, 0x11, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, |
| 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, |
| 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x62, 0x70, |
| 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, |
| 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, |
| 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, |
| 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3e, 0x0a, 0x1c, 0x52, 0x6f, 0x74, 0x61, |
| 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, |
| 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, |
| 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, |
| 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xec, 0x02, 0x0a, 0x0a, 0x53, 0x74, 0x61, |
| 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, |
| 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, |
| 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, |
| 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x15, |
| 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, |
| 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, |
| 0x14, 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, |
| 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, |
| 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, |
| 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, |
| 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x72, 0x65, |
| 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, |
| 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x53, |
| 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x65, |
| 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x72, 0x65, |
| 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, |
| 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x6f, 0x63, |
| 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, |
| 0x6b, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, |
| 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x03, |
| 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x72, |
| 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, |
| 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4e, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x6e, |
| 0x61, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x69, 0x73, |
| 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, |
| 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x52, |
| 0x6f, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, |
| 0x6f, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0c, 0x49, 0x6e, 0x69, 0x74, 0x52, |
| 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, |
| 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, |
| 0x4c, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, |
| 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, |
| 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, |
| 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, |
| 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x22, 0x0a, |
| 0x0c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, |
| 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, |
| 0x65, 0x22, 0x37, 0x0a, 0x1d, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x43, |
| 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, |
| 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, |
| 0x70, 0x74, 0x79, 0x22, 0x39, 0x0a, 0x1b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, |
| 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, |
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x62, |
| 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, |
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, |
| 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, |
| 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, |
| 0x65, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x72, 0x65, 0x61, |
| 0x74, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, |
| 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x0a, |
| 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x14, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, |
| 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, |
| 0x74, 0x73, 0x12, 0x48, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x75, 0x73, 0x65, |
| 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, |
| 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, |
| 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x74, 0x61, 0x74, |
| 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x50, 0x0a, 0x16, |
| 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, |
| 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, |
| 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, |
| 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, |
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x32, 0xab, |
| 0x05, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x54, |
| 0x79, 0x70, 0x65, 0x12, 0x0f, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x45, |
| 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, |
| 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, |
| 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x64, 0x62, 0x70, |
| 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, |
| 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, |
| 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, |
| 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x55, 0x73, |
| 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x52, 0x65, |
| 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, |
| 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, |
| 0x3a, 0x0a, 0x0a, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x2e, |
| 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, |
| 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x64, 0x62, 0x70, |
| 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x68, 0x0a, 0x15, 0x52, |
| 0x6f, 0x74, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, |
| 0x69, 0x61, 0x6c, 0x73, 0x12, 0x26, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, |
| 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, |
| 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x64, |
| 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x52, 0x6f, |
| 0x6f, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, |
| 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x15, 0x2e, |
| 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, |
| 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, |
| 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, |
| 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x0f, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, |
| 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0f, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, |
| 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x53, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x43, 0x72, |
| 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x1f, 0x2e, 0x64, 0x62, 0x70, 0x6c, |
| 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x64, 0x62, 0x70, |
| 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, |
| 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, |
| 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 0x61, 0x6c, 0x73, 0x12, 0x0f, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x45, |
| 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x25, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, |
| 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x49, |
| 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x2e, 0x64, 0x62, 0x70, 0x6c, |
| 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, |
| 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, |
| 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x03, 0x88, 0x02, 0x01, 0x42, 0x32, 0x5a, 0x30, |
| 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, |
| 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x64, |
| 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x64, 0x62, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, |
| 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_sdk_database_dbplugin_database_proto_rawDescOnce sync.Once |
| file_sdk_database_dbplugin_database_proto_rawDescData = file_sdk_database_dbplugin_database_proto_rawDesc |
| ) |
| |
| func file_sdk_database_dbplugin_database_proto_rawDescGZIP() []byte { |
| file_sdk_database_dbplugin_database_proto_rawDescOnce.Do(func() { |
| file_sdk_database_dbplugin_database_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_database_dbplugin_database_proto_rawDescData) |
| }) |
| return file_sdk_database_dbplugin_database_proto_rawDescData |
| } |
| |
| var file_sdk_database_dbplugin_database_proto_msgTypes = make([]protoimpl.MessageInfo, 17) |
| var file_sdk_database_dbplugin_database_proto_goTypes = []interface{}{ |
| (*InitializeRequest)(nil), // 0: dbplugin.InitializeRequest |
| (*InitRequest)(nil), // 1: dbplugin.InitRequest |
| (*CreateUserRequest)(nil), // 2: dbplugin.CreateUserRequest |
| (*RenewUserRequest)(nil), // 3: dbplugin.RenewUserRequest |
| (*RevokeUserRequest)(nil), // 4: dbplugin.RevokeUserRequest |
| (*RotateRootCredentialsRequest)(nil), // 5: dbplugin.RotateRootCredentialsRequest |
| (*Statements)(nil), // 6: dbplugin.Statements |
| (*UsernameConfig)(nil), // 7: dbplugin.UsernameConfig |
| (*InitResponse)(nil), // 8: dbplugin.InitResponse |
| (*CreateUserResponse)(nil), // 9: dbplugin.CreateUserResponse |
| (*TypeResponse)(nil), // 10: dbplugin.TypeResponse |
| (*RotateRootCredentialsResponse)(nil), // 11: dbplugin.RotateRootCredentialsResponse |
| (*Empty)(nil), // 12: dbplugin.Empty |
| (*GenerateCredentialsResponse)(nil), // 13: dbplugin.GenerateCredentialsResponse |
| (*StaticUserConfig)(nil), // 14: dbplugin.StaticUserConfig |
| (*SetCredentialsRequest)(nil), // 15: dbplugin.SetCredentialsRequest |
| (*SetCredentialsResponse)(nil), // 16: dbplugin.SetCredentialsResponse |
| (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp |
| } |
| var file_sdk_database_dbplugin_database_proto_depIdxs = []int32{ |
| 6, // 0: dbplugin.CreateUserRequest.statements:type_name -> dbplugin.Statements |
| 7, // 1: dbplugin.CreateUserRequest.username_config:type_name -> dbplugin.UsernameConfig |
| 17, // 2: dbplugin.CreateUserRequest.expiration:type_name -> google.protobuf.Timestamp |
| 6, // 3: dbplugin.RenewUserRequest.statements:type_name -> dbplugin.Statements |
| 17, // 4: dbplugin.RenewUserRequest.expiration:type_name -> google.protobuf.Timestamp |
| 6, // 5: dbplugin.RevokeUserRequest.statements:type_name -> dbplugin.Statements |
| 6, // 6: dbplugin.SetCredentialsRequest.statements:type_name -> dbplugin.Statements |
| 14, // 7: dbplugin.SetCredentialsRequest.static_user_config:type_name -> dbplugin.StaticUserConfig |
| 12, // 8: dbplugin.Database.Type:input_type -> dbplugin.Empty |
| 2, // 9: dbplugin.Database.CreateUser:input_type -> dbplugin.CreateUserRequest |
| 3, // 10: dbplugin.Database.RenewUser:input_type -> dbplugin.RenewUserRequest |
| 4, // 11: dbplugin.Database.RevokeUser:input_type -> dbplugin.RevokeUserRequest |
| 5, // 12: dbplugin.Database.RotateRootCredentials:input_type -> dbplugin.RotateRootCredentialsRequest |
| 1, // 13: dbplugin.Database.Init:input_type -> dbplugin.InitRequest |
| 12, // 14: dbplugin.Database.Close:input_type -> dbplugin.Empty |
| 15, // 15: dbplugin.Database.SetCredentials:input_type -> dbplugin.SetCredentialsRequest |
| 12, // 16: dbplugin.Database.GenerateCredentials:input_type -> dbplugin.Empty |
| 0, // 17: dbplugin.Database.Initialize:input_type -> dbplugin.InitializeRequest |
| 10, // 18: dbplugin.Database.Type:output_type -> dbplugin.TypeResponse |
| 9, // 19: dbplugin.Database.CreateUser:output_type -> dbplugin.CreateUserResponse |
| 12, // 20: dbplugin.Database.RenewUser:output_type -> dbplugin.Empty |
| 12, // 21: dbplugin.Database.RevokeUser:output_type -> dbplugin.Empty |
| 11, // 22: dbplugin.Database.RotateRootCredentials:output_type -> dbplugin.RotateRootCredentialsResponse |
| 8, // 23: dbplugin.Database.Init:output_type -> dbplugin.InitResponse |
| 12, // 24: dbplugin.Database.Close:output_type -> dbplugin.Empty |
| 16, // 25: dbplugin.Database.SetCredentials:output_type -> dbplugin.SetCredentialsResponse |
| 13, // 26: dbplugin.Database.GenerateCredentials:output_type -> dbplugin.GenerateCredentialsResponse |
| 12, // 27: dbplugin.Database.Initialize:output_type -> dbplugin.Empty |
| 18, // [18:28] is the sub-list for method output_type |
| 8, // [8:18] is the sub-list for method input_type |
| 8, // [8:8] is the sub-list for extension type_name |
| 8, // [8:8] is the sub-list for extension extendee |
| 0, // [0:8] is the sub-list for field type_name |
| } |
| |
| func init() { file_sdk_database_dbplugin_database_proto_init() } |
| func file_sdk_database_dbplugin_database_proto_init() { |
| if File_sdk_database_dbplugin_database_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_sdk_database_dbplugin_database_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*InitializeRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*InitRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CreateUserRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RenewUserRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RevokeUserRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RotateRootCredentialsRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Statements); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*UsernameConfig); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*InitResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CreateUserResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*TypeResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RotateRootCredentialsResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Empty); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GenerateCredentialsResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*StaticUserConfig); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*SetCredentialsRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_sdk_database_dbplugin_database_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*SetCredentialsResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_sdk_database_dbplugin_database_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 17, |
| NumExtensions: 0, |
| NumServices: 1, |
| }, |
| GoTypes: file_sdk_database_dbplugin_database_proto_goTypes, |
| DependencyIndexes: file_sdk_database_dbplugin_database_proto_depIdxs, |
| MessageInfos: file_sdk_database_dbplugin_database_proto_msgTypes, |
| }.Build() |
| File_sdk_database_dbplugin_database_proto = out.File |
| file_sdk_database_dbplugin_database_proto_rawDesc = nil |
| file_sdk_database_dbplugin_database_proto_goTypes = nil |
| file_sdk_database_dbplugin_database_proto_depIdxs = nil |
| } |