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

package greenplum

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	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 ResourceGroup struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsUserDefined *wrapperspb.BoolValue  `protobuf:"bytes,2,opt,name=is_user_defined,json=isUserDefined,proto3" json:"is_user_defined,omitempty"`
	// References to CONCURRENCY from gp resource group parameter
	Concurrency *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
	// References to CPU_RATE_LIMIT from gp resource group parameter
	CpuRateLimit *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=cpu_rate_limit,json=cpuRateLimit,proto3" json:"cpu_rate_limit,omitempty"`
	// References to MEMORY_LIMIT from gp resource group parameter
	MemoryLimit *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"`
	// References to MEMORY_SHARED_QUOTA from gp resource group parameter
	MemorySharedQuota *wrapperspb.Int64Value `protobuf:"bytes,6,opt,name=memory_shared_quota,json=memorySharedQuota,proto3" json:"memory_shared_quota,omitempty"`
	// References to MEMORY_SPILL_RATIO from gp resource group parameter
	MemorySpillRatio *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=memory_spill_ratio,json=memorySpillRatio,proto3" json:"memory_spill_ratio,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ResourceGroup) ProtoMessage() {}

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

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

func (x *ResourceGroup) GetIsUserDefined() *wrapperspb.BoolValue {
	if x != nil {
		return x.IsUserDefined
	}
	return nil
}

func (x *ResourceGroup) GetConcurrency() *wrapperspb.Int64Value {
	if x != nil {
		return x.Concurrency
	}
	return nil
}

func (x *ResourceGroup) GetCpuRateLimit() *wrapperspb.Int64Value {
	if x != nil {
		return x.CpuRateLimit
	}
	return nil
}

func (x *ResourceGroup) GetMemoryLimit() *wrapperspb.Int64Value {
	if x != nil {
		return x.MemoryLimit
	}
	return nil
}

func (x *ResourceGroup) GetMemorySharedQuota() *wrapperspb.Int64Value {
	if x != nil {
		return x.MemorySharedQuota
	}
	return nil
}

func (x *ResourceGroup) GetMemorySpillRatio() *wrapperspb.Int64Value {
	if x != nil {
		return x.MemorySpillRatio
	}
	return nil
}

var File_yandex_cloud_mdb_greenplum_v1_resource_groups_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDesc = "" +
	"\n" +
	"3yandex/cloud/mdb/greenplum/v1/resource_groups.proto\x12\x1dyandex.cloud.mdb.greenplum.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\x9b\x04\n" +
	"\rResourceGroup\x127\n" +
	"\x04name\x18\x01 \x01(\tB#\xe8\xc71\x01\xf2\xc71\x12^[^\\|/*?.,;\"'<>]+$\x8a\xc81\x053-200R\x04name\x12B\n" +
	"\x0fis_user_defined\x18\x02 \x01(\v2\x1a.google.protobuf.BoolValueR\risUserDefined\x12F\n" +
	"\vconcurrency\x18\x03 \x01(\v2\x1b.google.protobuf.Int64ValueB\a\xfa\xc71\x03>=0R\vconcurrency\x12L\n" +
	"\x0ecpu_rate_limit\x18\x04 \x01(\v2\x1b.google.protobuf.Int64ValueB\t\xfa\xc71\x051-100R\fcpuRateLimit\x12I\n" +
	"\fmemory_limit\x18\x05 \x01(\v2\x1b.google.protobuf.Int64ValueB\t\xfa\xc71\x050-100R\vmemoryLimit\x12V\n" +
	"\x13memory_shared_quota\x18\x06 \x01(\v2\x1b.google.protobuf.Int64ValueB\t\xfa\xc71\x050-100R\x11memorySharedQuota\x12T\n" +
	"\x12memory_spill_ratio\x18\a \x01(\v2\x1b.google.protobuf.Int64ValueB\t\xfa\xc71\x050-100R\x10memorySpillRatioBp\n" +
	"!yandex.cloud.api.mdb.greenplum.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/greenplum/v1;greenplumb\x06proto3"

var (
	file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDesc), len(file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDescData
}

var file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_goTypes = []any{
	(*ResourceGroup)(nil),         // 0: yandex.cloud.mdb.greenplum.v1.ResourceGroup
	(*wrapperspb.BoolValue)(nil),  // 1: google.protobuf.BoolValue
	(*wrapperspb.Int64Value)(nil), // 2: google.protobuf.Int64Value
}
var file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.mdb.greenplum.v1.ResourceGroup.is_user_defined:type_name -> google.protobuf.BoolValue
	2, // 1: yandex.cloud.mdb.greenplum.v1.ResourceGroup.concurrency:type_name -> google.protobuf.Int64Value
	2, // 2: yandex.cloud.mdb.greenplum.v1.ResourceGroup.cpu_rate_limit:type_name -> google.protobuf.Int64Value
	2, // 3: yandex.cloud.mdb.greenplum.v1.ResourceGroup.memory_limit:type_name -> google.protobuf.Int64Value
	2, // 4: yandex.cloud.mdb.greenplum.v1.ResourceGroup.memory_shared_quota:type_name -> google.protobuf.Int64Value
	2, // 5: yandex.cloud.mdb.greenplum.v1.ResourceGroup.memory_spill_ratio:type_name -> google.protobuf.Int64Value
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_init() }
func file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_init() {
	if File_yandex_cloud_mdb_greenplum_v1_resource_groups_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDesc), len(file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_greenplum_v1_resource_groups_proto = out.File
	file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_goTypes = nil
	file_yandex_cloud_mdb_greenplum_v1_resource_groups_proto_depIdxs = nil
}
