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

package common

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

const (
	ExpirationConfig_EXPIRATION_POLICY_UNSPECIFIED ExpirationConfig_ExpirationPolicy = 0
	ExpirationConfig_STATIC                        ExpirationConfig_ExpirationPolicy = 1
	ExpirationConfig_SINCE_LAST_ACTIVE             ExpirationConfig_ExpirationPolicy = 2
)

// Enum value maps for ExpirationConfig_ExpirationPolicy.
var (
	ExpirationConfig_ExpirationPolicy_name = map[int32]string{
		0: "EXPIRATION_POLICY_UNSPECIFIED",
		1: "STATIC",
		2: "SINCE_LAST_ACTIVE",
	}
	ExpirationConfig_ExpirationPolicy_value = map[string]int32{
		"EXPIRATION_POLICY_UNSPECIFIED": 0,
		"STATIC":                        1,
		"SINCE_LAST_ACTIVE":             2,
	}
)

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

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

func (ExpirationConfig_ExpirationPolicy) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_ai_common_common_proto_enumTypes[0].Descriptor()
}

func (ExpirationConfig_ExpirationPolicy) Type() protoreflect.EnumType {
	return &file_yandex_cloud_ai_common_common_proto_enumTypes[0]
}

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

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

type ExpirationConfig struct {
	state            protoimpl.MessageState            `protogen:"open.v1"`
	ExpirationPolicy ExpirationConfig_ExpirationPolicy `protobuf:"varint,1,opt,name=expiration_policy,json=expirationPolicy,proto3,enum=yandex.cloud.ai.common.ExpirationConfig_ExpirationPolicy" json:"expiration_policy,omitempty"`
	TtlDays          int64                             `protobuf:"varint,2,opt,name=ttl_days,json=ttlDays,proto3" json:"ttl_days,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ExpirationConfig) ProtoMessage() {}

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

func (x *ExpirationConfig) GetExpirationPolicy() ExpirationConfig_ExpirationPolicy {
	if x != nil {
		return x.ExpirationPolicy
	}
	return ExpirationConfig_EXPIRATION_POLICY_UNSPECIFIED
}

func (x *ExpirationConfig) GetTtlDays() int64 {
	if x != nil {
		return x.TtlDays
	}
	return 0
}

type Error struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Code          int64                  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message       string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Error) ProtoMessage() {}

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

func (x *Error) GetCode() int64 {
	if x != nil {
		return x.Code
	}
	return 0
}

func (x *Error) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

var File_yandex_cloud_ai_common_common_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_common_common_proto_rawDesc = "" +
	"\n" +
	"#yandex/cloud/ai/common/common.proto\x12\x16yandex.cloud.ai.common\"\xef\x01\n" +
	"\x10ExpirationConfig\x12f\n" +
	"\x11expiration_policy\x18\x01 \x01(\x0e29.yandex.cloud.ai.common.ExpirationConfig.ExpirationPolicyR\x10expirationPolicy\x12\x19\n" +
	"\bttl_days\x18\x02 \x01(\x03R\attlDays\"X\n" +
	"\x10ExpirationPolicy\x12!\n" +
	"\x1dEXPIRATION_POLICY_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06STATIC\x10\x01\x12\x15\n" +
	"\x11SINCE_LAST_ACTIVE\x10\x02\"5\n" +
	"\x05Error\x12\x12\n" +
	"\x04code\x18\x01 \x01(\x03R\x04code\x12\x18\n" +
	"\amessage\x18\x02 \x01(\tR\amessageB_\n" +
	"\x1ayandex.cloud.api.ai.commonZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/common;commonb\x06proto3"

var (
	file_yandex_cloud_ai_common_common_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_common_common_proto_rawDescData []byte
)

func file_yandex_cloud_ai_common_common_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_common_common_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_common_common_proto_rawDesc), len(file_yandex_cloud_ai_common_common_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_common_common_proto_rawDescData
}

var file_yandex_cloud_ai_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_ai_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_common_common_proto_goTypes = []any{
	(ExpirationConfig_ExpirationPolicy)(0), // 0: yandex.cloud.ai.common.ExpirationConfig.ExpirationPolicy
	(*ExpirationConfig)(nil),               // 1: yandex.cloud.ai.common.ExpirationConfig
	(*Error)(nil),                          // 2: yandex.cloud.ai.common.Error
}
var file_yandex_cloud_ai_common_common_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.ai.common.ExpirationConfig.expiration_policy:type_name -> yandex.cloud.ai.common.ExpirationConfig.ExpirationPolicy
	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_ai_common_common_proto_init() }
func file_yandex_cloud_ai_common_common_proto_init() {
	if File_yandex_cloud_ai_common_common_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_ai_common_common_proto_rawDesc), len(file_yandex_cloud_ai_common_common_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_common_common_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_common_common_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_ai_common_common_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_ai_common_common_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_common_common_proto = out.File
	file_yandex_cloud_ai_common_common_proto_goTypes = nil
	file_yandex_cloud_ai_common_common_proto_depIdxs = nil
}
