// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/connectionmanager/v1/trino.proto

package connectionmanager

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 TrinoAuth struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Security:
	//
	//	*TrinoAuth_UserPassword
	Security      isTrinoAuth_Security `protobuf_oneof:"security"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TrinoAuth) ProtoMessage() {}

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

func (x *TrinoAuth) GetSecurity() isTrinoAuth_Security {
	if x != nil {
		return x.Security
	}
	return nil
}

func (x *TrinoAuth) GetUserPassword() *UserPasswordAuth {
	if x != nil {
		if x, ok := x.Security.(*TrinoAuth_UserPassword); ok {
			return x.UserPassword
		}
	}
	return nil
}

type isTrinoAuth_Security interface {
	isTrinoAuth_Security()
}

type TrinoAuth_UserPassword struct {
	UserPassword *UserPasswordAuth `protobuf:"bytes,1,opt,name=user_password,json=userPassword,proto3,oneof"`
}

func (*TrinoAuth_UserPassword) isTrinoAuth_Security() {}

type TrinoCluster struct {
	state         protoimpl.MessageState    `protogen:"open.v1"`
	Coordinator   *TrinoCluster_Coordinator `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	TlsParams     *TLSParams                `protobuf:"bytes,2,opt,name=tls_params,json=tlsParams,proto3" json:"tls_params,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TrinoCluster) ProtoMessage() {}

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

func (x *TrinoCluster) GetCoordinator() *TrinoCluster_Coordinator {
	if x != nil {
		return x.Coordinator
	}
	return nil
}

func (x *TrinoCluster) GetTlsParams() *TLSParams {
	if x != nil {
		return x.TlsParams
	}
	return nil
}

type TrinoConnection struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Cluster       *TrinoCluster          `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Auth          *TrinoAuth             `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TrinoConnection) ProtoMessage() {}

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

func (x *TrinoConnection) GetCluster() *TrinoCluster {
	if x != nil {
		return x.Cluster
	}
	return nil
}

func (x *TrinoConnection) GetAuth() *TrinoAuth {
	if x != nil {
		return x.Auth
	}
	return nil
}

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

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

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

func (*TrinoCluster_Coordinator) ProtoMessage() {}

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

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

func (x *TrinoCluster_Coordinator) GetPort() int64 {
	if x != nil {
		return x.Port
	}
	return 0
}

var File_yandex_cloud_connectionmanager_v1_trino_proto protoreflect.FileDescriptor

const file_yandex_cloud_connectionmanager_v1_trino_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/connectionmanager/v1/trino.proto\x12!yandex.cloud.connectionmanager.v1\x1a.yandex/cloud/connectionmanager/v1/common.proto\"s\n" +
	"\tTrinoAuth\x12Z\n" +
	"\ruser_password\x18\x01 \x01(\v23.yandex.cloud.connectionmanager.v1.UserPasswordAuthH\x00R\fuserPasswordB\n" +
	"\n" +
	"\bsecurity\"\xf1\x01\n" +
	"\fTrinoCluster\x12]\n" +
	"\vcoordinator\x18\x01 \x01(\v2;.yandex.cloud.connectionmanager.v1.TrinoCluster.CoordinatorR\vcoordinator\x12K\n" +
	"\n" +
	"tls_params\x18\x02 \x01(\v2,.yandex.cloud.connectionmanager.v1.TLSParamsR\ttlsParams\x1a5\n" +
	"\vCoordinator\x12\x12\n" +
	"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
	"\x04port\x18\x02 \x01(\x03R\x04port\"\x9e\x01\n" +
	"\x0fTrinoConnection\x12I\n" +
	"\acluster\x18\x01 \x01(\v2/.yandex.cloud.connectionmanager.v1.TrinoClusterR\acluster\x12@\n" +
	"\x04auth\x18\x02 \x01(\v2,.yandex.cloud.connectionmanager.v1.TrinoAuthR\x04authB\x80\x01\n" +
	"%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3"

var (
	file_yandex_cloud_connectionmanager_v1_trino_proto_rawDescOnce sync.Once
	file_yandex_cloud_connectionmanager_v1_trino_proto_rawDescData []byte
)

func file_yandex_cloud_connectionmanager_v1_trino_proto_rawDescGZIP() []byte {
	file_yandex_cloud_connectionmanager_v1_trino_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_connectionmanager_v1_trino_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_connectionmanager_v1_trino_proto_rawDesc), len(file_yandex_cloud_connectionmanager_v1_trino_proto_rawDesc)))
	})
	return file_yandex_cloud_connectionmanager_v1_trino_proto_rawDescData
}

var file_yandex_cloud_connectionmanager_v1_trino_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_connectionmanager_v1_trino_proto_goTypes = []any{
	(*TrinoAuth)(nil),                // 0: yandex.cloud.connectionmanager.v1.TrinoAuth
	(*TrinoCluster)(nil),             // 1: yandex.cloud.connectionmanager.v1.TrinoCluster
	(*TrinoConnection)(nil),          // 2: yandex.cloud.connectionmanager.v1.TrinoConnection
	(*TrinoCluster_Coordinator)(nil), // 3: yandex.cloud.connectionmanager.v1.TrinoCluster.Coordinator
	(*UserPasswordAuth)(nil),         // 4: yandex.cloud.connectionmanager.v1.UserPasswordAuth
	(*TLSParams)(nil),                // 5: yandex.cloud.connectionmanager.v1.TLSParams
}
var file_yandex_cloud_connectionmanager_v1_trino_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.connectionmanager.v1.TrinoAuth.user_password:type_name -> yandex.cloud.connectionmanager.v1.UserPasswordAuth
	3, // 1: yandex.cloud.connectionmanager.v1.TrinoCluster.coordinator:type_name -> yandex.cloud.connectionmanager.v1.TrinoCluster.Coordinator
	5, // 2: yandex.cloud.connectionmanager.v1.TrinoCluster.tls_params:type_name -> yandex.cloud.connectionmanager.v1.TLSParams
	1, // 3: yandex.cloud.connectionmanager.v1.TrinoConnection.cluster:type_name -> yandex.cloud.connectionmanager.v1.TrinoCluster
	0, // 4: yandex.cloud.connectionmanager.v1.TrinoConnection.auth:type_name -> yandex.cloud.connectionmanager.v1.TrinoAuth
	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_connectionmanager_v1_trino_proto_init() }
func file_yandex_cloud_connectionmanager_v1_trino_proto_init() {
	if File_yandex_cloud_connectionmanager_v1_trino_proto != nil {
		return
	}
	file_yandex_cloud_connectionmanager_v1_common_proto_init()
	file_yandex_cloud_connectionmanager_v1_trino_proto_msgTypes[0].OneofWrappers = []any{
		(*TrinoAuth_UserPassword)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_connectionmanager_v1_trino_proto_rawDesc), len(file_yandex_cloud_connectionmanager_v1_trino_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_connectionmanager_v1_trino_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_connectionmanager_v1_trino_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_connectionmanager_v1_trino_proto_msgTypes,
	}.Build()
	File_yandex_cloud_connectionmanager_v1_trino_proto = out.File
	file_yandex_cloud_connectionmanager_v1_trino_proto_goTypes = nil
	file_yandex_cloud_connectionmanager_v1_trino_proto_depIdxs = nil
}
