// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/cic/v1/common/lag_allocation_settings.proto

package cic

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

// Structure for create and update requests that describes LAG allocation settings
type LagAllocationSettingsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Lag:
	//
	//	*LagAllocationSettingsRequest_LagSize
	Lag           isLagAllocationSettingsRequest_Lag `protobuf_oneof:"lag"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LagAllocationSettingsRequest) ProtoMessage() {}

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

func (x *LagAllocationSettingsRequest) GetLag() isLagAllocationSettingsRequest_Lag {
	if x != nil {
		return x.Lag
	}
	return nil
}

func (x *LagAllocationSettingsRequest) GetLagSize() int64 {
	if x != nil {
		if x, ok := x.Lag.(*LagAllocationSettingsRequest_LagSize); ok {
			return x.LagSize
		}
	}
	return 0
}

type isLagAllocationSettingsRequest_Lag interface {
	isLagAllocationSettingsRequest_Lag()
}

type LagAllocationSettingsRequest_LagSize struct {
	// Size of LAG.
	// Must be from 1 to 10 inclusively.
	LagSize int64 `protobuf:"varint,13,opt,name=lag_size,json=lagSize,proto3,oneof"`
}

func (*LagAllocationSettingsRequest_LagSize) isLagAllocationSettingsRequest_Lag() {}

// Structure that describes LAG allocation settings
type LagAllocationSettings struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// LagInfo
	LagInfo       *LagInfo `protobuf:"bytes,14,opt,name=lag_info,json=lagInfo,proto3" json:"lag_info,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LagAllocationSettings) ProtoMessage() {}

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

func (x *LagAllocationSettings) GetLagInfo() *LagInfo {
	if x != nil {
		return x.LagInfo
	}
	return nil
}

var File_yandex_cloud_cic_v1_common_lag_allocation_settings_proto protoreflect.FileDescriptor

const file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDesc = "" +
	"\n" +
	"8yandex/cloud/cic/v1/common/lag_allocation_settings.proto\x12\x1ayandex.cloud.cic.v1.common\x1a)yandex/cloud/cic/v1/common/lag_info.proto\x1a\x1dyandex/cloud/validation.proto\"V\n" +
	"\x1cLagAllocationSettingsRequest\x12)\n" +
	"\blag_size\x18\r \x01(\x03B\f\xe8\xc71\x01\xfa\xc71\x041-10H\x00R\alagSizeB\x05\n" +
	"\x03lagJ\x04\b\x0e\x10\x0f\"W\n" +
	"\x15LagAllocationSettings\x12>\n" +
	"\blag_info\x18\x0e \x01(\v2#.yandex.cloud.cic.v1.common.LagInfoR\alagInfoBd\n" +
	"\x1eyandex.cloud.api.cic.v1.commonZBgithub.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1/common;cicb\x06proto3"

var (
	file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDescOnce sync.Once
	file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDescData []byte
)

func file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDesc), len(file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDesc)))
	})
	return file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDescData
}

var file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_goTypes = []any{
	(*LagAllocationSettingsRequest)(nil), // 0: yandex.cloud.cic.v1.common.LagAllocationSettingsRequest
	(*LagAllocationSettings)(nil),        // 1: yandex.cloud.cic.v1.common.LagAllocationSettings
	(*LagInfo)(nil),                      // 2: yandex.cloud.cic.v1.common.LagInfo
}
var file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.cic.v1.common.LagAllocationSettings.lag_info:type_name -> yandex.cloud.cic.v1.common.LagInfo
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_init() }
func file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_init() {
	if File_yandex_cloud_cic_v1_common_lag_allocation_settings_proto != nil {
		return
	}
	file_yandex_cloud_cic_v1_common_lag_info_proto_init()
	file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_msgTypes[0].OneofWrappers = []any{
		(*LagAllocationSettingsRequest_LagSize)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDesc), len(file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cic_v1_common_lag_allocation_settings_proto = out.File
	file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_goTypes = nil
	file_yandex_cloud_cic_v1_common_lag_allocation_settings_proto_depIdxs = nil
}
