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

package licensemanager

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

const (
	Template_STATE_UNSPECIFIED Template_State = 0
	// Subscription template created but not active yet.
	Template_PENDING Template_State = 1
	// Subscription template is active.
	Template_ACTIVE Template_State = 2
	// Subscription template deprecated.
	Template_DEPRECATED Template_State = 3
	// Subscription template deleted.
	Template_DELETED Template_State = 4
)

// Enum value maps for Template_State.
var (
	Template_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "ACTIVE",
		3: "DEPRECATED",
		4: "DELETED",
	}
	Template_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"ACTIVE":            2,
		"DEPRECATED":        3,
		"DELETED":           4,
	}
)

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

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

func (Template_State) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_marketplace_licensemanager_v1_template_proto_enumTypes[0].Descriptor()
}

func (Template_State) Type() protoreflect.EnumType {
	return &file_yandex_cloud_marketplace_licensemanager_v1_template_proto_enumTypes[0]
}

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

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

type Template struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the subscription template.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Version of the subscription template.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Name of the subscription template.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// ID of publisher.
	PublisherId string `protobuf:"bytes,4,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"`
	// ID of product.
	ProductId string `protobuf:"bytes,5,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// ID of tariff.
	TariffId string `protobuf:"bytes,6,opt,name=tariff_id,json=tariffId,proto3" json:"tariff_id,omitempty"`
	// ID of subscription SKU.
	LicenseSkuId string `protobuf:"bytes,7,opt,name=license_sku_id,json=licenseSkuId,proto3" json:"license_sku_id,omitempty"`
	// Subscription period.
	Period string `protobuf:"bytes,8,opt,name=period,proto3" json:"period,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Update timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Subscription template state.
	State         Template_State `protobuf:"varint,11,opt,name=state,proto3,enum=yandex.cloud.marketplace.licensemanager.v1.Template_State" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Template) ProtoMessage() {}

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

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

func (x *Template) GetVersionId() string {
	if x != nil {
		return x.VersionId
	}
	return ""
}

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

func (x *Template) GetPublisherId() string {
	if x != nil {
		return x.PublisherId
	}
	return ""
}

func (x *Template) GetProductId() string {
	if x != nil {
		return x.ProductId
	}
	return ""
}

func (x *Template) GetTariffId() string {
	if x != nil {
		return x.TariffId
	}
	return ""
}

func (x *Template) GetLicenseSkuId() string {
	if x != nil {
		return x.LicenseSkuId
	}
	return ""
}

func (x *Template) GetPeriod() string {
	if x != nil {
		return x.Period
	}
	return ""
}

func (x *Template) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Template) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *Template) GetState() Template_State {
	if x != nil {
		return x.State
	}
	return Template_STATE_UNSPECIFIED
}

var File_yandex_cloud_marketplace_licensemanager_v1_template_proto protoreflect.FileDescriptor

const file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDesc = "" +
	"\n" +
	"9yandex/cloud/marketplace/licensemanager/v1/template.proto\x12*yandex.cloud.marketplace.licensemanager.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x88\x04\n" +
	"\bTemplate\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
	"\n" +
	"version_id\x18\x02 \x01(\tR\tversionId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12!\n" +
	"\fpublisher_id\x18\x04 \x01(\tR\vpublisherId\x12\x1d\n" +
	"\n" +
	"product_id\x18\x05 \x01(\tR\tproductId\x12\x1b\n" +
	"\ttariff_id\x18\x06 \x01(\tR\btariffId\x12$\n" +
	"\x0elicense_sku_id\x18\a \x01(\tR\flicenseSkuId\x12\x16\n" +
	"\x06period\x18\b \x01(\tR\x06period\x129\n" +
	"\n" +
	"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\n" +
	" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12P\n" +
	"\x05state\x18\v \x01(\x0e2:.yandex.cloud.marketplace.licensemanager.v1.Template.StateR\x05state\"T\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x02\x12\x0e\n" +
	"\n" +
	"DEPRECATED\x10\x03\x12\v\n" +
	"\aDELETED\x10\x04B\x8f\x01\n" +
	".yandex.cloud.api.marketplace.licensemanager.v1Z]github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/licensemanager/v1;licensemanagerb\x06proto3"

var (
	file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDescOnce sync.Once
	file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDescData []byte
)

func file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDescGZIP() []byte {
	file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDesc), len(file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDesc)))
	})
	return file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDescData
}

var file_yandex_cloud_marketplace_licensemanager_v1_template_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_marketplace_licensemanager_v1_template_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_marketplace_licensemanager_v1_template_proto_goTypes = []any{
	(Template_State)(0),           // 0: yandex.cloud.marketplace.licensemanager.v1.Template.State
	(*Template)(nil),              // 1: yandex.cloud.marketplace.licensemanager.v1.Template
	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_marketplace_licensemanager_v1_template_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.marketplace.licensemanager.v1.Template.created_at:type_name -> google.protobuf.Timestamp
	2, // 1: yandex.cloud.marketplace.licensemanager.v1.Template.updated_at:type_name -> google.protobuf.Timestamp
	0, // 2: yandex.cloud.marketplace.licensemanager.v1.Template.state:type_name -> yandex.cloud.marketplace.licensemanager.v1.Template.State
	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_marketplace_licensemanager_v1_template_proto_init() }
func file_yandex_cloud_marketplace_licensemanager_v1_template_proto_init() {
	if File_yandex_cloud_marketplace_licensemanager_v1_template_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_marketplace_licensemanager_v1_template_proto_rawDesc), len(file_yandex_cloud_marketplace_licensemanager_v1_template_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_marketplace_licensemanager_v1_template_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_marketplace_licensemanager_v1_template_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_marketplace_licensemanager_v1_template_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_marketplace_licensemanager_v1_template_proto_msgTypes,
	}.Build()
	File_yandex_cloud_marketplace_licensemanager_v1_template_proto = out.File
	file_yandex_cloud_marketplace_licensemanager_v1_template_proto_goTypes = nil
	file_yandex_cloud_marketplace_licensemanager_v1_template_proto_depIdxs = nil
}
