// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/serverless/mdbproxy/v1/proxy.proto

package proxy

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	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"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type Proxy struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the proxy.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the proxy belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Creation timestamp for the proxy.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the proxy.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the proxy.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Resource labels as `key:value` pairs.
	Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// MDB specific settings.
	Target        *Target `protobuf:"bytes,7,opt,name=target,proto3" json:"target,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Proxy) ProtoMessage() {}

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

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

func (x *Proxy) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *Proxy) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

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

func (x *Proxy) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

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

func (x *Proxy) GetTarget() *Target {
	if x != nil {
		return x.Target
	}
	return nil
}

type Target struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Mdb:
	//
	//	*Target_Clickhouse
	//	*Target_Postgresql
	Mdb           isTarget_Mdb `protobuf_oneof:"mdb"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Target) ProtoMessage() {}

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

func (x *Target) GetMdb() isTarget_Mdb {
	if x != nil {
		return x.Mdb
	}
	return nil
}

func (x *Target) GetClickhouse() *Target_ClickHouse {
	if x != nil {
		if x, ok := x.Mdb.(*Target_Clickhouse); ok {
			return x.Clickhouse
		}
	}
	return nil
}

func (x *Target) GetPostgresql() *Target_PostgreSQL {
	if x != nil {
		if x, ok := x.Mdb.(*Target_Postgresql); ok {
			return x.Postgresql
		}
	}
	return nil
}

type isTarget_Mdb interface {
	isTarget_Mdb()
}

type Target_Clickhouse struct {
	// Clickhouse settings for proxy.
	Clickhouse *Target_ClickHouse `protobuf:"bytes,1,opt,name=clickhouse,proto3,oneof"`
}

type Target_Postgresql struct {
	// PostgreSQL settings for proxy.
	Postgresql *Target_PostgreSQL `protobuf:"bytes,2,opt,name=postgresql,proto3,oneof"`
}

func (*Target_Clickhouse) isTarget_Mdb() {}

func (*Target_Postgresql) isTarget_Mdb() {}

type Target_PostgreSQL struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Cluster identifier for postgresql.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// PostgreSQL user.
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// PostgreSQL password, input only field.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// PostgreSQL database name.
	Db string `protobuf:"bytes,4,opt,name=db,proto3" json:"db,omitempty"`
	// PostgreSQL proxy-host for connection, output only field.
	Endpoint      string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Target_PostgreSQL) ProtoMessage() {}

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

func (x *Target_PostgreSQL) GetClusterId() string {
	if x != nil {
		return x.ClusterId
	}
	return ""
}

func (x *Target_PostgreSQL) GetUser() string {
	if x != nil {
		return x.User
	}
	return ""
}

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

func (x *Target_PostgreSQL) GetDb() string {
	if x != nil {
		return x.Db
	}
	return ""
}

func (x *Target_PostgreSQL) GetEndpoint() string {
	if x != nil {
		return x.Endpoint
	}
	return ""
}

type Target_ClickHouse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Cluster identifier for clickhouse.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Clickhouse user.
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// Clickhouse password, input only field.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// Clickhouse database name.
	Db string `protobuf:"bytes,4,opt,name=db,proto3" json:"db,omitempty"`
	// Clickhouse proxy-host for connection, output only field.
	Endpoint      string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Target_ClickHouse) ProtoMessage() {}

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

func (x *Target_ClickHouse) GetClusterId() string {
	if x != nil {
		return x.ClusterId
	}
	return ""
}

func (x *Target_ClickHouse) GetUser() string {
	if x != nil {
		return x.User
	}
	return ""
}

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

func (x *Target_ClickHouse) GetDb() string {
	if x != nil {
		return x.Db
	}
	return ""
}

func (x *Target_ClickHouse) GetEndpoint() string {
	if x != nil {
		return x.Endpoint
	}
	return ""
}

var File_yandex_cloud_serverless_mdbproxy_v1_proxy_proto protoreflect.FileDescriptor

const file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDesc = "" +
	"\n" +
	"/yandex/cloud/serverless/mdbproxy/v1/proxy.proto\x12#yandex.cloud.serverless.mdbproxy.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xf0\x03\n" +
	"\x05Proxy\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12)\n" +
	"\tfolder_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bfolderId\x129\n" +
	"\n" +
	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\x04name\x18\x04 \x01(\tB%\xe8\xc71\x01\xf2\xc71\x1d|[a-z][-a-z0-9]{1,61}[a-z0-9]R\x04name\x12 \n" +
	"\vdescription\x18\x05 \x01(\tR\vdescription\x12\x93\x01\n" +
	"\x06labels\x18\x06 \x03(\v26.yandex.cloud.serverless.mdbproxy.v1.Proxy.LabelsEntryBC\xf2\xc71\x0f[-_./\\@0-9a-z]*\x82\xc81\x04<=64\x8a\xc81\x04<=63\xb2\xc81\x1c\x12\x14[a-z][-_./\\@0-9a-z]*\x1a\x041-63R\x06labels\x12C\n" +
	"\x06target\x18\a \x01(\v2+.yandex.cloud.serverless.mdbproxy.v1.TargetR\x06target\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xf8\x04\n" +
	"\x06Target\x12X\n" +
	"\n" +
	"clickhouse\x18\x01 \x01(\v26.yandex.cloud.serverless.mdbproxy.v1.Target.ClickHouseH\x00R\n" +
	"clickhouse\x12X\n" +
	"\n" +
	"postgresql\x18\x02 \x01(\v26.yandex.cloud.serverless.mdbproxy.v1.Target.PostgreSQLH\x00R\n" +
	"postgresql\x1a\xd5\x01\n" +
	"\n" +
	"PostgreSQL\x12+\n" +
	"\n" +
	"cluster_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tclusterId\x122\n" +
	"\x04user\x18\x02 \x01(\tB\x1e\xe8\xc71\x01\xf2\xc71\x0e[a-zA-Z0-9_-]*\x8a\xc81\x04<=63R\x04user\x12\x1a\n" +
	"\bpassword\x18\x03 \x01(\tR\bpassword\x12.\n" +
	"\x02db\x18\x04 \x01(\tB\x1e\xe8\xc71\x01\xf2\xc71\x0e[a-zA-Z0-9_-]*\x8a\xc81\x04<=63R\x02db\x12\x1a\n" +
	"\bendpoint\x18\x05 \x01(\tR\bendpoint\x1a\xd4\x01\n" +
	"\n" +
	"ClickHouse\x12+\n" +
	"\n" +
	"cluster_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tclusterId\x121\n" +
	"\x04user\x18\x02 \x01(\tB\x1d\xe8\xc71\x01\xf2\xc71\r[a-zA-Z0-9_]*\x8a\xc81\x04<=63R\x04user\x12\x1a\n" +
	"\bpassword\x18\x03 \x01(\tR\bpassword\x12.\n" +
	"\x02db\x18\x04 \x01(\tB\x1e\xe8\xc71\x01\xf2\xc71\x0e[a-zA-Z0-9_-]*\x8a\xc81\x04<=63R\x02db\x12\x1a\n" +
	"\bendpoint\x18\x05 \x01(\tR\bendpointB\v\n" +
	"\x03mdb\x12\x04\xc0\xc11\x01Bx\n" +
	"'yandex.cloud.api.serverless.mdbproxy.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/mdbproxy/v1;proxyb\x06proto3"

var (
	file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDescOnce sync.Once
	file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDescData []byte
)

func file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDescGZIP() []byte {
	file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDesc), len(file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDesc)))
	})
	return file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDescData
}

var file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_goTypes = []any{
	(*Proxy)(nil),                 // 0: yandex.cloud.serverless.mdbproxy.v1.Proxy
	(*Target)(nil),                // 1: yandex.cloud.serverless.mdbproxy.v1.Target
	nil,                           // 2: yandex.cloud.serverless.mdbproxy.v1.Proxy.LabelsEntry
	(*Target_PostgreSQL)(nil),     // 3: yandex.cloud.serverless.mdbproxy.v1.Target.PostgreSQL
	(*Target_ClickHouse)(nil),     // 4: yandex.cloud.serverless.mdbproxy.v1.Target.ClickHouse
	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.serverless.mdbproxy.v1.Proxy.created_at:type_name -> google.protobuf.Timestamp
	2, // 1: yandex.cloud.serverless.mdbproxy.v1.Proxy.labels:type_name -> yandex.cloud.serverless.mdbproxy.v1.Proxy.LabelsEntry
	1, // 2: yandex.cloud.serverless.mdbproxy.v1.Proxy.target:type_name -> yandex.cloud.serverless.mdbproxy.v1.Target
	4, // 3: yandex.cloud.serverless.mdbproxy.v1.Target.clickhouse:type_name -> yandex.cloud.serverless.mdbproxy.v1.Target.ClickHouse
	3, // 4: yandex.cloud.serverless.mdbproxy.v1.Target.postgresql:type_name -> yandex.cloud.serverless.mdbproxy.v1.Target.PostgreSQL
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_init() }
func file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_init() {
	if File_yandex_cloud_serverless_mdbproxy_v1_proxy_proto != nil {
		return
	}
	file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_msgTypes[1].OneofWrappers = []any{
		(*Target_Clickhouse)(nil),
		(*Target_Postgresql)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDesc), len(file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_msgTypes,
	}.Build()
	File_yandex_cloud_serverless_mdbproxy_v1_proxy_proto = out.File
	file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_goTypes = nil
	file_yandex_cloud_serverless_mdbproxy_v1_proxy_proto_depIdxs = nil
}
