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

package datasphere

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 RestrictionMeta_RestrictionValueType int32

const (
	RestrictionMeta_RESTRICTION_VALUE_TYPE_UNSPECIFIED RestrictionMeta_RestrictionValueType = 0
	RestrictionMeta_BOOLEAN                            RestrictionMeta_RestrictionValueType = 1
	RestrictionMeta_LONG                               RestrictionMeta_RestrictionValueType = 2
	RestrictionMeta_STRING                             RestrictionMeta_RestrictionValueType = 3
)

// Enum value maps for RestrictionMeta_RestrictionValueType.
var (
	RestrictionMeta_RestrictionValueType_name = map[int32]string{
		0: "RESTRICTION_VALUE_TYPE_UNSPECIFIED",
		1: "BOOLEAN",
		2: "LONG",
		3: "STRING",
	}
	RestrictionMeta_RestrictionValueType_value = map[string]int32{
		"RESTRICTION_VALUE_TYPE_UNSPECIFIED": 0,
		"BOOLEAN":                            1,
		"LONG":                               2,
		"STRING":                             3,
	}
)

func (x RestrictionMeta_RestrictionValueType) Enum() *RestrictionMeta_RestrictionValueType {
	p := new(RestrictionMeta_RestrictionValueType)
	*p = x
	return p
}

func (x RestrictionMeta_RestrictionValueType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (RestrictionMeta_RestrictionValueType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_datasphere_v2_restrictions_proto_enumTypes[0].Descriptor()
}

func (RestrictionMeta_RestrictionValueType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_datasphere_v2_restrictions_proto_enumTypes[0]
}

func (x RestrictionMeta_RestrictionValueType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use RestrictionMeta_RestrictionValueType.Descriptor instead.
func (RestrictionMeta_RestrictionValueType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescGZIP(), []int{0, 0}
}

type RestrictionMeta struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of restriction.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Value type of restriction.
	ValueType     RestrictionMeta_RestrictionValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=yandex.cloud.datasphere.v2.RestrictionMeta_RestrictionValueType" json:"value_type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RestrictionMeta) ProtoMessage() {}

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

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

func (x *RestrictionMeta) GetValueType() RestrictionMeta_RestrictionValueType {
	if x != nil {
		return x.ValueType
	}
	return RestrictionMeta_RESTRICTION_VALUE_TYPE_UNSPECIFIED
}

type Restriction struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of restriction.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// List of boolean restriction values. Empty if value type is not boolean.
	BoolValue []bool `protobuf:"varint,2,rep,packed,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	// List of long restriction values. Empty if value type is not long.
	LongValue []int64 `protobuf:"varint,3,rep,packed,name=long_value,json=longValue,proto3" json:"long_value,omitempty"`
	// List of string restriction values. Empty if value type is not string.
	StringValue   []string `protobuf:"bytes,4,rep,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Restriction) ProtoMessage() {}

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

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

func (x *Restriction) GetBoolValue() []bool {
	if x != nil {
		return x.BoolValue
	}
	return nil
}

func (x *Restriction) GetLongValue() []int64 {
	if x != nil {
		return x.LongValue
	}
	return nil
}

func (x *Restriction) GetStringValue() []string {
	if x != nil {
		return x.StringValue
	}
	return nil
}

type GetRestrictionsMetaResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of restrictions.
	RestrictionsMeta []*RestrictionMeta `protobuf:"bytes,1,rep,name=restrictions_meta,json=restrictionsMeta,proto3" json:"restrictions_meta,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*GetRestrictionsMetaResponse) ProtoMessage() {}

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

func (x *GetRestrictionsMetaResponse) GetRestrictionsMeta() []*RestrictionMeta {
	if x != nil {
		return x.RestrictionsMeta
	}
	return nil
}

type RestrictionsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of restrictions.
	Restrictions  []*Restriction `protobuf:"bytes,1,rep,name=restrictions,proto3" json:"restrictions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RestrictionsResponse) ProtoMessage() {}

func (x *RestrictionsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_datasphere_v2_restrictions_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 RestrictionsResponse.ProtoReflect.Descriptor instead.
func (*RestrictionsResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescGZIP(), []int{3}
}

func (x *RestrictionsResponse) GetRestrictions() []*Restriction {
	if x != nil {
		return x.Restrictions
	}
	return nil
}

var File_yandex_cloud_datasphere_v2_restrictions_proto protoreflect.FileDescriptor

const file_yandex_cloud_datasphere_v2_restrictions_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/datasphere/v2/restrictions.proto\x12\x1ayandex.cloud.datasphere.v2\"\xe9\x01\n" +
	"\x0fRestrictionMeta\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12_\n" +
	"\n" +
	"value_type\x18\x02 \x01(\x0e2@.yandex.cloud.datasphere.v2.RestrictionMeta.RestrictionValueTypeR\tvalueType\"a\n" +
	"\x14RestrictionValueType\x12&\n" +
	"\"RESTRICTION_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aBOOLEAN\x10\x01\x12\b\n" +
	"\x04LONG\x10\x02\x12\n" +
	"\n" +
	"\x06STRING\x10\x03\"\x82\x01\n" +
	"\vRestriction\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" +
	"\n" +
	"bool_value\x18\x02 \x03(\bR\tboolValue\x12\x1d\n" +
	"\n" +
	"long_value\x18\x03 \x03(\x03R\tlongValue\x12!\n" +
	"\fstring_value\x18\x04 \x03(\tR\vstringValue\"w\n" +
	"\x1bGetRestrictionsMetaResponse\x12X\n" +
	"\x11restrictions_meta\x18\x01 \x03(\v2+.yandex.cloud.datasphere.v2.RestrictionMetaR\x10restrictionsMeta\"c\n" +
	"\x14RestrictionsResponse\x12K\n" +
	"\frestrictions\x18\x01 \x03(\v2'.yandex.cloud.datasphere.v2.RestrictionR\frestrictionsBk\n" +
	"\x1eyandex.cloud.api.datasphere.v2ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/datasphere/v2;datasphereb\x06proto3"

var (
	file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescOnce sync.Once
	file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescData []byte
)

func file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescGZIP() []byte {
	file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_datasphere_v2_restrictions_proto_rawDesc), len(file_yandex_cloud_datasphere_v2_restrictions_proto_rawDesc)))
	})
	return file_yandex_cloud_datasphere_v2_restrictions_proto_rawDescData
}

var file_yandex_cloud_datasphere_v2_restrictions_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_datasphere_v2_restrictions_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_datasphere_v2_restrictions_proto_goTypes = []any{
	(RestrictionMeta_RestrictionValueType)(0), // 0: yandex.cloud.datasphere.v2.RestrictionMeta.RestrictionValueType
	(*RestrictionMeta)(nil),                   // 1: yandex.cloud.datasphere.v2.RestrictionMeta
	(*Restriction)(nil),                       // 2: yandex.cloud.datasphere.v2.Restriction
	(*GetRestrictionsMetaResponse)(nil),       // 3: yandex.cloud.datasphere.v2.GetRestrictionsMetaResponse
	(*RestrictionsResponse)(nil),              // 4: yandex.cloud.datasphere.v2.RestrictionsResponse
}
var file_yandex_cloud_datasphere_v2_restrictions_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.datasphere.v2.RestrictionMeta.value_type:type_name -> yandex.cloud.datasphere.v2.RestrictionMeta.RestrictionValueType
	1, // 1: yandex.cloud.datasphere.v2.GetRestrictionsMetaResponse.restrictions_meta:type_name -> yandex.cloud.datasphere.v2.RestrictionMeta
	2, // 2: yandex.cloud.datasphere.v2.RestrictionsResponse.restrictions:type_name -> yandex.cloud.datasphere.v2.Restriction
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_yandex_cloud_datasphere_v2_restrictions_proto_init() }
func file_yandex_cloud_datasphere_v2_restrictions_proto_init() {
	if File_yandex_cloud_datasphere_v2_restrictions_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_datasphere_v2_restrictions_proto_rawDesc), len(file_yandex_cloud_datasphere_v2_restrictions_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_datasphere_v2_restrictions_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_datasphere_v2_restrictions_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_datasphere_v2_restrictions_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_datasphere_v2_restrictions_proto_msgTypes,
	}.Build()
	File_yandex_cloud_datasphere_v2_restrictions_proto = out.File
	file_yandex_cloud_datasphere_v2_restrictions_proto_goTypes = nil
	file_yandex_cloud_datasphere_v2_restrictions_proto_depIdxs = nil
}
