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

package billing

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 of the pricing version.
type PricingVersionType int32

const (
	PricingVersionType_PRICING_VERSION_TYPE_UNSPECIFIED PricingVersionType = 0
	// Regular price.
	PricingVersionType_STREET_PRICE PricingVersionType = 1
	// Price is overridden by a contract. Defined in the scope of a billing account.
	PricingVersionType_CONTRACT_PRICE PricingVersionType = 2
)

// Enum value maps for PricingVersionType.
var (
	PricingVersionType_name = map[int32]string{
		0: "PRICING_VERSION_TYPE_UNSPECIFIED",
		1: "STREET_PRICE",
		2: "CONTRACT_PRICE",
	}
	PricingVersionType_value = map[string]int32{
		"PRICING_VERSION_TYPE_UNSPECIFIED": 0,
		"STREET_PRICE":                     1,
		"CONTRACT_PRICE":                   2,
	}
)

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

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

func (PricingVersionType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_billing_v1_sku_proto_enumTypes[0].Descriptor()
}

func (PricingVersionType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_billing_v1_sku_proto_enumTypes[0]
}

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

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

// A Stock keeping unit resource.
type Sku struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the SKU.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the SKU.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the sku.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// ID of the service that sku belongs to.
	ServiceId string `protobuf:"bytes,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
	PricingUnit string `protobuf:"bytes,5,opt,name=pricing_unit,json=pricingUnit,proto3" json:"pricing_unit,omitempty"`
	// List of pricing versions.
	PricingVersions []*PricingVersion `protobuf:"bytes,6,rep,name=pricing_versions,json=pricingVersions,proto3" json:"pricing_versions,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*Sku) ProtoMessage() {}

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

func (x *Sku) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

func (x *Sku) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *Sku) GetServiceId() string {
	if x != nil {
		return x.ServiceId
	}
	return ""
}

func (x *Sku) GetPricingUnit() string {
	if x != nil {
		return x.PricingUnit
	}
	return ""
}

func (x *Sku) GetPricingVersions() []*PricingVersion {
	if x != nil {
		return x.PricingVersions
	}
	return nil
}

// Pricing version of the SKU.
// Defines current and past prices for the sku.
type PricingVersion struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Type of the pricing version.
	Type PricingVersionType `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.billing.v1.PricingVersionType" json:"type,omitempty"`
	// Timestamp pricing version is active since inclusive.
	// The pricing version is active until next pricing version effective time exclusive.
	EffectiveTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`
	// List of pricing expressions.
	PricingExpressions []*PricingExpression `protobuf:"bytes,3,rep,name=pricing_expressions,json=pricingExpressions,proto3" json:"pricing_expressions,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*PricingVersion) ProtoMessage() {}

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

func (x *PricingVersion) GetType() PricingVersionType {
	if x != nil {
		return x.Type
	}
	return PricingVersionType_PRICING_VERSION_TYPE_UNSPECIFIED
}

func (x *PricingVersion) GetEffectiveTime() *timestamppb.Timestamp {
	if x != nil {
		return x.EffectiveTime
	}
	return nil
}

func (x *PricingVersion) GetPricingExpressions() []*PricingExpression {
	if x != nil {
		return x.PricingExpressions
	}
	return nil
}

// Pricing expression of the pricing version.
// Defines price for the sku.
type PricingExpression struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of rates.
	Rates         []*Rate `protobuf:"bytes,2,rep,name=rates,proto3" json:"rates,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PricingExpression) ProtoMessage() {}

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

func (x *PricingExpression) GetRates() []*Rate {
	if x != nil {
		return x.Rates
	}
	return nil
}

// Rate of the pricing expression.
// Define unit price for pricing quantity interval.
type Rate struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
	StartPricingQuantity string `protobuf:"bytes,1,opt,name=start_pricing_quantity,json=startPricingQuantity,proto3" json:"start_pricing_quantity,omitempty"`
	// Unit price for the pricing quantity interval.
	UnitPrice string `protobuf:"bytes,2,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
	// Currency of the unit price.
	// Can be one of the following:
	// * `RUB`
	// * `USD`
	// * `KZT`
	Currency      string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Rate) ProtoMessage() {}

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

func (x *Rate) GetStartPricingQuantity() string {
	if x != nil {
		return x.StartPricingQuantity
	}
	return ""
}

func (x *Rate) GetUnitPrice() string {
	if x != nil {
		return x.UnitPrice
	}
	return ""
}

func (x *Rate) GetCurrency() string {
	if x != nil {
		return x.Currency
	}
	return ""
}

var File_yandex_cloud_billing_v1_sku_proto protoreflect.FileDescriptor

const file_yandex_cloud_billing_v1_sku_proto_rawDesc = "" +
	"\n" +
	"!yandex/cloud/billing/v1/sku.proto\x12\x17yandex.cloud.billing.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe1\x01\n" +
	"\x03Sku\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1d\n" +
	"\n" +
	"service_id\x18\x04 \x01(\tR\tserviceId\x12!\n" +
	"\fpricing_unit\x18\x05 \x01(\tR\vpricingUnit\x12R\n" +
	"\x10pricing_versions\x18\x06 \x03(\v2'.yandex.cloud.billing.v1.PricingVersionR\x0fpricingVersions\"\xf1\x01\n" +
	"\x0ePricingVersion\x12?\n" +
	"\x04type\x18\x01 \x01(\x0e2+.yandex.cloud.billing.v1.PricingVersionTypeR\x04type\x12A\n" +
	"\x0eeffective_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\reffectiveTime\x12[\n" +
	"\x13pricing_expressions\x18\x03 \x03(\v2*.yandex.cloud.billing.v1.PricingExpressionR\x12pricingExpressions\"H\n" +
	"\x11PricingExpression\x123\n" +
	"\x05rates\x18\x02 \x03(\v2\x1d.yandex.cloud.billing.v1.RateR\x05rates\"w\n" +
	"\x04Rate\x124\n" +
	"\x16start_pricing_quantity\x18\x01 \x01(\tR\x14startPricingQuantity\x12\x1d\n" +
	"\n" +
	"unit_price\x18\x02 \x01(\tR\tunitPrice\x12\x1a\n" +
	"\bcurrency\x18\x03 \x01(\tR\bcurrency*`\n" +
	"\x12PricingVersionType\x12$\n" +
	" PRICING_VERSION_TYPE_UNSPECIFIED\x10\x00\x12\x10\n" +
	"\fSTREET_PRICE\x10\x01\x12\x12\n" +
	"\x0eCONTRACT_PRICE\x10\x02Bb\n" +
	"\x1byandex.cloud.api.billing.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/billing/v1;billingb\x06proto3"

var (
	file_yandex_cloud_billing_v1_sku_proto_rawDescOnce sync.Once
	file_yandex_cloud_billing_v1_sku_proto_rawDescData []byte
)

func file_yandex_cloud_billing_v1_sku_proto_rawDescGZIP() []byte {
	file_yandex_cloud_billing_v1_sku_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_billing_v1_sku_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_billing_v1_sku_proto_rawDesc), len(file_yandex_cloud_billing_v1_sku_proto_rawDesc)))
	})
	return file_yandex_cloud_billing_v1_sku_proto_rawDescData
}

var file_yandex_cloud_billing_v1_sku_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_billing_v1_sku_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_billing_v1_sku_proto_goTypes = []any{
	(PricingVersionType)(0),       // 0: yandex.cloud.billing.v1.PricingVersionType
	(*Sku)(nil),                   // 1: yandex.cloud.billing.v1.Sku
	(*PricingVersion)(nil),        // 2: yandex.cloud.billing.v1.PricingVersion
	(*PricingExpression)(nil),     // 3: yandex.cloud.billing.v1.PricingExpression
	(*Rate)(nil),                  // 4: yandex.cloud.billing.v1.Rate
	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_billing_v1_sku_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.billing.v1.Sku.pricing_versions:type_name -> yandex.cloud.billing.v1.PricingVersion
	0, // 1: yandex.cloud.billing.v1.PricingVersion.type:type_name -> yandex.cloud.billing.v1.PricingVersionType
	5, // 2: yandex.cloud.billing.v1.PricingVersion.effective_time:type_name -> google.protobuf.Timestamp
	3, // 3: yandex.cloud.billing.v1.PricingVersion.pricing_expressions:type_name -> yandex.cloud.billing.v1.PricingExpression
	4, // 4: yandex.cloud.billing.v1.PricingExpression.rates:type_name -> yandex.cloud.billing.v1.Rate
	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_billing_v1_sku_proto_init() }
func file_yandex_cloud_billing_v1_sku_proto_init() {
	if File_yandex_cloud_billing_v1_sku_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_billing_v1_sku_proto_rawDesc), len(file_yandex_cloud_billing_v1_sku_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_billing_v1_sku_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_billing_v1_sku_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_billing_v1_sku_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_billing_v1_sku_proto_msgTypes,
	}.Build()
	File_yandex_cloud_billing_v1_sku_proto = out.File
	file_yandex_cloud_billing_v1_sku_proto_goTypes = nil
	file_yandex_cloud_billing_v1_sku_proto_depIdxs = nil
}
